Skip to content

Instantly share code, notes, and snippets.

@strawberryjello
strawberryjello / stack-example.js
Created January 29, 2015 04:05
Sample implementation of a stack in JavaScript.
// see: http://jsfiddle.net/r5p9Lbj5/
function Node(value) {
this.bottom = null;
this.value = value;
}
function Stack() {
this.top = null;
}
@strawberryjello
strawberryjello / notes-on-git.org
Last active August 29, 2015 14:13
Notes on Git

Notes on Git

Why git?

  • you have a distributed workflow
  • you need to version files even when you’re offline
  • you have a central “master” repo, but you still want git’s benefits
    • speed, smaller repo size, ease of branching/tagging, etc

Workflows

  • many different branching models exist; use what works
    • depends on: team size, collaboration model, release schedules and characteristics, etc
@strawberryjello
strawberryjello / notes-on-sane-dev.org
Created January 22, 2015 06:40
Notes on Sane Development

Notes on Sane Development

Sane development?

  • Aim: increase efficiency, productivity, and overall happiness
  • Mileage may vary depending on workplace culture, individual preference, etc
    • mediation between personal goals and workplace goals

Aspects

  • Technologies and tools
  • Culture
  • Personal development
@strawberryjello
strawberryjello / permutations.py
Last active August 29, 2015 13:57
Sample usage of Python's itertools.permutations()
#! /usr/bin/env python
"""Permutation generator
Just a sample usage of itertools.permutations() (Python 2.6 and later)
"""
import itertools
@strawberryjello
strawberryjello / csv-transposer
Last active August 29, 2015 13:56
Transposes the contents of a CSV file and writes the CSV result to another file.
#! /usr/bin/env python
"""CSV transposer
Transposes the contents of a CSV file and writes the CSV result to another
file.
(see: http://en.wikipedia.org/wiki/Transpose)
Runs on Python 2.7.3