Skip to content

Instantly share code, notes, and snippets.

View petrjoachim's full-sized avatar
🦆
Getting ducks in a row

Petr Joachim petrjoachim

🦆
Getting ducks in a row
View GitHub Profile
@petrjoachim
petrjoachim / no_pass.py
Created May 17, 2013 12:44
Did pass return an exception?
try:
pass
except YouShallNotPassException:
print "You shall not pass!"
# did you say that with creepy Gandalf voice?
#!/usr/bin/python
# coding: utf-8
"""
V pondeli do 9:00 mi to vzdy poslete v excelu ve formatu
|| Sluzba || Projekt || Pocet odpracovanych hodin || Pocet lidi ||
report lze ziskat v neznamu, ocekava to vstup z exportu ktery najdete v
Neznam - sluzby - prehled prace - [filtr] - vypis - [exportovat pro excel]
#TODO
#TODO
#TODO TODO TODO TODO TODO TODOOOOOOOO
#!/usr/bin/python
# pip install BeautifulSoup requests
import requests
from BeautifulSoup import BeautifulSoup
response = requests.get("http://www.itworld.com/news")
html = response.text
@petrjoachim
petrjoachim / sget.sh
Last active August 29, 2015 13:57
Skript s bezpečně předaným heslem do wgetu pro dávkové použití.
#!/bin/bash -e
USER=$1
shift
read -s -p "Password for username $USER: " PASSWORD; echo
for FILE in "$@"
do
OUTPUT=`echo $FILE | sed "s/https*:\/\/\([^.]*\.[^.]*\).*\/\(.*\)/\1-\2/g"`
@petrjoachim
petrjoachim / data_10.txt
Created October 4, 2016 12:51
traveling datasets
A B 1 555
A B 2 555
A B 3 335
A B 4 690
A B 5 690
A B 7 690
A B 8 690
A B 10 690
A C 1 385
A C 2 725

Keybase proof

I hereby claim:

  • I am petrjoachim on github.
  • I am petrjoachim (https://keybase.io/petrjoachim) on keybase.
  • I have a public key whose fingerprint is 8282 EB37 9345 578C D229 8FBC BC22 61C8 7C42 D1FA

To claim this, I am signing this object:

id timestamp price iq first_name last_name email gender message description
1 8/3/2015 81.149 80.39 Maëlle Vasquez [email protected] Male eget congue eget semper rutrum nulla
2 1/19/2016 93.58 91.08 Méng James [email protected] Male ../../../../../../../../../../../etc/passwd%00 massa id lobortis convallis
3 7/30/2015 44.4654 80.42 Josée Hansen [email protected] Male porttitor lacus at turpis donec posuere metus
4 1/24/2016 39.4517 88.47 Pénélope Reynolds [email protected] quam pharetra magna ac consequat metus sapien ut nunc

Keybase proof

I hereby claim:

  • I am petrjoachim on github.
  • I am petrjoachim (https://keybase.io/petrjoachim) on keybase.
  • I have a public key whose fingerprint is 1D6F B039 B18D 16F8 D4D9 13C3 D79A 4F9B 0B65 88C1

To claim this, I am signing this object: