Skip to content

Instantly share code, notes, and snippets.

View taikulawo's full-sized avatar
🎯
Focusing

Wu WeiChao taikulawo

🎯
Focusing
View GitHub Profile
@taikulawo
taikulawo / gist:f27fd88e8da872ed611b27f0fe9d268d
Created April 6, 2020 09:11
ublock origin 移除牛客首页推荐广告
www.nowcoder.com##.common-list > .clearfix:has(div.clearfix .feed-origin-oprt:has-text(推荐))
@taikulawo
taikulawo / index.py
Created March 12, 2020 06:04
阿里云函数计算-API网关-参数透传-函数计算-模板
# -*- coding: utf-8 -*-
import logging
import json
# if you open the initializer feature, please implement the initializer function, as below:
# def initializer(context):
# logger = logging.getLogger()
# logger.info('initializing')
def handler(event, context):
@taikulawo
taikulawo / des.java
Last active March 5, 2020 06:13
Java Des Implementation
public class DesCore {
/*
* encrypt the string to string made up of hex return the encrypted string
*/
public String strEnc(String data, String firstKey, String secondKey, String thirdKey) {
int leng = data.length();
String encData = "";
List firstKeyBt = null, secondKeyBt = null, thirdKeyBt = null;
@taikulawo
taikulawo / ubuntu_agnoster_install.md
Created January 18, 2020 06:46 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@taikulawo
taikulawo / index.js
Created November 7, 2019 09:33
移除知乎首页广告-油猴脚本
// ==UserScript==
// @name 移除知乎网页版首页广告
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 移除知乎首页广告
// @author You
// @match https://www.zhihu.com/
// @grant none
// ==/UserScript==
@taikulawo
taikulawo / main.py
Created September 10, 2019 12:21
PythonTest
print("Hello,World")
@taikulawo
taikulawo / renamer.go
Created August 21, 2019 07:47 — forked from dgrijalva/renamer.go
Experimenting with code generation using `go/ast`. I wanted to see if it was practical to use compilable go code as a template for project generation. For example: if you wanted to be able to generate a falcore app from a template, what would that look like? If you could keep the template file looking like regular go source code (without templat…
package main
import (
"fmt"
"os"
"strings"
"go/parser"
"go/token"
"go/ast"
"go/printer"
function step(iterator, resolve, reject, nextcall, throwcall, key, args) {
try {
var info = iterator[key](args)
var v = info.value
} catch (e) {
reject(e)
return
}
if (info.done) {
resolve(v)
/*
* Regular expression implementation.
* Supports only ( | ) * + ?. No escapes.
* Compiles to NFA and then simulates NFA
* using Thompson's algorithm.
*
* See also http://swtch.com/~rsc/regexp/ and
* Thompson, Ken. Regular Expression Search Algorithm,
* Communications of the ACM 11(6) (June 1968), pp. 419-422.
*