Skip to content

Instantly share code, notes, and snippets.

View KFMichael's full-sized avatar

KANGAH Michael KFMichael

View GitHub Profile
@KFMichael
KFMichael / .gitconfig
Created November 22, 2016 13:09 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
function loop() {
//check for gamepad
if(navigator.webkitGamepads) {
var gamepads = navigator.webkitGamepads;
for (var padindex = 0; padindex < gamepads.length; ++padindex) {
var pad = gamepads[padindex];
var i;
if (!pad) continue;
//focus on the first stick
if(pad.axes.length >= 1) {
// Full Blog Post: http://viget.com/extend/time-based-animation
// requestAnimationFrame() polyfill: https://gist.github.com/1579671
window.APP = window.APP || {};
APP.pause = function() {
window.cancelAnimationFrame(APP.core.animationFrame);
};
APP.play = function() {