Skip to content

Instantly share code, notes, and snippets.

View supasympa's full-sized avatar
🎧
💻⌨️🖥 @barclaytweets

Lewis Barclay supasympa

🎧
💻⌨️🖥 @barclaytweets
  • Supa Sympa Ltd
  • London
View GitHub Profile
@supasympa
supasympa / .eslintrc
Created April 26, 2017 21:11
eslint / standard-js
{
"extends": [
"standard",
"standard-jsx"
],
"rules": {
"jsx-quotes": [0, "prefer-double"]
},
"env": {
"browser": true,
@supasympa
supasympa / webpack.config.js
Created April 26, 2017 19:49
Minimal Webpack / PostCss config to get post CSS up and running
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const webpackConfig = {
devtool: 'source-map',
entry: './src/index.js',
output: {
path: path.resolve(__dirname, './build'),
filename: 'index.bundle.js'
@supasympa
supasympa / aws-regions.json
Created February 24, 2017 13:11
AWS regions
{
"us-east-1": "US East (N. Virginia)",
"us-east-2": "US East (Ohio)",
"us-west-1": "US West (N. California)",
"us-west-2": "US West (Oregon)",
"ca-central-1": "Canada (Central)",
"eu-west-1": "EU (Ireland)",
"eu-central-1": "EU (Frankfurt)",
"eu-west-2": "EU (London)",
"ap-northeast-1": "Asia Pacific (Tokyo)",
@supasympa
supasympa / create-lucky-dip.js
Last active February 13, 2017 16:06
Creates a 6 random numbers in an array less than a maximum
const luckyDip = () => {
const gen = (upper, lower = 1, arr = [] ) => {
arr.push(upper)
return upper === 1 ? arr : gen(upper-1, lower, arr)
}
const shuffle = (array) => {
let currentIndex = array.length, temporaryValue, randomIndex
@supasympa
supasympa / .eslintrc
Created February 8, 2017 16:05
standard (plus other bits)
{
"extends": [
"standard",
"standard-jsx"
],
"rules": {
"jsx-quotes": [0, "prefer-double"]
},
"env": {
"browser": true,
@supasympa
supasympa / 0_reuse_code.js
Created January 23, 2017 08:47
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
@supasympa
supasympa / learning-vim--notes.md
Last active January 23, 2017 07:48
Learning Vim - notes

Learning Vim

Modes

  1. Command mode
  2. Insert mode

Tutorial

$ vimtutor
@supasympa
supasympa / i-spy.js
Last active May 28, 2016 14:05
Quick test spy function.
;(function IIFE(global){
function noop(){}
return function iSpyCreator(prevs, id){
prevs = prevs || {}
id = id || Date.now().toString()
prevs[id] = prevs[id] || {}
@supasympa
supasympa / open-social-software-engineering
Last active September 14, 2016 19:59
open-social-software-engineering
#Open, social, software engineering in risk averse environments
*Lewis Barclay, April 2016*
> Open source software is about freedom and choice, but freedom and choice introduce risk
> **- (Gartner, June 2011)**
833c36099b7a78a29455de9bf9fde731e653347d