docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Inspired by Corner Pin effect filter v1.1 by khaver | |
obs = obslua | |
bit = require("bit") | |
TEXT_FILTER_NAME = 'UnFish/Fish Lens' | |
TEXT_FISH_POWER = 'Strength' | |
SETTING_FISH_POWER = 'fish_power' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logging: | |
receivers: | |
bbgo: | |
type: files | |
include_paths: | |
- /var/log/bbgo.log | |
processors: | |
bbgo_proc: | |
type: parse_regex | |
field: msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentUrl = window.location.toString(); | |
console.log(currentUrl); | |
if (currentUrl.includes("/download/") && !currentUrl.includes("/bundle/")) { | |
window.history.back(); | |
} | |
else if (currentUrl.includes("/bundle/download/")) | |
{ | |
if ($('[value="claim"]') && $('[value="claim"]')[0]) { | |
$('[value="claim"]')[0].click(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
customization: | |
distribution_code_name: Weasel | |
distribution_version: 0.9.30 | |
generator: "Rime::SwitcherSettings" | |
modified_time: "Mon Feb 05 11:56:51 2018" | |
rime_version: 1.1.2 | |
patch: | |
"schema_list": | |
- schema: double_pinyin_mspy_tw | |
- schema: bopomofo_tw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
fetchmaster = fetch origin master:master | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
br = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format=%(refname:short) | |
br30 = for-each-ref --count=30 --sort=-committerdate refs/heads/ --format=%(refname:short) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"swagger":"2.0","info":{"version":"v1","title":"Lego Unified API"},"host":"lego","schemes":["http"],"paths":{"/api/draco":{"get":{"tags":["Draco"],"summary":"Query jobs","description":"Paged results with defualt page size ($top) 50 with a maximum of 1000. Supports OData query options like...<br /><code>?<span class=\"text-primary\">$count</span>=<span class=\"text-danger\">true</span>&<span class=\"text-primary\">$skip</span>=<span class=\"text-danger\">10</span>&<span class=\"text-primary\">$top</span>=<span class=\"text-danger\">20</span>&<span class=\"text-primary\">$select</span>=<span class=\"text-danger\">Id,Type,Status</span>&<span class=\"text-primary\">$filter</span>=<span class=\"text-danger\">Status eq 'OnGoing' or Status eq 'Start'</span>&<span class=\"text-primary\">$orderby</span>=<span class=\"text-danger\">DateStart desc</span></code>","operationId":"Draco_GetJobs","consumes":[],"produces":["application/json","text/json"],"parameters":[{"name":"$filter","in":"query","descr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = "Eric Chu <[email protected]>" | |
import operator as op | |
class KMTer(int): | |
def __add__(self, a, b): | |
return op.mul(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
cache = {} | |
low = 1 | |
def f(n, squares): | |
global low | |
if n in squares: | |
return [n] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Solution: | |
# @param beginWord, a string | |
# @param endWord, a string | |
# @param wordDict, a set<string> | |
# @return an integer | |
def is_intermediate(self, a, b): | |
return len(filter(lambda x: x, [a[i] != b[i] for i in range(len(a))])) == 1 | |
def dfs(self, themap, start, end, limit): | |
if limit <= 0: |
NewerOlder