Skip to content

Instantly share code, notes, and snippets.

@mattslabs
mattslabs / zad1.cpp
Last active December 2, 2016 10:31
Wykp c++
#include <iostream>
using namespace std;
int main()
{
for(int i = 1; i<=9; i++){
if((i != 4)&&(i != 6)){
cout << i << endl;
}
@mattslabs
mattslabs / kindle.py
Created March 21, 2016 18:04
Kindle vocab
import sqlite3
conn = sqlite3.connect('/Users/tgg/Desktop/vocab.db')
c = conn.cursor()
cursor = conn.execute("SELECT word_key,usage FROM LOOKUPS")
file = open("words.txt", "w")
for row in cursor:
word = row[0]
usage = row[1]
save = "%s, %s" % (word, usage)
@mattslabs
mattslabs / words.py
Created March 20, 2016 11:55
Words downloader
import urllib2
import linecache
words = []
path = "Scieżka do pliku txt ze słówkami format słówka enter..."
count = len(open(path, 'rU').readlines())
for i in range(1,count+1):
wiersz = linecache.getline(path, i).strip('\n').replace(' ', "-")
words.append(wiersz)
@mattslabs
mattslabs / mp3downloader.py
Last active November 26, 2017 13:14
Words mp3 downloader
import urllib2
import linecache
words = []
path = "Wklej tu scieżkę do swojego pliku ze słówkami!"
count = len(open(path, 'rU').readlines())
for i in range(1,count+1):
wiersz = linecache.getline(path, i)
wiersz1 = wiersz.strip()