Skip to content

Instantly share code, notes, and snippets.

@miketucker
miketucker / gitignore
Created June 26, 2014 12:07
Unity gitignore
Library
Temp
*.sln
*.csproj
*.unityproj
*.pidb
*.userprefs
@miketucker
miketucker / alienware-i3-device-report
Created December 18, 2014 21:47
Alienware Alpha i3 model
System Information report written at: 12/18/14 13:30:30
System Name: ALPHA-6YFV322
[System Summary]
Item Value
OS Name Microsoft Windows 8.1
Version 6.3.9600 Build 9600
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name ALPHA-6YFV322
@miketucker
miketucker / gist:1366828
Created November 15, 2011 11:11
fade in
<script type="text/javascript">
$(document).ready(function () {
$("#logo").hide();
$("#logo").bind("load", function () { $(this).fadeIn(); });
});
</script>
@miketucker
miketucker / i hate jesse
Created November 15, 2011 21:25
i hate jesse
/*
* jQuery Backstretch
* Version 1.2.4
* http://srobbin.com/jquery-plugins/jquery-backstretch/
*
* Add a dynamically-resized background image to the page
*
* Copyright (c) 2011 Scott Robbin (srobbin.com)
* Dual licensed under the MIT and GPL licenses.
*/
@miketucker
miketucker / Remove dropbox's green check icon from Finder windows
Created April 9, 2012 19:40
Remove dropbox's green check icon from Finder windows. USAGE: Open a Terminal window and paste entire contents.
file=/Applications/Dropbox.app/Contents/Resources/check.icns
[ -e "$file" ] && mv -f "$file" "$file.bak"
unset file
@miketucker
miketucker / twitter_cache.php
Created April 30, 2012 19:35
Caches a json file of your twitter timeline with a 10 minute timeout. Helpful to combat the API limit.
<?php
header('Content-type: text/json');
header('Content-type: application/json');
function savetwit ($username)
{
//create the rss feed
$local_file = './twitterfeeds/'.$username.'.json';
@miketucker
miketucker / gist:2775466
Created May 23, 2012 14:17
Encode some h264 videos, multithreaded boo yah
require 'rubygems'
require 'streamio-ffmpeg'
threads = []
i = 1
Dir.glob('*.avi') do |f|
j = i.to_s
threads.push Thread.new {
begin
@miketucker
miketucker / multiplatform.shader
Created September 17, 2012 19:56
multiplatform shader
#endif
#ifdef FRAGMENT
varying lowp vec3 xlv_TEXCOORD2;
varying lowp vec3 xlv_TEXCOORD1;
varying highp vec2 xlv_TEXCOORD0;
uniform lowp vec4 _WorldSpaceLightPos0;
uniform sampler2D _MainTex;
uniform lowp vec4 _LightColor0;
@miketucker
miketucker / gist:3772118
Created September 23, 2012 15:56
turbulence library bugs
-------- GLSL error: ERROR: Uniform precision mismatch '_NoiseOffset'
ERROR: Uniform precision mismatch '_Frequency'
ERROR: Uniform precision mismatch '_AnimSpeed'
ERROR: Uniform precision mismatch '_Time'
ERROR: Uniform precision mismatch '_Amplitude'
Vertex Shader:
using UnityEngine;
using UnityEditor;
using System.IO;
// Create a Sublime Text 2 project from a Unity project
// Includes folders and file types of your choosing
// Includes all assemblies for autocompletion in CompleteSharp package
public class SyncSublimeText : Editor