Skip to content

Instantly share code, notes, and snippets.

const {generate} = require('escodegen')
const {parse} = require('acorn')
const fs = require('fs')
const walk = require('acorn/dist/walk')
const vm = require('vm')
const standard = require('standard')
function inline (call, decl) {
if (decl.body.body.length > 1) return
if (decl.body.body[0].type !== 'ReturnStatement') return
@jkrup
jkrup / package.json
Created February 22, 2017 00:57
Meteor-Later
"later": "nohup meteor-now -e MONGO_URL=$MONGO_URL | pwatch &"
@jkrup
jkrup / circle.yml
Created July 10, 2016 15:36
Very basic CircleCI config for MeteorJS on Docker using rsync (capable of deploying MeteorJS on AliCloud servers)
machine:
node:
version: 0.10.35
services:
- docker
dependencies:
pre:
- docker build -t mazlix/testci .
test:
override:
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active June 16, 2024 13:44
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results