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
FROM jesusperales/jenkins-docker-run-inside:latest | |
ADD sdk.tar.gz /root/android-sdk | |
USER root | |
ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8" | |
ENV JENKINS_OPTS="--httpPort=80" | |
ENV LANG C.UTF-8 | |
ENV TZ=Asia/Shanghai | |
ENV ANDROID_HOME=/root/android-sdk |
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
export ES_HOME=/path/to/elasticsearch-7.12.1 | |
alias ping='ping -c 5' | |
alias wget='wget -c' | |
alias tf="tail -500f" | |
alias c="clear" | |
alias grep='grep --color=auto' | |
alias ssh="ssh -o 'ServerAliveInterval 60'" | |
alias q="exit" | |
alias untar="tar -zxvf" |
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
const { | |
compose, | |
not, | |
prop, | |
ifElse, | |
map, | |
flip, | |
zipObj, | |
chain, | |
zipWith, |
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
package cn.agilean.valuekanban.shared; | |
import org.springframework.stereotype.Component; | |
import java.nio.charset.StandardCharsets; | |
public class TextStoreUtil { | |
private int defaultMaxByteCountOfText = 500; |
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
package cn.agilean.valuekanban.sync.protrait; | |
import org.springframework.context.ConfigurableApplicationContext; | |
import org.springframework.http.HttpMethod; | |
import org.springframework.web.bind.annotation.*; | |
import javax.servlet.http.HttpServletRequest; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; |
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
#!/bin/sh | |
MSG=$(cat $1) | |
if ! [[ "$MSG" =~ ^#[0-9]{4} ]];then | |
echo "Your commit message must starts with a story number, like "#1234"" | |
exit 1 | |
fi |
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
function isAsync(fn) { | |
return fn.constructor.name === 'AsyncFunction'; | |
} | |
const compose = (...fns) => { | |
let containsAsync = false; | |
return function (param) { | |
let result = param; | |
while (fns.length) { | |
let currentFn = fns.shift(); |
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
const pointfree = prototypeOrFunc => { | |
if (typeof prototypeOrFunc === 'function') { | |
if (isConstructor(prototypeOrFunc)) { | |
return (...args) => new prototypeOrFunc(...args); | |
} else { | |
return (...args) => prototypeOrFunc.bind(args.shift())(...args); | |
} | |
} | |
const Type = {}; | |
Object.getOwnPropertyNames(prototypeOrFunc).forEach(func => { |
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
// ==UserScript== | |
// @name hide subscription problem on leetcode | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://leetcode.com/problemset/*/ | |
// @grant none | |
// ==/UserScript== |
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
const head = { | |
val: 1, | |
next: { | |
val: 2, | |
next: { | |
val: 3 | |
} | |
} | |
}; |
NewerOlder