Skip to content

Instantly share code, notes, and snippets.

View ejhsu's full-sized avatar

EJ HSU ejhsu

  • Taipei, Taiwan
View GitHub Profile
scrape_configs:
- job_name: 'prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ['localhost:9090']
- job_name: 'api-server'
scrape_interval: 5s # for demo purpose
@ejhsu
ejhsu / person.proto
Last active February 23, 2018 02:31
syntax = "proto3";
message Person {
string name = 1;
int32 id = 2;
string email = 3;
enum PhoneType {
UNKNOWN = 0;
MOBILE = 1;
@ejhsu
ejhsu / fetch_pr.sh
Created February 9, 2018 08:42
Fetch Pull Request (BitBucket)
git remote add upstream {repo}
git fetch upstream refs/pull-requests/{pr}/from
@ejhsu
ejhsu / pr.txt
Last active October 10, 2016 14:50
start from 'sklearn' and 'react'
start node=('scikit-learn/scikit-learn', 238)
[(('scikit-learn/scikit-learn', 238), 0.15175301705649075),
(('statsmodels/statsmodels', 626), 0.0046462682529744915),
(('Homebrew/linuxbrew', 1456), 0.004433270451576379),
(('biopython/biopython', 254), 0.004426327984994649),
(('ckolivas/cgminer', 672), 0.004405231226539877),
(('swcarpentry/bc', 1562), 0.004370743152766734),
(('swcarpentry/shell-novice', 2166), 0.004367334429640322),
(('swcarpentry/git-novice', 2159), 0.004366401533735693),
(('swcarpentry/python-novice-inflammation', 2158), 0.004365037412321549),
cat+dog
searching: cat+dog
1 glossary score = 3.233984617446567E-4
----------
...d CATLING cat-gut CAUTEL ...
... GIB a he-cat GIFTS talen...
...llar The dog-rose CANSTI...
...name of a dog SPECIALLY a...
...ng-tailed dog TUCKET-SONA...
...a kind of dog WATER-WORK ...