Skip to content

Instantly share code, notes, and snippets.

View Noah-Huppert's full-sized avatar
🐢

Noah Huppert Noah-Huppert

🐢
View GitHub Profile
@Noah-Huppert
Noah-Huppert / gist:4d4c8556a60a713fa493
Created August 26, 2015 23:45
Cool Rust Frameworks
iron/iron - Web framework
PistonDevelopers/conrod - GUI Framework
tomaka/glium - OpenGL Binding
@Noah-Huppert
Noah-Huppert / gist:9315228
Created March 2, 2014 22:57
Temp Install for PA In-Game-Browser
/* CHANGES MADE BY SOMEONEWHOISNOBODY */
loadScript("coui://ui/alpha/shared/js/inGameBrowser.js");
loadCSS("coui://ui/alpha/shared/css/inGameBrowser.css");
@Noah-Huppert
Noah-Huppert / JS Async setInterval
Created May 25, 2014 01:58
JS Async setInterval
function asyncInterval(){
var self = this;
self.interation = {};
self.interationNumber = 0;
self.asyncCompleteFlag = false;
self.checkInterval = undefined;
self.start = function(toRun, speed){//toRun must be passed asyncInterval, so it can set asyncCompleteFlag
@Noah-Huppert
Noah-Huppert / gist:acc55e9b08c74a400bf8
Created August 13, 2014 21:36
Android Chat Guilherme de confuser source
setInterval(changePicture, 2000);
function changePicture(){
$('img').each(function(){
if($(this).attr('title') === 'Guilherme'){
$(this).attr('src', 'http://i.imgur.com/r6PyiD4.png');
}
});
}
@Noah-Huppert
Noah-Huppert / How I use fragments
Created August 24, 2014 16:35
How I use fragments
/* My Fragment Class */
public class MainFragment extends Fragment {
private View mainView;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saveInstanceState){
mainView = inflater.inflate(R.layout.fragment_main, container, false);
mainView.setVisibility(View.GONE);
@Noah-Huppert
Noah-Huppert / Kronological
Created September 28, 2014 00:47
Kronological
URL: https://lexhack2014-c9-noah_huppert.c9.io/
Source: https://github.com/Kronological/Lexhack2014
@Noah-Huppert
Noah-Huppert / Human Resources Kickstarter
Created October 7, 2014 02:18
A post I am writing on Reddit, pending aproval
**[Human Resources Kickstarter](https://www.kickstarter.com/projects/659943965/human-resources-an-apocalyptic-rts-game)**
There is this really cool Kickstarter going on for an apocalyptic RTS game. But this isn't any regular apocalypse game. The apocalypse started with giant robots attacking human kind. In an attempt to stop these robots the humans summon ancient monsters which they hope will fight the giant robots. Unfortunately for the humans, the ancient monsters start attacking the humans as well. To make matters event worse the two factions start fighting over who gets to harvest the humans.
The gameplay looks to be centered around two factions. The Robots and the Ancient Monsters. Each of these factions will have a very different play style to create variety. The common resource between both factions is humans. The giant robots seam to use humans in a Matrix type way, by harvesting them for energy. The ancient monsters harvest humans to reduce the populations sanity, the lower the sanity, the more p
@Noah-Huppert
Noah-Huppert / Header Debugger
Created October 12, 2014 16:35
A Header Debugger I wrote in NodeJs
var express = require("express");
var fs = require("fs");
var app = express();
app.post("/", function(req, res){
var date = Date.now();
var fileName = "POST.json";
console.log("POST / @" + date);
@Noah-Huppert
Noah-Huppert / Custom Babun ZSH Theme
Created January 18, 2015 18:08
Extends the default Babun ZSH theme. Removes the location on the right prompt and replaces it with most recent return code. On the left prompt it will shorten the location if the user is in a "home". If the user is in a Cygwin home the shortended text will be red to signifiy a Cygwin home
local return_code="%(?..%{$fg[red]%}%? %{$reset_color%})"
function collapse_pwd {
BABUN_ZSH_CUSTOM_THEME_REAL_HOME="/cygdrive/c/Users/noahh_000"
BABUN_ZSH_CUSTOM_THEME_CYGWIN_HOME="/home/Noah Huppert"
echo $(pwd | sed -e "s,^$BABUN_ZSH_CUSTOM_THEME_REAL_HOME,~," | sed -e "s,^$BABUN_ZSH_CUSTOM_THEME_CYGWIN_HOME,%{$fg[red]%}~%{$fg[blue]%}," )
}
PROMPT='%{$fg[blue]%}{ $(collapse_pwd) } \
@Noah-Huppert
Noah-Huppert / RaceTrackFiller.java
Last active August 29, 2015 14:18
GridWorldFiller
package <YOUR PACKAGE>;
import info.gridworld.actor.Actor;
import info.gridworld.actor.ActorWorld;
import info.gridworld.grid.Location;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;