Skip to content

Instantly share code, notes, and snippets.

View NuclearMonster's full-sized avatar

Jack Slater NuclearMonster

View GitHub Profile
#!/bin/bash
localPATH=`pwd`
export BUILD_CLIENT="0"
export BUILD_SERVER="1"
export USE_CURL="1"
export USE_CODEC_OPUS="1"
export USE_VOIP="1"
export COPYDIR="~/ioquake3"
IOQ3REMOTE="https://github.com/ioquake/ioq3.git"
IOQ3LOCAL="/tmp/ioquake3compile"
@NuclearMonster
NuclearMonster / populate.php
Created January 15, 2014 22:17
Populate a git repo with .gitignore files so that you'll get the structure you want. Execute with php populate.php on the command line. I got it from this stack overflow thread: http://stackoverflow.com/questions/115983/how-do-i-add-an-empty-directory-to-a-git-repository and just edited it because I didn't want empty README files.
<?php
$path = realpath('.');
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
foreach($objects as $name => $object){
if ( is_dir($name) && ! is_empty_folder($name) ){
echo "$name\n" ;
exec("touch ".$name."/".".gitignore");
}
}
@NuclearMonster
NuclearMonster / lm_unitycrosspromotion
Created November 18, 2013 22:02
Unity Free-to-Paid Cross Promotion Gist for Leap Motion Airspace App Store created by Pohung Chen
using UnityEngine;
using System.Collections;
using System;
using System.Net;
using System.IO;
using SimpleJSON;
public class AirspaceCrossPromotion : MonoBehaviour {
string endpointURL = "https://warehouse.leapmotion.com/api/v1/cross_promotions/[your_cross_promotion_id]";