Line-up
Recordings (added progressively)
social engineering
,media manipulation
- Note: Basically How to Become TripAdvisor’s #1 Fake Restaurant
#!/usr/bin/env ruby | |
# A quick script to download all your files from CloudApp. | |
# To run this just run the script passing your e-mail & password | |
# to the script, for example: | |
# | |
# gem install cloudapp_api | |
# ruby cloudapp-export.rb adam@atechmedia.com mypassword | |
# |
Line-up
Recordings (added progressively)
social engineering
,media manipulation
// smash Medium's clap button the max number of times | |
function simulateClick(node) { | |
var md = document.createEvent('MouseEvents'); | |
md.initEvent('mousedown', true, false); | |
node.dispatchEvent(md); | |
var mu = document.createEvent('MouseEvents'); | |
mu.initEvent('mouseup', true, false); | |
node.dispatchEvent(mu); | |
} |
npm list -g --depth=0
#!/usr/bin/env ruby | |
require 'benchmark' | |
REGEXPS = [ | |
/^no such file to load -- (.+)$/i, | |
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, | |
/^Missing API definition file in (.+)$/i, | |
/^cannot load such file -- (.+)$/i, | |
] |
#!/usr/bin/env ruby | |
require "fileutils" | |
require "shellwords" | |
require "yaml" | |
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [ | |
"vendor/bundle", | |
"~/.m2", | |
"~/.bundle", |
(() => { | |
const up$ = new MouseEvent("mouseup", { bubbles: true }); | |
const down$ = new MouseEvent("mousedown", { bubbles: true }); | |
const node = document.querySelector( | |
`.js-postActionsFooter button[data-action="multivote"]` | |
); | |
let attempts = 0; |
// in /src directory | |
import {kphToMph} from './convert'; | |
class Car { | |
constructor(speed) { | |
this.speed = speed; | |
} | |
getSpeedInMph() { |
Why this transform is necessary?
Until React Native 24, you import React from 'react-native' package, but this will change on RN 25, you will need to import React from 'react'. You probably have many files that does this, so I've created a codemod to save you a bunch of time