Skip to content

Instantly share code, notes, and snippets.

var JS = require("jstest"),
async = require("async"),
WebSocket = require("faye-websocket").Client,
Browser = require("../../chatroom/spec/browser"),
store = require("../../orm/store"),
User = require("../../orm/persisted_user"),
app = require("../app")
JS.Test.describe("WebSockets", function() { with(this) {
before(function(resume) { with(this) {
anonymous
anonymous / effortless.tmTheme
Created August 23, 2014 21:25
Anselm Eickhoff's ST3 theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>gutterSettings</key>
<dict>
class X.Example extends X.Object
@proxyMethod "attachmentManager.manageAttachment"
# Equivalent to:
# manageAttachment: ->
# @attachmentManager.manageAttachment.apply(@attachmentManager, arguments)
@proxyMethod "delegate?.compositionDidChangeDocument"
# Equivalent to:
# compositionDidChangeDocument: ->
# @delegate?.compositionDidChangeDocument?.apply(@delegate, arguments)
@gilesvangruisen
gilesvangruisen / LocalStore.swift
Last active August 29, 2015 14:17
StorableValue protocol for encoding/decoding a value type and StoredValue object for boxing up a StorableValue to be cached. (Value types can't conform to NSCoding because it's a class-protocol.)
//
// LocalStore.swift
// FPAPI
//
// Created by Giles Van Gruisen on 3/23/15.
// Copyright (c) 2015 Remarkable.io. All rights reserved.
//
import Foundation
import AwesomeCache
$ node examples/javascript.js

Canopy Lisp x 5,223 ops/sec ±1.01% (93 runs sampled)
PEG.js Lisp x 2,185 ops/sec ±2.94% (88 runs sampled)
Canopy PEG x 208 ops/sec ±4.48% (85 runs sampled)
PEG.js PEG x 122 ops/sec ±2.58% (72 runs sampled)
@mkdynamic
mkdynamic / Rakefile
Last active December 10, 2015 11:09 — forked from jenslukowski/Rakefile
Including MailCore for RubyMotion project.
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'HelloMailCore'
# Configure MailCore
app.vendor_project("vendor/MailCore", :xcode, :headers_dir => "{../include,libetpan/build-mac/.build/include/libetpan}", :target => "MailCore iOS")
@kylebragger
kylebragger / domains.txt
Last active December 15, 2015 03:28
I'm selling the following domain names. Make me an offer via email: kyle@kylebragger.com
youshouldworkwith.me
moodboard.me
notorganized.com
togetherlist.com (+ net & org)
pettl.com (+ net & org)
ringfinger.co
omghey.com (+ net & org)
roastler.com (+ net & org)
spaces.is
(function() {
'use strict';
var indexOf = function(list, needle) {
if (list.indexOf) return list.indexOf(needle);
for (var i = 0, n = list.length; i < n; i++) {
if (list[i] === needle) return i;
}
return -1;
};
@brson
brson / gist:9470739
Last active February 15, 2016 04:15
Rust doc hacking cheatsheet

Tips for hacking on Rust docs in the Rust tree

Standalone docs

  • make doc/tutorial.html - build the tutorial
  • make check-stage1-doc-tutorial - test the examples in the tutorial

API docs

  • make doc/std/index.html - build the API docs for std
@h3h
h3h / 0-resume-template.md
Last active July 28, 2016 13:07
Ideal Resume Format for a Software Engineer

https://github.com/[yourname]

Ambition

[Describe ambitions: type of work, attributes of team, what you want to learn & teach]

Experience

[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]