Skip to content

Instantly share code, notes, and snippets.

View d4rn0k's full-sized avatar

Konrad Szwedo d4rn0k

View GitHub Profile
@d4rn0k
d4rn0k / passportChecker.py
Created April 7, 2017 13:18
Simple passport readiness checker
import json
import requests
import re
print("Hello I am, checking your passport!\n")
firstUrl = "https://obywatel.gov.pl/wyjazd-za-granice/sprawdz-czy-twoj-paszport-jest-gotowy"
checkUrl = "https://obywatel.gov.pl/wyjazd-za-granice/sprawdz-czy-twoj-paszport-jest-gotowy?p_p_id" \
@d4rn0k
d4rn0k / macierz_mpi.cpp
Created November 3, 2016 19:37
macierz_mpi
#include <iostream>
#include <chrono>
#include <stdexcept>
#include <string>
#include <math.h>
#include "mpi.h"
#define MASTER 0
@d4rn0k
d4rn0k / MikroPlusj.js
Created November 10, 2014 12:15
Plusuje wszystkie wpisy na mikroblogu
javascript:(
function() {
function plusuj(selector) {
var $plusArea = $(selector);
$.each($plusArea, function(i, $val) {
if(!$($val).find("b").hasClass("voted")) {
$($val).find("a").click();
}
});
#!/bin/bash
for i in {0..3}
do
echo "zapisuje wyniki dla $((i+1)) watku"
cat wyniki.txt | grep "$i\$" > temp
sort temp > $i
done
#echo 'set terminal png font "/usr/share/fonts/dejavu/DejaVuSans.ttf" 20 size 1200,1000' > gnuplot.gnu