Open the pdf
generated and:
-
Remove
/Interpolate true
from the pdf. -
Change
/SMask 63 0 R
to/SMask 13 0 R
Sometimes I want a color just brighter or darker:
def shade_color(hex_color, offset):
new_color = hex_color
if len(hex_color) in [6, 7]:
if hex_color[0] == "#":
hex_color = hex_color[1:]
rgb_hex = np.array([float(int(hex_color[x:x+2], 16)) for x in [0, 2, 4]])
rgb_hex /= 255.0
""" | |
this code is here: http://tinyurl.com/hello-network | |
Twitter libraries: | |
https://dev.twitter.com/overview/api/twitter-libraries | |
Twitter Python library: | |
https://github.com/sixohsix/twitter | |
$ sudo pip2.7 install twitter |
# add a submodule in a repository: | |
git submodule add https://github.com/<user>/submodule_name | |
# update the submodule | |
cd submodule_name | |
git checkout master | |
git pull | |
cd .. | |
git add submodule_name | |
git commit -m "Updating submodule to latest" |
$ git clone --recurse-submodules https://github.com/macoj/rep |
/usr/bin/python2.7 `which ipcluster` start -n 40 | |
# or | |
/usr/bin/python3 `which ipcluster` start -n 40 |
#!/bin/bash | |
bb0=$1 | |
bb1=$2 | |
bb2=$3 | |
bb3=$4 | |
cat data.dat | awk -F '|' -v bb0="$bb0" -v bb1="$bb1" -v bb2="$bb2" -v bb3="$bb3" '$2 > bb0 && $2 < bb1 && $3 > bb2 && $3 < bb3 {print $0}' |
Use a .csvt with the same file name, including just one line about each column:
"Integer","Real","String"
or
"Integer(6)","Real(5.5)","String(22)"