Skip to content

Instantly share code, notes, and snippets.

@colbyr
colbyr / gist:1579888
Created January 8, 2012 22:10
Backbone-Handlebars View Template
/* base view template */
var ViewTemplate = Backbone.View.extend({
// containing element
el: $('body'),
// events
events: {},
// initialize
@colbyr
colbyr / gist:2155434
Created March 22, 2012 03:34
Install Tomcat 6 with Homebrew
cd /usr/local/Library/Formula
git checkout 9e18876 tomcat.rb
brew install tomcat
@colbyr
colbyr / ilearn-nav.css
Created March 31, 2012 21:29
Fixing iLearn
/* navigation wrapper */
.siteNavWrap {
overflow: hidden !important;
height: auto !important;
background: #000;
padding: 0;
margin: 0;
}
@colbyr
colbyr / centered.css
Created April 2, 2012 03:12
HTML Centered Block
.centered {
width: 300px;
margin-left: auto;
margin-right: auto;
}
@colbyr
colbyr / _problem.md
Created April 7, 2012 18:27
Lat/Long Distance

I'm having an issue with assignment 3:

for the coordinates (41.721194054071, -73.934258235003) & (33.7199, -116.232), which a the first coordinates used in the test file, my script returns ~ 2353 mi. As far as I can tell that's correct.

Unfortunately, testtour.py seems to be expecting ~ 4705 mi for the first test.

2352.731305 != 4705.462610 ... Incorrect
@colbyr
colbyr / .gitconfig
Created May 23, 2012 05:32
Git Setup
[user]
name = Your Name
email = your@email.com
[core]
excludesfile = /Users/<yourusername>/.gitignore_global
[color]
ui = auto
[alias]
st = status
ci = commit
@colbyr
colbyr / class.js
Created October 3, 2012 04:48
Make a class in a module
/**
* use underscore js because its useful
*/
var _ = require('underscore');
/**
* Constructor -- `new Class('frosted')`
*/
function Class(prop) {
this.prop = prop;
@colbyr
colbyr / test.rb
Created October 17, 2012 03:12
A STATE
require "./cube.rb"
Cube.pp(
Cube.rotateCounterClockwise("RRRRRRRRRGGGYYYBBBGGGYYYBBBGGGYYYBBBOOOOOOOOOWWWWWWWWW", 'Y')
)
@colbyr
colbyr / identity-online.md
Last active December 11, 2015 01:19
Discussing mandatory identity online for Ethics...

tl;dr. No. Implementing a system of absolute identification across the entire Internet 1) would destroy the inherently distributed nature of the network and 2) is probably completely impossible anyways.

In it's most basic sense, the Internet allows any computer (and by extension any person) to communicate with any other computer/person on the network. Every client is (or at least should be) treated equally. It's what makes the Internet powerful and what makes it dangerous. It's led to drastic changes in all of our lives.

I can connect with more than a billion people on Facebook… I can find something about anything on Google… I can listen to any song ever on Spotify…

I have super powers.

@colbyr
colbyr / vcenter.html
Created February 7, 2013 21:35
deck.js vcenter
<section class="slide">
<div class="vcenter">
<h1>Title</h1>
<h3>Sub-Title</h3>
</div>
</section>