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
| { | |
| "draw_white_space": "selection", | |
| "font_size": 11, | |
| "ignored_packages": | |
| [ | |
| "Markdown", | |
| "Vintage" | |
| ], | |
| "show_encoding": true, | |
| "tab_size": 2, |
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
| MacPro Mid 2014 | |
| Intel Core i5-4278U @ 2.6 GHz | |
| RAM 8 GB | |
| SSD 256 GB | |
| vs | |
| Dell Insipion 5423 (2013) | |
| Intel Core i5-3317U @ 1.70GHz | |
| RAM 8 GB |
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 CreateResourceThrottles < ActiveRecord::Migration[5.1] | |
| def change | |
| create_table :resource_throttles do |t| | |
| t.string :throttle_key, null: false | |
| t.string :resource_uid, null: false | |
| t.boolean :active, null: false, default: false | |
| t.index [:throttle_key, :resource_uid], unique: true | |
| t.timestamps |
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
| 13678 sex_eq | |
| 3787 country_eq | |
| 3654 country_null | |
| 3397 status_eq | |
| 3376 status_neq | |
| 3070 interests_contains | |
| 3039 interests_any | |
| 2190 likes_contains | |
| 1585 city_eq | |
| 1510 city_any |
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
| 703 sex_eq | |
| 489 country_eq sex_eq | |
| 476 country_null sex_eq | |
| 416 | |
| 289 interests_contains sex_eq | |
| 279 interests_any sex_eq | |
| 271 sex_eq status_neq | |
| 254 sex_eq status_eq | |
| 233 country_eq | |
| 201 city_eq sex_eq |
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
| sepal_length | sepal_width | petal_length | petal_width | species | |
|---|---|---|---|---|---|
| 5.1 | 3.5 | 1.4 | 0.2 | setosa | |
| 4.9 | 3.0 | 1.4 | 0.2 | setosa | |
| 4.7 | 3.2 | 1.3 | 0.2 | setosa | |
| 4.6 | 3.1 | 1.5 | 0.2 | setosa | |
| 5.0 | 3.6 | 1.4 | 0.2 | setosa | |
| 5.4 | 3.9 | 1.7 | 0.4 | setosa | |
| 4.6 | 3.4 | 1.4 | 0.3 | setosa | |
| 5.0 | 3.4 | 1.5 | 0.2 | setosa | |
| 4.4 | 2.9 | 1.4 | 0.2 | setosa |
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
| # https://www.researchgate.net/publication/265440203_How_the_Talmud | |
| # http://gaidarfund.ru/articles/1983/ | |
| require 'rspec' | |
| # @param amount - Integer, Float: amount of estate | |
| # @param claims - Hash: { 'name of the creditor' => amount_of_claim } | |
| # @return - Hash: { 'name of the creditor' => payment_amount } | |
| def solve(amount, claims) | |
| amount_left = amount |
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
| 5.1 | 3.5 | 1.4 | 0.2 | setosa | |
|---|---|---|---|---|---|
| 4.9 | 3.0 | 1.4 | 0.2 | setosa | |
| 4.7 | 3.2 | 1.3 | 0.2 | setosa | |
| 4.6 | 3.1 | 1.5 | 0.2 | setosa | |
| 5.0 | 3.6 | 1.4 | 0.2 | setosa | |
| 5.4 | 3.9 | 1.7 | 0.4 | setosa | |
| 4.6 | 3.4 | 1.4 | 0.3 | setosa | |
| 5.0 | 3.4 | 1.5 | 0.2 | setosa | |
| 4.4 | 2.9 | 1.4 | 0.2 | setosa |
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
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem "rails", path: "../" #github: "rails/rails" | |
| gem "benchmark-ips" | |
| gem "kalibera" |
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
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |