Skip to content

Instantly share code, notes, and snippets.

require "formula"
class Globalplatform < Formula
homepage "http://sourceforge.net/p/globalplatform/wiki/Home/"
url "https://downloads.sourceforge.net/project/globalplatform/GlobalPlatform%20Library/GlobalPlatform%20Library%206.0.0/globalplatform-6.0.0.tar.gz"
sha1 "5a08bec4cbcc8caffa7c646a35600712f468553c"
resource "gppcscconnectionplugin" do
url "https://downloads.sourceforge.net/project/globalplatform/GlobalPlatform%20Library/GlobalPlatform%20Library%206.0.0/gppcscconnectionplugin-1.1.0.tar.gz"
sha1 "38eb3d739f1b75ba954f09a928a6e9db0178ea53"
for hook in "Scripts/git-hooks/$hook_name"*; do
if [ ! -z "$VERBOSE" ]; then
printf %s\\n ' - "'"$hook"'" ...' >&2 ;fi
# ...
done
@ELLIOTTCABLE
ELLIOTTCABLE / Save PDF to Dropbox.pdfworkflow
Created May 16, 2014 20:54
Modified PDF workflow to save (dated) PDF to Dropbox
#!/usr/bin/python
#
# webreceipts job-id user title copies options pdf-file
#
import os
import shutil
import sys
from AppKit import *
from datetime import date
var raven = require('raven')
, Promise = require('bluebird')
, requestAsync = require('request-promise')
var redis = Promise.promisifyAll(require('redis').createClient())
var languages = JSON.parse(require('fs').readFileSync(__dirname + '/languages.json')).languages
Promise.all(languages.map(function(language){
return redis.setAsync('lang:'+language.tag+':name', language.name)
return redis.smembersAsync('langs')
.then(function(languages){
// I need to call `articleExists('foo', language)` for each member of `languages`.
// `articleExists` returns a promise; if it does, indeed, exist, then the promise resolves to
// the result I need (a name.)
// if the article does *not* exist, then the promise returned by `articleExists` is rejected,
// and I need to move on to the next element of `languages`
}
{{#outer}}
123 456
{{/outer}}
@ELLIOTTCABLE
ELLIOTTCABLE / gist:8914e4e82a0c5dc3e338
Created June 7, 2014 09:11
mac-and-vim-lover daytripping to Windows.
; "Windows" key? What's that shit?
RCtrl::RWin
RWin::RCtrl
LCtrl::LWin
LWin::LCtrl
; vim-lover
Capslock::Esc
@ELLIOTTCABLE
ELLIOTTCABLE / evil.js
Created June 7, 2014 11:54
Not all scopes ...
function set(x){return "(function(y){"+x+"=y})"}
var a = 123
eval(set("a"))(456)
console.log(a)
foo bar (widget dongle)
baz mud
wibble wobble
spaz
-- or --
[foo bar (widget dongle); baz mud] wibble wobble; spaz
Paws.js output
[devyn] Paws.rs - ~/Projects/ELLIOTTCABLE/Paws.js/Executables/paws.js test-branch.paws
Hello, world
Hello, world
Hello, world
Hello, world
~ Paws loves you. Bye! 💖
Paws.rs output