Notes:
- Don't forget to bump the version in package.json
- Make extra certain package.json is valid json
- tag (and push --tags) first.
- Don't publish your working checkout, it's probably polluted by temporary/private files.
Workflow:
- update History.md
| #!/usr/bin/env bash | |
| # set vars | |
| export PROJECT_ID=$(gcloud config get-value project) | |
| export PROJECT_USER=$(gcloud config get-value core/account) # set current user | |
| export PROJECT_NUMBER=$(gcloud projects describe $PROJECT_ID --format="value(projectNumber)") | |
| export IDNS=${PROJECT_ID}.svc.id.goog # workflow identity domain | |
| export REGION="us-central1" | |
| export ZONE="us-central1-a" |
| ''' | |
| rate_limit2.py | |
| Copyright 2014, Josiah Carlson - josiah.carlson@gmail.com | |
| Released under the MIT license | |
| This module intends to show how to perform standard and sliding-window rate | |
| limits as a companion to the two articles posted on Binpress entitled | |
| "Introduction to rate limiting with Redis", parts 1 and 2: |
| require 'chef/http/http_request' | |
| # Remove this patch once there is a released chef version which includes | |
| # https://github.com/opscode/chef/pull/1471 | |
| class Chef | |
| class HTTP | |
| class HTTPRequest | |
| URI_SCHEME_DEFAULT_PORT ||= { 'http' => 80, 'https' => 443 }.freeze |
| window.console.loge = function (msg) { | |
| var gifs = ['wink','shake-space','peepers','prizza','hat','gradient','fat','rainbow','sunglasses','derp','shake'], | |
| wow = ['', 'wow! ', 'amaze! ', 'dazzle! '], | |
| adjs = ['so', 'such', 'many', 'much', 'very'], | |
| randomizr = function (a) { return a[Math.floor(Math.random() * a.length)];}, | |
| message = '%c ' + randomizr(wow) + randomizr(adjs) + ' ' + typeof msg + ': ', | |
| css = 'background: url(http://d1e3ezyatlol8u.cloudfront.net/img/212/doge-' + randomizr(gifs) + '-212.gif) no-repeat 0 0; background-size: 80px 80px; font-family: \'Comic Sans MS\', cursive; text-shadow: 0 1px 1px rgba(0,0,0,1); font-size: 14px; padding: 25px; line-height: 70px; color: #fff; font-weight: 100;'; | |
| console.log.apply(console, typeof msg === 'object' ? [message, css, msg] : [message += msg, css]); | |
| }; |
Notes:
Workflow:
Hi, all.
Encouraged by my successful experiment with a Node.js view server, I am now working on a branch, nodejs_couchdb, with the following properties:
Phase 1: Dependency on a "couchjs" executable which you install via npm install couchjs
| # cookbook/files/default/pushover_handler.rb | |
| require "net/https" | |
| module MyOrg | |
| class PushOver < Chef::Handler | |
| def initialize(config={}) | |
| @config = config | |
| end |
| var serialport = require('node-serialport') | |
| var sp = new serialport.SerialPort("/dev/ttyO3", { | |
| parser: serialport.parsers.raw, | |
| baud: 9600 | |
| }) | |
| sp.on('data', function(chunk) { | |
| console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
| }) |
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| /* | |
| * Helper functions for treating node Buffer instances as C "pointers". | |
| */ | |
| #include "v8.h" | |
| #include "node_buffer.h" | |
| /* | |
| * Called when the "pointer" is garbage collected. |