Skip to content

Instantly share code, notes, and snippets.

@reneras
reneras / _statics.js
Last active August 29, 2015 14:22
Code
angular.module('dvb.services').service('statics', function($http) {
var statics = null;
var service = {
/*
Load static data async during Angular run phase and cache it, since we're dealing with static data.
*/
load: function(){
var promise = $http.get('/dvb-service/_statics', {cache: true});
@reneras
reneras / .gemrc
Created June 7, 2013 10:40
Dandy dotfiles for git, gem & zsh
---
:update_sources: true
:verbose: true
:bulk_threshold: 1000
:backtrace: false
:benchmark: false
gem: --no-ri --no-rdoc
@reneras
reneras / poc.html
Created August 27, 2012 13:28
RHide scrollbar in firefox
<div id="wrapper">
<div id="scroller">
<div id="content">
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
</div>
</div>
</div>​
@reneras
reneras / spin.js
Created July 13, 2012 11:02
Lightweight HTML5 canvas spinner / loader
/*
* <html>
* <head>
* </head>
* <body>
* <canvas id="demo" height="400" width="400" style="background:#000;"></div>
* </body>
* </html>​
*
*/