most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| #define DEBUG_CONSOLE | |
| #define DEBUG_LEVEL_LOG | |
| #define DEBUG_LEVEL_WARN | |
| #define DEBUG_LEVEL_ERROR | |
| #if (UNITY_EDITOR || DEVELOPMENT_BUILD) | |
| #define DEBUG | |
| #endif | |
| #if (UNITY_IOS || UNITY_ANDROID) |
| #!/bin/bash | |
| # * * * * * root /path/to/riak_graphite_stats.sh | |
| set -e | |
| SOURCE=$(hostname) | |
| GRAPHITE_PORT=2003 | |
| GRAPHITE_SERVER="server" | |
| PREFIX="riak_stats" | |
| STATUS=$(/usr/sbin/riak-admin status) |
| //Copyright (c) 2014 Tilman Schmidt (@KeyMaster_) | |
| //Permission is hereby granted, free of charge, to any person obtaining a copy | |
| //of this software and associated documentation files (the "Software"), to deal | |
| //in the Software without restriction, including without limitation the rights | |
| //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| //copies of the Software, and to permit persons to whom the Software is | |
| //furnished to do so, subject to the following conditions: | |
| //The above copyright notice and this permission notice shall be included in |
| #include "keymap_common.h" | |
| /* | |
| Shane's Planck Layout | |
| http://www.keyboard-layout-editor.com/#/layouts/015d9011102619d7695c86ffe57cf441 | |
| */ | |
| const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
| [0] = KEYMAP( /* Base */ | |
| TAB, Q, W, E, R, T, Y, U, I, O, P, MINS, |
| using UnityEngine; | |
| using System.Collections; | |
| // based on http://unitytipsandtricks.blogspot.com/2013/05/camera-shake.html | |
| public class PerlinShake : MonoBehaviour | |
| { | |
| public float duration = 2f; | |
| public float speed = 20f; | |
| public float magnitude = 2f; | |
| public AnimationCurve damper = new AnimationCurve(new Keyframe(0f, 1f), new Keyframe(0.9f, .33f, -2f, -2f), new Keyframe(1f, 0f, -5.65f, -5.65f)); |
| // The MIT License (MIT) | |
| // Copyright (c) 2016 David Evans @phosphoer | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR |
Put this in a file called pre-commit in .git/hooks/
#!/bin/sh
# To enable this hook, rename this file to "pre-commit".
git rev-list --count master > build_number
git add build_number
| using UnityEngine; | |
| using UnityEngine.Rendering.PostProcessing; | |
| using System.Collections; | |
| public abstract class PostFXBlend : MonoBehaviour | |
| { | |
| public float FadeInTime = 1.0f; | |
| public float FadeOutTime = 1.0f; | |
| public float BlendWeightDebug; |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| [ExecuteInEditMode] | |
| public class DebugTriangleNormals : MonoBehaviour { | |
| #if UNITY_EDITOR | |
| List<Vector3> trisCenters; |