Skip to content

Instantly share code, notes, and snippets.

View jizusun's full-sized avatar
🎯
Focusing

Jizu Sun jizusun

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jizusun on github.
  • I am jizu (https://keybase.io/jizu) on keybase.
  • I have a public key whose fingerprint is 8F4D 202E 7D15 AB51 0DBC 2356 4A12 2629 F78F 4013

To claim this, I am signing this object:

@jizusun
jizusun / leetcode-solution.user.js
Last active October 19, 2020 03:04
Copy LeetCode Solution to clipboard
// ==UserScript==
// @name Copy LeetCode Solution to clipboard
// @namespace https://gist.github.com/jizusun/84495bd63e2ed4a33823a9cfc728a810
// @version 0.3
// @description Better format to paste into Notion
// @author You
// @match https://leetcode.com/problems/*/solution/
// @grant GM_setClipboard
// ==/UserScript==
@jizusun
jizusun / coursera-subtitle.js
Created April 4, 2020 07:30
GreasyMonkey script - Coursera subtitles(outside the video)
// ==UserScript==
// @name Coursera subtitles(outside the video)
// @description Coursera subtitles outside the video.
// @namespace http://tampermonkey.net/
// @version 0.2
// @author 木杉, sunjizu@gmail.com
// @include http://www.coursera.org/*
// @include https://www.coursera.org/*
// @grant none
// @run-at document-end
@jizusun
jizusun / ss-docker-apply.sh
Last active January 20, 2024 09:28
Shadowsocks On Docker/Kubernetes
export password=foobar
export method=chacha20-ietf-poly1305
export port=9301
docker run -e PASSWORD=${password} -e METHOD=${method} -p${port}:8388 -p${port}:8388/udp -d shadowsocks/shadowsocks-libev
export host=$(curl -s ipinfo.io/json | grep \"ip\" | awk -F'"' '{ print $4 }')
echo $host:$port
// 54: Object - is
// To do: make all tests pass, leave the assert lines unchanged!
// Follow the hints of the failure messages!
// Shape - superclass
function Shape() {
this.x = 0;
this.y = 0;
}
function corp-proxy {
http_proxy="http://proxy.${1}.sap.corp:8080"
HTTP_PROXY=$http_proxy
https_proxy=$http_proxy
HTTPS_PROXY=$http_proxy
ftp_proxy=$http_proxy
FTP_PROXY=$http_proxy
no_proxy=".sap.corp, localhost"
NO_PROXY=$no_proxy
@jizusun
jizusun / index.html
Created August 5, 2018 11:45
Pomodoro
<link href="https://fonts.googleapis.com/css?family=Rubik:300" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:700" rel="stylesheet">
<div id="root"></div>
@jizusun
jizusun / index.html
Last active July 4, 2018 13:15
[React Router v3 - Docs - Introduction] React Router// source https://jsbin.com/ludinaj
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React Router v3 - Docs - Introduction</title>
<script src="https://unpkg.com/react/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.development.js"></script>
<!-- Don't use this in production: -->
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
@jizusun
jizusun / my-conemu-tasks.txt
Last active August 4, 2018 04:42
My ConEmu Config: Tasks
-cur_console:f -cur_console:d:C:\Users\I337932\Downloads\src_gerrit_sap -cur_console:t:"http-server" cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" && http-server . -o -c-1
-cur_console:fns1T68V -cur_console:d:C:\Users\I337932\Downloads\portable_software\aria2-1.32.0-win-64bit-build1 -cur_console:t:"aria2" cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" && aria2c.exe --conf-path=aria2.conf
-cur_console:fns2T63V -cur_console:d:C:\Users\I337932\Downloads\src\writings-on-github -cur_console:t:"jekyll serve" cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" && bundle exec jekyll serve -l --incremental
-cur_console:bs3T50V -cur_console:d:C:\Users\I337932\Downloads\src\ssr-web-utils -cur_console:t:"create-react-app" yarn start
> -cur_console:b -cur_console:d:C:\Users\I337932\Downloads\src_gerrit_sap\ "%ConEmuDir%\..\Git\git-cmd.exe" --no-cd --command=usr/bin/bash.exe -l -i