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() {
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
@KFMichael
KFMichael / index.html
Created May 6, 2015 07:23
MediaStream API (aka getUserMedia)
<doctype html>
<html>
<head>
<style>
#snapshotCanvas {
width: 307px;
height: 250px;
background: rgba(255,255,255,0.5);
border: 1px solid #ccc;
}
<!-- Wow ! -->
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>page canvas</title>
<!-- Notice the rel attribute ! -->
<link rel="stylesheet" href="style.css">
<!-- Notice : no attribute type= -->