Skip to content

Instantly share code, notes, and snippets.

@fivetanley
fivetanley / gist:2481581
Created April 24, 2012 17:10 — forked from iammerrick/gist:2481564
RequireJS Coffeescript
(function() {
require.config({
paths: {
'jquery': 'vendor/jquery-1.7.2',
'backbone': 'vendor/backbone',
'underscore': 'vendor/underscore',
'handlebars': 'vendor/handlebars-1.0.0.beta.6',
'text': 'vendor/require.text',
'i18n': 'vendor/i18n',
@fivetanley
fivetanley / 0-readme.md
Last active December 11, 2015 19:08 — forked from burke/0-readme.md

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

ruby-1.9.3-p392 cumulative performance patch for rbenv

(I guarantee nothing. No warranty I am not responsible blah blah blah. Seems to work great for me so far. Thanks to Tyler Bird who I forked this from.)

This installs a patched ruby 1.9.3-p392 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

## Puts a big annoying arrow in your window when you're not scrolled down, like a dummy
#
scrollAlert = $("<div id='scrolldown-arrow'>⬇</div>")
showing = false
body = $ document.body
win = $ window
doc = $ document
Honest Signals
Alex (Sandy) Pentland
Essentials of Programming Languages, third edition
Daniel P. Friedman and Mitchell Wand
Explaining the Computational Mind
Marcin Milkowski
(ns async-test.core
(:require [cljs.core.async :refer [chan]]
[clojure.string :as string])
(:require-macros
[cljs.core.async.macros :as m :refer [go alt! alts!]]))
(def c (chan 1))
(def loc-div (.getElementById js/document "location"))
(.addEventListener js/window "mousemove"
N_ASSIGNMENTS=100
N_USERS=500
def grade_submission_sql_inserts(assignment,student,grade)
"(#{assignment.id}, #{student.id}, #{grade}, true, 'graded', '#{Time.zone.now.iso8601}')"
end
def grade_submission_sql(assignments,students)
students_sql = assignments.map do |assignment|
students.map do |student|
[
["The main function of myelin is to",
["form a protective coating over nerve axons.",
"affect the speed of nerve impulses.",
"block the reception of acetylcholine.",
"aid a nerve's receptivity to neurotransmitters by increasing the number of receptor sites available."]],
["The part of the nerve cell specialized for conducting information is the",
["axon.",
"cell body.",

(stolen from the feminism thread on SA)

Feminism 101, or "What in the fuck is The Gilded Cage?"

If you are new to feminism, approaching it from a position of privilege, or haven't read any of these books for any reason, I strongly recommend them.

Feminism is For Everybody: Passionate Politics by bell hooks. Coming from the perspective of a woman of color, bell hooks calls for feminism free of divisive policies and rich with discussion. She critically analyzes the problems facing feminists today, and proposes a vision of a beloved community that appeals to all those committed to equality in just 125 pages and using simple, accessible language.

No Turning Back: The History of Feminism and the Future of Women by Estelle Freedman. The author, a Stanford professor, examines 200 years of feminism and describes the critical momentum which the movement has gained. She explores the new approaches women are taking to traditional feminist concerns, and insightfully debunks the claim the feminism is dea

Bento, a project by the same company that makes Chef, is a Packer-based project for building base boxes. Unlike http://vagrantbox.es, Bento just uses base operating systems from the manufacturers with no pre-installed software. All the boxes are hosted on S3 in the following format:

https://opscode-vm-bento.s3.amazonaws.com/vagrant/PROVIDER/opscode_OS-VERSION_chef-provisionerless.box

For example, Ubuntu 13.04 lives here for VirtualBox:

https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.04_chef-provisionerless.box

And the VMWare equivalent box lives: