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 numpy as np | |
import scipy.linalg.blas as blas | |
import timeit | |
import os | |
import ctypes | |
from ctypes.util import find_library | |
openblas_lib = ctypes.cdll.LoadLibrary(find_library('openblas')) | |
def get_num_threads(): |
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
library(bigrquery) | |
projectid <- "test-project-160619" | |
query <- "SELECT | |
TIMESTAMP_TRUNC(pickup_datetime, | |
MONTH) month, | |
COUNT(*) trips | |
FROM | |
`bigquery-public-data.new_york.tlc_yellow_trips_2015` | |
GROUP BY |
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 dask.dataframe as dd | |
import numpy as np | |
from pathlib import Path | |
#get headers | |
data_dir = Path("~/data/Datasets/nyc-taxi").expanduser() | |
with (data_dir / "green_tripdata_2014-01.csv").open() as fh: | |
headers = next(fh).rstrip().split(",") | |
df = dd.read_csv("{}/*.csv".format(data_dir), names=headers+["junk"]*3, skiprows=2, |
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 sys | |
def parse(line): | |
return [c for c in line] | |
def solve(): | |
pass | |
with open(sys.argv[1]) as fh: | |
N = int(next(fh)) |
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 sys | |
def parse(line): | |
return [c for c in line.rstrip()] | |
def solve(): | |
pass | |
with open(sys.argv[1]) as fh: | |
N = int(next(fh)) |
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
# Contributor: Lex Black <autumn-wind at web dot de> | |
# Contributor: TingPing <tingping@tingping.se> | |
pkgbase=brotli | |
pkgname=('brotli' 'python-brotli' 'python2-brotli') | |
pkgver=0.6.0 | |
pkgrel=1 | |
pkgdesc='Brotli compression library' | |
arch=('i686' 'x86_64') | |
license=('MIT') |
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
{{template "header" .}} | |
<form method=post action="/settings"> | |
<section> | |
<h2>Profile</h2> | |
<div class="row"> | |
<div class="form-element"> | |
<input name="name" id="name" type="text" value={{.UserName}}> | |
<label for="name">Name</label> | |
</div> |
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
{ | |
"scrobbles": { | |
"@attr": { | |
"accepted": 20, | |
"ignored": 0 | |
}, | |
"scrobble": [ | |
{ | |
"artist": { | |
"corrected": "0", |
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 pydbus | |
from gi.repository import GLib | |
def list_player_names(): | |
bus = pydbus.SessionBus() | |
for n in bus.dbus.ListNames(): | |
if n.startswith("org.mpris.MediaPlayer2"): | |
yield bus.get(n, "/org/mpris/MediaPlayer2") | |
def callback(self, metadata): |
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
# $Id$ | |
# Contributor: Guillaume Horel <guillaume.horel@gmail.com> | |
# Contributor: Andrea Scarpino <andrea@archlinux.org> | |
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org> | |
# Contributor: William Rea <sillywilly@gmail.com> | |
pkgname=ortp-git | |
_pkgname=ortp | |
pkgver=1.0.1.r48.gb9e17f8 | |
pkgrel=1 |