Skip to content

Instantly share code, notes, and snippets.

View tiagox's full-sized avatar

Santiago Rojo tiagox

View GitHub Profile
@cristianrasch
cristianrasch / repos.txt
Created November 30, 2013 01:45
Debian repos
Iceweasel
deb http://mozilla.debian.net/ wheezy-backports iceweasel-release
Redis
deb http://packages.dotdeb.org wheezy all
@traviskaufman
traviskaufman / jasmine-this-vars.md
Last active September 19, 2022 14:35
Better Jasmine Tests With `this`

Better Jasmine Tests With this

On the Refinery29 Mobile Web Team, codenamed "Bicycle", all of our unit tests are written using Jasmine, an awesome BDD library written by Pivotal Labs. We recently switched how we set up data for tests from declaring and assigning to closures, to assigning properties to each test case's this object, and we've seen some awesome benefits from doing such.

The old way

Up until recently, a typical unit test for us looked something like this:

describe('views.Card', function() {
@willurd
willurd / web-servers.md
Last active April 26, 2024 18:00
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000