$ git checkout -b my-feature
... modify code ....
$ git add <filename>
$ git commit -m “my feature is this”
| #!/bin/sh | |
| # So you've installed XCode 6 Beta | |
| # Now we could use Swift toolchain to build a minimal | |
| # command line Hellow World | |
| # let's set new Developer Toolchain bundled with Xcode6-Beta.app | |
| # as default toolchain | |
| # sudo xcode-select -s /Applications/Xcode6-Beta.app/Contents/Developer | |
| # alias for Swift binary |
| function cloneObject(object) { | |
| return extendObject({}, object); | |
| } | |
| function extendObject(base, object) { | |
| var visited = [object]; | |
| // http://en.wikipedia.org/wiki/Adjacency_list_model | |
| var set = [{value: base}]; |
| ;;; go-template-mode.el --- Major mode for Go template language | |
| ;;; Commentary: | |
| ;; 1) Copy this file somewhere in your Emacs `load-path'. To see what | |
| ;; your `load-path' is, run inside emacs: C-h v load-path<RET> | |
| ;; | |
| ;; 2) Add the following to your .emacs file: | |
| ;; | |
| ;; (require 'go-template-mode) |
This article is now published on my website: Prefer Subshells for Context.
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.