Skip to content

Instantly share code, notes, and snippets.

Xiaokang Wang xiaokangwang

Block or report user

Report or block xiaokangwang

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@xiaokangwang
xiaokangwang / rawudp.go
Created May 23, 2018 — forked from chrisnc/rawudp.go
constructing ip/udp packets in go
View rawudp.go
package main
import (
"bufio"
"bytes"
"encoding/binary"
"flag"
"fmt"
"net"
"os"
@xiaokangwang
xiaokangwang / ubuntu-cli-install-android-sdk.sh
Last active Jan 28, 2019 — forked from zhy0/ubuntu-cli-install-android-sdk.sh
Install Android SDK on headless Ubuntu linux machine via command line, so that you can compile open source Android apps.
View ubuntu-cli-install-android-sdk.sh
#!/bin/bash
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n
# Install Oracle JDK 8
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install -y oracle-java8-installer
apt-get install -y unzip make expect # NDK stuff
@xiaokangwang
xiaokangwang / sortR.awk
Created Sep 21, 2017
Sort Cite with Year It was written
View sortR.awk
BEGIN{
Count=0
}
{
input[Count]=$0
Count++;
}
function SortByYear(i1, v1, i2, v2, l, r) {
Year1=match(v1, /20([0-9]){2}/, year)
v1=year[0]
View index.html
<div id="paint">
<canvas id="myCanvas"></canvas>
</div>
<div class="floatbtn">
<a class="btn-floating btn-large waves-effect waves-light blue">
<i class="material-icons">home</i>
</a>
</div>
@xiaokangwang
xiaokangwang / caln.go
Created Mar 5, 2017
Convert Calander formart, from CUEB's version to a Google Calander importable formart
View caln.go
package main
import (
"encoding/csv"
"fmt"
"os"
"regexp"
"strconv"
"strings"
"time"
View in.json
{
"log" : {
"access": "",
"error": "",
"loglevel": "info"
},
"inbound": {
"port": 10086,
"protocol": "vmess",
"settings": {
View fuck_httpimgclick.net.user.js
// ==UserScript==
// @name fuck http://imgclick.net
// @namespace https://kkdev.org
// @include http://imgclick.net/*
// @version 1
// @grant none
// ==/UserScript==
$(document).ready(function(){
$(".fuckadb").css("display","block")
@xiaokangwang
xiaokangwang / main.go
Created Mar 8, 2015
Newton's method for sqrt()
View main.go
package main
import "fmt"
func main() {
i := 1
var sqr, x, cm float64
sqr = 16
View jsbin.hoqay.css
#myCanvas {
border: 1px solid black;
}
@xiaokangwang
xiaokangwang / Markdown.md
Last active Jan 2, 2016
本次翻译中定义的术语
View Markdown.md
English Chinese
Subscriptions 订阅
Label 标签
Stream 节点流
peer 节点
public key 公匙
Inventory lookups 同步请求
Address 地址
Bitmessage 比特信
You can’t perform that action at this time.