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
#!/usr/bin/env bash | |
# Note that some tweaks may be required to make the overlay "line" to appear correctly where the audio is actually playing | |
# The overlay.png needs to be 1920 x 784 for this, if you change scale you'll need to change that file size | |
# FFMPEG makes very stuttery videos in spectrograms in some ratios/resolutions; I've tried to do high res but with little success | |
# So far these settings are the smoothest I can get, but it can still look a bit stuttery in YouTube / full screen on a big screen | |
# The various steps below involve generating the spectrogram, adding the overlay visual, adding the audio, | |
# moving the audio over a bit to line up with the play line, framing the video in a more standard resolution/ratio |
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
const jQuery = require("jquery"); | |
Object.defineProperty(window, "jQuery", { value: jQuery }); | |
Object.defineProperty(window, "$", { value: jQuery }); | |
const angular = require("angular"); | |
Object.defineProperty(window, "angular", { value: angular }); | |
require("angular-mocks"); | |
require("./"); |
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
Weever Deployment System | |
QA of Release* | |
complete -> Deploy to Stage | |
issue found -> Create Ticket | |
Deploy to Stage | |
complete -> QA of Stage | |
error -> Notify Dev Ops | |
QA of Stage |
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
Songster | |
Inactive Paused | |
unpause -> Inactive Unpaused | |
Inactive Unpaused | |
timer completes -> Active | |
is paused -> Inactive Paused | |
Active | |
is wrong time of day -> Inactive Unpaused |
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
EcoLore | |
Logged Out* | |
login -> Logged In | |
register -> Logged In | |
Logged In | |
Projects* | |
Public Projects* | |
enter project -> A Project |
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
#!/bin/sh | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
red=$(tput setaf 1) | |
green=$(tput setaf 2) | |
white=$(tput setaf 7) | |
blue=$(tput setaf 4) | |
grey=$(tput setaf 251) | |
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
20:10 $ ./mach build --dev -v | |
rustup run --install nightly-2018-01-27 cargo build --manifest-path /Users/rob/Documents/git/servo/ports/servo/Cargo.toml -v | |
Fresh memoffset v0.2.1 | |
Fresh traitobject v0.1.0 | |
Fresh termcolor v0.3.6 | |
Fresh binary-space-partition v0.1.2 | |
Fresh histogram v0.6.8 | |
Fresh precomputed-hash v0.1.1 | |
Fresh dtoa v0.4.1 | |
Fresh num-traits v0.1.37 |
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
//RamdaJS trick, handle uncurried side-effect functions (e.g. console) in a chain while still currying the value back | |
const sideFx = R.pipe(R.juxt([console.log, console.error, R.identity]), R.last); | |
// > R.pipe(R.add(1), sideFx, R.add(4))(1); | |
// >> console.log(2); | |
// >> console.error(2); | |
// >> 6 |
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
// results from console.log() tested in Chrome 58, Firefox 51, Safari 10.0 | |
// block scope | |
{ | |
function foo() { return 1; } | |
} | |
// returns "1" | |
console.log( foo() ); | |
// IIFE | |
(function() { |