I hereby claim:
- I am cjlarose on github.
- I am cjlarose (https://keybase.io/cjlarose) on keybase.
- I have a public key whose fingerprint is 0111 205E B8EC C042 816C 0D2F AFB8 B897 5C69 8338
To claim this, I am signing this object:
define(['datastore', 'backbone', 'jquery', 'underscore'], function(Datastore, Backbone, $, _) { | |
var GenomeBrowser = { | |
Views: {} | |
}; | |
GenomeBrowser.URL_PLACEHOLDER = '$my_url'; | |
GenomeBrowser.Views.MainView = Backbone.View.extend({ | |
tagName: 'div', | |
initialize: function() { |
import struct | |
from django.db import models | |
from south.modelsinspector import add_introspection_rules | |
add_introspection_rules([], ["^core\.fields\.version_number\.VersionNumberField"]) | |
class VersionNumber(object): | |
def __init__(self, major, minor=0, patch=0, build=0): | |
self.number = (int(major), int(minor), int(patch), int(build)) | |
def __str__(self): |
FROM base:ubuntu-12.10 | |
RUN apt-get update | |
RUN apt-get install -y thrift-compiler | |
ENTRYPOINT ["/usr/bin/thrift"] |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
end |
#!/usr/bin/env python | |
import subprocess | |
import sys | |
class PerformanceData: | |
def __init__(self): | |
self.data = {} | |
def __setitem__(self, key, value): |
I hereby claim:
To claim this, I am signing this object:
class MyCoolModel < ActiveRecord::Base { | |
enum :status => [:started, :in_progress, :completed] | |
# What I'd like to work | |
scope :not_completed -> { where('status' => [:in_progress, :started]) } | |
# Hacky workaround | |
scope :not_completed -> { where('status' => MyCoolModel.statuses.values_at(:in_progress, :started)) } | |
} |
void printint(int); | |
int f() { | |
int n; | |
n = -2147483648; | |
printint(n); | |
return n; | |
} |
OPENCLC=/System/Library/Frameworks/OpenCL.framework/Libraries/openclc | |
BUILD_DIR=./build | |
EXECUTABLE=main | |
.SUFFIXES: | |
KERNEL_ARCH=i386 x86_64 gpu_32 gpu_64 | |
BITCODES=$(patsubst %, mykernel.cl.%.bc, $(KERNEL_ARCH)) | |
$(EXECUTABLE): $(BUILD_DIR)/mykernel.cl.o $(BUILD_DIR)/main.o $(BITCODES) | |
clang -framework OpenCL -o $@ $(BUILD_DIR)/mykernel.cl.o $(BUILD_DIR)/main.o |
wget -r -l1 -H -t1 -nd -N -A.bz2 -erobots=off http://u-go.net/gamerecords/ | |
for f in *.tar.bz2; do tar xf $f; done |