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
### Keybase proof | |
I hereby claim: | |
* I am m-zajac on github. | |
* I am mzajac (https://keybase.io/mzajac) on keybase. | |
* I have a public key ASB_CRSHllboGQjxH_PPEVIl7CvY7XuYzXNW8eHNUImquwo | |
To claim this, I am signing this object: |
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 pklog | |
import ( | |
"context" | |
"github.com/sirupsen/logrus" | |
) | |
type ctxLogDataKeyType 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
# setup go project dir | |
alias gp='export GOPATH=${PWD%/src/*}; export PATH=$PATH:$GOPATH/bin' | |
# todos | |
export TODOS_FILE=~/todo.txt | |
alias te='vim $TODOS_FILE' | |
alias t='echo "TODOS:"; cat $TODOS_FILE; echo "----------------"' | |
t |
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
# alfabetyczna lista stacji rowerów w Poznaniu | |
import requests | |
response = requests.get('http://www.poznan.pl/mim/plan/map_service.html?mtype=pub_transport&co=class_objects&class_id=4720') | |
response.encoding = 'utf-8' # to potrzebne bo api nie zwraca nagłówka kodowania | |
data = response.json() | |
stations = [] | |
for el in data['features']: | |
stations.append(el['properties']['nazwa']) |
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/bash | |
SCRIPT=$(readlink -f $0) | |
SCRIPTPATH=`dirname $SCRIPT` | |
rm -rf s1 | |
rm -rf s2 | |
rm -rf s3 | |
rm -rf *.pid | |
rm -rf c | |
rm -rf c_log |