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
require 'csv' | |
require 'Benchmark' | |
csv = CSV.open('100k-Records.csv', 'r', headers: true) | |
csv = CSV.open('5m-Records.csv', 'r', headers: true) | |
Benchmark.bm do |x| | |
x.report do | |
while row = csv.shift | |
if row['Order ID'] == 423063170 |
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
Request URL: https://s3.amazonaws.com/my_bucket | |
Request Method: POST | |
Status Code: 204 No Content | |
Remote Address: 52.216.55.55:443 | |
Referrer Policy: no-referrer-when-downgrade | |
Access-Control-Allow-Methods: HEAD, POST, PUT, DELETE | |
Access-Control-Allow-Origin: * | |
Date: Wed, 11 Apr 2018 16:22:47 GMT | |
ETag: "8450b2cd275a21809705349ee423a444" | |
Location: https://s3.amazonaws.com/my_bucket/attachments%2F185f5d52-8aa5-41d7-b832-b4013fe65a2e%2F2.zip |
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
Request URL: https://s3.amazonaws.com/my_bucket | |
Request Method: POST | |
Status Code: 204 No Content | |
Remote Address: 52.216.55.55:443 | |
Referrer Policy: no-referrer-when-downgrade | |
Access-Control-Allow-Methods: HEAD, POST, PUT, DELETE | |
Access-Control-Allow-Origin: * | |
Date: Wed, 11 Apr 2018 16:22:47 GMT | |
ETag: "8450b2cd275a21809705349ee423a444" | |
Location: https://s3.amazonaws.com/my_bucket/attachments%2F185f5d52-8aa5-41d7-b832-b4013fe65a2e%2F2.zip |
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
# STEP 1 : http://instagram.com/developer. Login to your account. Then click on Manage Clients, and finally on Register a New Client | |
# STEP 2 : Fill out the required fields for registering a new client id making sure to set the OAuth redirect_uri field to "http://localhost" (without quotes). | |
# The reason you should use localhost is for security. In computer networking localhost is the web address of the computer you are using. So when Instagram redirects to your redirect_uri, all of your sensitive information is passed from Instagram's servers directly to your computer. See wikipedia.org/wiki/Localhost for more details. | |
# STEP 2 and a HALF : IN your GEMFILE Add : | |
gem "instagram" | |
# STEP 3 : Make a file /config/initializers/instagram.rb |
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
/* Simple JavaScript Inheritance | |
* By John Resig http://ejohn.org/ | |
* MIT Licensed. | |
*/ | |
// Inspired by base2 and Prototype | |
(function(){ | |
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; | |
// The base Class implementation (does nothing) | |
this.Class = function(){}; | |
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
Mac-Users-MacBook-Pro:age_of_revolt macuser$ cap deploy:check | |
* executing `deploy:check' | |
* executing "test -d /home/shadyfront/webapps/revolting_age/releases" | |
servers: ["174.133.20.24"] | |
Password: | |
[174.133.20.24] executing command | |
command finished | |
* executing "test -w /home/shadyfront/webapps/revolting_age" | |
servers: ["174.133.20.24"] | |
[174.133.20.24] executing command |