Made with ❤️and golang tools 🛠 by @a_soldatenko
Interesting bloggers in twitter
Made with ❤️and golang tools 🛠 by @a_soldatenko
Interesting bloggers in twitter
import pprint | |
from nltk.corpus import stopwords | |
from nltk.corpus import webtext | |
from nltk.collocations import BigramCollocationFinder | |
from nltk.metrics import BigramAssocMeasures | |
stopset = set(stopwords.words('english')) | |
filter_stops = lambda w: len(w) < 3 or w in stopset | |
words = [w.lower() for w in webtext.words('grail.txt')] |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# consumeraffairs/.git/hooks/commit-msg | |
# Finds the story number from the branch name and injects it | |
# into the commit message. For instance, if we're on branch | |
# | |
# BRAND-1234-Some-Feature | |
# | |
# And we had committed with | |
# | |
# git commit -m "I did some feature" |
TMP_PATH=~/tmp_install_python | |
# Versions section | |
PYTHON_MAJOR=2.7 | |
PYTHON_VERSION=$PYTHON_MAJOR.10 | |
mkdir $TMP_PATH && cd $TMP_PATH | |
# Update yum and libraries | |
yum -y update |
{ | |
"kind": "youtube#videoListResponse", | |
"etag": "\"8jEFfXBrqiSrcF6Ee7MQuz8XuAM/CCMKJ4Yog67Jfq11ExS2XxNDDQ0\"", | |
"pageInfo": { | |
"totalResults": 28, | |
"resultsPerPage": 28 | |
}, | |
"items": [ | |
{ | |
"kind": "youtube#video", |
FROM golang AS builder | |
WORKDIR /src | |
RUN go get -u github.com/go-delve/delve/cmd/dlv | |
ADD . /src | |
RUN cd /src && go build -o goapp | |
FROM alpine | |
WORKDIR /app | |
COPY --from=builder /src/goapp /app/ | |
ENTRYPOINT ./goapp |
astro_0.8.2_windows_386.zip
and move astro.exe
somewhere in your %PATH%
C:\Windows\system32>astro version
Astro CLI Version: 0.8.2
Git Commit: f5cdab8f832da3c6184a7ac167b491e3bac3c022
def fopen(filename, default=sys.stdin): | |
""" | |
This function helps you do not see errors during upload solutions | |
because you forget to switch back to sys.stdin and also you can easily | |
debug your code with ipdb or another python debuggers | |
""" | |
try: | |
f = open(filename) | |
except FileNotFoundError: | |
f = default |
Latency Comparison Numbers | |
-------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |