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
'use strict' | |
const d3ForceDirected = (data) => { | |
const json = { | |
nodes: data.map(row => { | |
const formNode = { id: row.id } | |
if (row.unlisted) { | |
formNode.group = 2 | |
} else { | |
formNode.group = row.group || 1 |
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
{ | |
"nodes": [ | |
{ | |
"id": "5050", | |
"group": 1 | |
}, | |
{ | |
"id": "5134", | |
"group": 1 | |
}, |
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
// ==UserScript== | |
// @name Solidgoldpig Radio Times | |
// @namespace http://solidgoldpig.com/tampermonkey/radiotimes | |
// @version 0.1 | |
// @description Make Radio Times more bearable | |
// @author [email protected] | |
// @match http://www.radiotimes.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint ignore:start */ |
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
// ==UserScript== | |
// @name SGP Mail | |
// @namespace http://solidgoldpig.com/userscripts/sgp-mail | |
// @version 0.1 | |
// @description Make Gmail more bearable | |
// @author [email protected] | |
// @match https://mail.google.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint ignore:start */ |
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
// ==UserScript== | |
// @name Shortcut | |
// @namespace http://solidgoldpig.com/userscripts/shortcut | |
// @version 0.1 | |
// @description Provides shortcut hooks | |
// @author [email protected] | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Solidgoldpig Twitter | |
// @namespace http://solidgoldpig.com/tampermonkey/twitter | |
// @version 0.1 | |
// @description Make Twitter more bearable | |
// @author [email protected] | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint ignore:start */ |
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
'use strict' | |
// const yargs = require('yargs') | |
const express = require('express') | |
const request = require('request') | |
const uuid = require('node-uuid') | |
const querystring = require('querystring') | |
const opener = require('opener') | |
let argv = require('yargs') |
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 node | |
'use strict'; | |
// Reads JSON from stdin and writes equivalent nicely-formatted JSON to stdout. | |
let vm = require('vm') | |
let spaces = process.argv[2] || '0'; | |
spaces = spaces.replace(/\\t/g, '\t').replace(/\\n/g, '\n'); | |
let numberSpaces = Number(spaces.trim() === '' ? NaN : String(spaces)) |
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
/** | |
* Image slider with pure CSS | |
* Original version in http://demosthenes.info/blog/css | |
*/ | |
.image-slider { | |
position:relative; | |
display: inline-block; | |
line-height: 0; | |
} |
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 | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |
NewerOlder