Skip to content

Instantly share code, notes, and snippets.

Robert Gerald Porter rgeraldporter

Block or report user

Report or block rgeraldporter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index-specrunner.js
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 });
rgeraldporter / SketchSystems.spec
Last active May 21, 2019
Weever Deployment System
View SketchSystems.spec
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
View SketchSystems.spec
Inactive Paused
unpause -> Inactive Unpaused
Inactive Unpaused
timer completes -> Active
is paused -> Inactive Paused
is wrong time of day -> Inactive Unpaused
View SketchSystems.spec
Logged Out*
login -> Logged In
register -> Logged In
Logged In
Public Projects*
enter project -> A Project
rgeraldporter /
Created Jan 10, 2019
Check unit test for fdescribe, etc.
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)
View servo-mach-build-error.txt
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
rgeraldporter / ramda-curry-side-effects.js
Created Nov 20, 2017
RamdaJS trick, handle uncurried side-effect functions (e.g. console) in a chain while still currying the value back
View ramda-curry-side-effects.js
//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
View blockscope.js
// results from console.log() tested in Chrome 58, Firefox 51, Safari 10.0
// block scope
function foo() { return 1; }
// returns "1"
console.log( foo() );
(function() {
You can’t perform that action at this time.