... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| module.exports = function(grunt){ | |
| grunt.initConfig({ | |
| // ... | |
| browserify: { | |
| specs: { | |
| src: ["web/specs/**/*Specs.js"], | |
| dest: "web/public/build/specs.js", | |
| options: { |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| #!/bin/bash | |
| branch_name=$(git symbolic-ref --short HEAD) | |
| if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ] | |
| then | |
| git commit --allow-empty -m 'empty commit to trigger deployment' | |
| fi |
With V8 from Jeroen Ooms, we can do things like use R totest this Javascript stats library simple-statistics from Tom McWright.
| // Placekittens http://www.houzz.com/photos/products | |
| // Example 1 | |
| var target = document.getElementsByClassName('shop-landing-top-promotions')[0]; | |
| target.innerHTML = '<img src="http://placekitten.com/g/800/120" alt="" />'; | |
| // Example 2 | |
| var target = document.getElementsByClassName('shop-landing-top-promotions')[0]; | |
| var targetInner = target.getElementsByClassName('shop-landing-top-promotions-content')[0]; | |
| targetInner.style.visibility='hidden'; | |
| target.style.background = 'url("http://placekitten.com/g/800/120") 0 0 repeat'; |
| import sqlite3 | |
| import os | |
| import argparse | |
| try: | |
| import pyspark | |
| import pyspark.sql | |
| except ImportError: | |
| import sys | |
| import os |
| #!/bin/bash | |
| # | |
| # Check a "few" things to help write more maintainable Go code. | |
| # | |
| # OK, it's fairly comprehensive. So simply remove or comment out | |
| # anything you don't want. | |
| # | |
| # Don't forget to install (go get) each of these tools. | |
| # More info at the URLs provided. | |
| # |