This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# download this file to your vagrant box: | |
# wget https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh | |
# curl -o- https://gist.githubusercontent.com/sethvincent/1754789/raw/git-config.sh | bash | |
# run this script to set up git: | |
# sh ./git-config.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ulimit -n 10240 | |
export JOBS=max | |
export CLICOLOR=1 | |
# aliases | |
alias l="ls -al" | |
alias ws="cd ~/workspace" | |
alias g="git add . && git commit -m" | |
alias nr="npm run" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'foreman' | |
gem 'oa-oauth' | |
gem 'dm-core' | |
gem 'dm-sqlite-adapter' | |
gem 'dm-migrations' | |
gem 'rack', "~> 1.3.6" | |
gem 'sinatra' | |
gem 'thin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createGame = require('voxel-engine') | |
function weirdWorld(x, y, z) { | |
// return the index of the material you want to show up | |
// 0 is air | |
//silly random | |
if (x*x*Math.random()*0.33 + y*y*Math.random()*3.33 + z*z*Math.random()*7 > 15*15) return 0 | |
return 4 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://natureofcode.com/book/chapter-8-fractals/#chapter08_example8 but doesn't work yet | |
var createGame = require('voxel-engine') | |
function sphereWorld(x, y, z) { | |
// return the index of the material you want to show up | |
// 0 is air | |
if (y === 1) return 1 | |
return 0 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.team-member { | |
min-height:160px; | |
border-bottom:1px solid #ececec; | |
margin-bottom: 25px; | |
} | |
.team-member img { | |
float: left; | |
margin-right: 20px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(Gdx.input.isKeyPressed(Keys.DPAD_LEFT) || Gdx.input.isKeyPressed(Keys.A)) { | |
player.x -= playerSpeed * Gdx.graphics.getDeltaTime(); | |
} | |
if(Gdx.input.isKeyPressed(Keys.DPAD_RIGHT) || Gdx.input.isKeyPressed(Keys.D)) { | |
player.x += playerSpeed * Gdx.graphics.getDeltaTime(); | |
} | |
if(Gdx.input.isKeyPressed(Keys.DPAD_UP) || Gdx.input.isKeyPressed(Keys.W)) { | |
player.y += playerSpeed * Gdx.graphics.getDeltaTime(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var emailEls = $('tr td:last-child').filter(function(){ | |
return $(this).html().length > 0; | |
}); | |
var email; | |
var emails = []; | |
$.each(emailEls, function(k,v){ | |
email = $(v).text(); | |
if ( $.inArray( email, emails ) === -1 ){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Game = require('crtrdg-gameloop'); | |
var canvas = document.createElement('canvas'); | |
canvas.id = 'game'; | |
var body = document.getElementsByTagName('body')[0]; | |
body.appendChild(canvas); | |
var game = new Game({ | |
canvasId: 'game', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var inherits = require('inherits'); | |
var Game = require('crtrdg-gameloop'); | |
var Entity = require('crtrdg-entity'); | |
var Keyboard = require('crtrdg-keyboard'); | |
var canvas = document.createElement('canvas'); | |
canvas.id = 'game'; | |
var body = document.getElementsByTagName('body')[0]; |
OlderNewer