... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| *.o | |
| a.out | |
| test | |
| .*.swp | |
| *~ | |
| *.png | |
| tags |
| { | |
| /* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
| * | |
| * This is a pretty good set, especially considering that many emacs bindings | |
| * such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
| * perhaps a few more, are already built into the system. | |
| * | |
| * BEWARE: | |
| * This file uses the Option key as a meta key. This has the side-effect | |
| * of overriding Mac OS keybindings for the option key, which generally |
| # This gist is compatible with Ansible 1.x . | |
| # For Ansible 2.x , please check out: | |
| # - https://gist.github.com/dmsimard/cd706de198c85a8255f6 | |
| # - https://github.com/n0ts/ansible-human_log | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
| var HEADER_NAME = 'MyApp-Handle-Errors-Generically'; | |
| var specificallyHandleInProgress = false; | |
| angular.module('myApp').factory('RequestsErrorHandler', ['$q', function($q) { | |
| return { | |
| // --- The user's API for claiming responsiblity for requests --- | |
| specificallyHandled: function(specificallyHandledBlock) { | |
| specificallyHandleInProgress = true; | |
| try { | |
| return specificallyHandledBlock(); |
| // XPath CheatSheet | |
| // To test XPath in your Chrome Debugger: $x('/html/body') | |
| // http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/ | |
| // 0. XPath Examples. | |
| // More: http://xpath.alephzarro.com/content/cheatsheet.html | |
| '//hr[@class="edge" and position()=1]' // every first hr of 'edge' class |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| #!/bin/bash | |
| # | |
| # The following script is a ugly hack. But it works, so yeah \m/ | |
| # | |
| # It uses awk, cut, head, tail, rem2ics and fzf (whereas this is only for the | |
| # selection-process and could be replaced). | |
| # | |
| # Purpose: | |
| # |
| #!/bin/bash | |
| ############################################### | |
| # # | |
| # Auto-update externals # | |
| # # | |
| # Will go into your workspace (~/workspace) # | |
| # and `git pull` all projects listed in # | |
| # .git-auto-pull, and will `svn up` all # | |
| # projects listed in .svn-auto-up # |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| // Named tuple for C++ | |
| // Example code from http://vitiy.info/ | |
| // Written by Victor Laskin (victor.laskin@gmail.com) | |
| // Parts of code were taken from: https://gist.github.com/Manu343726/081512c43814d098fe4b | |
| namespace foonathan { | |
| namespace string_id { | |
| namespace detail | |
| { |