Skip to content

Instantly share code, notes, and snippets.

@alecperkins
alecperkins / names.js
Last active August 29, 2015 14:06 — forked from bnb/names.js
Cycle through the names using `Array::shift` and `Array::push`, with recursive `setTimeout` instead of a loop so it's non-blocking.
var names = [
"&!",
"bnb",
"bang",
"bitnb",
"bitandbang",
"Tierney Coren"
]
function typeName() {
// Get the first name in the list and push it to the end.
@alecperkins
alecperkins / names.js
Last active August 29, 2015 14:06 — forked from bnb/names.js
Use Array::shift and Array::push to cycle through the names indefinitely.
var names = [
"&!",
"bnb",
"bang",
"bitnb",
"bitandbang",
"Tierney Coren"
]
while(names.length > 0){
var name = names.shift();
@alecperkins
alecperkins / interpolation.scss
Created October 15, 2012 15:08 — forked from idan/interpolation.scss
Kind of a hack
@function colorchoice($choice) {
@if $choice == "0" {
@return rgb(202,0,32);
}
@if $choice == "1" {
@return rgb(244,165,130);
}
@if $choice == "2" {
@return rgb(247,247,247);
}
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._