Skip to content

Instantly share code, notes, and snippets.

View rustybailey's full-sized avatar

Rusty Bailey rustybailey

View GitHub Profile
@rustybailey
rustybailey / Diffuse_Flash.shader
Last active November 23, 2020 14:09
Flash/Blink 2D Sprite with Shader that uses the Sprite Renderer's color
Shader "Sprites/Diffuse Flash"
{
Properties
{
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}
_SelfIllum("Self Illumination",Range(0.0,1.0)) = 0.0
_FlashAmount("Flash Amount",Range(0.0,1.0)) = 0.0
[MaterialToggle] PixelSnap("Pixel snap", Float) = 0
}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
# git-prompt.sh copied from https://github.com/lyze/posh-git-sh
source ~/git-prompt.sh
PROMPT_COMMAND='__posh_git_ps1 "\u@\h:\w" "\\\$ ";'$PROMPT_COMMAND
export VAGRANT_USE_VAGRANT_TRIGGERS=1
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
# Set colors to match iTerm2 Terminal Colors
export TERM=xterm-256color
export NVM_DIR="/Users/rbailey/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
source ~/git-prompt.sh
@rustybailey
rustybailey / xbox360.ini
Created February 13, 2017 00:12
Xbox 360 Controller - Dolphin Mapping
[Profile]
Device = XInput/0/Gamepad
Buttons/A = Button A
Buttons/B = Button B
Buttons/X = Button X
Buttons/Y = Button Y
Buttons/Z = Shoulder R
Buttons/Start = Start
Main Stick/Up = Left Y+
Main Stick/Down = Left Y-
[
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
]
@rustybailey
rustybailey / .editorconfig
Created March 19, 2015 17:41
Editor Config
# This file is for unifying the coding style for different editors and IDEs.
# More information at http://EditorConfig.org
# No .editorconfig files above the root directory
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
@rustybailey
rustybailey / .jscsrc
Last active August 29, 2015 14:17
JSCS — JavaScript Code Style (mostly taken from Angular.js with a few tweaks)
{
"excludeFiles": ["node_modules/**", "api_docs/**"],
"disallowEmptyBlocks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowNewlineBeforeBlockStatements": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforeBinaryOperators": [","],
@rustybailey
rustybailey / PackageControl.sublime-settings
Last active November 19, 2015 21:10
Package Control.sublime-settings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AngularJS",
"Babel",
"Case Conversion",
@rustybailey
rustybailey / .gitconfig
Last active May 4, 2017 19:05
Gitconfig (Windows)
[user]
name = [Your Name]
email = [Your Email]
[alias]
co = checkout
rebase-this = "!git co master; git pull origin master; git co -; git rebase master"
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassume-all = "!git ls-files -v | grep ^h | cut -c 3-" | xargs -L1 git update-index --no-assume-unchanged
@rustybailey
rustybailey / .jshintrc
Last active January 3, 2016 06:39
Personal JSHint configAll available JSHint options: http://www.jshint.com/docs/options/
{
"regexdash": true,
"browser": true,
"trailing": true,
"sub": true,
"curly": true,
"eqeqeq": true,
"indent": 4,
"latedef": "nofunc",
"newcap": true,