Skip to content

Instantly share code, notes, and snippets.

View leemeichin's full-sized avatar
:shipit:

Lee Meichin leemeichin

:shipit:
View GitHub Profile
@leemeichin
leemeichin / README.md
Created March 6, 2020 17:47
worktree.sh

Usage:

worktree init master sets your repo up for worktrees. e.g. if you have a repo called noel-edmonds the result would become this:

/noel-edmonds # container directory for your worktrees
  |- /master # main worktree branch (do not check out new branches from here!)
    |- .git/
@supports(display: grid) {
// do a bunch of grid stuff
}
@supports(text-decoration: blink) {
* {
text-decoration: blink;
}
}
@leemeichin
leemeichin / keybase.md
Created September 30, 2017 15:35
keybase.md

Keybase proof

I hereby claim:

  • I am leemachin on github.
  • I am habibi (https://keybase.io/habibi) on keybase.
  • I have a public key whose fingerprint is 731B 4499 5E17 D616 E6B3 4D74 167A 46E6 F5CF A323

To claim this, I am signing this object:

@leemeichin
leemeichin / CLI.md
Last active July 21, 2017 18:03
Zozz

zozz

Demonstrates how to work with Zozz by building itself.

parrot word (other-words...)

Repeats what you say (example for optional and splatting args)

build

@leemeichin
leemeichin / README.md
Last active December 18, 2019 08:29
CircleCI 2.0 - Merge parallel coverage results for CodeClimate

CircleCI 2.0 Parallel Builds and CodeClimate

Add the Ruby script to your repo, and add this snippet into your new circle.yml:

- deploy:
    name: Merge and copy coverage data
    command: bundle exec path/to/circle.rb
{
"method": "$context.httpMethod",
"body" : $input.json('$'),
"headers": {
"x-api-key": "$util.escapeJavaScript($input.params().querystring.get('key'))"
#foreach($param in $input.params().header.keySet())
"$param": "$util.escapeJavaScript($input.params().header.get($param))" #if($foreach.hasNext),#end
#end
}
}
{
"lambda": {
"role": "my-app-executor",
"name": "my-app",
"region": "us-east-1"
},
"api": {
"id": "abcdefg",
"module": "app",
"url": "https://abcdefg.execute-api.us-east-1.amazonaws.com/latest"
@leemeichin
leemeichin / app.js
Last active March 24, 2017 14:02
tf-liedetector
var ApiBuilder = require('claudia-api-builder')
var pg = require('pg')
var request = require('request-promise-native')
var find = require('lodash.find')
var api = new ApiBuilder()
var sentimentUrl = "http://sentiment.vivekn.com/api/text/"
// Check for auth as a strange kind of middleware thing
function requiresAuth(req, fn) {
@leemeichin
leemeichin / package.json
Last active March 23, 2017 16:53
tf-liedetector
{
"scripts": {
"create": "claudia create --profile claudia --api-module app --region us-east-1",
"update": "claudia update --profile claudia",
}
}