Skip to content

Instantly share code, notes, and snippets.

Avatar

Rusty Bailey rustybailey

View GitHub Profile
@rustybailey
rustybailey / Diffuse_Flash.shader
Last active Nov 23, 2020
Flash/Blink 2D Sprite with Shader that uses the Sprite Renderer's color
View Diffuse_Flash.shader
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
}
View .bash_profile
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
View .bashrc
# 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 Feb 13, 2017
Xbox 360 Controller - Dolphin Mapping
View xbox360.ini
[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-
View Default (Windows).sublime-keymap
[
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
]
View .editorconfig
# 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 Aug 29, 2015
JSCS — JavaScript Code Style (mostly taken from Angular.js with a few tweaks)
View .jscsrc
{
"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 Nov 19, 2015
Package Control.sublime-settings
View PackageControl.sublime-settings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AngularJS",
"Babel",
"Case Conversion",
@rustybailey
rustybailey / .gitconfig
Last active May 4, 2017
Gitconfig (Windows)
View .gitconfig
[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 Jan 3, 2016
Personal JSHint configAll available JSHint options: http://www.jshint.com/docs/options/
View .jshintrc
{
"regexdash": true,
"browser": true,
"trailing": true,
"sub": true,
"curly": true,
"eqeqeq": true,
"indent": 4,
"latedef": "nofunc",
"newcap": true,