Skip to content

Instantly share code, notes, and snippets.


Jingchao alswl

View GitHub Profile
alswl / app.c
Last active October 12, 2021 15:33
app.c for zyy
View app.c
#include <stdio.h>
int main(int argc, char const *argv[])
int count;
double input, output;
// 0. prepare count
scanf("%d", &count);
printf("count: %d\n", count);
alswl / Jenkinsfile
Created July 23, 2021 15:48
Jenkinsfile for Python project with Chinese mirror, lint and versioned virtual env
View Jenkinsfile
pipeline {
agent {
docker {
image 'python:latest'
args '-v /var/lib/jenkins/caches/pipcache:/var/lib/jenkins/caches/pipcache -v /var/lib/jenkins/caches/durable-task:/var/lib/jenkins/caches/durable-task'
environment {
CI_PROJECT_DIR = '/var/lib/jenkins'
alswl / Makefile
Created December 8, 2020 06:51
general makefile for golang project, via
View Makefile
# Copyright 2019 The Caicloud Authors.
# The old school Makefile, following are required targets. The Makefile is written
# to allow building multiple binaries. You are free to add more targets or change
# existing implementations, as long as the semantics are preserved.
# make - default to 'build' target
# make lint - code analysis
# make test - run unit test (or plus integration test)
# make build - alias to build-local target
alswl / 现代汉语常用词表.txt
Created September 18, 2019 07:37 — forked from indiejoseph/现代汉语常用词表.txt
View 现代汉语常用词表.txt
This file has been truncated, but you can view the full file.
阿爸 a1'ba4 18137
阿昌族 a1'chang1'zu2 50849
阿斗 a1'dou3 42632
阿飞 a1'fei1 48603
阿富汗 a1'fu4'han4 3461
阿訇 a1'hong1 34432
阿拉伯数字 a1'la1'bo2'shu4'zi4 35937
阿拉伯语 a1'la1'bo2'yu3 30476
阿妈 a1'ma1 16220
alswl /
Created June 21, 2019 02:33
macOS codesign
codesign --entitlements gdb-entitlement.xml -fs gdbc /usr/local/Cellar/cgdb/0.7.0_1/bin/cgdb
codesign --entitlements gdb-entitlement.xml -fs gdbc /usr/local/Cellar/gdb/8.3/bin/gdb
View robbyrussell-alswl.zsh-theme
local ret_status="%(?:%{$fg_bold[green]%}$:%{$fg_bold[red]%}$)"
PROMPT='%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)${ret_status}%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
alswl / bin scripts for Python(uWSGI)
Last active May 27, 2019 09:15
bin scripts for Python(uWSGI)
View bin scripts for Python(uWSGI)
bin scripts for Python(uWSGI)
alswl / repositories
Last active June 10, 2022 08:53
sbt repositories in China(mirror)
View repositories
huaweicloud-ivy:, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
bintray-typesafe-ivy:, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
bintray-sbt-plugins:, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly
# aliyun not works for ivy
# aliyun-ivy:, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
# aliyun-public-mirror:
alswl / index.html
Last active February 10, 2019 03:48
View index.html
<!doctype html>
<meta charset="utf-8">
<meta http-equiv=Content-Type content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
/* Sticky footer styles
alswl / basic-auth.xml
Created December 25, 2018 13:33
spring basic auth for HTTP bean configuration
View basic-auth.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
<constructor-arg ref="httpClientFactory" />
<property name="messageConverters">