Skip to content

Instantly share code, notes, and snippets.

View tjpeden's full-sized avatar

TJ Peden tjpeden

View GitHub Profile
require 'rubygems'
require 'gmapper'
include Google::Maps::Static
address = '1502 Denver AV, 11706' # Looks funny because that's how I got it
options = {
center: address,
zoom: 17,
@tjpeden
tjpeden / elevator.txt
Created December 5, 2010 21:45
Garry's Mod Expression 2 elevator code
@name Elevator
@inputs Up Down
@outputs Floors N X Y Z Dir:string
@persist Base:entity Angles:angle Results:array Dir:string
@persist Floors N X Y Z
if( first() ) {
runOnTick(1)
dsJoinGroup( "Elevator.Master" )
@name Automated Turret
@outputs Fire
@persist Self:entity Turret:entity Target:entity Angle:angle
@persist Threshold
if( first() ) {
runOnTick(1)
Self = entity()
Self:isWeldedTo():setMaterial( "Models/XQM/LightLinesRed" )
@tjpeden
tjpeden / gist:761181
Created December 31, 2010 17:39
Heroku Log
==> dyno-3955482.log (crash) <==
/usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Read-only file system - /disk1/home/slugs/390748_25a102e_aa56-1615d7c5-c261-4859-973b-1ced55a0d5f4/mnt/.bundle/gems/ruby/1.8 - Heroku has a read-only filesystem. See http://docs.heroku.com/constraints#read-only-filesystem (Errno::EROFS)
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:243:in `fu_mkdir'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:215:in `reverse_each'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:201:in `each'
from /usr/ruby1.8.7/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler.rb:256:in `configure_gem_home_and_path'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler.rb:72:in `configure'
@tjpeden
tjpeden / application.js
Created April 19, 2011 02:29
CommonJS modules, loaded asynchronously, for the browser environment. A sort of POC. I donno... this is probably dumb...
jQuery(function($) {
CommonJS.require("util");
$(document).bind("require", function(e, exports) { // Probably needs a better event name
var Util = exports.Util;
Util.sing("Revelry"); // Don't ask why Util sings... it just does!
});
});
@tjpeden
tjpeden / gist:1315638
Created October 26, 2011 06:48
Fio/Xbee(Series 1) Error in Arduino IDE
Binary sketch size: 1042 bytes (of a 30720 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
@tjpeden
tjpeden / gist:3067944
Created July 7, 2012 20:09
Immediately after reboot
tjp@ubuntu:~$ lsmod | grep zfs
zfs 1070927 0
zcommon 46678 1 zfs
znvpair 52918 2 zfs,zcommon
zavl 15010 1 zfs
zunicode 331186 1 zfs
spl 162738 5 zfs,zcommon,znvpair,zavl,zunicode
@tjpeden
tjpeden / gist:3318953
Created August 10, 2012 23:32
Kindle Fire Utility output
find: /I: No such file or directory
find: bootmode: No such file or directory
***********************************************
* Installing Permanent Root *
***********************************************
***********************************************
* Activating Fastboot (4002) *
***********************************************
@tjpeden
tjpeden / gist:3518038
Created August 29, 2012 19:58
Rails Composer generates broken app
rails new orange -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T -O
Install an example application?
1) I want to build my own application
Web server for development?
3) Unicorn
Web server for production?
3) Unicorn
@tjpeden
tjpeden / index.slim
Created October 26, 2012 17:56
A CodePen by TJ Peden.
.well#wrapper
.slider
img src="http://placehold.it/600x250.png&text=one" alt="one"
img src="http://placehold.it/600x250.png&text=two" alt="two"
img src="http://placehold.it/600x250.png&text=three" alt="three"