This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Message effect for keyleds: lights up keys in order | |
-- | |
-- Config: | |
-- | |
-- color: the color that each key will use | |
-- group: the group of keys to light up, in order. Either this or "message" | |
-- must be set. | |
-- message: a string of space-separated key names to light up, in order. Each | |
-- key name may be followed by a colon and a number in ms to override the | |
-- time to light that key. For example, "t e s t:1000 i n g space t h i s" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
SCREEN_SERIAL="1WSZMS2" | |
INPUT_DP1="0f" | |
INPUT_HDMI1="11" | |
if [[ ! -e "/dev/i2c-1" ]]; then | |
echo "Module i2c-dev is not loaded; loading..." | |
sudo modprobe i2c-dev | |
if [[ ! -e "/dev/i2c-1" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-input/paper-input.html"> | |
<polymer-element name="imr-editor"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am dingram on github. | |
* I am dmi (https://keybase.io/dmi) on keybase. | |
* I have a public key whose fingerprint is 3025 E303 2516 A646 5F0F 2588 63EF 3BE6 23DF A8AA | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# By Dave Ingram | |
export TZ="Europe/London" | |
case $( date +%I ) in | |
01) DOCTOR='William Hartnell' ;; | |
02) DOCTOR='Patrick Troughton' ;; | |
03) DOCTOR='Jon Pertwee' ;; | |
04) DOCTOR='Tom Baker' ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.___gcfg={lang:'en-GB'};var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-123456-9']);_gaq.push(['_trackPageview']);!function(d,s){var st=d.getElementsByTagName(s)[0],j=function(i,u){if(d.getElementById(i))return;var js=d.createElement(s);js.id=i;js.async=true;js.src=u;st.parentNode.insertBefore(js,st)};setTimeout(function(){j("twitter-wjs","//platform.twitter.com/widgets.js");j("facebook-jssdk","//connect.facebook.net/en_GB/all.js#xfbml=1");j("gplusone-sdk","https://apis.google.com/js/plusone.js")}, 0);j("ga-sdk",('https:'==d.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js')}(document,'script'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"***************************************************************************** | |
" Vim Sessions | |
"***************************************************************************** | |
" ignore 'options' because of latex-suite (would be pointless to save that!) | |
set sessionoptions=blank,curdir,folds,help,resize,tabpages,winsize | |
if has('win32') || has('win64') | |
set sessionoptions+=slash,unix | |
map <leader>ss :mksession! ~/_vimsession<cr> | |
map <leader>sr :source ~/_vimsession<cr> | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function numToCol(c) { | |
var r = ''; | |
if (c > 25) { | |
r = String.fromCharCode('A'.charCodeAt(0) + parseInt(c / 26, 10) - 1); | |
} | |
r = r + String.fromCharCode('A'.charCodeAt(0) + parseInt(c % 26, 10)); | |
return r; | |
} | |
function getCellForDate_(d) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
use LWP::UserAgent; | |
use HTTP::Request::Common; | |
use HTML::Entities; | |
use Getopt::Long; | |
# Generate lipsum (courtesy of lipsum.com) | |
# probably needs neatening up here and there | |
# comments? who needs comments? perl is easy to understand... |
NewerOlder