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
| marca@SCML-MarcA:/usr/local$ growlnotify | |
| dyld: Symbol not found: _kSecRandomDefault | |
| Referenced from: /usr/local/bin/growlnotify | |
| Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security | |
| in /usr/local/bin/growlnotify | |
| Trace/BPT trap | |
| marca@SCML-MarcA:/usr/local$ brew versions growlnotify | |
| 1.3 git checkout 2e23ced Library/Formula/growlnotify.rb | |
| 1.2.2 git checkout 5fb24f5 Library/Formula/growlnotify.rb |
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
| Twitter.configure do |config| | |
| # config.gateway = "http://#{self.apigee_twitter_api_endpoint}" | |
| config.consumer_key = self.twitter_key | |
| config.consumer_secret= self.twitter_secret | |
| config.oauth_token = authentication.token | |
| config.oauth_token_secret = authentication.secret | |
| end | |
| user.set_is_working! true, 1,"Retrieving followers and friends!",false |
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
| require 'logger' | |
| require 'what_methods' | |
| require 'pp' | |
| def logger_on | |
| set_logger_to(Logger.new(STDOUT)) | |
| end |
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
| MySQL: SELECT * FROM user WHERE name = "foobar" | |
| Mongo: db.user.find({"name" : "foobar"}) | |
| MySQL: INSERT INOT user (`name`, `age`) values ("foobar", 25) | |
| Mongo: db.user.insert({"name" : "foobar", "age" : 25}) | |
| MySQL: DELETE * FROM user | |
| Mongo: db.user.remove({}) | |
| MySQL: DELETE FROM user WHERE age < 30 | |
| Mongo: db.user.remove({"age" : {$lt : 30}}) $gt : > ; $gte : >= ; $lt : < ; $lte : <= ; $ne : != | |
| MySQL: UPDATE user SET `age` = 36 WHERE `name` = "foobar" | |
| Mongo: db.user.update({"name" : "foobar"}, {$set : {"age" : 36}}) |
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
| helpers do | |
| def format | |
| (params[:format] || :json).to_sym | |
| end | |
| def render_to(format, results) | |
| case format | |
| when :json | |
| results.to_json | |
| when :xml |