Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am johnnynotsolucky on github.
  • I am tyronetudehope (https://keybase.io/tyronetudehope) on keybase.
  • I have a public key ASB4ykw9auII2qEXu4lLu4gXdxIOZRPLvaRjl3D_CHK_MAo

To claim this, I am signing this object:

@johnnynotsolucky
johnnynotsolucky / ifElse.js
Last active September 20, 2017 21:18
Functional Utils
const ifElse = (condition, whenTrue, whenFalse) => {
return (...args) =>
condition(...args)
? whenTrue(...args)
: whenFalse(...args)
}
const identity = x => () => x
const inc = x => x + 1
@johnnynotsolucky
johnnynotsolucky / Hello.js
Last active May 12, 2017 08:26
Test Vue components with html-looks-like
const Vue = require('vue')
module.exports = Vue.extend({
template: `
<div>
<h1>Hello</h1>
<h2>{{name}}</h2>
</div>
`,
props: { name: String }
@johnnynotsolucky
johnnynotsolucky / clean-docker-for-mac.sh
Created March 27, 2017 08:37 — forked from MrTrustor/clean-docker-for-mac.sh
This script cleans the Docker.qcow2 file that takes a lot of disk space with Docker For Mac. You can specify some Docker images that you would like to keep.
#!/bin/bash
# Copyright 2017 Théo Chamley
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or