This script automatically sets up my vim environment on any machine. For example in a docker container or an EC2 instance.
- wget
- vim
- git
| function loadScript(src) { | |
| var el = document.createElement('script'); | |
| el.setAttribute('src', src); | |
| el.async = false; | |
| document.body.appendChild(el); | |
| } | |
| [ | |
| 'jquery.js', | |
| 'main.js', |
If you run in something like this:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
| language: node_js | |
| node_js: | |
| - 0.6 | |
| - 0.7 | |
| - 0.8 | |
| - 0.9 | |
| - 0.10 | |
| before_script: | |
| - npm install -g grunt-cli | |
| - curl -L https://github.com/n1k0/casperjs/archive/1.0.3.tar.gz | tar xz |
| # disable sidekiq calls | |
| module Sidekiq::Worker::ClassMethods | |
| def perform_async(*args) | |
| nil | |
| end | |
| end |
| data Tree = Branch [Tree] | |
| deriving Show | |
| {- first int is the min cover; second int is the min cover that includes the root -} | |
| minVC :: Tree -> (Int, Int) | |
| minVC (Branch subtrees) = let | |
| costs = map minVC subtrees | |
| minWithRoot = 1 + sum (map fst costs) in | |
| (min minWithRoot (sum (map snd costs)), minWithRoot) |
| { | |
| movie(title: "Inception") { | |
| releaseDate | |
| actors(first: 10) { | |
| edges { | |
| node { | |
| name | |
| } | |
| } | |
| } |
| { | |
| movie(title: "Inception") { | |
| releaseDate | |
| actors { | |
| name | |
| } | |
| } | |
| } |
| import * as Bluebird from 'bluebird' | |
| const myMutations = [ | |
| 'mutation1: createItem(title: "Node 1") { id }', | |
| 'mutation2: createItem(title: "Node 2") { id }', | |
| // ... | |
| ] | |
| const transport = new Transport('my-graphcool-api') | |
| const crm = new Lokka({transport}) |