Skip to content

Instantly share code, notes, and snippets.

View steckel's full-sized avatar

Curtis Steckel steckel

  • San Francisco, CA
View GitHub Profile
@steckel
steckel / .zshrc
Last active August 29, 2015 14:15
autoload -Uz promptinit
promptinit
prompt redhat
var assert = require('assert');
var a = {
get a() {
return "a";
}
};
assert.deepEqual(Object.keys(a), ['a'], 'es6 enhanced object literals');
var b = {};
This file has been truncated, but you can view the full file.
var stockQuotes = [{"name":"Faux Derp","symbol":"MNI","index":"NASDAQ","price":"25.91","change_price":"1.69","change_percent":".45%","time":"Apr 23 7:59 EDT","estimated_price":"25.9157","estimated_change":".39%","open":"25.9162","high":"25.9187","low":"-46.09","volume":"25.9168M","avg_volume":"25.9112M","market_cap":"25.9138B"},{"name":"Pro Derp","symbol":"SCRS","index":"NASDAQ","price":"982.25","change_price":"63.12","change_percent":".79%","time":"Apr 23 7:59 EDT","estimated_price":"982.2557","estimated_change":".26%","open":"982.256","high":"982.2510","low":"928.25","volume":"982.2584M","avg_volume":"982.2513M","market_cap":"982.2576B"},{"name":"Cafe World","symbol":"MNI","index":"NASDAQ","price":"136.32","change_price":"47.58","change_percent":".2%","time":"Apr 23 7:59 EDT","estimated_price":"136.3266","estimated_change":".23%","open":"136.3239","high":"136.3264","low":"131.32","volume":"136.3217M","avg_volume":"136.3264M","market_cap":"136.3252B"},{"name":"Bear LLC","symbol":"RCK","index":"NASDAQ","price
@steckel
steckel / stocks.js
Last active December 22, 2015 16:49
This file has been truncated, but you can view the full file.
window.stockQuotes = [{"name":"Faux Derp","symbol":"MNI","index":"NASDAQ","price":"25.91","change_price":"1.69","change_percent":".45%","time":"Apr 23 7:59 EDT","estimated_price":"25.9157","estimated_change":".39%","open":"25.9162","high":"25.9187","low":"-46.09","volume":"25.9168M","avg_volume":"25.9112M","market_cap":"25.9138B"},{"name":"Pro Derp","symbol":"SCRS","index":"NASDAQ","price":"982.25","change_price":"63.12","change_percent":".79%","time":"Apr 23 7:59 EDT","estimated_price":"982.2557","estimated_change":".26%","open":"982.256","high":"982.2510","low":"928.25","volume":"982.2584M","avg_volume":"982.2513M","market_cap":"982.2576B"},{"name":"Cafe World","symbol":"MNI","index":"NASDAQ","price":"136.32","change_price":"47.58","change_percent":".2%","time":"Apr 23 7:59 EDT","estimated_price":"136.3266","estimated_change":".23%","open":"136.3239","high":"136.3264","low":"131.32","volume":"136.3217M","avg_volume":"136.3264M","market_cap":"136.3252B"},{"name":"Bear LLC","symbol":"RCK","index":"NASDAQ","pr
require 'yaml'
class FrontMatter
YAML_REGEX = /\A(---\s*\n.*?\n?)^(---\s*$\n?)/m
attr_accessor :source, :results, :output
def initialize(source)
@source = source
parse
Process: Tweetbot [1027]
Path: /Users/USER/Downloads/Tweetbot.app/Contents/MacOS/Tweetbot
Identifier: com.tapbots.TweetbotMacAdHoc
Version: 0.8.0 (758)
Code Type: X86-64 (Native)
Parent Process: launchd [183]
Date/Time: 2012-09-24 08:52:54.694 -0700
OS Version: Mac OS X 10.7.5 (11G56)
Report Version: 9
#container
div
width: 25%
&.one
background-color: red
&.two
background-color: blue
@steckel
steckel / readability.coffee
Created June 20, 2012 05:56
Readability Proof Of Concept (in CoffeeScript)
dbg = (s) ->
console.log "Readability: " + s if typeof console isnt "undefined"
readability =
version: "0.5.1"
emailSrc: "http://lab.arc90.com/experiments/readability/email.php"
kindleSrc: "http://lab.arc90.com/experiments/readability/kindle.php"
iframeLoads: 0
# The frame hack is to workaround a firefox bug where if you
@steckel
steckel / fs.walk.coffee
Created May 17, 2012 04:28
Additional node.js fs methods: fs.walk(dir,callback) and fs.walkSync(dir)
fs = require("fs")
fs.walk = (dir, done) ->
results = []
fs.readdir dir, (err, list) ->
done(err) if err
pending = list.length
done(null, results) unless pending
@steckel
steckel / bad-output.html
Created May 1, 2012 21:06
Files for testing URL encoding "issue" with Middleman
<a class="{{name}}" href="%7B%7Bpath%7D%7D">{{name}}</a>