Skip to content

Instantly share code, notes, and snippets.

View jackfranklin's full-sized avatar

Jack Franklin jackfranklin

View GitHub Profile
@jackfranklin
jackfranklin / gist:10560583
Created April 12, 2014 22:44
ES6 Arrow Functions FTW.
module.exports = function(app) {
var lookup = {
'NOT_STARTED': 'not started',
'STARTED': 'started',
'BLOCKED': 'blocked'
};
app.filter('prettyState', () => (input) => lookup[input]);
app.filter('prettyState', function() {
return function(input) {
Team Bibs
- Jack
- Grant "The Rock" Heywood
- Kyam
- Matt P
- Dave "Stepovers" Kelly
- Dan "Stripper" Dineen
- Darren
Team STINKYFACES
class Hodor
def method_missing(sym)
'Hodor'
end
end
puts Hodor.new.hello
puts Hodor.new.blahblah
def double(x)
x * 2
end
p [1,2,3].map(&method(:double))
# [2, 4, 6]
@jackfranklin
jackfranklin / gist:d68da70ed43203c2eb4a
Created October 3, 2014 15:54
playing with generators
var Q = require('Q');
var fs = require('fs');
var generator = Q.async(function* () {
yield 10
console.log('yielded 10');
yield 20
console.log('yielded 20');
yield 30

Keybase proof

I hereby claim:

  • I am jackfranklin on github.
  • I am jackfranklin (https://keybase.io/jackfranklin) on keybase.
  • I have a public key whose fingerprint is 19A8 CC89 2230 3100 8B5F 7343 0FA7 7A5E 4B09 EA2B

To claim this, I am signing this object:

@jackfranklin
jackfranklin / jack .vimrc
Created December 8, 2010 17:07
my vimrc file
"
".vimrc File
"Written by Jack Franklin
"A lot of this came from Jeffrey Way's video tutorials & his .vimrc file
"(jeffrey-way.com, net.tutsplus.com)
"
"Tabs
set tabstop=4
set shiftwidth=4
"
".vimrc File
"Written by Jack Franklin
"A lot of this came from Jeffrey Way's video tutorials & his .vimrc file
"(jeffrey-way.com, net.tutsplus.com)
"
"Tabs
set tabstop=4
set shiftwidth=4
@jackfranklin
jackfranklin / gist:1020435
Created June 11, 2011 10:17
League Gothic Font Face Declarations
@font-face {
font-family: 'LeagueGothicRegular';
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot');
src: url('lib/font/leaguegothic/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
url('lib/font/leaguegothic/League_Gothic-webfont.woff') format('woff'),
url('lib/font/leaguegothic/League_Gothic-webfont.ttf') format('truetype'),
url('lib/font/leaguegothic/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
font-weight: normal;
font-style: normal;
(function(window, document, undefined) {
var myLib = {...}
window.myLib = myLib;
})(window, document);