Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
sudo apt install libxpm-dev libgif-dev gnutls-bin | |
./configure --with-nativecomp --with-mailutils --with-json --with-modules --with-harfbuzz --with-threads --with-included-regex --with-zlib --with-cairo --with-dbus --with-gpm --with-native-image-api --with-rsvg-2 --with-rsvg --with-imagemagick --with-jpeg --with-png --with-png --without-toolkit-scroll-bars --without-makeinfo --with-gnutls=ifavailable | |
make NATIVE_FULL_AOT=1 -j$(nproc) |
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 main | |
import ( | |
"encoding/csv" | |
"image/color" | |
"os" | |
"sort" | |
"strconv" | |
"gonum.org/v1/plot" |
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
from bs4 import BeautifulSoup | |
import requests | |
r = requests.get('http://golang.org/ref/spec') | |
soup = BeautifulSoup(r.text) | |
bnf = soup.find_all('pre', class_='ebnf') | |
bnftxt = [x.get_text() for x in bnf] | |
bnftxt = ''.join(bnftxt) |
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 main | |
import ( | |
"fmt" | |
. "gorgonia.org/tensor" | |
) | |
func main() { | |
xs := []int{1, 2, 6, 8} |
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 pointerTagging | |
import ( | |
"testing" | |
) | |
func BenchmarkInitializingInterface(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
initializingConventional() | |
} |
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 pointerTagging | |
import ( | |
"unsafe" | |
"math/rand" | |
"time" | |
) | |
type vector struct { | |
x int |
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 main | |
import ( | |
"fmt" | |
"github.com/chewxy/gogogadget" | |
"unsafe" | |
) | |
func main() { | |
var x int64 = 1234 |
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 pandas as pd | |
import numpy as np | |
fitnotesFile = "..." | |
strongLiftsFile = "..." | |
mfpFile = "..." | |
fn = pd.read_csv(fitnotesFile) | |
fn = fn.rename(columns={'Weight (kgs)': 'Weight'}) # cleanup names | |
grp = fn.groupby(['Date','Exercise']).agg({'Weight':[np.sum, np.mean], 'Reps': [np.sum, np.mean], 'Exercise': [np.size]}) |
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 bisect | |
import csv | |
import datetime | |
survivalFile = open('Survival_lang_no_title.csv') | |
reader = csv.reader(survivalFile) | |
reader.next() # pop the first row | |
minutes = [] | |
langDict = {} |
NewerOlder