Skip to content

Instantly share code, notes, and snippets.

View bombarie's full-sized avatar

Adriaan Wormgoor bombarie

View GitHub Profile
#!/usr/bin/env ruby
# Toine Heuvelmans, November 2016
# A small script that helps you removing Xcode-related data.
# This can potentially save many Gigabytes.
# Just run `ruby xcode_cleanup.rb`.
require 'fileutils'
require 'date'
require 'rubygems'
@JakubNei
JakubNei / DeferredSynchronizeInvoke.cs
Last active January 11, 2023 11:06
Implementation of ISynchronizeInvoke for Unity3D game engine. Can be used to invoke anything on main Unity thread. ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well. I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject.
/*
Implementation of ISynchronizeInvoke for Unity3D game engine.
Can be used to invoke anything on main Unity thread.
ISynchronizeInvoke is used extensively in .NET forms, it's is elegant and quite useful in Unity as well.
I implemented it so i can use it with System.IO.FileSystemWatcher.SynchronizingObject.
help from: http://www.codeproject.com/Articles/12082/A-DelegateQueue-Class
example usage: https://gist.github.com/aeroson/90bf21be3fdc4829e631
version: aeroson 2017-07-13 (author yyyy-MM-dd)
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 13, 2024 10:59
A badass list of frontend development resources I collected over time.
@jkosoy
jkosoy / gist:5379904
Last active June 20, 2023 14:06
Raspberry Pi setup

Raspberry Pi setup

Just wanted a quick start guide for myself so that I wouldn't have to keep rooting through Google to remember all this stuff. Hopefully it helps other people.

If you had other ideas or suggestions please leave a comment.

Useful things to own before you buy a Pi

The first time I bought a Pi I was enormously frustrated with myself because I didn't own all of this stuff. Kept having to order things off of Amazon and wait to get started... very irritating. This is all good stuff to have laying around anyway:

@admsyn
admsyn / README.txt
Created November 24, 2012 15:45
Keep an installation alive with launchd & launchctl
Add this .plist to ~/Library/LaunchAgents to have it automatically
take effect whenever you log in. It will continue to be active until
you log out (even if you delete the file).
You can take manual control over it instead by putting the file
anywhere else, then using launchctl like this:
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
launchctl load path/to/the/plist/com.admsyn.keep-twitter-alive.plist
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
@wmiller
wmiller / Events.cs
Last active October 22, 2023 06:39
Unity3D Event System
using System.Collections;
using System.Collections.Generic;
public class GameEvent
{
}
public class Events
{
static Events instanceInternal = null;
@paulirish
paulirish / rAF.js
Last active July 2, 2024 11:59
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];