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 / 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)
@KraigWalker
KraigWalker / FlexGrid.js
Created October 24, 2014 12:45
Famo.us FlexGrid Component
define(function, exports, module) {
var View = require('famous/core/View');
var Entity = require('famous/core/Entity');
var Modifier = require('famous/core/Modifier');
var Transform = require('famous/core/Transform');
var Transitionable = require('famous/transitions/Transitionable');
var TransitionableTransform = require('famous/transitions/TransitionableTransform');
function FlexGrid() {
View.apply(this, arguments);
@KraigWalker
KraigWalker / git-nuke
Created July 14, 2014 06:56
git-nuke
#!/bin/sh
#
# Nukes a branch locally and on the origin remote.
#
# $1 - Branch name.
#
# Examples
#
# git nuke add-git-nuke
@KraigWalker
KraigWalker / fadeOpacity.js
Last active August 29, 2015 14:02
Famo.us - Fade in a Renderable's Opacity with a Quick Utility Function
/**
* Utility function that allows for the quick creation of a StateModifier to modifiy the opacity of a renderable
*
* @param {!number} startOpacity The initial opacity of the object at the start of the transition (0-1)
* @param {!number} endOpacity The final opacity of the object at the end of the transition (0-1)
* @param {Transition} transition The curve function and duration that affects the opacity
* @param {function} callback Callback function after the transition
* @return {StateModifier}
*
* @example
@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;