I hereby claim:
- I am hhatto on github.
- I am hhatto (https://keybase.io/hhatto) on keybase.
- I have a public key ASCn-lUbCdnX2NMnYkwGz3J1KaRT_SjRQsNM5ezAzMdDTwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
from benchmarker import Benchmarker | |
import unicodecsv | |
import csv | |
import fcsv | |
NUM = 500 * 1000 | |
NUM = 10 * 1000 | |
source = [["abc", "def", "ghi"], | |
["jkl", "あいう", "opq"], | |
["vvv", "v1", "v2"]] |
# coding: utf-8 | |
from benchmarker import Benchmarker | |
import unicodecsv | |
import csv | |
import fcsv | |
source = [["abc", "def", "ghi"], | |
["jkl", "あいう", "opq"], | |
["vvv", "v1", "v2"]] | |
source = (("abc", "def", "ghi"), |
$ brew upgrade -v | |
==> Upgrading 2 outdated packages, with result: | |
jubatus/jubatus/jubatus 1.0.5, jubatus/jubatus/jubatus-core 1.0.5 | |
==> Upgrading jubatus/jubatus/jubatus | |
rm /usr/local/bin/jubaanomaly | |
rm /usr/local/bin/jubabandit | |
rm /usr/local/bin/jubaburst | |
rm /usr/local/bin/jubaclassifier | |
rm /usr/local/bin/jubaclustering | |
rm /usr/local/bin/jubaconv |
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/clarkduvall/hyperloglog" | |
"github.com/dchest/siphash" | |
metro "github.com/dgryski/go-metro" | |
gohll "github.com/sasha-s/go-hll" |
from benchmarker import Benchmarker | |
from ua_parser import user_agent_parser as uap_parser | |
from woothee import parse as woothee_parse | |
from fast_woothee import parse as fw_parse | |
ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.104 Safari/537.36' | |
n = 1000 * 100 | |
with Benchmarker(n) as bench: |
# | |
# about | |
# ----- | |
# create magic file of font type list(type.mgk) for GraphicsMagick. | |
# use only on macOS. | |
# | |
# output file format | |
# ------------------ | |
# | |
# <?xml version="1.0"?> |
extern "C" { | |
pub fn otama_open(otama: *mut *mut otama_t, | |
config_path: *const ::std::os::raw::c_char) | |
-> otama_status_t; | |
} |
package main | |
import ( | |
"encoding/xml" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"strings" | |
) |
import time | |
import re | |
import requests | |
PAGE_SIZE = 100 | |
SLEEP_TIME = 60 # sec | |
BASE_URL = "https://api.github.com/search/repositories?q=rust+language:rust&sort=stars&order=desc&per_page=100&page=%d" | |
RE_PREFIX_RS_AND_DASH = re.compile("^rs-") | |
RE_PREFIX_RS_AND_DOT = re.compile("^rs\.") |