Skip to content

Instantly share code, notes, and snippets.

View stephenwil's full-sized avatar

Stephen Wilson stephenwil

View GitHub Profile
@stephenwil
stephenwil / 0_reuse_code.js
Last active August 29, 2015 14:22
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@stephenwil
stephenwil / install_jenkins_plugin.sh
Last active October 28, 2016 09:17 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=~/jenkins/plugins
@stephenwil
stephenwil / remove-empty-constructor.js
Last active July 1, 2020 11:26 — forked from tkers/remove-empty-constructor.js
jscodeshift for removing empty constructors
/*
Removes empty constructors (ignoring calls to super)
Run with codeshift:
jscodeshift -t ./remove-empty-constructor.js --extensions js,jsx --ignore-pattern 'node_modules' src/
*/
export default function transformer(file, api) {
const j = api.jscodeshift
const root = j(file.source)