Skip to content

Instantly share code, notes, and snippets.

View taonic's full-sized avatar
🎯
Focusing

Tao Guo taonic

🎯
Focusing
View GitHub Profile
@taonic
taonic / Spark.go
Created June 6, 2019 01:24
Spark.go generated by go-swagger
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
@taonic
taonic / spark.yml
Last active June 6, 2019 00:46
spark.yml
---
swagger: '2.0'
info:
version: 1.0.0
title: ZIS Engine API and model specs
definitions:
Spark:
required:
- flow_id
- account_id

Keybase proof

I hereby claim:

  • I am taoza on github.
  • I am taoza (https://keybase.io/taoza) on keybase.
  • I have a public key whose fingerprint is 5227 081A B265 5605 6219 D5DD 93B4 2FE2 553C 4B9F

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am taoza on github.
* I am taoza (https://keybase.io/taoza) on keybase.
* I have a public key whose fingerprint is 727A EAE4 2810 4242 4890 DFBF 7D15 E05B FC1F 799B
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am taoza on github.
* I am taoza (https://keybase.io/taoza) on keybase.
* I have a public key whose fingerprint is E432 9BBE D038 5D9F 1189 3CC5 5948 D9C7 C128 92AE
To claim this, I am signing this object:
module Query
class EventListener
EarlyStopError = Class.new(StandardError)
def self.listen(**args, &block)
new(**args).listen(&block)
end
def initialize(reconnect: true, timeout: 30)
@heartbeat_interval = timeout
# Copy paste from/to tmux and pbcopy
bind -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
#
# A ruby solution to https://leetcode.com/problems/word-search-ii/
# A lot to be optimised still..
words = ["oath", "pea", "eat", "rain"]
board = [
['o', 'a', 'a', 'n'],
['e', 't', 'a', 'e'],
['i', 'h', 'k', 'r'],
['i', 'f', 'l', 'v']
### Keybase proof
I hereby claim:
* I am taoza on github.
* I am taoza (https://keybase.io/taoza) on keybase.
* I have a public key whose fingerprint is 6FC0 7DAD 9B85 2A7A 1A0A E855 EA0B 395F 19B5 1423
To claim this, I am signing this object: