Skip to content

Instantly share code, notes, and snippets.

View goodforenergy's full-sized avatar

Helen Durrant goodforenergy

View GitHub Profile
@goodforenergy
goodforenergy / magic-8-set.js
Created November 15, 2019 16:24
Magic 8 Set
/*
Usage:
const mySet = new Set([1, 2, 3]);
mySet.has(3); // 'It is decidedly so'
*/
const RESPONSES = {
YES: ['It is certain', 'It is decidedly so', 'Without a doubt', 'Yes - definitely', 'You may rely on it', 'As I see it, yes', 'Most likely', 'Outlook good', 'Yes', 'Signs point to yes'],
MAYBE: ['Reply hazy, try again', 'Ask again later', 'Better not tell you now', 'Cannot predict now', 'Concentrate and ask again'],
NO: ['Don\'t count on it', 'My reply is no', 'My sources say no', 'Outlook not so good', 'Very doubtful']
@goodforenergy
goodforenergy / naughts-and-crosses.html
Created July 21, 2019 10:55
One page naughts and crosses
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>NAUGHTS AND CROSSES</title>
<meta name="description" content="Play away your days" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/css?family=Geostar&display=swap" rel="stylesheet"/>
<style type="text/css">
* {
@goodforenergy
goodforenergy / .block
Created May 3, 2017 02:51
How D3 Transitions Work, Pt. 2: d3.interpolate with multiple elements
license: mit

Keybase proof

I hereby claim:

  • I am goodforenergy on github.
  • I am goodforenergy (https://keybase.io/goodforenergy) on keybase.
  • I have a public key whose fingerprint is C2E6 5701 4B9F 16AF B116 8625 1A0D 66B5 D690 A94B

To claim this, I am signing this object:

@goodforenergy
goodforenergy / Animated SVG Path Markers.markdown
Created February 8, 2016 17:30
Animated SVG Path Markers
@goodforenergy
goodforenergy / passing-build.txt
Created February 4, 2015 22:05
Passing build with no libsass issues
[INFO] --- frontend-maven-plugin:0.0.17:install-node-and-npm (install node and npm) @ ibpworkbench ---
[INFO] Node v0.10.33 is already installed.
[INFO] Found NPM version 2.1.7
[INFO]
[INFO] --- frontend-maven-plugin:0.0.17:npm (npm install) @ ibpworkbench ---
[INFO] Running 'npm install --color=false' in /home/build/opt/jenkins/jobs/MERGED-IBPWorkbench/workspace/src/main/web
[INFO] npm WARN package.json path@0.4.10 path is also the name of a node core module.
[INFO]
[INFO] --- frontend-maven-plugin:0.0.17:gulp (gulp clean) @ ibpworkbench ---
[INFO] Running 'gulp clean --no-color' in /home/build/opt/jenkins/jobs/MERGED-IBPWorkbench/workspace/src/main/web
@goodforenergy
goodforenergy / failing-build.txt
Created February 4, 2015 22:04
Failed build with libsass bindings issue
[INFO] --- frontend-maven-plugin:0.0.17:install-node-and-npm (install node and npm) @ ibpworkbench ---
[INFO] Node v0.10.33 is already installed.
[INFO] Found NPM version 2.1.7
[INFO]
[INFO] --- frontend-maven-plugin:0.0.17:npm (npm install) @ ibpworkbench ---
[INFO] Running 'npm install --color=false' in /home/build/opt/jenkins/jobs/IBPWorkbench-OM/workspace/src/main/web
[INFO] npm WARN package.json fs@0.0.2 fs is also the name of a node core module.
[INFO] npm WARN package.json fs@0.0.2 No description
[INFO] npm WARN package.json fs@0.0.2 No repository field.
[INFO] npm WARN package.json path@0.4.10 path is also the name of a node core module.
@goodforenergy
goodforenergy / output.txt
Created February 4, 2015 22:02
Installing node-sass on Centos
// npm -v
1.2.18
// node -v
v0.10.4
// node -p process.versions
{ http_parser: '1.0',
node: '0.10.4',
v8: '3.14.5.8',