Skip to content

Instantly share code, notes, and snippets.

View arboleya's full-sized avatar

Anderson Arboleya arboleya

View GitHub Profile
@GerHobbelt
GerHobbelt / .gitignore
Created September 7, 2012 20:44
d3.js: using layout.force to plot tree graphs (where nodes may have multiple parents) - Part 1: pure tree
# Editor backup files
*.bak
*~
@ahomu
ahomu / doctest.coffee
Created September 2, 2012 10:09
.coffee documentation comment sample for YUIDoc
###*
# hogehoge test description
# @class Hoge
###
class Hoge
###*
# fuga is number
# @property {Number} fuga
###
@fuga
@zenkay
zenkay / gist:3237860
Created August 2, 2012 15:19
Installation tips for RVM/Ruby on OSX 10.8 Mountain Lion

Ruby, RVM and Mountain Lion

Key problems

Mountain Lion (10.8) has three main difference compared to Lion (10.7):

  • XCode 4.4 does not install Command Line Tools by default
  • X11 isn't available anymore
  • The installed version of OpenSSL has some bugs

How to work around

@melvynhills
melvynhills / gist:1153858
Created August 18, 2011 11:14
Method types in CoffeeScript
class Foo
privateMethod = ->
console.log "privateMethod"
publicMethod: ->
console.log "publicMethod"
privateMethod()
@staticMethod: ->
@chrismatthieu
chrismatthieu / gist:964754
Created May 10, 2011 15:58
SIP Registrar with Tropo PSTN
// Run Redis - cd redis-2.2.4 and run src/redis-server
var sip = require('sip');
var sys = require('sys');
var redis = require('redis');
var tropoapi = require('tropo-webapi');
//Trim leading and trailing whitespace from string values.
function trim(str) {
return str.replace(/^\s+|\s+$/g, '');
@ryanb
ryanb / github_tree_slider.js
Created December 6, 2010 17:23
This is how GitHub's new AJAX file browser works.
GitHub.TreeSlider = function () {
if (window.history && window.history.pushState) {
function a() {
if (e.sliding) {
e.sliding = false;
$(".frame-right").hide();
$(".frame-loading:visible").removeClass("frame-loading")
}
}
if (!($("#slider").length == 0 || !GitHub.shouldSlide)) if (!navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {