This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main | |
( main | |
) where | |
import System.Environment (getArgs) | |
main :: IO () | |
main = putStrLn . unlines . (map (unwords .reverse . words)) . lines =<< readFile . head =<< getArgs |