Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
gem "rails", '5.1.6.2' | |
gem 'pg' | |
gem 'turbostreamer' | |
gem 'oj' | |
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
require 'jbuilder' | |
require 'jbuilder/jbuilder_template' | |
module Rails | |
def self.cache | |
@cache ||= ActiveSupport::Cache::MemoryStore.new | |
end | |
end | |
# Fill the cache |
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
upstream mls { | |
server 127.0.0.1:5000; | |
} | |
server { | |
listen 80; | |
server_name mls; | |
access_log /var/log/nginx/mls.access.log; |
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 'redis' | |
>> require 'logger' | |
>> | |
>> logger = Logger.new($stdout) | |
>> logger.level = Logger.const_get('DEBUG') | |
>> | |
>> r = Redis.new(:logger => logger) | |
D, [2011-06-27T22:17:40.700341 #20369] DEBUG -- : Redis >> INFO | |
D, [2011-06-27T22:17:40.701192 #20369] DEBUG -- : Redis >> 0.71ms | |
=> #<Redis client v2.2.1 connected to redis://127.0.0.1:6379/0 (Redis v2.0.4)> |
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 'resque/tasks' | |
task "resque:setup" => :environment do | |
ENV['QUEUE'] = '*' | |
end | |
desc "Alias for resque:work (To run workers on Heroku)" | |
task "jobs:work" => "resque:work" |
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
<entry> | |
<id>tag:livingsocial.com,2005:Deal/41845</id> | |
<published>2011-05-02T04:59:59-04:00</published> | |
<updated>2011-05-02T04:59:59-04:00</updated> | |
<link type="text/html" href="http://livingsocial.com/deals/41845-flowers-for-mom" rel="alternate"/> | |
<title>Akron</title> | |
<georss:point>41.0740013122559 -81.5090026855469</georss:point> | |
<georss:featureTypeTag>city</georss:featureTypeTag> | |
<country_code>US</country_code> | |
<subtitle>Flowers for Mom</subtitle> |
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
Parse error: syntax error, unexpected '[' in /empire/trunk/application/controllers/TakeoutController.php on line 37 |
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
$this->session->setSessVar('key', 'value') | |
$this->session->getSessVar('key') // => 'value' |
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
diff --git a/src/main/java/redis/clients/jedis/Tuple.java b/src/main/java/redis/clients/jedis/Tuple.java | |
index 6df12d2..dd698e0 100644 | |
--- a/src/main/java/redis/clients/jedis/Tuple.java | |
+++ b/src/main/java/redis/clients/jedis/Tuple.java | |
@@ -4,7 +4,7 @@ import java.util.Arrays; | |
import redis.clients.util.SafeEncoder; | |
-public class Tuple { | |
+public class Tuple implements Comparable { |
NewerOlder