Installing pyenv
$ brew install pyenv
$ echo -e '\nif command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
$ source ~/.bash_profile
$ pyenv install 2.7.10
var queue = []; | |
var $albums = $('.QueueList .Album'); | |
for (var i = 0; i < $albums.length; i++) { | |
var $album = $($albums[i]); | |
var $title = $album.find('.album_title'); | |
var $artist = $album.find('.artist_title'); | |
queue.push({ | |
title : $title.text(), | |
href : $title.attr('href'), | |
artist : $artist.text() |
function select(selector) { | |
return document.querySelector(selector) | |
} | |
function click(selector) { | |
try { | |
const el = select(selector) | |
if (el) { | |
el.click() | |
} |
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font-family : 'Lato', sans-serif; | |
font-size : 100px; | |
padding-left : 40px; | |
} | |
.thin { font-weight : 100; } |
ffmpeg -i 0.mp4 -i 1.mp4 -i 2.mp4 -i 3.mp4 -i 4.mp4 -i 5.mp4 -i 6.mp4 -i 7.mp4 -i 8.mp4 -i 9.mp4 -i 10.mp4 -i 11.mp4 -i 12.mp4 -i 13.mp4 -i 14.mp4 -i 15.mp4 -i 16.mp4 -i 17.mp4 -i 18.mp4 -i 19.mp4 -i 20.mp4 -i 21.mp4 -i 22.mp4 -i 23.mp4 -i 24.mp4 -t 00:12:16 -filter_complex "amix=inputs=25:duration=longest; [0:v] setpts=PTS-STARTPTS, scale=768x432 [_00]; [1:v] setpts=PTS-STARTPTS, scale=768x432 [_01]; [2:v] setpts=PTS-STARTPTS, scale=768x432 [_02]; [3:v] setpts=PTS-STARTPTS, scale=768x432 [_03]; [4:v] setpts=PTS-STARTPTS, scale=768x432 [_04]; [5:v] setpts=PTS-STARTPTS, scale=768x432 [_10]; [6:v] setpts=PTS-STARTPTS, scale=768x432 [_11]; [7:v] setpts=PTS-STARTPTS, scale=768x432 [_12]; [8:v] setpts=PTS-STARTPTS, scale=768x432 [_13]; [9:v] setpts=PTS-STARTPTS, scale=768x432 [_14]; [10:v] setpts=PTS-STARTPTS, scale=768x432 [_20]; [11:v] setpts=PTS-STARTPTS, scale=768x432 [_21]; [12:v] setpts=PTS-STARTPTS, scale=768x432 [_22]; [13:v] setpts=PTS-STARTPTS, scale=768x432 [_23]; [14:v] setpts=PTS-STARTPTS, scale=768x4 |
$ brew install pyenv
$ echo -e '\nif command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
$ source ~/.bash_profile
$ pyenv install 2.7.10
{"Absolute Zero":[0,72,186],"Acid green":[176,191,26],"Aero":[124,185,232],"Aero blue":[192,232,213],"African violet":[178,132,190],"Air superiority blue":[114,160,193],"Alabaster":[237,234,224],"Alice blue":[240,248,255],"Alloy orange":[196,98,16],"Almond":[239,222,205],"Amaranth":[229,43,80],"Amaranth (M&P)":[159,43,104],"Amaranth pink":[241,156,187],"Amaranth purple":[171,39,79],"Amaranth red":[211,33,45],"Amazon":[59,122,87],"Amber":[255,191,0],"Amber (SAE/ECE)":[255,126,0],"Amethyst":[153,102,204],"Android green":[164,198,57],"Antique brass":[205,149,117],"Antique bronze":[102,93,30],"Antique fuchsia":[145,92,131],"Antique ruby":[132,27,45],"Antique white":[250,235,215],"Ao (English)":[0,128,0],"Apple green":[141,182,0],"Apricot":[251,206,177],"Aqua":[0,255,255],"Aquamarine":[127,255,212],"Arctic lime":[208,255,20],"Army green":[75,83,32],"Artichoke":[143,151,121],"Arylide yellow":[233,214,107],"Ash gray":[178,190,181],"Asparagus":[135,169,107],"Atomic tangerine":[255,153,102],"Auburn":[165,42,42],"Aureo |
FrequentWordsWithMismatches(Text, k, d) | |
FrequentPatterns ← an empty set | |
Neighborhoods ← an empty list | |
for i ← 0 to |Text| − k | |
add Neighbors(Text(i, k), d) to Neighborhoods | |
form an array NeighborhoodArray holding all strings in Neighborhoods | |
for i ← 0 to |Neighborhoods| − 1 | |
Pattern ← NeighborhoodArray(i) | |
Index(i) ← PatternToNumber(Pattern) | |
Count(i) ← 1 |
<html> | |
<head> | |
<title>EXIF Scrub</title> | |
<script src="https://cdn.jsdelivr.net/npm/piexifjs@1.0.6/piexif.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.js"></script> | |
<script> | |
function onFileChosen (file) { | |
const reader = new FileReader(); | |
reader.readAsDataURL(file); | |
reader.onloadend = function (event) { |
let data = [ | |
{ | |
a: 1, | |
b: 2, | |
c: 3, | |
d: 10 | |
}, | |
{ | |
a: 2, | |
b: 3, |