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
// Staggart Creations | |
// http://staggart.xyz | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class HeightmapToMesh : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
public Texture2D heightmap; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Player : MonoBehaviour | |
{ | |
public float speedX; | |
public float accelX; | |
public float decelX; | |
public float gravity; |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BoxMover : MonoBehaviour | |
{ | |
public enum Slide | |
{ | |
None, | |
Perpendicular, |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class DebugTriangleNormals : MonoBehaviour { | |
#if UNITY_EDITOR | |
List<Vector3> trisCenters; |
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; |
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
// 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 |
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)); |
#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, |
//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 |