There are actually two different ways of achieving concurrency in Go:
Nice format:
import (
"fmt"
)| class people::emilisto { | |
| #include osx::chsh | |
| include macvim | |
| include firefox | |
| include chrome | |
| include slate | |
| # Skype is Broken! | |
| # include skype |
| # I am the walrus | |
| ``` | |
| $ eat_my_bucket | |
| ... | |
| ``` |
| #!/bin/bash | |
| # | |
| # env.sh | |
| # | |
| # Convenience script for loading and unloading a custom shell environment. I | |
| # use it with projects to setup paths e.g. the Django manage script, and | |
| # activating the Python virtualenv. | |
| # | |
| # Author: Emil Stenqvist <[email protected]> | |
| # |
| var esprima = require('esprima') | |
| , readit = require('readit') | |
| , traverse = require('traverse') | |
| , code = readit() | |
| , prettyjson = require('prettyjson') | |
| , _ = require('underscore') | |
| , path = require('path') | |
| , optimist = require('optimist') | |
| ; |
| $ node scope.js | |
| 6Hz: 4048 | |
| 214Hz: 4048 |
| { | |
| graphitePort: 2003, | |
| graphiteHost: "localhost", | |
| port: 8125, | |
| backends: [ "./backends/graphite" ] | |
| } |
| ## lib.sls | |
| # Shorthand macro for getting pillar data | |
| {% macro p(key, default='') -%} | |
| {{ salt['pillar.get'](key, default) }} | |
| {%- endmacro %} | |
| ## Usage | |
| {% from 'lib.sls' import p with context %} | |
| {{ p('git:url', '[email protected]') }} |
| #!/bin/bash | |
| # Examples: | |
| # | |
| # When's the damn thing online? | |
| # | |
| # $ retry.sh ssh [email protected] | |
| # | |
| # When's internet back? | |
| # |