Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
markov_twain
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
markov_twain
12y ago
Github keeps the refs for pull requests separate from branches and tags. For example, you can fetch pull request #123 into a local branch called pull-123 with: `git fetch origin refs/pull/123/head:pull-123`. When you open a p
2.
▲
by
markov_twain
12y ago
Here's an entirely working example I just created: https://gist.github.com/benolee/ca49aaa9a0363c18904b
3.
▲
by
markov_twain
14y ago
Thanks for this--I mentioned finagle to jcoglan on twitter yesterday after I read his blog post, and I don't think he was aware of the similarities. I actually didn't know about futures until I learned about scala and finagle. I watched a t
4.
▲
by
markov_twain
14y ago
NoSQL also exists. Carlo Strozzi first used the term NoSQL in 1998 as a name for his open source relational database that did not offer a SQL interface. http://publications.lib.chalmers.se/records/fulltext/123839....
5.
▲
by
markov_twain
14y ago
Even worse, he lists "brainfuck" as a technology that's easier to use outside of the big-company matrix. There is no such thing as "brainfuck". There are various dialects and derivative languages. There is the object-oriented programming la
6.
▲
by
markov_twain
14y ago
I randomly stumbled across this gist by tenderlove https://gist.github.com/tenderlove/4576780 that displays references as a tree view using d3.js. I think that this gist in particular is pointing out a bug in that the "references" for Fix
7.
▲
by
markov_twain
14y ago
AFAIK, to use the brightbox packages on heroku you'd have to write a buildpack that either downloads all the dependencies and runs through the same build process that brightbox uses, or use something like heroku-buildpack-fakesu to create a
8.
▲
by
markov_twain
14y ago
Heroku apps at the very least sit behind the heroku router, which I would assume is in the same datacenter. If the information in this quora answer http://www.quora.com/Scalability/How-does-Heroku-work is still valid, your app is also beh
9.
▲
by
markov_twain
14y ago
Unfortunately, Ruby 1.9.x is not copy-on-write friendly, mainly due to the garbage collection strategy. I would venture to guess that most Rails apps these days are running on some version of Ruby in the 1.9 series. So siong1987 is generall
10.
▲
by
markov_twain
14y ago
This bit of ruby should take care of it HashMap = HashTable = Map = Table = Dictionary = Hash And if you're feeling adventurous, Object.send :remove_const, :Hash
11.
▲
by
markov_twain
14y ago
Literally reinventing the wheel
12.
▲
by
markov_twain
14y ago
fwiw, I find the syntax definition in the ruby_parser gem at https://github.com/seattlerb/ruby_parser/blob/master/lib/rub... to be much easier reading, as it's written for racc (the ruby equivalent of yacc), although as the readme warns,
13.
▲
by
markov_twain
14y ago
Why has arithmetic become the universal example of currying and partial function application? Examples: "Currying", Section 9.3 of Programming in Scala (addition); Ruby 1.9.3 documentation for Proc#curry http://www.ruby-doc.org/core-1.9.3/
14.
▲
by
markov_twain
14y ago
well, I hate to beat a dead horse, but here's a one-liner (ruby): (map1.keys | map2.keys).map(&:to_s).sort.join(", ").instance_eval { empty? ? "<none>" : self }
15.
▲
by
markov_twain
14y ago
so this is horribly non-idiomatic ruby, but it was fun p ->(*_) { _.reduce({}, :merge).tap { |_| return "<none>" if _.empty? }.keys.uniq.map(&:to_s).sort.join(", ") }.({c:3,d:4,b:2}, {f:5,e:4,a:1}) p ->(*_