Skip to content

Instantly share code, notes, and snippets.

View giiska's full-sized avatar
🌴
On vacation

Null giiska

🌴
On vacation
  • Godada
View GitHub Profile
@giiska
giiska / random.js
Last active August 29, 2015 14:08 — forked from kerimdzhanov/random.js
// @return [float] a random number between min and max
function getRandom(min, max) {
return Math.random() * (max - min) + min;
}
// @return [integer] a random int between min and max
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1) + min);
}
var Events = (function() {
// Backbone.js 0.9.10
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
// Create a local reference to array methods.
var array = [];
@giiska
giiska / .gemrc
Last active August 29, 2015 14:04 — forked from jch/.gemrc
中国用户的 gemrc, gemrc for coder in China
# http://guides.rubygems.org/command-reference/#gem-environment
---
:backtrace: true
:bulk_threshold: 1000
:benchmark: false
:sources:
- http://ruby.taobao.org/
:update_sources: true
:verbose: true
gem: --no-document