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
| var net = require('net'), | |
| cluster = require('cluster'); | |
| function hash(ip, seed) { | |
| var hash = ip.reduce(function(r, num) { | |
| r += parseInt(num, 10); | |
| r %= 2147483648; | |
| r += (r << 10) | |
| r %= 2147483648; | |
| r ^= r >> 6; |
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
| var net = require('net'), | |
| http = require('http'), | |
| cluster = require('cluster'); | |
| function hash(ip, seed) { | |
| var hash = ip.reduce(function(r, num) { | |
| r += parseInt(num, 10); | |
| r %= 2147483648; | |
| r += (r << 10) | |
| r %= 2147483648; |
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
| function isFrameSafe(frameElement) { | |
| var origin = location.protocol + "//" + location.hostname; | |
| return frameElement.src.indexOf(origin) === 0 | |
| } | |
| var iframe = document.createElement('iframe') | |
| iframe.src = "http://www.facebook.com/ai.php?aed=AQLlH2cfdnsnLrDUVyqrQPlWpayw9N09Z_iNuhulevbeEfVa4mcVRcT8cjAZOjQb8y1QXab5Ae3aSEJx49U_Qv35rtSp1VC9cY0_CrpOjMDk40hS_Xm57A996YtRVCcWSuRZ_jZERQ_iA_E4621NAbKHT9dsB7uElkRtTvl5K-zPI0jeH-BEnlZIOXbeEdbRC6qCwoToaltolpe-Ot2KWgkfb_vBZYpzUc3jQoEHzLG6tauO9l_hkXpYpHxnt-KYFKIFZ1PgmrHgb0UcGjeKHl7yBR1AbW2n5XgdgaAhFvBjs5GZlKy566nvl8eLRA60orwkwtWYeN8-gKoAmOLm7-6minsWn8lk1h2Qn3p07HCTSnYHfv1aJ6mF5jmuzP0YYe7Ym9ZbmK-tvax4uPAQJ2OdULilKbEh8M-2V9pVY3AC228OPlrRullZuuOg8DI2A8WeMF-fbbOdOFFVCe5Gj1CaZu3LYXiqdG7mUgY6AEpk9ZzGT4fC2K8DInQo1AypCvzG64C_bEWfODeXe0aGbkWwsUUmO7E5HFg0tvZkK5IAR_xxxQ2rlf5jbcEDo_2gdIDdHe1HT75-SJLUsSA0M8EU01oNNPuWwEC2BW6inepc9QPuqeg42tcEbKLU-rIUnXDBLvgutft8azWPPQ6_LafGjCAmC9uTalagoWLLDMpQOThvPg7YeVd7qg_c9Mzn2GAfuswcxDSxyRIZo9MaOhA6mhfXeE1tmjyBBsMxnx08tO21Jsfgch59fmMxpeJzdsNMPK3F |
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 ResultsController < ApplicationController | |
| require 'json' | |
| require 'uri' | |
| require 'open-uri' | |
| def create | |
| @search = params[:search] | |
| base_url = "https://www.googleapis.com/customsearch/v1?" | |
| start = (params[:page].to_i - 1) * 10 + 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
| Command failed: /rubyprograms/search --format jpg http://www.mtv.com/music/artist/lil_wayne/artist.jhtml -: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `exec': Permission denied - /rubyprograms/search (Errno::EACCES) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:67:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:53:in `popen3' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `fork' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/open3.rb:51:in `popen3' from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/lib/imgkit/imgkit.rb:77:in `to_img' from /rubyprograms/search/app/workers/image_generator.rb:6:in `perform' from /Library/Ruby/Gems/1.8/gems/resque-1.17.1/lib/resque/job.rb:127:in `perform' from /Library/Ruby/Gems/1.8 |
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
| /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/bin/imgkit:32:in `download_wkhtmltoimage': File not found.. (RuntimeError) | |
| from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/bin/imgkit:75 | |
| from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/bin/imgkit:90:in `call' | |
| from /Library/Ruby/Gems/1.8/gems/imgkit-1.3.1/bin/imgkit:90 | |
| from /usr/bin/imgkit:19:in `load' | |
| from /usr/bin/imgkit:19 |
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
| 2011-06-12T02:24:09+00:00 app[web.1]: AWS::S3::AccessDenied (Access Denied): | |
| 2011-06-12T02:24:09+00:00 app[web.1]: app/controllers/profiles_controller.rb:39:in `block in update' | |
| 2011-06-12T02:24:09+00:00 app[web.1]: app/controllers/profiles_controller.rb:38:in `update' |
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
| has_many :activities, :class_name => "TimelineEvent", | |
| :finder_sql => 'SELECT timeline_events.* FROM timeline_events | |
| WHERE ' + ACTIVITIES_CONDITION + ' | |
| ORDER BY timeline_events.created_at DESC', | |
| :order => "timeline_events.created_at DESC LIMIT 20" |
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
| var win = $(window); | |
| // Full body scroll | |
| var isResizing = false; | |
| win.bind( | |
| 'resize', | |
| function() | |
| { | |
| if (!isResizing) { | |
| isResizing = true; | |
| var container = $('#full-page-container'); |
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
| acts_as_indexed :fields => [:title, :description] |
NewerOlder