Skip to content

Instantly share code, notes, and snippets.

[
["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.",
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|
(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"
Honest Signals
Alex (Sandy) Pentland
Essentials of Programming Languages, third edition
Daniel P. Friedman and Mitchell Wand
Explaining the Computational Mind
Marcin Milkowski
## 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

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

@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.

@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',