Skip to content

Instantly share code, notes, and snippets.

View cdl's full-sized avatar

Colby Ludwig cdl

View GitHub Profile
Process: Chocolat [63646]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Identifier: Chocolat
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: Chocolat [63636]
Date/Time: 2011-11-27 15:38:20.656 -0700
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
@cdl
cdl / site.rb
Created December 27, 2012 06:57
simple two-page site in camping
Camping.goes :Site
module Site::Controllers
class Index < R '/'
def get
"<p>Hello, world.</p><p><a href='/about'>About me.</a></p>"
end
end
class About < R '/about'
class ClassName < InheritsFromModule::Class
@greeting = 'hay' # ivar
:name = 'colby' # symbol, used extensively in Rails
def greet
puts @greeting + ' ' + :name
end
end
@cdl
cdl / Eva.rb
Last active December 11, 2015 01:09 — forked from k2052/Eva.rb
class Eva < Zebra
include MongoMapper::Document
include Vegan::Powers
include MongoMapperExt::Taggable
include MongoMapper::Tweetable
## Keys
key :scarves_count, Integer, :default => 20
key :compliments_count, Integer, :default => 100
key :hivemind_response_count, Integer, :default => 500
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64"
@cdl
cdl / sublimeprefs.json
Created May 22, 2013 00:22
My Preferences.sublime-settings file
{
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Espresso Aqua.tmTheme",
"font_size": 12.0,
"theme": "Soda Light.sublime-theme",
"file_exclude_patterns": [".gitignore", "*.pyc"]
}
@cdl
cdl / In-game crash screen
Last active December 18, 2015 01:09
The crash log for a crash that happens when Minecraft tried to release the mouse. Happened after joining a server and hitting 'T' to bring up the chat, but also does the same when brining up the inventory and/or pause menu. This happened using a modded JAR (using Optifine), but this bug happens on an un-modded JAR as well.
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Unexpected error
A full error report has been saved to /Users/rockets/Library/Application Support/minecraft/crash-reports/crash-2013-06-03_15.15.35-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash :(
[remote "all"]
url = git@heroku.com:reponame.git
url = https://github.com/colbyl/reponame.git
/*
* Rdio.h
*/
#import <AppKit/AppKit.h>
#import <ScriptingBridge/ScriptingBridge.h>
@class RdioApplication, RdioTrack, RdioApplication;
var times = 100;
for (var i = 0;i < times; i++) {
if (i % 3 == 0) {
console.log("foo");
} else if (i % 5 == 0) {
console.log("bar");
} else if (i % 3 == 0 && i % 5 == 0) {
console.log("baz");
}
}