Code | Title | Duration | Link |
---|---|---|---|
Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
Keynote | [Tuesday Night Live with James Hamilton](h |
import React from 'react' // export default React | |
import React, Component from 'react' // first is default, followed by exported | |
import foo from 'lib' // no default, so just grab all exports | |
// Maybe there's some reasoning behind the other choices regarding static analysis but | |
// most of the otheres seem unnecessary. Alternatively just using the destructuring syntax | |
// would be pretty nice and easier to remember. |
#!/bin/bash | |
# | |
# Requires ftxdumperfuser from http://developer.apple.com/textfonts/download/ | |
# | |
# Usage: fixconsolas [files ...] | |
# When called with no arguments, it attempts to operate on every TrueType | |
# file in the current directory. | |
# | |
# References: | |
# http://bandes-storch.net/blog/2008/12/21/consolas-controlled/#comment-2042 |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
Index:
Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you write readable, flexible tests for the type of component you are testing.
I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a
beforeEach
. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern
that gives great defaults for each test example but allows every example to override props
when needed:
require 'benchmark/ips' | |
require 'digest' | |
text = "caecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id e |
module Steppable | |
def self.included(base) | |
base.extend(ClassMethods) | |
end | |
def instance_grant_method | |
puts "Say my name!" | |
puts "Walter White?" | |
end |
require 'benchmark/ips' | |
n = 100_000 | |
Benchmark.ips do |x| | |
x.config(time: 5, warmup: 2) | |
x.report('concat') do |times| | |
foo = "" |
# (c) https://github.com/janlelis/clipboard/blob/master/lib/clipboard/mac.rb | |
require 'open3' | |
module Clipboard | |
extend self | |
def paste(_ = nil) | |
`pbpaste` | |
end |
require 'rubygems' | |
require 'irb/completion' | |
begin | |
require 'awesome_print' | |
AwesomePrint.irb! | |
rescue LoadError => err | |
warn "Couldn't load awesome_print: #{err}" | |
end |