- you'll need virtualbox:
brew cask install virtualbox
brew install docker
- install toolbox
- https://www.docker.com/docker-toolbox
- or with caskroom:
brew cask install dockertoolbox
- if you get an error:
sudo chown -R <username>:staff ~/.docker
- if you get an error:
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 TextScramble { | |
constructor(el) { | |
this.el = el | |
this.chars = '!<>-_\\/[]{}—=+*^?#________' | |
this.update = this.update.bind(this) | |
} | |
setText(newText) { | |
const oldText = this.el.innerText | |
const length = Math.max(oldText.length, newText.length) | |
const promise = new Promise((resolve) => this.resolve = resolve) |
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
# create a new temp folder, and run this script there. | |
# todo: 257 is hardcoded end, but can probably be determined once wget returns error | |
for i in {1..257} | |
do | |
# networks tab will show .ts files. Let's download all of them. | |
wget "https://800evg.moekawaii.stream/hls/vx7wjj2pt65s7pl2y5f6w43emwslnmnkqajtswnsbwetpho773ehle5cgxsq/seg-$i-v1-a1.ts" -o | |
done | |
touch list.txt; for f in *.ts ; do echo file \'$f\' >> list.txt; done && sort -V list.txt -o list.txt; ffmpeg -f concat -safe 0 -i list.txt -c copy stitched-video.mp4 && rm list.txt | |
# all done, now we have our mp4 called stitched-video.mp4 |
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://jsbin.com/ziwod/2/edit |
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
import requests | |
for x in xrange(0,1000): | |
r = requests.post("http://mattsucks.org/mattsucks") | |
print x, r.text |
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
function asyncFn (param1, param2, callback) { | |
console.log(param1); // "apple" | |
console.log(param1); // "orange" | |
var a = 1; | |
var b = 2; | |
// do some async magic here | |
callback(a,b); | |
} |
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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.lang.Math; | |
public class YummySoup extends Ingredient{ | |
static Oil canola = new Oil("canola"); | |
static Ingredient[] favoriteVeggies = {new Ingredient("onions"), new Ingredient("peppers")}; | |
static Spice[] sAndP = {new Spice("salt"), new Spice("pepper")}; | |
static Ingredient water = new Ingredient("water"); | |
public static void main(String[] args){ |
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
require 'watir' | |
require 'rubygems' | |
require 'rspec' | |
require 'http' | |
require 'tempfile' | |
# HEY! Run this using "rspec test.rb" in terminal | |
RSpec.configure do |config| | |
# Use color in STDOUT |