Neurogami Neurogami

View flora-arcore-boards.tx
1 2 3 4 5 6 7 8 9 10
# Add this as a board item to the "boards.txt" file for arcore
flora.name=Adafruit Flora (arcore)
flora.upload.protocol=avr109
flora.upload.maximum_size=28672
flora.upload.speed=57600
flora.upload.tool=avrdude
flora.upload.disable_flushing=true
flora.bootloader.low_fuses=0xff
flora.bootloader.high_fuses=0xd8
flora.bootloader.extended_fuses=0xcb
View Configgy.pde
1 2 3 4 5 6 7 8 9 10
import java.util.Map;
import java.util.Iterator;
 
class Configgy {
 
String[] configTextLines;
JSONObject json;
 
Configgy(String configFile) {
try {
View Configgy.pde
1 2 3 4 5 6 7 8 9
 
class Configgy {
 
String[] configTextLines;
JSONObject json;
 
Configgy(String configFile) {
try {
configTextLines = getDataLines(loadStrings(configFile));
View Config.pde
1 2 3 4 5 6 7 8 9 10
class Config {
 
JSONObject json;
 
Config(String cfgFile) {
json = loadJSONObject(cfgFile);
}
 
String getValue(String k) { return json.getString(k); }
String getString(String k) { return json.getString(k); }
View gnewspromokiller.user.js
1 2 3 4 5 6 7 8 9
// ==UserScript==
// @name Remove annoying Hangouts promot
// @include https://news.google.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==
 
 
 
//var divPromo = document.evaluate('//div[@class="hangouts-promo"]', document, null, typeXPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
View glitch.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
=begin
 
Simple script to smack your glitch up.
 
Call this program with the name of an image file, and two numbers
 
The first number is used to determine when to mess with a byte in the
image file. If you pass in, say 2000, then even 2000th byte gets tweaked.
View server specs
1 2 3 4 5 6 7 8 9 10
 
Data Center Dallas 1
Single Processor Quad Core Xeon 3220 - 2.40GHz (Kentsfield) - 2 x 4MB cache
Ubuntu Linux 12.04 LTS Precise Pangolin (64 bit)
4 GB DDR2 667
Non-RAID Disk Controller
500GB SATA II
5000 GB Bandwidth
100 Mbps Public & Private Networks Uplink Port Speeds
Private Network Port 100 Mbps private uplink
View main.controller-loop.js
1 2 3 4 5 6 7 8 9 10
controller.loop(function(frame) {
if (frame.cursorPosition) {
var position = region.mapToXY(frame.cursorPosition, canvas.width, canvas.height)
if (1 == frame.fingers.length ) {
var position = region.mapToXY(frame.cursorPosition, canvas.width, canvas.height)
Handlers['walkto']( [position[0], position[1]] );
}
 
if (2 == frame.fingers.length ) {
var v1 = new Vector.create(frame.fingers[0].tipPosition);
View main.prepareLeap.js
1 2 3 4 5 6 7 8 9
function prepareLeap(){
canvas = document.getElementById("gameCanvas");
context = canvas.getContext("2d");
controller = new Leap.Controller();
 
var leftX = parseInt($('#leftX').val());
var rightX = parseInt($('#rightX').val());
var bottomY = parseInt($('#bottomY').val());
var topY = parseInt($('#topY').val());
View main.04.js
1 2 3 4 5 6 7 8 9 10
grow: function (scaleFactorArray) {
var timeNow = new Date().getTime() / 1000;
var tDelta = timeNow - this.lastGrowMessage;
 
this.walkingTo = false;
this.growing = true;
this.bitmapAnim.scaleX = scaleFactorArray[0];
this.bitmapAnim.scaleY = scaleFactorArray[0];
 
if (tDelta < this.minGrowCallsTime ) { return }
Something went wrong with that request. Please try again.