Skip to content

Instantly share code, notes, and snippets.

View noisy's full-sized avatar

Krzysztof Szumny noisy

View GitHub Profile
@noisy
noisy / gist:6651191
Created September 21, 2013 14:31
#tysiacpompek
import images2gif
from PIL import ImageDraw
from PIL import ImageFont
font_tag = ImageFont.truetype("FreeMono.ttf", 24)
font_counter = ImageFont.truetype("FreeSansBold.ttf", 24)
frames = images2gif.readGif("bale.gif", False)
current = 746
done = 10
# -*- coding: utf-8 -*-
import wykop
import re
from datetime import datetime, timedelta
import time
def main():
cointags = ['bitcoin', 'junkcoin', 'zerocoin', 'worldcoin', 'kryptowaluty', 'digitalcoin', 'earthcoin', 'emunie', 'argentum', 'zetacoin', 'grandcoin', 'netcoin', 'mastercoin', 'elacoin', 'memorycoin', 'datacoin', 'peercoin', 'feathercoin', 'btc', 'cryptogenic', 'ripple', 'bbqcoin', 'catcoin', 'goldcoin', 'i0coin', 'ezcoin', 'infinitecoin', 'novacoin', 'ixcoin', 'casinocoin', 'phoenixcoin', 'stablecoin', 'joulecoin', 'freicoin', 'fastcoin', 'bytecoin', 'sexcoin', 'deutsche emark', 'bitcurex', 'primecoin', 'hobonickels', 'unobtanium', 'mining', 'diamond', 'terracoin', 'protoshares', 'anoncoin', 'devcoin', 'namecoin', 'yacoin', 'quark', 'noirbits', 'bitcoinowyjanusz', 'spots', 'lottocoin', 'globalcoin', 'cryptsy', 'craftcoin', 'orbitcoin', 'copperlark', 'tickets', 'nxt', 'dogecoinmarket', 'litecoin', 'mincoin', 'gamecoin', 'tagcoin', 'florincoin', 'franko', 'altcoin', 'betacoin', 'tigercoin', 'lt
#include <iostream>
#include <sstream>
#include <math.h>
#include <iomanip>
/////////////////////////////////
void format(char buf[]);
char* binrep(double d);
char* strinv(char tab[]);
char* dec2bin(unsigned int d);
int bin2dec(char tab[], int n);
import wykop
def main():
APPKEY=""
SECRETKEY=""
ACCOUNTKEY=""
api = WykopAPI(APPKEY, SECRETKEY)
api.authenticate(LOGIN, ACCOUNTKEY)
#!/bin/python
# -*- coding: utf-8 -*-
import wykop
import regex as re
def analyze(rownanie, r, odjemna, odjemnik, roznica, poprzednia_roznica, entry):
ok = odjemna == poprzednia_roznica
blad_w_dzialaniu = odjemna - odjemnik == roznica
blad_podstawy = "" if ok else poprzednia_roznica
#!/bin/python
# -*- coding: utf-8 -*-
import wykop
import urllib
import os.path
api = wykop.WykopAPI(appkey="", secretkey="", login="", password="")
data={}
// ==UserScript==
// @name big-facebook-chat-box
// @namespace Krzysztof Szumny
// @version 0.0.1
// @description big-facebook-chat-box
// @include http://*facebook.com/*
// @include https://*facebook.com/*
// @run-at document-start
// ==/UserScript==
// Initiate custom CSS function
#include <iostream.h>
/********************************************************************/
const int
uH[2][2]={{1},{-1}}, //Zaczynamy deklarowac stopnie utlenienia
uHe[2][1]={{0},{'\0'}},
uLi[2][1]={{1},{'\0'}}, //poszczegulnych pierwiastkach
uBe[2][1]={{2},{'\0'}}, // w [0][0]- wpisujemy elektroujemnosc
uB[2][1]={{3},{'\0'}}, // w [0][!0]-stopnie dodatnie
uC[2][2]={{2,4},{-4}}, // w [1][]- stopnie ujemne
uN[2][5]={{1,2,3,4,5},{-3}},
królowa królowy adj:sg:nom.voc:f:pos
królować królować verb:inf:imperf:nonrefl
królowali królować verb:praet:pl:m1.p1:ter:imperf:nonrefl
królowaliby królować verb:pot:pl:m1.p1:ter:imperf:nonrefl
królowalibyście królować verb:pot:pl:m1.p1:sec:imperf:nonrefl
królowalibyśmy królować verb:pot:pl:m1.p1:pri:imperf:nonrefl
królowaliście królować verb:praet:pl:m1.p1:sec:imperf:nonrefl
królowaliśmy królować verb:praet:pl:m1.p1:pri:imperf:nonrefl
królował królować verb:praet:sg:m1.m2.m3:ter:imperf:nonrefl
królowała królować verb:praet:sg:f:ter:imperf:nonrefl
@noisy
noisy / .bash_prompt.sh
Last active January 12, 2016 10:03
.bash_prompt.sh (support for git + virtualenv)
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.