This gist is used for https://github.com/XGHeaven/jsscript repo to storage badge which generated by action.
PLEASE DO NOT UPDDATE THIS GIST BY HAND
This gist is used for https://github.com/XGHeaven/jsscript repo to storage badge which generated by action.
PLEASE DO NOT UPDDATE THIS GIST BY HAND
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
@keyframes a { | |
from { | |
color: red; | |
} | |
to { | |
color: blue; |
document.body.style.background = 'black' | |
const width = 200 | |
const height = 200 | |
const canvas = document.createElement('canvas') | |
canvas.width = width | |
canvas.height = height | |
canvas.style.height = `${height}px` | |
canvas.style.width = `${width}px` |
# install base command | |
yum install zsh vim git curl -y | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# install ivim | |
bash <(curl -L https://raw.githubusercontent.com/kepbod/ivim/master/setup.sh) -m |
const PassThrough = require('stream').PassThrough; | |
const Router = require('koa-66'); | |
const router = new Router(); | |
const Koa = require('koa'); | |
const app = new Koa(); | |
// ... | |
router.get(`/json/data/:source`, ctx => { | |
const stream = new PassThrough(); |
# cnpm (https://cnpmjs.org) completions for Fish shell | |
# __fish_cnpm_needs_* and __fish_cnpm_using_* taken from: | |
# https://stackoverflow.com/questions/16657803/creating-autocomplete-script-with-sub-commands | |
# see also Fish's large set of completions for examples: | |
# edited based on https://github.com/fish-shell/fish-shell/tree/master/share/completions | |
function __fish_cnpm_needs_command | |
set cmd (commandline -opc) | |
if [ (count $cmd) -eq 1 ] |
abbr -a g 'git' | |
abbr -a ga 'git add' | |
abbr -a gaa 'git add --all' | |
abbr -a gapa 'git add --patch' | |
abbr -a gb 'git branch' | |
abbr -a gba 'git branch -a' | |
abbr -a gbda 'git branch --merged | command grep -vE "^(\*|\s*master\s*\$)" | command xargs -n 1 git branch -d' | |
abbr -a gbl 'git blame -b -w' | |
abbr -a gbnm 'git branch --no-merged' | |
abbr -a gbr 'git branch --remote' |
Runtime | |
Uploads | |
Data | |
.DS_Store |
let searchengine baidu = "https://www.baidu.com/s?wd=%s" | |
command g tabnew google | |
command b tabnew baidu | |
let barposition = "bottom" | |
set cncpcompletion | |
let blacklists = ["https://github.com/*", "https?://localhost:*/*", "chrome://newtab/*", "https?://inbox.google.com/*", "https?://mail.google.com/*", "https?://cnode.xgheaven.cn/*"] |