Skip to content

Instantly share code, notes, and snippets.

View dylanvee's full-sized avatar

Dylan Vassallo dylanvee

View GitHub Profile
@dylanvee
dylanvee / gist:3408404
Created August 20, 2012 22:10
db/ndb query example
from google.appengine.ext import db, ndb
class OldBananaStand(db.Model):
contains_money = db.BooleanProperty()
class NewBananaStand(ndb.Model):
contains_money = ndb.BooleanProperty()
old_ones = OldBananaStand.all()
old_ones.filter('contains_money = True') # => ok!
@dylanvee
dylanvee / gist:3392923
Created August 19, 2012 06:49
SSH *.lxc
# based on http://www.stgraber.org/2012/07/17/easily-ssh-to-your-containers-and-vms-on-ubuntu-12-04-lts/
Host *.lxc
User ubuntu
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
ProxyCommand nc $(host $(echo %h | sed "s/.lxc//g") 10.0.3.1 | tail -1 | awk '{print $NF}') %p
@dylanvee
dylanvee / gist:2407930
Created April 17, 2012 18:14
EBImage build failure with clang
> source("http://bioconductor.org/biocLite.R")
BiocInstaller version 1.4.3, ?biocLite for help
> biocLite("EBImage")
BioC_mirror: http://bioconductor.org
Using R version 2.15, BiocInstaller version 1.4.3.
Installing package(s) 'EBImage'
trying URL 'http://www.bioconductor.org/packages/2.10/bioc/src/contrib/EBImage_3.12.0.tar.gz'
Content type 'application/x-gzip' length 4738660 bytes (4.5 Mb)
opened URL
==================================================
@dylanvee
dylanvee / gist:2315649
Created April 6, 2012 01:06
gem install camellia
dylan@dmv-vmware:~$ gem install camellia
Fetching: camellia-2.7.0-x86-linux.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing camellia:
ERROR: Failed to build gem native extension.
/home/dylan/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb
Unzipping Camellia library...
Configuring Camellia library...
Compiling and installing Camellia library...
@dylanvee
dylanvee / server.js
Created February 15, 2012 22:39 — forked from mixonic/server.js
Node.js + Socket.io + Bash. A collaborative terminal for your browser.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
// curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js
//
@dylanvee
dylanvee / mz-scheme.rb
Created December 4, 2011 07:14
mz-scheme 372
require 'formula'
class MzScheme < Formula
url 'http://download.plt-scheme.org/bundles/372/mz/mz-372-src-unix.tgz'
homepage 'http://plt-scheme.org/'
md5 'c755f4ba7191636c5eb587745e4c6a67'
version '4.2.5'
fails_with_llvm "Unsupported inline asm", :build => 2335
@dylanvee
dylanvee / ir_black.bbcolors
Created September 28, 2011 17:11 — forked from pgib/bbedit_colours.sh
IR_Black theme for TextWrangler
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>(null)_Other</key>
<string>rgba(0.866667,0.031373,0.023529,1.0)</string>
<key>(null)_Spaces</key>
<string>rgba(0.498039,0.498039,0.498039,1.0)</string>
<key>BackgroundColor</key>
<string>rgba(0.122179,0.122179,0.122179,1.0)</string>
@dylanvee
dylanvee / gist:1163869
Created August 22, 2011 23:01 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
Day job: Undergrad researcher at the UCLA Center for Embedded Networked Sensing. I work in the area of participatory sensing, which uses mobile phones as a distributed sensor network for performing research in areas such as ecology and health.
Favorite Python project: My summer project at UCLA CENS was to add a prediction model to our research project that employs volunteer citizen scientists who track the growth of their plants over time to learn about changes in microclimates. Using my (Python/Django + historical weather data + custom algorithm) system, participants can not only contribute data to our research, but they can now learn more about the lifecycles of their plants/crops.
Favorite Conference: I'm an undergraduate student, so this would be my first conference.
Python Experience Level: Intermediate/advanced
source :rubygems
source :gemcutter
group :app do
gem 'sinatra'
gem 'sinatra-synchrony'
gem 'faye'
gem 'koala'
end
GIT
remote: git://github.com/dylanvee/em-postgresql-adapter.git
revision: b9b21255d145d8bf0afe284b0219f3c5835461ca
specs:
em-postgresql-adapter (0.1)
pg (>= 0.8.0)
GEM
remote: http://rubygems.org/
remote: http://rubygems.org/