欲取得推薦的 URL: https://code.tutsplus.com/tutorials/developing-google-chrome-extensions--net-33076 (Pocket ID: 541935239
)
$ curl -H "Content-Type: application/json" --data @content.data https://getpocket.com/v3/getSuggestedItems
@Composable | |
fun ClockText() { | |
val currentTimeMillis = remember { | |
mutableStateOf(System.currentTimeMillis()) | |
} | |
LaunchedEffect(key1 = currentTimeMillis) { | |
while (true) { | |
delay(250) | |
currentTimeMillis.value = System.currentTimeMillis() |
pipeline { | |
agent any | |
stages { | |
stage('Git') { | |
steps { | |
git 'https://github.com/android/sunflower.git' | |
} | |
} | |
stage('Lint') { |
欲取得推薦的 URL: https://code.tutsplus.com/tutorials/developing-google-chrome-extensions--net-33076 (Pocket ID: 541935239
)
$ curl -H "Content-Type: application/json" --data @content.data https://getpocket.com/v3/getSuggestedItems
URL: https://www.facebook.com/ads/preferences/
document.querySelectorAll('div._45ys button[title="移除"]').forEach(node => node.click())
$ nvm install --lts
$ ln -s ~/src/dotfiles/bash_profile ~/.bash_profile
2020/3/23 安裝 snap 上的版本會無法輸入中文,直接安裝 deb 檔案則沒有這個問題。
Type the following code into the browser's URL bar.
data:text/html,
def project = jenkins.model.Jenkins.instance.getItemByFullName('PROJECT_NAME') | |
def build = project.getBuildByNumber(87) | |
build.@result = hudson.model.Result.SUCCESS | |
// build.@result = hudson.model.Result.NOT_BUILT | |
// build.@result = hudson.model.Result.UNSTABLE | |
// build.@result = hudson.model.Result.FAILURE | |
// build.@result = hudson.model.Result.ABORTED |
function proxy(fn) { | |
const cache = {}; | |
return function (arg) { | |
// add function result to cache | |
if (cache[arg] === undefined) cache[arg] = fn.call(this, arg); | |
return cache[arg]; | |
} | |
} |
// Credit: https://gist.github.com/malko/d3dee36e7d0d927654439f4c01c8ca0c | |
function fluentProxy (target, promise = Promise.resolve()) { | |
return new Proxy(target, { | |
get(target, property) { | |
if (target[property] instanceof Function) { | |
return (...args) => fluentProxy(target, promise.then(() => target[property](...args))); | |
} | |
} | |
}); |