Skip to content

Instantly share code, notes, and snippets.

View holmesal's full-sized avatar
:bowtie:
makin'

Alonso Holmes holmesal

:bowtie:
makin'
View GitHub Profile
@holmesal
holmesal / OSCReceiver.cs
Created April 24, 2016 01:26
Controlling a First Person Controller in Unity with a Balance Board
using UnityEngine;
using System.Collections;
using UnityStandardAssets.Characters.FirstPerson;
public class OSCReceiver : MonoBehaviour {
public FirstPersonController fpc;
// public string RemoteIP = "127.0.0.1";
public string RemoteIP = "192.168.29.102";
var foods = ['falafel', 'popcorn', 'smoothie'];
/** @type {Array.<string>} */
// Is there any way to document the food parameter for the callback function below, without making a separate "parseFood" function?
var betterFoods = _.map(foods, function(food) {
return food + ' with rice'
});
function color_my_prompt {
local __user_and_host="\[\033[01;32m\]\u@\h"
local __cur_location="\[\033[01;34m\]\w"
local __git_branch_color="\[\033[31m\]"
#local __git_branch="\`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`"
local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
local __prompt_tail="\[\033[35m\]$"
local __last_color="\[\033[00m\]"
local __bolt_color="\[\033[31m\]"
#export PS1="$__user_and_host $__cur_location $__git_branch_color$__git_branch$__prompt_tail$__last_color "
//
// ESTransponder.m
// transponder
//
// Created by Alonso Holmes on 4/1/14.
// Copyright (c) 2014 Buildco. All rights reserved.
//
#import "ESTransponder.h"
#import <Firebase/Firebase.h>
@holmesal
holmesal / gist:eb21762b2df00338dcde
Created September 17, 2014 21:42
build.js for famous 0.3.0-alpha
window.famous = {
core: {
Context: require('./core/Context'),
ElementAllocator: require('./core/ElementAllocator'),
ElementOutput: require('./core/ElementOutput'),
Engine: require('./core/Engine'),
Entity: require('./core/Entity'),
EventEmitter: require('./core/EventEmitter'),
EventHandler: require('./core/EventHandler'),
Group: require('./core/Group'),
@holmesal
holmesal / gist:5e33c8ce6cf76a7d2058
Created August 10, 2014 07:07
Building mac app from node-webkit
Can use sips to convert any png to icns, as long as it's as long as it's either 128x128, 256x256 or 512x512 pixel.
See here: http://portingteam.com/topic/4750-icns-conversion-with-sips/
sips -s format icns "icon.png" --out "icon.icns"
Can use yoursway-create-dmg to bundle like so:
./create-dmg --volname "Shortwave" --window-size 490 510 --background doge.jpg --icon Shortwave.app 100 245 --app-drop-link 390 245 --volicon icon.icns Shortwave.dmg /Users/alonsoholmes/developer/shortwave-web/releases/shortwave/osx
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
//MODIFIED: add require for connect-modewrite
var modRewrite = require('connect-modrewrite');
grunt.initConfig({
736f 6c69 6420 7265 7633 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 2020
8402 0000 0000 0000 0000 803f 0000 0000
c290 be40 9f4d 0442 cdcc b141 62a8 9d40
9f4d 0442 15e1 c041 3317 e640 9f4d 0442
15e1 c041 0000 0000 0000 0000 803f 0000
0000 c290 be40 9f4d 0442 cdcc b141 3317
@holmesal
holmesal / gist:9392023
Created March 6, 2014 15:23
socket example
<!DOCTYPE html>
<head>
<script src="http://node.staging.robinpowered.com/socket.io/socket.io.js"></script>
<script type="text/javascript">
socket = io.connect('http://robin-grid.omrdev.com:80/clients');
// socket = io.connect('http://localhost:9200/clients');
@holmesal
holmesal / postman
Last active January 4, 2016 00:59
postman tests for robin sockets
Sections
---
https://www.getpostman.com/collections/bfa5cede080b07544244
Walls
---
https://www.getpostman.com/collections/2578131c3e985fc38901
Layouts
---