Skip to content

Instantly share code, notes, and snippets.

View zeevallin's full-sized avatar

Zee Vieira zeevallin

View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: ingress-grpc
labels:
app.kubernetes.io/name: ingress-grpc
app.kubernetes.io/part-of: ingress-grpc
---
kind: ConfigMap
apiVersion: v1
syntax = "proto3";
package common.v1.identity;
option go_package = "protos/common/v1/identity";
// Contains identity data, should be part of each service procedure
message Identity {
string UserSecret = 1;
}
syntax = "proto3";
package common.countries;
option go_package = "rpc/common/countries";
enum ISOCode {
AF = 0;
AX = 1;
AL = 2;
DZ = 3;
/*
#### BEFORE YOU RUN THIS ####
Make sure you got everything you need, and run this:
go get github.com/nlopes/slack
go get github.com/fatih/color
go get github.com/davecgh/go-spew/spew
export function reflect(promises) {
function handler(promise) {
return promise.then(
(result)=>{ return { status: "resolved", result: result } },
(result)=>{ return { status: "rejected", result: result } }
)
}
return Promise.all(promises.map(handler))
}
export function reflect(promises){
function handler(promise) {
function response(status, result) {
return { status: status, result: result }
}
return promise.then(
response.bind("resolved"),
response.bind("rejected")
)
}
#!/usr/bin/env ruby
# 735839035697074176
raise "Needs a tweet id" unless tweet_id = ARGV[0]
require "twitter"
require "pry"
while Time.now < Time.new(2016, 05, 26, 16, 44) do
sleep 1
end
GrdL(vlls) 1
GrdL(objc) 1, Grdn, Gradient
Grad(objc) 5, Grdn, Gradient
Nm (text) 5, Kiwi
GrdF(enum) GrdF, CstS
Intr(doub) 4096.0
Clrs(vlls) 5
Clrs(objc) 4, Clrt,
Clr (objc) 3, RGBC,
Rd (doub) 61.00389115512371
  • A Gypsy curse. If you know what I mean...
  • A moment of silence. If you know what I mean...
  • A sausage festival. If you know what I mean...
  • An honest cop with nothing left to lose. If you know what I mean...
  • Famine. If you know what I mean...
  • Flesh-eating bacteria. If you know what I mean...
  • Flying sex snakes. If you know what I mean...
  • Not giving a shit about the Third World. If you know what I mean...
  • Sexting. If you know what I mean...
  • Shapeshifters. If you know what I mean...
#!/bin/ruby
10.times { puts ENV["TEXT"] }