I hereby claim:
- I am fizz on github.
- I am fizz (https://keybase.io/fizz) on keybase.
- I have a public key whose fingerprint is 3449 7523 241B CB60 E3AD 1279 85ED 974E D815 25E8
To claim this, I am signing this object:
# Example: git show <treeish> | awk -f block.awk | |
# Selectively print sections matching regex in body of matches(), below | |
function matches(block) { | |
return (block ~ /\-\?\>/) | |
} | |
/diff/{ | |
# start of a new block, process the previous | |
if (prevblock"" && matches(prevblock)) print prevblock |
# Manages swapspace on a node. | |
# | |
# Based on https://gist.github.com/Yggdrasil/3918632 | |
# | |
# Parameters: | |
# - $ensure Allows creation or removal of swapspace and the corresponding file. | |
# - $swapfile Defaults to /mnt which is a fast ephemeral filesystem on EC2 instances. | |
# This keeps performance reasonable while avoiding I/O charges on EBS. | |
# - $swapsize Size of the swapfile in MB. Defaults to memory size. | |
# |
I hereby claim:
To claim this, I am signing this object:
module ActiveRecord | |
class SchemaDumper | |
def dump(stream) | |
header(stream) | |
extensions(stream) | |
enums(stream) | |
tables(stream) | |
trailer(stream) | |
stream | |
end |
var prompt = require('prompt'); | |
var mailgun = require('mailgun-validator')('YOUR_API_KEY'); | |
var kicksend = require('mailcheck'); | |
var mongo = require('mongoskin'); | |
var db = mongo.db('localhost:27017/customers?autoreconnect'); | |
var async = require('async'); | |
var domains = [ |
# Update product notification emails | |
class NotificationsBot extends require('./vickybot').VickyBot | |
NotificationsBot::urls.products = -> | |
'/products/index.php' | |
NotificationsBot::selectors.pagination = '.limeListSelectBox' | |
NotificationsBot::selectors.loading = '#loadingproductList' | |
NotificationsBot::selectors.search_field = '#list_search_id_productList' | |
NotificationsBot::selectors.product = |
import com.example.Peekaboo | |
import com.example.PlayerState | |
class com.example.Continue extends Peekaboo { | |
static var _$ = _global | |
function Continue(){ | |
showWhen(PlayerState.saveExists()) | |
} | |
function onRelease(){ |
docker run \ | |
--name={{.Name}} \ | |
{{range $e := .Config.Env}}--env={{printf "%q" $e}} \ | |
{{end}}{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ | |
{{end}}{{end}}{{range $n, $conf := .NetworkSettings.Networks}}{{with $conf}}--network {{printf "%q" $n}} \ | |
{{range $conf.Aliases}}--network-alias {{printf "%q" .}} {{end}} \ | |
{{end}}{{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from={{printf "%q" .}} \ | |
{{end}}{{range $v := .HostConfig.Binds}}--volume={{printf "%q" .}} \ | |
{{end}}{{range $l, $v := .Config.Labels}}--label {{printf "%q" $l}}={{printf "%q" $v}} \ | |
{{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{printf "%q" .}} \ |
docker run \ | |
--name={{.Name}} \ | |
{{range $e := .Config.Env}}--env={{printf "%q" $e}} \ | |
{{end}}{{range $p, $conf := .NetworkSettings.Ports}}{{with $conf}}-p {{(index $conf 0).HostIp}}:{{(index $conf 0).HostPort}}:{{$p}} \ | |
{{end}}{{end}}{{range $n, $conf := .NetworkSettings.Networks}}{{with $conf}}--network {{printf "%q" $n}} \ | |
{{range $conf.Aliases}}--network-alias {{printf "%q" .}} {{end}} \ | |
{{end}}{{end}}{{range $v := .HostConfig.VolumesFrom}}--volumes-from={{printf "%q" .}} \ | |
{{end}}{{range $v := .HostConfig.Binds}}--volume={{printf "%q" .}} \ | |
{{end}}{{range $l, $v := .Config.Labels}}--label {{printf "%q" $l}}={{printf "%q" $v}} \ | |
{{end}}{{range $v := .HostConfig.CapAdd}}--cap-add {{printf "%q" .}} \ |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |