This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package internal | |
type Tire struct { | |
root *trieNode | |
} | |
type trieNode struct { | |
value string | |
end bool | |
children map[interface{}]*trieNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sync | |
import ( | |
"encoding/json" | |
"fmt" | |
"sync" | |
"testing" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sync | |
import ( | |
"sync" | |
"sync/atomic" | |
"testing" | |
) | |
func TestAtomic(t *testing.T) { | |
count := atomic.Int32{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sync | |
import ( | |
"runtime" | |
"testing" | |
"time" | |
) | |
func readCh(ch chan interface{}) { | |
for { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN powershell.exe -Command Start-Process "c:/vcredist_x64.exe /passive" -Wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from twisted.python import failure | |
from twisted.internet import reactor, defer, task | |
from twisted.internet.protocol import Protocol | |
# Define some messages for our protocol | |
MSG_REQUEST = '>' | |
MSG_REQ_ACK = ':' | |
MSG_REQ_SUCCEEDED = '=' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package logging | |
import ( | |
"log" | |
"os" | |
"sync" | |
) | |
type LogWriter struct { | |
Stdout bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🥇 有没有人告诉你 - 陈楚生 · 1 plays | |
🥈 只要平凡 - 张杰/张碧晨 · 1 plays | |
🥉 そばにいるね - 青山テルマ · 1 plays | |
ありがとう··· - KOKIA · 1 plays | |
二缺一 - 蔡卓妍 · 1 plays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java 2 hrs 14 mins ██████░░░░░░░░░░░░░░░ 29.1% | |
Go 1 hr 50 mins █████░░░░░░░░░░░░░░░░ 24.0% | |
Python 1 hr 7 mins ███░░░░░░░░░░░░░░░░░░ 14.6% | |
Vue.js 58 mins ██▋░░░░░░░░░░░░░░░░░░ 12.7% | |
HTTP Re... 28 mins █▎░░░░░░░░░░░░░░░░░░░ 6.1% |