Skip to content

Instantly share code, notes, and snippets.

@poemdexter
poemdexter / setup.md
Last active April 27, 2021 16:15
new osx setup
@poemdexter
poemdexter / .bash_profile
Last active April 27, 2021 15:50
bash profile for osx
# aliases
alias ll='ls -al'
alias g='./gradlew'
alias check8080='lsof -i -n -P | grep TCP | grep 8080'
# lol osx
export BASH_SILENCE_DEPRECATION_WARNING=1
# colors plz
set TERM xterm-256color; export TERM
@Azzizi
Azzizi / Extensions.cs
Last active August 29, 2015 14:00
Scripts for snapping to virtual pixel boundaries in low-rez Unity games. made for use with 2D Toolkit-- for Unity 2D, change the metersPerPixel calculation.
using UnityEngine;
namespace FBD
{
public static class Extensions
{
public static Transform FindInHierarchy(this Transform t, string name)
{
for (int c = 0; c < t.childCount; c++)
{
@poemdexter
poemdexter / ScreenShake.cs
Last active August 29, 2015 13:57
BE LIKE VLAMBEER TODAY!!!
using UnityEngine;
using System.Collections;
public class Screenshake : MonoBehaviour
{
public float shakeAmount = 0.7f;
public float decreaseFactor = 1.0f;
private float shake;
private bool shakeEnded = true;
@jjdelc
jjdelc / crayola.json
Created February 20, 2012 06:32
Crayola colors in JSON format
[
{
"hex": "#EFDECD",
"name": "Almond",
"rgb": "(239, 222, 205)"
},
{
"hex": "#CD9575",
"name": "Antique Brass",
"rgb": "(205, 149, 117)"