Skip to content

Instantly share code, notes, and snippets.

View arianvp's full-sized avatar
🎱
Focusing

Arian van Putten arianvp

🎱
Focusing
View GitHub Profile
@arianvp
arianvp / index.js
Created February 19, 2015 14:50 — forked from ih2502mk/index.js
requirebin sketch
var mercury = require("mercury")
var h = mercury.h
var nextTick = require('next-tick')
var rnd_str = require('random-string')
var events = {
addItem: mercury.input()
};
var state = mercury.struct({
module Main
( main
) where
import System.Environment (getArgs)
main :: IO ()
main = putStrLn . unlines . (map (unwords .reverse . words)) . lines =<< readFile . head =<< getArgs
@arianvp
arianvp / gen-custom.sh
Created October 20, 2018 10:45 — forked from ArthurHlt/gen-custom.sh
Generate json schema for intellij terraform plugin on a community provider
#!/usr/bin/env bash
# Run `./gen-custom.sh github.com/myorg/myprovider provider-name version`
# e.g.: `./gen-custom.sh github.com/mevansam/terraform-provider-cf cloudfoundry v1.0.0`
# This will place a provider-name.json directly in $HOME/.terraform.d/schemas
CUR="$(pwd)"
out="$CUR/schemas"
mkdir -p "$out"