I hereby claim:
- I am bloudermilk on github.
- I am bloudermilk (https://keybase.io/bloudermilk) on keybase.
- I have a public key whose fingerprint is B54D E33B 3320 0EA7 A7AA 6852 AB19 6B5D 5009 CE58
To claim this, I am signing this object:
| { | |
| "telemetry.telemetryLevel": "error", | |
| "editor.fontSize": 13, | |
| "editor.tabSize": 2, | |
| "files.exclude": { | |
| "**/node_modules": true | |
| }, | |
| "editor.minimap.enabled": false, | |
| "editor.scrollBeyondLastLine": false, | |
| "files.trimTrailingWhitespace": true, |
| # TODO: Generic 500 response here and in Rails | |
| openapi: '3.0.2' | |
| info: | |
| title: Open Lead Specification | |
| version: 'v1.0' | |
| description: > | |
| ## Overview | |
| This spec implements a two-phase auction system commonly known as "ping | |
| tree" or "ping post". The purpose of the system is to enable sellers of |
| # README | |
| # | |
| # To run tests: | |
| # $ ruby weighted_round_robin.rb | |
| # PASS [[0, "a"]] makes [] | |
| # PASS [[1, "a"]] makes ["a"] | |
| # PASS [[1, "a"], [2, "b"]] makes ["b", "a", "b"] | |
| # ... | |
| # | |
| # To debug (prints index as ID): |
| require "csv" | |
| require "net/http" | |
| require "json" | |
| require "pry" | |
| class String | |
| def super_strip | |
| gsub(/(^\W+|\W+$)/, "") | |
| end | |
| end |
I hereby claim:
To claim this, I am signing this object:
| require "net/http" | |
| class GravatarGenerator | |
| URL_FORMAT = "http://www.gravatar.com/avatar/%s" | |
| LAST_MODIFIED_TEST_STRING = "Wed, 11 Jan 1984 08:00:00 GMT" | |
| def self.test(email) | |
| url = URI(URL_FORMAT % generate(email)) | |
| Net::HTTP.start(url.host, url.port) do |http| |
| def my_fancy_method | |
| # Call the block with 1 | |
| yield 1 | |
| # Call the block with "cat" | |
| yield "cat" | |
| # Call the block with nothing (i.e. nil) | |
| yield | |
| end |
| def input_get | |
| input = gets.chomp | |
| sum[i] = input.to_i | |
| end | |
| def sum | |
| sum = [] | |
| i = 0 | |
| puts input_get | |