This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set gfn=Source_Code_Pro:h10:cANSI | |
execute pathogen#infect() | |
set smartindent | |
set autoindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set showcmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :) | |
}] | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('decorator', function() { | |
// body... | |
it('singleton1', function(done) { | |
var Car = function(){ | |
var instance = this; | |
this.a = 100; | |
Car = function(){ | |
return instance; | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set tabstop=2 | |
set shiftwidth=2 | |
set smarttab | |
set clipboard+=unnamed | |
set incsearch | |
set title | |
set nobackup | |
set autoindent | |
set noswapfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |