- http://stackoverflow.com/questions/3606591/why-does-intellij-idea-compile-scala-so-slowly/3612212#3612212
- https://gist.github.com/anonymous/1406238
- http://www.infoq.com/news/2011/11/yammer-scala
- http://grundlefleck.github.io/2013/06/23/using-scala-will-make-you-less-productive.html
- http://www.infoq.com/news/2011/11/scala-ejb2
- http://alarmingdevelopment.org/?p=562
- https://news.ycombinator.com/item?id=7458588
This file contains hidden or 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
_ = { | |
map: function(hash, lambda) { | |
return Object.keys(hash).map(function(key) { | |
var value = hash[key]; | |
return lambda(value, key); | |
}); | |
}, | |
omit: function(hash, unwanted) { | |
var tmp = {}; |
This file contains hidden or 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
# inspired by twitter's RECESS | |
# http://twitter.github.io/recess/ | |
# usage: git diff | ruby ~/linter.rb | |
class Linter | |
def process | |
@result = {} | |
STDIN.each_line do |line| | |
@line = line[2..-1] |
This file contains hidden or 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
/** | |
* Clase de ejemplo o referencia para usarse con AbstractView. | |
*/ | |
View = (function(_super) { | |
__extends(View, _super); | |
function View() { | |
return View.__super__.constructor.apply(this, arguments); | |
} |
This file contains hidden or 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
class @AbstractView | |
constructor: -> | |
console.log "I'm not meant to be instantitated" | |
render: -> | |
for event_selector of @events | |
event_selector_array = event_selector.split(' ') | |
event = event_selector_array.reverse().pop() | |
selector = event_selector_array.reverse().join(' ') | |
if selector == 'document' |
This file contains hidden or 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
/** | |
* QUÉ ES ESTO | |
* Una manera muy simple de organizar los eventos de una página de tal modo que no están | |
* esparcidos por el código javascript. Inspirado en las vistas de backbone.js | |
* | |
* POR QUÉ | |
* De este modo los eventos que escucha tu página están declarados en un lugar evidente. | |
* | |
* CÓMO USARLO | |
* Crea una clase View que herede de AbstractView. Esta clase debe definir: |
This file contains hidden or 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
class OpenStruct | |
def initialize(args) | |
args.each_pair do |k,v| | |
instance_variable_set "@#{k}", v | |
end | |
end | |
def method_missing(name, *args) | |
instance_variable_get "@#{name}" |
NewerOlder