Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am duryjames on github.
  • I am dewyface (https://keybase.io/dewyface) on keybase.
  • I have a public key whose fingerprint is F7C6 C1BB 6568 7CC6 E530 28F9 33C3 B442 311A A4F6

To claim this, I am signing this object:

<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@duryjames
duryjames / .start_irssi.sh
Created March 23, 2014 22:01
used with a cron job on boot, auto start irssi in a tmux session
#!/bin/sh
tmux new-session -d -s 0
tmux new-window -n 'irssi' 'irssi'
tmux select-window -t 1
tmux detach-client
function SocialService($FacebookService, $TwitterService){
this.getAuth = function (string) {
var service = getSocialById(string);
return service.getAuth();
}
this.getName = function (string) {
var service = getSocialById(string);
service.getName();
@duryjames
duryjames / pngToGif.sh
Created April 26, 2013 10:34
Convert a series of png to a gif
convert $(for ((a=0; a<65; a++)); do printf -- "--delay 10 %s.png " $a; done;) result.gif
@duryjames
duryjames / build.xml
Created March 26, 2013 14:56
Ant Build script
<?xml version="1.0"?>
<project basedir="." default="compile">
<target name="check-for-files">
<condition property="compiler-present">
<available file="build-tools/compiler-latest/compiler.jar" />
</condition>
<condition property="no-compiler">
<not>
<available file="build-tools/compiler-latest/compiler.jar" />
@duryjames
duryjames / Error.js
Last active December 15, 2015 03:39
Better javascript debugging
(function (window) {
'use strict';
if (!console) {
console = {};
console.log = {};
}
var windowOnError = window.onerror;