Skip to content

Instantly share code, notes, and snippets.

View omgwtfgames's full-sized avatar

Andrew Perry omgwtfgames

View GitHub Profile
@omgwtfgames
omgwtfgames / StareButton.cs
Created April 22, 2016 01:01 — forked from flarb/StareButton.cs
This is a 'stare button' for Google Cardboard apps where you just want to stare at a button over time to select it.
using System;
using System.Reflection;
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
using UnityEngine.Events;
using UnityEngine.UI;
public class StareButton : MonoBehaviour, IEventSystemHandler, IPointerExitHandler, IPointerEnterHandler, ISelectHandler {
@omgwtfgames
omgwtfgames / monetize.py
Last active December 31, 2015 03:08
A simple Python CGI script for producing permission forms for Let's Players
<h1>OMGWTFGAMES !1!! Let's Players</h1>
<h1>"moolah for the viddya" permission form</h1>
<form method="get" action="monetize.py">
<table><tr>
<td>Your name:</td><td><input type="text" name="name"></td>
</tr>
<tr>
<td>The game you've made a video of (optional):</td><td><input type="text" name="game"></td>
</tr>
</table>
@omgwtfgames
omgwtfgames / UnlitColoredDoubleSided.shader
Created November 13, 2015 01:03
UnlitColoredDoubleSided.shader
Shader "Unlit Colored Double Sided" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
Category {
Lighting Off
ZWrite On
Cull Off
SubShader {
@omgwtfgames
omgwtfgames / tweet_3079.py
Last active October 13, 2015 20:08
Tailing a log file and tweeting events (3079 server example)
#!/usr/bin/env python
import sys, time, datetime
dont_actually_tweet = False
twitter_account_name = "3079.omgwtfgames.com"
logfilename = '/tmp/3079.log'
consumer_key=""
consumer_secret=""