Skip to content

Instantly share code, notes, and snippets.

View KraigWalker's full-sized avatar

Kraig Walker KraigWalker

View GitHub Profile
@KraigWalker
KraigWalker / .gitconfig
Created December 3, 2023 15:03
.gitconfig
[user]
email = 1294877+KraigWalker@users.noreply.github.com
name = Kraig Walker
[alias]
# The best utility for cleaning outdated branches. It will connect to a
# shared remote repository and fetch all remote branch refs. It will then
# delete remote refs that are no longer in use on the remote repository.
# https://git-scm.com/docs/git-fetch/#git-fetch--p
prune = fetch --prune

Keybase proof

I hereby claim:

  • I am KraigWalker on github.
  • I am kraigwalker (https://keybase.io/kraigwalker) on keybase.
  • I have a public key whose fingerprint is 9E9F C0EA DFA1 83F5 3A99 F494 DCE9 603E 42EE 7748

To claim this, I am signing this object:

@KraigWalker
KraigWalker / signature.html
Created January 19, 2016 12:27
CW Signature
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="format-detection" content="telephone=no">
</head>
<body>
<table>
<tr>
<!-- logo margin -->
<td width="43" style="vertical-align: top;">
@KraigWalker
KraigWalker / CameraController.cs
Created October 19, 2013 15:09
not a final script
public class CameraController : MonoBehaviour {
public bool useCInput = false; // whether or not to use cInput 2.x
public Transform focusTarget; // we look at and follow this
[HideInInspector]
// How fast the camera moves
public int cameraVelocity = 10;
@KraigWalker
KraigWalker / CameraController.cs
Last active December 25, 2015 04:49
Positions an isometric camera in the scene and updates it's location according to keyboard input. For the tutorial on how to create an isometric game camera visit http://bit.ly/19D0D9E
using UnityEngine;
using System.Collections;
// Camera Controller
// Revision 2
// Allows the camera to move left, right, up and down along a fixed axis.
// Attach to a camera GameObject (e.g MainCamera) for functionality.
public class CameraController : MonoBehaviour {
@KraigWalker
KraigWalker / app.js
Created April 28, 2013 12:52
Display Remaining Characters Available in a Text Area
// Listen for events on the Feedback Text Area
jQuery(document).ready(function($) {
updateCountdown();
$('.message').change(updateCountdown);
$('.message').keyup(updateCountdown)
});
// Display the number of remaining characters in the Feedback Text Area
function updateCountdown() {
// Max number of characters 2500
@KraigWalker
KraigWalker / gist:2126867
Created March 19, 2012 20:32
Creating a Release Branch
$ git checkout -b release-VERSIONNUMBER develop
$ ./bump-version.sh VERSIONNUMBER
$ git commit -a -m "Bumped version number to VERSIONNUMBER"
@KraigWalker
KraigWalker / gri.sh
Created September 8, 2015 15:00
Untrack any existing files that you've added to your .gitignore
# put this in your .bashrc/.zshrc file
alias gri="git ls-files --ignored --exclude-standard | xargs git rm"
@KraigWalker
KraigWalker / t.js
Created June 7, 2015 08:45
Tweet Sized JavaScript Templating Library to Eliminate String Concatenation
// Props to Thomas Fuchs ;)
// usage:
// var options = {
// id: SiteLink
// href: https://kraigwalker.com
//}
// return t('<a href="{href}" id="{id}"></a>', options);
function t(s, d) {
for(var p in d)