Topaz by agentcooper
Ruby rewritten in Python
http://docs.topazruby.com/en/latest/blog/announcing-topaz/
Discussion: http://news.ycombinator.com/item?id=5177034 (there is some evaluation time comparison)
Ruby rewritten in Python
http://docs.topazruby.com/en/latest/blog/announcing-topaz/
Discussion: http://news.ycombinator.com/item?id=5177034 (there is some evaluation time comparison)
I need to store lots of data and with each entry there is a Facebook user id to whom data belongs to. What is the best way to store this in #mongodb?
Is one collection with entries like this will be fine?
{
"stuff": { ... },
"id": "<facebook-user-id>"
}
Later I will need this do display his own stuff to the logged in user.
Here is the task.
I've got two directories: A and B (two versions of a same library).
I need to list all the files in A where git diff between file from A and from B is longer than 2 lines.
What is the cleanest way of doing this in #bash?
Yet another javascript quiz task. Do not hurt your brain too much :-) More under the cut
#Clojure is awesome. This is my first lispy language and I really got a "wow" moment. When writing in Clojure after Ruby of Javascript you need to completly change the way you think about programs. Remember 'everything is an object'? Now everything is a function! More under the cut
So we have a linked list and we would like to reverse-print it's values.
var someList = {
value: 1,
next: {
value: 2,
next: {
value: 3,
next: {
value: 4,
next: null
}
}
}
};
Ok, #ruby guys, it is time to show your real power. Here is the task. Write a program, which outputs numbers from 0 to 1000 without: More under the cut
Use jshint. It is available for all platforms (Textmate, Sublime, etc.). Real-time error highlighting will save you a lot of time.
debugger; statement. Insert it in suspicious places, same as breakpoint, but is not affected by code changes. The killer feature is scope access: use console to output 'this', which will be bound to the scope you're in. More under the cut
Simple example for the mongoose 'populate' feature: referencing objects from each other. More under the cut