Skip to content

Instantly share code, notes, and snippets.

View wisecsj's full-sized avatar
🎯
Discovering the meaning of life

wisecsj wisecsj

🎯
Discovering the meaning of life
View GitHub Profile
class Settings {
var count:Int=0
}
actor Test{
// var count:Int=0
var settings:Settings
init(s:Settings){
self.settings = s
@wisecsj
wisecsj / gist:b5782e6f930bb614348f78dce10e3dd2
Created March 20, 2021 09:43
判断大端序or小端序
package main
import (
"fmt"
"unsafe"
)
func getbyteorder() {
var n uint16
n = 0x0102
@wisecsj
wisecsj / js
Last active May 12, 2019 11:49
实验楼实验环境下自动延迟JS
setInterval(() => {
// 显示时间的节点
var timeNode = document.querySelector(".left-time > div:nth-child(1)")
var lastTime = parseInt(timeNode.textContent)
// 延迟按钮
var btn = document.querySelector(".add-time-btn")
if (lastTime<10) {
btn.click()
// 确认延迟按钮
var sure = document.querySelector("#__BVID__65___BV_modal_footer_ > button:nth-child(2)")
@wisecsj
wisecsj / server
Created March 10, 2019 09:10
server
package main
import (
"log"
"math/rand"
"net"
"strings"
"time"
)
@wisecsj
wisecsj / client2
Created March 10, 2019 09:10
client version 2
package main
import (
"fmt"
"log"
"net"
"time"
)
// Client launch the client
@wisecsj
wisecsj / client
Last active March 10, 2019 09:09
client version 1
package main
import (
"fmt"
"log"
"net"
"net/http"
_ "net/http/pprof"
"time"
)