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
# For Ubuntu 16.04 vm guest where I code, windows host | |
# prefer not to have system installed node/go/erlang/elixir/etc | |
# thanks http://willcodefor.beer/setup-your-own-npm-cache-server/ for the idea! | |
sudo useradd -m -c "NPM-Proxy-Cache" npmpc | |
sudo su npmpc | |
cd | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.1.0 | |
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc |
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
mkdir ~/source | |
# dependencies | |
sudo apt-get update | |
sudo apt-get install libgc-dev bzip2 git-core make gcc g++ gnuplot glade imagemagick libusb-dev python-usb python-lxml python-wxgtk2.8 speech-dispatcher libgnomecanvas2-dev m4 libsdl1.2-dev | |
# neko | |
git clone https://github.com/HaxeFoundation/neko.git ~/source/neko | |
cd ~/source/neko | |
make |
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
package controllers | |
import java.util.Properties | |
import com.typesafe.config.ConfigFactory | |
import kafka.consumer.{Consumer, ConsumerConfig, ConsumerConnector, Whitelist} | |
import kafka.serializer.StringDecoder | |
import play.api.libs.iteratee.{Enumerator, Iteratee} | |
import play.api.mvc.{Controller, WebSocket} |
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
import abe.App; | |
import bl.server.*; | |
import js.Node.*; | |
import js.node.Cluster; | |
import js.node.Os; | |
import npm.Chalk.*; | |
class Server { | |
public static var defaultPort(default, null) = 8787; | |
public static var defaultHost(default, null) = "0.0.0.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
package; | |
import flash.display.Sprite; | |
import flash.geom.Point; | |
import openfl.events.JoystickEvent; | |
#if android | |
import openfl.utils.JNI; | |
import tv.ouya.console.api.OuyaController; |
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 sphereWorld(x, y, z) { | |
// return the index of the material you want to show up | |
// 0 is air | |
if (x*x + y*y + z*z > 15*15) return 0 | |
return 4 | |
} | |
var game = createGame({ |
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 createEngine = require('voxel-engine') | |
window.game = createEngine({ lightsDisabled: true }) | |
game.scene.add(new game.THREE.HemisphereLight(0x408CFF, 0xFFC880, 0.6)) | |
game.on('mousedown', function(pos) { | |
var light = new game.THREE.PointLight( 0xffffff, 1, 500 ) | |
var direction = game.camera.matrixWorld.multiplyVector3(new game.THREE.Vector3(0,0,-1)) | |
var diff = direction.subSelf(game.controls.yawObject.position.clone()).normalize() |
NewerOlder