Skip to content

Instantly share code, notes, and snippets.

View KentaKomai's full-sized avatar
🏠
Working from home

kken KentaKomai

🏠
Working from home
  • vitte
  • Tokyo, Japan
View GitHub Profile
anonymous
anonymous / index.html
Created April 1, 2013 13:13
A CodePen by Anand.
<canvas id="sakura"></canvas>
<div class="btnbg">
</div>
<!-- sakura shader -->
<script id="sakura_point_vsh" type="x-shader/x_vertex">
uniform mat4 uProjection;
uniform mat4 uModelview;
uniform vec3 uResolution;
uniform vec3 uOffset;
@juanbzpy
juanbzpy / .vimrc
Last active December 15, 2015 07:49
.vimrc
syntax on
set tabstop=2
set shiftwidth=2
set smarttab
set clipboard+=unnamed
set incsearch
set title
set nobackup
set autoindent
set noswapfile
@satoshun
satoshun / test_singleton.js
Created March 23, 2013 03:57
javascript singleton
describe('decorator', function() {
// body...
it('singleton1', function(done) {
var Car = function(){
var instance = this;
this.a = 100;
Car = function(){
return instance;
};
};
@mgonto
mgonto / directives.js
Created March 23, 2013 03:20
Footer Angular
module.directive('footer', function () {
return {
restrict: 'A', //This menas that it will be used as an attribute and NOT as an element. I don't like creating custom HTML elements
replace: true,
templateUrl: "/js/directives/footer.html",
controller: ['$scope', '$filter', function ($scope, $filter) {
// Your behaviour goes here :)
}]
}
});
@DexterHaslem
DexterHaslem / gist:5225938
Last active December 15, 2015 07:49
_vimrc
set nocompatible
set gfn=Source_Code_Pro:h10:cANSI
execute pathogen#infect()
set smartindent
set autoindent
set tabstop=4
set shiftwidth=4
set showcmd