Skip to content

Instantly share code, notes, and snippets.

require 'spec_helper'
require 'rubocop'
require 'rubocop/rspec/cop_helper'
require 'support/rubocop/expect_offense'
require 'future_learn/cops/forbid_shoulda_matchers'
RSpec.describe RuboCop::Cop::FutureLearn::ForbidShouldaMatchers do
include CopHelper
include RuboCop::RSpec::ExpectOffense
trait A {}
trait B: A {}
struct JustA {}
impl A for JustA {}
struct AandB {}
impl A for AandB {}
impl B for AandB {}
[package]
name = "rand_experiment"
version = "0.1.0"
authors = ["Simon Coffey <simon.coffey@futurelearn.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.7.0-pre.1"
[package]
name = "rand_experiment"
version = "0.1.0"
authors = ["Simon Coffey <simon.coffey@futurelearn.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.6.5"
files = DATA.read.each_line.to_a.map(&:chomp)
while true do
STDOUT.write '.'
exit unless system("bash rapid_fetch.sh #{files.sample}")
end
__END__
https://cdn.futurelearn.com/packs/npm.classlist.js-fd769780364c1448ad7e.js
https://cdn.futurelearn.com/packs/userSelect-8b5a8fcdcc6fd455d0b3.js
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
% vim: set ft=prolog:
color(red).
color(green).
color(yellow).
color(blue).
color(white).
nat(brit).
nat(dane).
$ curl -I 'https://s3-eu-west-1.amazonaws.com/futurelearn-production/uploads/files/44/74/4474c552-345c-4430-b372-960ec2821737/trailer_MM02.vtt?env=production' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' -H 'Referer: https://www.futurelearn.com/courses/big-data-machine-learning' -H 'Origin: https://www.futurelearn.com'
HTTP/1.1 200 OK
x-amz-id-2: 2qmEkE8YilYEhh9HsEDUhta1Bxievw4yFB/jyqKFu3+OqPjHp8kRD0uf/hAL90MOhaU6xywNcQM=
x-amz-request-id: A0A000341389D725
Date: Wed, 15 Aug 2018 17:03:03 GMT
Access-Control-Allow-Origin: https://www.futurelearn.com
Access-Control-Allow-Methods: GET, HEAD
Access-Control-Allow-Credentials: true
Vary: Origin, Access-Control-Request-Headers, Access-Control-Request-Method
Last-Modified: Thu, 07 Jul 2016 14:21:36 GMT
v1_city v2_city count
Kiev Kyiv 35890
Bangalore Bengaluru 31071
Central District Central 25702
Sao Paulo São Paulo 25153
Mexico Mexico City 23647
Bogota Bogotá 22802
Abuja Suleja 13848
Rio De Janeiro Rio de Janeiro 13840
Saint Petersburg St Petersburg 13379