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
#!/bin/sh -e | |
branch=$1 | |
if ! git show-ref refs/heads/$branch > /dev/null; then | |
echo "No such branch: $branch" | |
exit -1 | |
fi | |
authordate=$(git log -n1 --date=short --pretty='format:%ad' "$branch") |
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
#!/bin/sh | |
JAR_FILE=tabula-1.0.1-jar-with-dependencies.jar | |
java -jar $JAR_FILE --lattice -f JSON "$1" 2> /dev/null | jq -r '.[1].data|.[]|map(.text)|select(any(.!=""))|@tsv' |
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" | |
"unsafe" | |
) | |
type URLString string | |
type URLStrings []URLString | |
type Strings []string |
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" | |
"unsafe" | |
) | |
type URLString string | |
type URLStrings []URLString | |
type Strings []string |
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 ( | |
"bufio" | |
"io" | |
"log" | |
"net" | |
"os" | |
"syscall" | |
"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
# https://teratail.com/questions/83177 | |
>>> import string | |
>>> a = string.ascii_lowercase | |
>>> print("\n".join( | |
... [" ".join(line) | |
... for r in [range(i * 16, i * 16 + 16, 1) for i in range(int((len(a) + 15) / 16))] | |
... for line in [[a[j] for j in r if j < len(a) and (j % 4 < 2)], | |
... [a[j] for j in r if j < len(a) and (j % 4 >= 2)]]])) | |
a b e f i j m n |
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 __future__ import print_function | |
import sys | |
from collections import OrderedDict | |
import pkg_resources | |
# import pip | |
# import pipdeptree | |
class CircularDependencyError(ValueError): |
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
$ python2.7 virtualenv-15.1.0/virtualenv.py testenv | |
New python executable in /private/tmp/testenv/bin/python2.7 | |
Also creating executable in /private/tmp/testenv/bin/python | |
Please make sure you remove any previous custom paths from your /Users/nozom/.pydistutils.cfg file. | |
Installing setuptools, pip, wheel... | |
Complete output from command /private/tmp/testenv/bin/python2.7 - setuptools pip wheel: | |
Collecting setuptools | |
Using cached setuptools-35.0.1-py2.py3-none-any.whl | |
Collecting pip | |
Collecting wheel |
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
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import sys | |
import csv | |
import datetime | |
from time import sleep | |
import win32com.client |
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/json" | |
"fmt" | |
"reflect" | |
"sort" | |
) | |
func makeFieldName(name string, index int) string { |