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
diff --git a/lib/thin/backends/base.rb b/lib/thin/backends/base.rb | |
index ee7f3e4..f22c14b 100644 | |
--- a/lib/thin/backends/base.rb | |
+++ b/lib/thin/backends/base.rb | |
@@ -27,6 +27,10 @@ module Thin | |
attr_writer :threaded | |
def threaded?; @threaded end | |
+ # Allow using SSL in the backend. | |
+ attr_writer :ssl, :ssl_options |
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
#!/usr/bin/ruby | |
require 'yaml' | |
contributions = {} | |
`git log --shortstat -z`.each("\0") do |commit| | |
commit.match(/Author: (\w+) /) | |
author = $1 | |
commit.match(/(\d+) files changed, (\d+) insertions\(\+\), (\d+) deletions\(\-\)/) |
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
# See rails source: | |
# https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/caching/pages.rb | |
# | |
# Turn on caching in development, by changing this line to true in config/environments/development.rb: | |
# | |
# config.action_controller.perform_caching = true | |
# | |
# Then run: | |
# | |
# bundle exec rake pages:cache |
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
# The second way is recommended, which is flexible, and also work for non jQuery ajax library. | |
# Setup sinon sandbox | |
beforeEach -> | |
@sinon = sinon.sandbox.create() | |
afterEach -> | |
@sinon.restore() |
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
seconds | message | inverted-message | |
---|---|---|---|
4 | 110 | 001 | |
5 | 00101 | 11010 | |
6 | 10100 | 01011 | |
7 | 01100 | 10011 | |
8 | 11101 | 00010 | |
9 | 00011 | 11100 | |
10 | 10010 | 01101 | |
11 | 0000101 | 1111010 | |
12 | 1000100 | 0111011 |