Skip to content

Instantly share code, notes, and snippets.

#!/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")
#!/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'
package main
import (
"fmt"
"unsafe"
)
type URLString string
type URLStrings []URLString
type Strings []string
package main
import (
"fmt"
"unsafe"
)
type URLString string
type URLStrings []URLString
type Strings []string
package main
import (
"bufio"
"io"
"log"
"net"
"os"
"syscall"
"time"
# 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
from __future__ import print_function
import sys
from collections import OrderedDict
import pkg_resources
# import pip
# import pipdeptree
class CircularDependencyError(ValueError):
$ 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
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import csv
import datetime
from time import sleep
import win32com.client
package main
import (
"encoding/json"
"fmt"
"reflect"
"sort"
)
func makeFieldName(name string, index int) string {