This file contains 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
# | |
require "test/unit" | |
class String | |
def fun_string! | |
## make it work | |
end | |
end |
This file contains 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
Went to a 10gen conference. Cornered smart man named antoinne and got below info. | |
use profiler built in.. | |
check out google groups... | |
how to optimize design? | |
What is the objective of mongo? | |
denormalizing is about prejoining data. |
This file contains 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
var awesomeModule = (function () { | |
var privateVariable; | |
function privateFunction() { | |
//do something; | |
} | |
return { // <----- this starts the object being returned when this module function executes | |
init: function () { |
This file contains 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
def printgrid(table) | |
strings = table.map do |row| | |
row.map { |cell| cell.to_s } | |
end | |
column_widths = [] | |
strings.each do |row| | |
row.each_with_index do |cell,i| | |
column_widths[i] = [column_widths[i] || 1, cell.length + 2].max | |
end |
This file contains 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
# Author:: Adam Jacob <adam@opscode.com> | |
# Author:: Joshua Timberman <joshua@opscode.com> | |
# | |
# Copyright 2009-2010, Opscode, Inc | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
test |
NewerOlder