summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-19 22:45:02 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-19 22:45:02 +0100
commitc282bcc3e0c0695dc78e62e88d7727eba7fdb840 (patch)
tree7f478751464291ea4040b945aa861221f67187d0
parentef2d61f58b5d8a55d88dd308ad0f6aa64e74ee4a (diff)
downloadnooz-c282bcc3e0c0695dc78e62e88d7727eba7fdb840.tar.gz
nooz-c282bcc3e0c0695dc78e62e88d7727eba7fdb840.tar.bz2
nooz-c282bcc3e0c0695dc78e62e88d7727eba7fdb840.zip
I wrote script to miniaturize images.
-rw-r--r--minimize_notes.py55
-rw-r--r--notemanager.py22
-rw-r--r--notes.dbbin0 -> 10240 bytes
-rw-r--r--notes.py206
-rw-r--r--static/.directory3
-rw-r--r--static/mini/PE/10stycznia2013/00.jpgbin0 -> 8896 bytes
-rw-r--r--static/mini/PE/10stycznia2013/01.jpgbin0 -> 8281 bytes
-rw-r--r--static/mini/PE/11padziernika2012/00.jpgbin0 -> 6874 bytes
-rw-r--r--static/mini/PE/11padziernika2012/01.jpgbin0 -> 6814 bytes
-rw-r--r--static/mini/PE/13grudnia2012/00.jpgbin0 -> 10619 bytes
-rw-r--r--static/mini/PE/13grudnia2012/01.jpgbin0 -> 9108 bytes
-rw-r--r--static/mini/PE/14listopada2012/00.jpgbin0 -> 7780 bytes
-rw-r--r--static/mini/PE/14listopada2012/01.jpgbin0 -> 5679 bytes
-rw-r--r--static/mini/PE/18padziernika2012/00.jpgbin0 -> 8860 bytes
-rw-r--r--static/mini/PE/18padziernika2012/01.jpgbin0 -> 9499 bytes
-rw-r--r--static/mini/PE/18padziernika2012/02.jpgbin0 -> 8578 bytes
-rw-r--r--static/mini/PE/18padziernika2012/03.jpgbin0 -> 7299 bytes
-rw-r--r--static/mini/PE/22listopada2012/00.jpgbin0 -> 6769 bytes
-rw-r--r--static/mini/PE/22listopada2012/01.jpgbin0 -> 5794 bytes
-rw-r--r--static/mini/PE/22listopada2012/02.jpgbin0 -> 5374 bytes
-rw-r--r--static/mini/PE/24padziernika2012/00.jpgbin0 -> 5223 bytes
-rw-r--r--static/mini/PE/24padziernika2012/01.jpgbin0 -> 3011 bytes
-rw-r--r--static/mini/PE/29listopada2012/00.jpgbin0 -> 7247 bytes
-rw-r--r--static/mini/PE/29listopada2012/01.jpgbin0 -> 6247 bytes
-rw-r--r--static/mini/PE/3stycznia2013/00.jpgbin0 -> 11063 bytes
-rw-r--r--static/mini/PE/3stycznia2013/01.jpgbin0 -> 8630 bytes
-rw-r--r--static/mini/PE/4padziernika2012/00.jpgbin0 -> 10236 bytes
-rw-r--r--static/mini/PE/4padziernika2012/01.jpgbin0 -> 10177 bytes
-rw-r--r--static/mini/PE/4padziernika2012/02.jpgbin0 -> 8720 bytes
-rw-r--r--static/mini/PE/6grudnia2012/00.jpgbin0 -> 9461 bytes
-rw-r--r--static/mini/PE/8listopada2012/00.jpgbin0 -> 9279 bytes
-rw-r--r--static/mini/PE/8listopada2012/01.jpgbin0 -> 8762 bytes
-rw-r--r--static/mini/PE/8listopada2012/02.jpgbin0 -> 7615 bytes
-rw-r--r--static/mini/analiza3/10padziernika2012/00.jpgbin0 -> 11299 bytes
-rw-r--r--static/mini/analiza3/10padziernika2012/01.jpgbin0 -> 10502 bytes
-rw-r--r--static/mini/analiza3/10padziernika2012/02.jpgbin0 -> 10771 bytes
-rw-r--r--static/mini/analiza3/10padziernika2012/03.jpgbin0 -> 8214 bytes
-rw-r--r--static/mini/analiza3/12grudnia2012/00.jpgbin0 -> 11511 bytes
-rw-r--r--static/mini/analiza3/12grudnia2012/01.jpgbin0 -> 11384 bytes
-rw-r--r--static/mini/analiza3/12grudnia2012/02.jpgbin0 -> 11559 bytes
-rw-r--r--static/mini/analiza3/12grudnia2012/03.jpgbin0 -> 10525 bytes
-rw-r--r--static/mini/analiza3/17padziernika2012/00.jpgbin0 -> 9726 bytes
-rw-r--r--static/mini/analiza3/17padziernika2012/01.jpgbin0 -> 9216 bytes
-rw-r--r--static/mini/analiza3/17padziernika2012/02.jpgbin0 -> 9069 bytes
-rw-r--r--static/mini/analiza3/19grudnia2012/00.jpgbin0 -> 6202 bytes
-rw-r--r--static/mini/analiza3/19grudnia2012/01.jpgbin0 -> 7354 bytes
-rw-r--r--static/mini/analiza3/19grudnia2012/02.jpgbin0 -> 6933 bytes
-rw-r--r--static/mini/analiza3/19grudnia2012/03.jpgbin0 -> 2401 bytes
-rw-r--r--static/mini/analiza3/21listopada2012/00.jpgbin0 -> 11021 bytes
-rw-r--r--static/mini/analiza3/21listopada2012/01.jpgbin0 -> 11207 bytes
-rw-r--r--static/mini/analiza3/21listopada2012/02.jpgbin0 -> 10461 bytes
-rw-r--r--static/mini/analiza3/21listopada2012/03.jpgbin0 -> 10907 bytes
-rw-r--r--static/mini/analiza3/24padziernika2012/00.jpgbin0 -> 9912 bytes
-rw-r--r--static/mini/analiza3/24padziernika2012/01.jpgbin0 -> 8801 bytes
-rw-r--r--static/mini/analiza3/24padziernika2012/02.jpgbin0 -> 9257 bytes
-rw-r--r--static/mini/analiza3/24padziernika2012/03.jpgbin0 -> 9009 bytes
-rw-r--r--static/mini/analiza3/24padziernika2012/04.jpgbin0 -> 9031 bytes
-rw-r--r--static/mini/analiza3/28listopada2012/00.jpgbin0 -> 11167 bytes
-rw-r--r--static/mini/analiza3/28listopada2012/01.jpgbin0 -> 11261 bytes
-rw-r--r--static/mini/analiza3/28listopada2012/02.jpgbin0 -> 11577 bytes
-rw-r--r--static/mini/analiza3/28listopada2012/03.jpgbin0 -> 10663 bytes
-rw-r--r--static/mini/analiza3/2stycznia2013/.directory4
-rw-r--r--static/mini/analiza3/2stycznia2013/00.jpgbin0 -> 8968 bytes
-rw-r--r--static/mini/analiza3/2stycznia2013/01.jpgbin0 -> 8827 bytes
-rw-r--r--static/mini/analiza3/2stycznia2013/02.jpgbin0 -> 8126 bytes
-rw-r--r--static/mini/analiza3/2stycznia2013/03.jpgbin0 -> 7240 bytes
-rw-r--r--static/mini/analiza3/31padziernika2012/00.jpgbin0 -> 10282 bytes
-rw-r--r--static/mini/analiza3/31padziernika2012/01.jpgbin0 -> 9673 bytes
-rw-r--r--static/mini/analiza3/31padziernika2012/02.jpgbin0 -> 10489 bytes
-rw-r--r--static/mini/analiza3/31padziernika2012/03.jpgbin0 -> 9460 bytes
-rw-r--r--static/mini/analiza3/3padziernik2012/00.jpgbin0 -> 9550 bytes
-rw-r--r--static/mini/analiza3/3padziernik2012/01.jpgbin0 -> 7052 bytes
-rw-r--r--static/mini/analiza3/3padziernik2012/02.jpgbin0 -> 8660 bytes
-rw-r--r--static/mini/analiza3/3padziernik2012/03.jpgbin0 -> 2938 bytes
-rw-r--r--static/mini/analiza3/5grudnia2012/00.jpgbin0 -> 11103 bytes
-rw-r--r--static/mini/analiza3/5grudnia2012/01.jpgbin0 -> 11160 bytes
-rw-r--r--static/mini/analiza3/5grudnia2012/02.jpgbin0 -> 11300 bytes
-rw-r--r--static/mini/analiza3/7listopada2012/00.jpgbin0 -> 9893 bytes
-rw-r--r--static/mini/analiza3/7listopada2012/01.jpgbin0 -> 9758 bytes
-rw-r--r--static/mini/analiza3/7listopada2012/02.jpgbin0 -> 10106 bytes
-rw-r--r--static/mini/analiza3/7listopada2012/03.jpgbin0 -> 9552 bytes
-rw-r--r--static/mini/analiza3/7listopada2012/04.jpgbin0 -> 9074 bytes
-rw-r--r--static/mini/analiza3/9stycznia2013/00.jpgbin0 -> 11062 bytes
-rw-r--r--static/mini/analiza3/9stycznia2013/01.jpgbin0 -> 11256 bytes
-rw-r--r--static/mini/analiza3/9stycznia2013/02.jpgbin0 -> 10580 bytes
-rw-r--r--static/mini/analiza3/9stycznia2013/03.jpgbin0 -> 10583 bytes
-rw-r--r--static/mini/chemia/10padziernika2012/00.jpgbin0 -> 10694 bytes
-rw-r--r--static/mini/chemia/10padziernika2012/01.jpgbin0 -> 10471 bytes
-rw-r--r--static/mini/chemia/12grudnia/0003.jpegbin0 -> 10428 bytes
-rw-r--r--static/mini/chemia/12grudnia/0004.jpegbin0 -> 9913 bytes
-rw-r--r--static/mini/chemia/12grudnia2012/00.jpgbin0 -> 10428 bytes
-rw-r--r--static/mini/chemia/12grudnia2012/01.jpgbin0 -> 9913 bytes
-rw-r--r--static/mini/chemia/17padziernika2012/00.jpgbin0 -> 9759 bytes
-rw-r--r--static/mini/chemia/17padziernika2012/01.jpgbin0 -> 7842 bytes
-rw-r--r--static/mini/chemia/19grudnia/0005.jpegbin0 -> 8105 bytes
-rw-r--r--static/mini/chemia/19grudnia/0006.jpegbin0 -> 8260 bytes
-rw-r--r--static/mini/chemia/19grudnia2012/00.jpgbin0 -> 8105 bytes
-rw-r--r--static/mini/chemia/19grudnia2012/01.jpgbin0 -> 8260 bytes
-rw-r--r--static/mini/chemia/24padziernika2012/00.jpgbin0 -> 9276 bytes
-rw-r--r--static/mini/chemia/24padziernika2012/01.jpgbin0 -> 8346 bytes
-rw-r--r--static/mini/chemia/24padziernika2012/02.jpgbin0 -> 9174 bytes
-rw-r--r--static/mini/chemia/28listopada/0005.jpegbin0 -> 11641 bytes
-rw-r--r--static/mini/chemia/28listopada/0006.jpegbin0 -> 10877 bytes
-rw-r--r--static/mini/chemia/28listopada/0007.jpegbin0 -> 10401 bytes
-rw-r--r--static/mini/chemia/28listopada2012/00.jpgbin0 -> 11641 bytes
-rw-r--r--static/mini/chemia/28listopada2012/01.jpgbin0 -> 10877 bytes
-rw-r--r--static/mini/chemia/28listopada2012/02.jpgbin0 -> 10401 bytes
-rw-r--r--static/mini/chemia/2stycznia/.directory4
-rw-r--r--static/mini/chemia/2stycznia/0017.jpegbin0 -> 10851 bytes
-rw-r--r--static/mini/chemia/2stycznia/0018.jpegbin0 -> 10362 bytes
-rw-r--r--static/mini/chemia/2stycznia/0019.jpegbin0 -> 9810 bytes
-rw-r--r--static/mini/chemia/2stycznia2013/00.jpgbin0 -> 10851 bytes
-rw-r--r--static/mini/chemia/2stycznia2013/01.jpgbin0 -> 10362 bytes
-rw-r--r--static/mini/chemia/2stycznia2013/02.jpgbin0 -> 9810 bytes
-rw-r--r--static/mini/chemia/3padziernika2012/00.jpgbin0 -> 7961 bytes
-rw-r--r--static/mini/chemia/7listopada/0004.jpegbin0 -> 9818 bytes
-rw-r--r--static/mini/chemia/7listopada/0005.jpegbin0 -> 9311 bytes
-rw-r--r--static/mini/chemia/7listopada/0006.jpegbin0 -> 8612 bytes
-rw-r--r--static/mini/chemia/7listopada2012/00.jpgbin0 -> 9818 bytes
-rw-r--r--static/mini/chemia/7listopada2012/01.jpgbin0 -> 9311 bytes
-rw-r--r--static/mini/chemia/7listopada2012/02.jpgbin0 -> 8612 bytes
-rw-r--r--static/mini/chemia/9stycznia/0020.jpegbin0 -> 11028 bytes
-rw-r--r--static/mini/chemia/9stycznia/0021.jpegbin0 -> 9361 bytes
-rw-r--r--static/mini/chemia/9stycznia2013/00.jpgbin0 -> 11028 bytes
-rw-r--r--static/mini/chemia/9stycznia2013/01.jpgbin0 -> 9361 bytes
-rw-r--r--static/mini/chemia/kolokwia/1015_ch_wykl_kol2.jpgbin0 -> 1217 bytes
-rw-r--r--static/mini/chemia/kolokwia/kolos_poprzedni_rok_a.jpgbin0 -> 1334 bytes
-rw-r--r--static/mini/chemia/kolokwia/kolos_poprzedni_rok_b.jpgbin0 -> 1516 bytes
-rw-r--r--static/mini/chemia/kolokwia/pytania_na_kolokwium.JPGbin0 -> 13625 bytes
-rw-r--r--static/mini/mechanika/12padziernika2012/00.jpgbin0 -> 9781 bytes
-rw-r--r--static/mini/mechanika/12padziernika2012/01.jpgbin0 -> 10409 bytes
-rw-r--r--static/mini/mechanika/12padziernika2012/02.jpgbin0 -> 9436 bytes
-rw-r--r--static/mini/mechanika/12padziernika2012/03.jpgbin0 -> 8720 bytes
-rw-r--r--static/mini/mechanika/14grudnia2012/00.jpgbin0 -> 11538 bytes
-rw-r--r--static/mini/mechanika/14grudnia2012/01.jpgbin0 -> 10297 bytes
-rw-r--r--static/mini/mechanika/16listopada2012/00.jpgbin0 -> 5826 bytes
-rw-r--r--static/mini/mechanika/19padziernika2012/00.jpgbin0 -> 9779 bytes
-rw-r--r--static/mini/mechanika/19padziernika2012/01.jpgbin0 -> 9314 bytes
-rw-r--r--static/mini/mechanika/19padziernika2012/02.jpgbin0 -> 9154 bytes
-rw-r--r--static/mini/mechanika/23listopada2012/00.jpgbin0 -> 5518 bytes
-rw-r--r--static/mini/mechanika/23listopada2012/01.jpgbin0 -> 6107 bytes
-rw-r--r--static/mini/mechanika/26padziernika2012/00.jpgbin0 -> 9975 bytes
-rw-r--r--static/mini/mechanika/26padziernika2012/01.jpgbin0 -> 8814 bytes
-rw-r--r--static/mini/mechanika/26padziernika2012/02.jpgbin0 -> 8573 bytes
-rw-r--r--static/mini/mechanika/30listopada2012/00.jpgbin0 -> 9592 bytes
-rw-r--r--static/mini/mechanika/30listopada2012/01.jpgbin0 -> 7778 bytes
-rw-r--r--static/mini/mechanika/4stycznia2013/00.jpgbin0 -> 10879 bytes
-rw-r--r--static/mini/mechanika/4stycznia2013/01.jpgbin0 -> 11495 bytes
-rw-r--r--static/mini/mechanika/5padziernika2012/00.jpgbin0 -> 11405 bytes
-rw-r--r--static/mini/mechanika/5padziernika2012/01.jpgbin0 -> 7430 bytes
-rw-r--r--static/mini/mechanika/7grudnia2012/00.jpgbin0 -> 11365 bytes
-rw-r--r--static/mini/mechanika/7grudnia2012/01.jpgbin0 -> 10688 bytes
-rw-r--r--static/mini/mechanika/7grudnia2012/02.jpgbin0 -> 9522 bytes
-rw-r--r--static/mini/mechanika/9listopada2012/00.jpgbin0 -> 9999 bytes
-rw-r--r--static/mini/mechanika/9listopada2012/01.jpgbin0 -> 9557 bytes
-rw-r--r--static/mini/mechanika/9listopada2012/02.jpgbin0 -> 9441 bytes
-rw-r--r--templates/layout.html12
-rw-r--r--templates/pyvis.py11
158 files changed, 165 insertions, 152 deletions
diff --git a/minimize_notes.py b/minimize_notes.py
new file mode 100644
index 0000000..ae019d9
--- /dev/null
+++ b/minimize_notes.py
@@ -0,0 +1,55 @@
+import Image
+import os
+
+def make_miniatures_of_notes(path, div):
+ subjects = os.listdir(path)
+ if "bootstrap" in subjects:
+ subjects.remove("bootstrap")
+ if "miniatures" in subjects:
+ subjects.remove("miniatures")
+ for subject in subjects:
+ for date in os.listdir(path+"/" + subject):
+ notes = []
+ for note in os.listdir(path+"/" + subject +"/" + date ):
+ notes.append({"tags": "none", "name": note})
+ image_path = "/" + subject +"/" + date + "/" + note
+ miniature = make_miniature(path + image_path, div)
+ if miniature:
+ print "creating dir " + path + "/mini" + "/" + subject +"/" + date
+ make_reccurent_dir(path + "/mini" + "/" + subject +"/" + date)
+ print "saving file " + path + "/mini" + image_path
+ miniature.save(path + "/mini" + image_path)
+
+def make_reccurent_dir(path):
+ dirs = path.split("/")
+ already_made = ""
+ for directory in dirs:
+ try:
+ print "creating: " + already_made + directory
+ os.mkdir(already_made + directory)
+ except OSError:
+ pass
+ already_made += directory + "/"
+
+def make_miniature(path, div):
+ print "opening path: " + path
+ try:
+ im1 = Image.open(path)
+ width = im1.size[0] / div
+ height = im1.size[1] / div
+ im2 = im1.resize((width, height), Image.ANTIALIAS)
+ except:
+ print "couln't open file " + path
+ return
+ return im2
+
+def main():
+ path = raw_input("Path: ")
+ div = int(raw_input("How many times smaller?: "))
+ try:
+ make_miniatures_of_notes(path, div)
+ except OSError:
+ pass
+
+if __name__ == "__main__":
+ main() \ No newline at end of file
diff --git a/notemanager.py b/notemanager.py
index c435645..be51026 100644
--- a/notemanager.py
+++ b/notemanager.py
@@ -1,25 +1,19 @@
# -*- coding: utf-8 -*-
import os
-from contextlib import closing
import sqlite3
-DATABASE = '/tmp/notes.db'
+DATABASE = 'notes.db'
def add_all_notes_in_dir(path):
- os.chdir(path)
- subjects = os.listdir(os.getcwd())
+ subjects = os.listdir(path)
if "bootstrap" in subjects:
subjects.remove("bootstrap")
for subject in subjects:
- os.chdir(subject)
- for date in os.listdir(os.getcwd()):
+ for date in os.listdir(path+"/" + subject):
notes = []
- os.chdir(date)
- for note in os.listdir(os.getcwd()):
+ for note in os.listdir(path+"/" + subject +"/" + date ):
notes.append({"tags": "none", "name": note})
add_note(subject, date, notes)
- os.chdir("..")
- os.chdir("..")
def add_note(subject, datestring, notes):
@@ -34,16 +28,10 @@ def add_note(subject, datestring, notes):
def connect_db():
return sqlite3.connect(DATABASE)
-def add_notes_to_db():
-
- query_result = query_db("select * from pages ")
- print query_result
- if not query_result:
- add_note("analiza", "9stycznia", notes)
- db.close()
def init_db():
db = connect_db()
+ print "initialize database..."
f = open("schema.sql", "r")
db.cursor().executescript(f.read())
db.commit()
diff --git a/notes.db b/notes.db
new file mode 100644
index 0000000..8dd48fc
--- /dev/null
+++ b/notes.db
Binary files differ
diff --git a/notes.py b/notes.py
index 326031f..39a3f3d 100644
--- a/notes.py
+++ b/notes.py
@@ -12,7 +12,7 @@ from subprocess import Popen, PIPE
import smtplib
# configuration
-DATABASE = '/tmp/notes.db'
+DATABASE = 'notes.db'
DEBUG = True
SECRET_KEY = 'development key'
USERNAME = 'admin'
@@ -22,21 +22,25 @@ app = Flask(__name__)
app.config.from_object(__name__)
class Thumb:
- def __init__(self, source, href, tags):
- self.src = source
- self.href = href
- self.tags = tags
+ def __init__(self, source, href, tags):
+ self.src = source
+ self.href = href
+ self.tags = tags
+#DB functions
def connect_db():
- return sqlite3.connect(app.config['DATABASE'])
+ return sqlite3.connect(app.config['DATABASE'])
def init_db():
- with closing(connect_db()) as db:
- with app.open_resource('schema.sql') as f:
- db.cursor().executescript(f.read())
- db.commit()
+ with closing(connect_db()) as db:
+ with app.open_resource('schema.sql') as f:
+ db.cursor().executescript(f.read())
+ db.commit()
def query_db(query, args=(), one=False):
+ """
+ Simple wrapper around query
+ """
cur = g.db.execute(query, args)
rv = [dict((cur.description[idx][0], value)
for idx, value in enumerate(row)) for row in cur.fetchall()]
@@ -44,156 +48,110 @@ def query_db(query, args=(), one=False):
@app.before_request
def before_request():
- try:
- g.db = g._db.cursor()
- except AttributeError:
- g._db = connect_db()
- g.db = g._db.cursor()
+ try:
+ g.db = g._db.cursor()
+ except AttributeError:
+ g._db = connect_db()
+ g.db = g._db.cursor()
@app.teardown_request
def teardown_request(exception):
- try:
- g.db.close()
- except AttributeError:
- pass
-
+ try:
+ g.db.close()
+ except AttributeError:
+ pass
+
+#VIEWS
@app.route('/')
@app.route('/view')
@app.route('/view/<subject>/<datestring>')
-def home(subject= "chemia", datestring= "12grudnia"):
- other_dates = [date["datestring"] for date in get_possible_dates(subject)]
- all_dates = [date["datestring"] for date in get_all_dates()]
- all_subjects = [sub["subject"] for sub in get_all_subjects()]
-
- if datestring in other_dates:
- other_dates.remove(datestring)
- thumbs_info = {"subject": subject, "datestring": datestring, "other_dates": other_dates}
- thumbs = get_thumbs(subject, datestring)
- thumbs = [dict(href=thumb.href, src=thumb.src) for thumb in thumbs]
- main_page_src=thumbs[0]["href"]
- print thumbs
- return render_template('index.html', thumbs=thumbs, main_page_src=main_page_src,thumbs_info=thumbs_info,
- all_dates=all_dates, all_subjects=all_subjects)
+def home(subject= "chemia", datestring= "12grudnia2012"):
+ other_dates = [date["datestring"] for date in get_possible_dates(subject)]
+ all_dates = [date["datestring"] for date in get_all_dates()]
+ all_subjects = [sub["subject"] for sub in get_all_subjects()]
+ if datestring in other_dates:
+ other_dates.remove(datestring)
+ thumbs_info = {"subject": subject, "datestring": datestring, "other_dates": other_dates}
+ thumbs = get_thumbs(subject, datestring)
+ thumbs = [dict(href=thumb.href, src=thumb.src) for thumb in thumbs]
+ main_page_src=thumbs[0]["href"]
+ return render_template('index.html', thumbs=thumbs, main_page_src=main_page_src,thumbs_info=thumbs_info,
+ all_dates=all_dates, all_subjects=all_subjects)
@app.route('/subject/<subject>')
def show_subject(subject):
- dates = [date["datestring"] for date in get_possible_dates(subject)]
- all_dates = [date["datestring"] for date in get_all_dates()]
- all_subjects = [sub["subject"] for sub in get_all_subjects()]
- return render_template('subject.html', subject=subject, dates=dates, all_dates=all_dates, all_subjects=all_subjects)
+ dates = [date["datestring"] for date in get_possible_dates(subject)]
+ all_dates = [date["datestring"] for date in get_all_dates()]
+ all_subjects = [sub["subject"] for sub in get_all_subjects()]
+ return render_template('subject.html', subject=subject, dates=dates, all_dates=all_dates, all_subjects=all_subjects)
@app.route('/date/<datestring>')
def show_date(datestring):
- all_dates = [date["datestring"] for date in get_all_dates()]
- all_subjects = [sub["subject"] for sub in get_all_subjects()]
- notes = get_notes_for_day(datestring)
-
- separated_notes = {}
-
- for note in notes:
- if not note["subject"] in separated_notes:
- separated_notes[note["subject"]] = []
- separated_notes[note["subject"]].append(note)
+ all_dates = [date["datestring"] for date in get_all_dates()]
+ all_subjects = [sub["subject"] for sub in get_all_subjects()]
+ notes = get_notes_for_day(datestring)
+ separated_notes = {}
+ for note in notes:
+ if not note["subject"] in separated_notes:
+ separated_notes[note["subject"]] = []
+ separated_notes[note["subject"]].append(note)
- print separated_notes
- return render_template('date.html', date=datestring, all_dates=all_dates, all_subjects=all_subjects, separated_notes=separated_notes)
+ return render_template('date.html', date=datestring, all_dates=all_dates, all_subjects=all_subjects, separated_notes=separated_notes)
@app.route('/search')
def show_search():
- all_dates = [date["datestring"] for date in get_all_dates()]
- all_subjects = [sub["subject"] for sub in get_all_subjects()]
- return render_template('search.html', all_dates=all_dates, all_subjects=all_subjects )
+ all_dates = [date["datestring"] for date in get_all_dates()]
+ all_subjects = [sub["subject"] for sub in get_all_subjects()]
+ return render_template('search.html', all_dates=all_dates, all_subjects=all_subjects )
@app.route('/about')
def about():
- all_dates = [date["datestring"] for date in get_all_dates()]
- all_subjects = [sub["subject"] for sub in get_all_subjects()]
- return render_template('about.html', all_dates=all_dates, all_subjects=all_subjects )
+ all_dates = [date["datestring"] for date in get_all_dates()]
+ all_subjects = [sub["subject"] for sub in get_all_subjects()]
+ return render_template('about.html', all_dates=all_dates, all_subjects=all_subjects )
+#HELPERS
def add_note(subject, datestring, notes):
g.db.execute('insert into notes (subject, datestring ) values (?, ?)', [subject, datestring])
note_id = g.db.lastrowid
for note in notes:
- g.db.execute('insert into pages (note_id, name, tags ) values (?, ?, ?)', [note_id, note["name"], note["tags"]])
+ g.db.execute('insert into pages (note_id, name, tags ) values (?, ?, ?)', [note_id, note["name"], note["tags"]])
g._db.commit()
def create_thumb(subject, datestring, name, tags):
- src = subject + "/" + datestring + "/" + name
- href = src
- thumb = Thumb(src, href, tags)
- return thumb
+ src = subject + "/" + datestring + "/" + name
+ href = src
+ thumb = Thumb(src, href, tags)
+ return thumb
def get_thumbs(subject, datestring=""):
- if(datestring==""):
- query_result = query_db("select pages.* from pages left join notes on notes.id = pages.note_id where notes.subject = ?", [subject,])
- else:
- query_result = query_db("select pages.* from pages left join notes on notes.id = pages.note_id \
- where notes.subject = ? and datestring = ?", [subject, datestring])
- print "qr " + str(query_result)
- return [create_thumb(subject, datestring, t["name"], t["tags"]) for t in query_result ]
-
+ if(datestring==""):
+ query_result = query_db("select pages.* from pages left join notes on notes.id = pages.note_id where notes.subject = ?", [subject,])
+ else:
+ query_result = query_db("select pages.* from pages left join notes on notes.id = pages.note_id \
+ where notes.subject = ? and datestring = ?", [subject, datestring])
+ return [create_thumb(subject, datestring, t["name"], t["tags"]) for t in query_result ]
+
def get_possible_dates(subject):
- dates = query_db("select distinct datestring from notes where subject = ? ", [subject])
- return dates
+ dates = query_db("select distinct datestring from notes where subject = ? ", [subject])
+ return dates
def get_notes_for_day(datestring):
- query_result = query_db("select pages.*,notes.subject from pages left join notes on notes.id = pages.note_id \
- where datestring = ?", [datestring])
-
- return [{"subject": t["subject"], "datestring": datestring, "name": t["name"]}for t in query_result ]
+ """returns pages which where written that day (daystring) with other info"""
+ query_result = query_db("select pages.*,notes.subject from pages left join notes on notes.id = pages.note_id \
+ where datestring = ?", [datestring])
+ return [{"subject": t["subject"], "datestring": datestring, "name": t["name"]}for t in query_result ]
def get_all_dates():
- dates = query_db("select distinct datestring from notes ")
- return dates
+ dates = query_db("select distinct datestring from notes ")
+ return dates
def get_all_subjects():
- subjects = query_db("select distinct subject from notes ")
- return subjects
-
-@app.before_first_request
-def add_notes_data_to_db():
- init_db()
- g._db = connect_db()
- g.db = g._db.cursor()
- query_result = query_db("select * from pages ")
- print query_result
- if not query_result:
- notes = []
- notes.append({"name": "0003.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0004.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- add_note("chemia", "12grudnia", notes)
-
- notes = []
- notes.append({"name": "0005.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0006.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- add_note("chemia", "19grudnia", notes)
-
- notes = []
- notes.append({"name": "0005.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0006.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0007.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- add_note("chemia", "28listopada", notes)
-
- notes = []
- notes.append({"name": "0009.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0010.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0011.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0012.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- add_note("analiza", "2stycznia", notes)
-
- notes = []
- notes.append({"name": "0013.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0014.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0015.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- notes.append({"name": "0016.jpeg", "tags": u"karbonylek, Fe, żelazo, CO"})
- add_note("analiza", "9stycznia", notes)
-
-
-
- g.db.close()
+ subjects = query_db("select distinct subject from notes ")
+ return subjects
+
-if __name__ == '__main__':
-
- app.run()
+if __name__ == '__main__':
+ app.run()
diff --git a/static/.directory b/static/.directory
new file mode 100644
index 0000000..71b91af
--- /dev/null
+++ b/static/.directory
@@ -0,0 +1,3 @@
+[Dolphin]
+Timestamp=2013,1,19,22,19,36
+Version=3
diff --git a/static/mini/PE/10stycznia2013/00.jpg b/static/mini/PE/10stycznia2013/00.jpg
new file mode 100644
index 0000000..c935c54
--- /dev/null
+++ b/static/mini/PE/10stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/PE/10stycznia2013/01.jpg b/static/mini/PE/10stycznia2013/01.jpg
new file mode 100644
index 0000000..c80d343
--- /dev/null
+++ b/static/mini/PE/10stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/PE/11padziernika2012/00.jpg b/static/mini/PE/11padziernika2012/00.jpg
new file mode 100644
index 0000000..3dcab49
--- /dev/null
+++ b/static/mini/PE/11padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/11padziernika2012/01.jpg b/static/mini/PE/11padziernika2012/01.jpg
new file mode 100644
index 0000000..9fdbc55
--- /dev/null
+++ b/static/mini/PE/11padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/13grudnia2012/00.jpg b/static/mini/PE/13grudnia2012/00.jpg
new file mode 100644
index 0000000..7cb7879
--- /dev/null
+++ b/static/mini/PE/13grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/13grudnia2012/01.jpg b/static/mini/PE/13grudnia2012/01.jpg
new file mode 100644
index 0000000..12c8d01
--- /dev/null
+++ b/static/mini/PE/13grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/14listopada2012/00.jpg b/static/mini/PE/14listopada2012/00.jpg
new file mode 100644
index 0000000..734c7ab
--- /dev/null
+++ b/static/mini/PE/14listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/14listopada2012/01.jpg b/static/mini/PE/14listopada2012/01.jpg
new file mode 100644
index 0000000..8c158f5
--- /dev/null
+++ b/static/mini/PE/14listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/18padziernika2012/00.jpg b/static/mini/PE/18padziernika2012/00.jpg
new file mode 100644
index 0000000..9f458f4
--- /dev/null
+++ b/static/mini/PE/18padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/18padziernika2012/01.jpg b/static/mini/PE/18padziernika2012/01.jpg
new file mode 100644
index 0000000..2cbe3cf
--- /dev/null
+++ b/static/mini/PE/18padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/18padziernika2012/02.jpg b/static/mini/PE/18padziernika2012/02.jpg
new file mode 100644
index 0000000..33dcfc7
--- /dev/null
+++ b/static/mini/PE/18padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/PE/18padziernika2012/03.jpg b/static/mini/PE/18padziernika2012/03.jpg
new file mode 100644
index 0000000..e4eb6b8
--- /dev/null
+++ b/static/mini/PE/18padziernika2012/03.jpg
Binary files differ
diff --git a/static/mini/PE/22listopada2012/00.jpg b/static/mini/PE/22listopada2012/00.jpg
new file mode 100644
index 0000000..6cf8407
--- /dev/null
+++ b/static/mini/PE/22listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/22listopada2012/01.jpg b/static/mini/PE/22listopada2012/01.jpg
new file mode 100644
index 0000000..39df27a
--- /dev/null
+++ b/static/mini/PE/22listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/22listopada2012/02.jpg b/static/mini/PE/22listopada2012/02.jpg
new file mode 100644
index 0000000..0eb4afb
--- /dev/null
+++ b/static/mini/PE/22listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/PE/24padziernika2012/00.jpg b/static/mini/PE/24padziernika2012/00.jpg
new file mode 100644
index 0000000..f4df543
--- /dev/null
+++ b/static/mini/PE/24padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/24padziernika2012/01.jpg b/static/mini/PE/24padziernika2012/01.jpg
new file mode 100644
index 0000000..04fd0af
--- /dev/null
+++ b/static/mini/PE/24padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/29listopada2012/00.jpg b/static/mini/PE/29listopada2012/00.jpg
new file mode 100644
index 0000000..2a9d773
--- /dev/null
+++ b/static/mini/PE/29listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/29listopada2012/01.jpg b/static/mini/PE/29listopada2012/01.jpg
new file mode 100644
index 0000000..974796e
--- /dev/null
+++ b/static/mini/PE/29listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/3stycznia2013/00.jpg b/static/mini/PE/3stycznia2013/00.jpg
new file mode 100644
index 0000000..d72de62
--- /dev/null
+++ b/static/mini/PE/3stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/PE/3stycznia2013/01.jpg b/static/mini/PE/3stycznia2013/01.jpg
new file mode 100644
index 0000000..8361a45
--- /dev/null
+++ b/static/mini/PE/3stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/PE/4padziernika2012/00.jpg b/static/mini/PE/4padziernika2012/00.jpg
new file mode 100644
index 0000000..bd76532
--- /dev/null
+++ b/static/mini/PE/4padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/4padziernika2012/01.jpg b/static/mini/PE/4padziernika2012/01.jpg
new file mode 100644
index 0000000..3ff3139
--- /dev/null
+++ b/static/mini/PE/4padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/4padziernika2012/02.jpg b/static/mini/PE/4padziernika2012/02.jpg
new file mode 100644
index 0000000..49d2fde
--- /dev/null
+++ b/static/mini/PE/4padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/PE/6grudnia2012/00.jpg b/static/mini/PE/6grudnia2012/00.jpg
new file mode 100644
index 0000000..5c66229
--- /dev/null
+++ b/static/mini/PE/6grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/8listopada2012/00.jpg b/static/mini/PE/8listopada2012/00.jpg
new file mode 100644
index 0000000..da4bcb1
--- /dev/null
+++ b/static/mini/PE/8listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/PE/8listopada2012/01.jpg b/static/mini/PE/8listopada2012/01.jpg
new file mode 100644
index 0000000..9b15a6c
--- /dev/null
+++ b/static/mini/PE/8listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/PE/8listopada2012/02.jpg b/static/mini/PE/8listopada2012/02.jpg
new file mode 100644
index 0000000..9eb3797
--- /dev/null
+++ b/static/mini/PE/8listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/10padziernika2012/00.jpg b/static/mini/analiza3/10padziernika2012/00.jpg
new file mode 100644
index 0000000..090ecd7
--- /dev/null
+++ b/static/mini/analiza3/10padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/10padziernika2012/01.jpg b/static/mini/analiza3/10padziernika2012/01.jpg
new file mode 100644
index 0000000..28659b7
--- /dev/null
+++ b/static/mini/analiza3/10padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/10padziernika2012/02.jpg b/static/mini/analiza3/10padziernika2012/02.jpg
new file mode 100644
index 0000000..e169418
--- /dev/null
+++ b/static/mini/analiza3/10padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/10padziernika2012/03.jpg b/static/mini/analiza3/10padziernika2012/03.jpg
new file mode 100644
index 0000000..c12b649
--- /dev/null
+++ b/static/mini/analiza3/10padziernika2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/12grudnia2012/00.jpg b/static/mini/analiza3/12grudnia2012/00.jpg
new file mode 100644
index 0000000..d9732c0
--- /dev/null
+++ b/static/mini/analiza3/12grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/12grudnia2012/01.jpg b/static/mini/analiza3/12grudnia2012/01.jpg
new file mode 100644
index 0000000..fbdf723
--- /dev/null
+++ b/static/mini/analiza3/12grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/12grudnia2012/02.jpg b/static/mini/analiza3/12grudnia2012/02.jpg
new file mode 100644
index 0000000..2f2e611
--- /dev/null
+++ b/static/mini/analiza3/12grudnia2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/12grudnia2012/03.jpg b/static/mini/analiza3/12grudnia2012/03.jpg
new file mode 100644
index 0000000..f2f85e2
--- /dev/null
+++ b/static/mini/analiza3/12grudnia2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/17padziernika2012/00.jpg b/static/mini/analiza3/17padziernika2012/00.jpg
new file mode 100644
index 0000000..b25f277
--- /dev/null
+++ b/static/mini/analiza3/17padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/17padziernika2012/01.jpg b/static/mini/analiza3/17padziernika2012/01.jpg
new file mode 100644
index 0000000..4ccfe40
--- /dev/null
+++ b/static/mini/analiza3/17padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/17padziernika2012/02.jpg b/static/mini/analiza3/17padziernika2012/02.jpg
new file mode 100644
index 0000000..a927737
--- /dev/null
+++ b/static/mini/analiza3/17padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/19grudnia2012/00.jpg b/static/mini/analiza3/19grudnia2012/00.jpg
new file mode 100644
index 0000000..aad3efe
--- /dev/null
+++ b/static/mini/analiza3/19grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/19grudnia2012/01.jpg b/static/mini/analiza3/19grudnia2012/01.jpg
new file mode 100644
index 0000000..bec9822
--- /dev/null
+++ b/static/mini/analiza3/19grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/19grudnia2012/02.jpg b/static/mini/analiza3/19grudnia2012/02.jpg
new file mode 100644
index 0000000..477acec
--- /dev/null
+++ b/static/mini/analiza3/19grudnia2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/19grudnia2012/03.jpg b/static/mini/analiza3/19grudnia2012/03.jpg
new file mode 100644
index 0000000..3725259
--- /dev/null
+++ b/static/mini/analiza3/19grudnia2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/21listopada2012/00.jpg b/static/mini/analiza3/21listopada2012/00.jpg
new file mode 100644
index 0000000..1d63dde
--- /dev/null
+++ b/static/mini/analiza3/21listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/21listopada2012/01.jpg b/static/mini/analiza3/21listopada2012/01.jpg
new file mode 100644
index 0000000..62ba5a8
--- /dev/null
+++ b/static/mini/analiza3/21listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/21listopada2012/02.jpg b/static/mini/analiza3/21listopada2012/02.jpg
new file mode 100644
index 0000000..4fa72fe
--- /dev/null
+++ b/static/mini/analiza3/21listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/21listopada2012/03.jpg b/static/mini/analiza3/21listopada2012/03.jpg
new file mode 100644
index 0000000..3385976
--- /dev/null
+++ b/static/mini/analiza3/21listopada2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/24padziernika2012/00.jpg b/static/mini/analiza3/24padziernika2012/00.jpg
new file mode 100644
index 0000000..30ebada
--- /dev/null
+++ b/static/mini/analiza3/24padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/24padziernika2012/01.jpg b/static/mini/analiza3/24padziernika2012/01.jpg
new file mode 100644
index 0000000..c247131
--- /dev/null
+++ b/static/mini/analiza3/24padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/24padziernika2012/02.jpg b/static/mini/analiza3/24padziernika2012/02.jpg
new file mode 100644
index 0000000..5eb9ee8
--- /dev/null
+++ b/static/mini/analiza3/24padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/24padziernika2012/03.jpg b/static/mini/analiza3/24padziernika2012/03.jpg
new file mode 100644
index 0000000..e791a11
--- /dev/null
+++ b/static/mini/analiza3/24padziernika2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/24padziernika2012/04.jpg b/static/mini/analiza3/24padziernika2012/04.jpg
new file mode 100644
index 0000000..d90845b
--- /dev/null
+++ b/static/mini/analiza3/24padziernika2012/04.jpg
Binary files differ
diff --git a/static/mini/analiza3/28listopada2012/00.jpg b/static/mini/analiza3/28listopada2012/00.jpg
new file mode 100644
index 0000000..0bad58c
--- /dev/null
+++ b/static/mini/analiza3/28listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/28listopada2012/01.jpg b/static/mini/analiza3/28listopada2012/01.jpg
new file mode 100644
index 0000000..7055df8
--- /dev/null
+++ b/static/mini/analiza3/28listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/28listopada2012/02.jpg b/static/mini/analiza3/28listopada2012/02.jpg
new file mode 100644
index 0000000..2af6b8b
--- /dev/null
+++ b/static/mini/analiza3/28listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/28listopada2012/03.jpg b/static/mini/analiza3/28listopada2012/03.jpg
new file mode 100644
index 0000000..cc9dd8e
--- /dev/null
+++ b/static/mini/analiza3/28listopada2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/2stycznia2013/.directory b/static/mini/analiza3/2stycznia2013/.directory
new file mode 100644
index 0000000..a653303
--- /dev/null
+++ b/static/mini/analiza3/2stycznia2013/.directory
@@ -0,0 +1,4 @@
+[Dolphin]
+PreviewsShown=true
+Timestamp=2013,1,19,22,41,42
+Version=3
diff --git a/static/mini/analiza3/2stycznia2013/00.jpg b/static/mini/analiza3/2stycznia2013/00.jpg
new file mode 100644
index 0000000..2e4beed
--- /dev/null
+++ b/static/mini/analiza3/2stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/2stycznia2013/01.jpg b/static/mini/analiza3/2stycznia2013/01.jpg
new file mode 100644
index 0000000..11b3765
--- /dev/null
+++ b/static/mini/analiza3/2stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/2stycznia2013/02.jpg b/static/mini/analiza3/2stycznia2013/02.jpg
new file mode 100644
index 0000000..51c2b1b
--- /dev/null
+++ b/static/mini/analiza3/2stycznia2013/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/2stycznia2013/03.jpg b/static/mini/analiza3/2stycznia2013/03.jpg
new file mode 100644
index 0000000..65dd9c2
--- /dev/null
+++ b/static/mini/analiza3/2stycznia2013/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/31padziernika2012/00.jpg b/static/mini/analiza3/31padziernika2012/00.jpg
new file mode 100644
index 0000000..d0f7383
--- /dev/null
+++ b/static/mini/analiza3/31padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/31padziernika2012/01.jpg b/static/mini/analiza3/31padziernika2012/01.jpg
new file mode 100644
index 0000000..0b487da
--- /dev/null
+++ b/static/mini/analiza3/31padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/31padziernika2012/02.jpg b/static/mini/analiza3/31padziernika2012/02.jpg
new file mode 100644
index 0000000..fec96a5
--- /dev/null
+++ b/static/mini/analiza3/31padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/31padziernika2012/03.jpg b/static/mini/analiza3/31padziernika2012/03.jpg
new file mode 100644
index 0000000..27022c7
--- /dev/null
+++ b/static/mini/analiza3/31padziernika2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/3padziernik2012/00.jpg b/static/mini/analiza3/3padziernik2012/00.jpg
new file mode 100644
index 0000000..646f446
--- /dev/null
+++ b/static/mini/analiza3/3padziernik2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/3padziernik2012/01.jpg b/static/mini/analiza3/3padziernik2012/01.jpg
new file mode 100644
index 0000000..9cc6a33
--- /dev/null
+++ b/static/mini/analiza3/3padziernik2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/3padziernik2012/02.jpg b/static/mini/analiza3/3padziernik2012/02.jpg
new file mode 100644
index 0000000..5f0105f
--- /dev/null
+++ b/static/mini/analiza3/3padziernik2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/3padziernik2012/03.jpg b/static/mini/analiza3/3padziernik2012/03.jpg
new file mode 100644
index 0000000..c84f981
--- /dev/null
+++ b/static/mini/analiza3/3padziernik2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/5grudnia2012/00.jpg b/static/mini/analiza3/5grudnia2012/00.jpg
new file mode 100644
index 0000000..3f9dfc4
--- /dev/null
+++ b/static/mini/analiza3/5grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/5grudnia2012/01.jpg b/static/mini/analiza3/5grudnia2012/01.jpg
new file mode 100644
index 0000000..b2775b4
--- /dev/null
+++ b/static/mini/analiza3/5grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/5grudnia2012/02.jpg b/static/mini/analiza3/5grudnia2012/02.jpg
new file mode 100644
index 0000000..733752e
--- /dev/null
+++ b/static/mini/analiza3/5grudnia2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/7listopada2012/00.jpg b/static/mini/analiza3/7listopada2012/00.jpg
new file mode 100644
index 0000000..132ee29
--- /dev/null
+++ b/static/mini/analiza3/7listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/7listopada2012/01.jpg b/static/mini/analiza3/7listopada2012/01.jpg
new file mode 100644
index 0000000..415f5a5
--- /dev/null
+++ b/static/mini/analiza3/7listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/7listopada2012/02.jpg b/static/mini/analiza3/7listopada2012/02.jpg
new file mode 100644
index 0000000..a1ab443
--- /dev/null
+++ b/static/mini/analiza3/7listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/7listopada2012/03.jpg b/static/mini/analiza3/7listopada2012/03.jpg
new file mode 100644
index 0000000..4c7837b
--- /dev/null
+++ b/static/mini/analiza3/7listopada2012/03.jpg
Binary files differ
diff --git a/static/mini/analiza3/7listopada2012/04.jpg b/static/mini/analiza3/7listopada2012/04.jpg
new file mode 100644
index 0000000..9e10e42
--- /dev/null
+++ b/static/mini/analiza3/7listopada2012/04.jpg
Binary files differ
diff --git a/static/mini/analiza3/9stycznia2013/00.jpg b/static/mini/analiza3/9stycznia2013/00.jpg
new file mode 100644
index 0000000..68eb745
--- /dev/null
+++ b/static/mini/analiza3/9stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/analiza3/9stycznia2013/01.jpg b/static/mini/analiza3/9stycznia2013/01.jpg
new file mode 100644
index 0000000..05ba288
--- /dev/null
+++ b/static/mini/analiza3/9stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/analiza3/9stycznia2013/02.jpg b/static/mini/analiza3/9stycznia2013/02.jpg
new file mode 100644
index 0000000..64ee87f
--- /dev/null
+++ b/static/mini/analiza3/9stycznia2013/02.jpg
Binary files differ
diff --git a/static/mini/analiza3/9stycznia2013/03.jpg b/static/mini/analiza3/9stycznia2013/03.jpg
new file mode 100644
index 0000000..ae7e38e
--- /dev/null
+++ b/static/mini/analiza3/9stycznia2013/03.jpg
Binary files differ
diff --git a/static/mini/chemia/10padziernika2012/00.jpg b/static/mini/chemia/10padziernika2012/00.jpg
new file mode 100644
index 0000000..3fee21f
--- /dev/null
+++ b/static/mini/chemia/10padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/10padziernika2012/01.jpg b/static/mini/chemia/10padziernika2012/01.jpg
new file mode 100644
index 0000000..6f521e8
--- /dev/null
+++ b/static/mini/chemia/10padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/12grudnia/0003.jpeg b/static/mini/chemia/12grudnia/0003.jpeg
new file mode 100644
index 0000000..3a5fbb9
--- /dev/null
+++ b/static/mini/chemia/12grudnia/0003.jpeg
Binary files differ
diff --git a/static/mini/chemia/12grudnia/0004.jpeg b/static/mini/chemia/12grudnia/0004.jpeg
new file mode 100644
index 0000000..7c15933
--- /dev/null
+++ b/static/mini/chemia/12grudnia/0004.jpeg
Binary files differ
diff --git a/static/mini/chemia/12grudnia2012/00.jpg b/static/mini/chemia/12grudnia2012/00.jpg
new file mode 100644
index 0000000..3a5fbb9
--- /dev/null
+++ b/static/mini/chemia/12grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/12grudnia2012/01.jpg b/static/mini/chemia/12grudnia2012/01.jpg
new file mode 100644
index 0000000..7c15933
--- /dev/null
+++ b/static/mini/chemia/12grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/17padziernika2012/00.jpg b/static/mini/chemia/17padziernika2012/00.jpg
new file mode 100644
index 0000000..d66e345
--- /dev/null
+++ b/static/mini/chemia/17padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/17padziernika2012/01.jpg b/static/mini/chemia/17padziernika2012/01.jpg
new file mode 100644
index 0000000..31400d9
--- /dev/null
+++ b/static/mini/chemia/17padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/19grudnia/0005.jpeg b/static/mini/chemia/19grudnia/0005.jpeg
new file mode 100644
index 0000000..9035ef7
--- /dev/null
+++ b/static/mini/chemia/19grudnia/0005.jpeg
Binary files differ
diff --git a/static/mini/chemia/19grudnia/0006.jpeg b/static/mini/chemia/19grudnia/0006.jpeg
new file mode 100644
index 0000000..446b192
--- /dev/null
+++ b/static/mini/chemia/19grudnia/0006.jpeg
Binary files differ
diff --git a/static/mini/chemia/19grudnia2012/00.jpg b/static/mini/chemia/19grudnia2012/00.jpg
new file mode 100644
index 0000000..9035ef7
--- /dev/null
+++ b/static/mini/chemia/19grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/19grudnia2012/01.jpg b/static/mini/chemia/19grudnia2012/01.jpg
new file mode 100644
index 0000000..446b192
--- /dev/null
+++ b/static/mini/chemia/19grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/24padziernika2012/00.jpg b/static/mini/chemia/24padziernika2012/00.jpg
new file mode 100644
index 0000000..602ac01
--- /dev/null
+++ b/static/mini/chemia/24padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/24padziernika2012/01.jpg b/static/mini/chemia/24padziernika2012/01.jpg
new file mode 100644
index 0000000..6cafff6
--- /dev/null
+++ b/static/mini/chemia/24padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/24padziernika2012/02.jpg b/static/mini/chemia/24padziernika2012/02.jpg
new file mode 100644
index 0000000..fbb49bc
--- /dev/null
+++ b/static/mini/chemia/24padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/chemia/28listopada/0005.jpeg b/static/mini/chemia/28listopada/0005.jpeg
new file mode 100644
index 0000000..2596580
--- /dev/null
+++ b/static/mini/chemia/28listopada/0005.jpeg
Binary files differ
diff --git a/static/mini/chemia/28listopada/0006.jpeg b/static/mini/chemia/28listopada/0006.jpeg
new file mode 100644
index 0000000..8615f05
--- /dev/null
+++ b/static/mini/chemia/28listopada/0006.jpeg
Binary files differ
diff --git a/static/mini/chemia/28listopada/0007.jpeg b/static/mini/chemia/28listopada/0007.jpeg
new file mode 100644
index 0000000..abc13e4
--- /dev/null
+++ b/static/mini/chemia/28listopada/0007.jpeg
Binary files differ
diff --git a/static/mini/chemia/28listopada2012/00.jpg b/static/mini/chemia/28listopada2012/00.jpg
new file mode 100644
index 0000000..2596580
--- /dev/null
+++ b/static/mini/chemia/28listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/28listopada2012/01.jpg b/static/mini/chemia/28listopada2012/01.jpg
new file mode 100644
index 0000000..8615f05
--- /dev/null
+++ b/static/mini/chemia/28listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/28listopada2012/02.jpg b/static/mini/chemia/28listopada2012/02.jpg
new file mode 100644
index 0000000..abc13e4
--- /dev/null
+++ b/static/mini/chemia/28listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/chemia/2stycznia/.directory b/static/mini/chemia/2stycznia/.directory
new file mode 100644
index 0000000..d8ffba9
--- /dev/null
+++ b/static/mini/chemia/2stycznia/.directory
@@ -0,0 +1,4 @@
+[Dolphin]
+PreviewsShown=true
+Timestamp=2013,1,19,22,32,43
+Version=3
diff --git a/static/mini/chemia/2stycznia/0017.jpeg b/static/mini/chemia/2stycznia/0017.jpeg
new file mode 100644
index 0000000..9906204
--- /dev/null
+++ b/static/mini/chemia/2stycznia/0017.jpeg
Binary files differ
diff --git a/static/mini/chemia/2stycznia/0018.jpeg b/static/mini/chemia/2stycznia/0018.jpeg
new file mode 100644
index 0000000..7fde45a
--- /dev/null
+++ b/static/mini/chemia/2stycznia/0018.jpeg
Binary files differ
diff --git a/static/mini/chemia/2stycznia/0019.jpeg b/static/mini/chemia/2stycznia/0019.jpeg
new file mode 100644
index 0000000..281553f
--- /dev/null
+++ b/static/mini/chemia/2stycznia/0019.jpeg
Binary files differ
diff --git a/static/mini/chemia/2stycznia2013/00.jpg b/static/mini/chemia/2stycznia2013/00.jpg
new file mode 100644
index 0000000..9906204
--- /dev/null
+++ b/static/mini/chemia/2stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/chemia/2stycznia2013/01.jpg b/static/mini/chemia/2stycznia2013/01.jpg
new file mode 100644
index 0000000..7fde45a
--- /dev/null
+++ b/static/mini/chemia/2stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/chemia/2stycznia2013/02.jpg b/static/mini/chemia/2stycznia2013/02.jpg
new file mode 100644
index 0000000..281553f
--- /dev/null
+++ b/static/mini/chemia/2stycznia2013/02.jpg
Binary files differ
diff --git a/static/mini/chemia/3padziernika2012/00.jpg b/static/mini/chemia/3padziernika2012/00.jpg
new file mode 100644
index 0000000..0e30a82
--- /dev/null
+++ b/static/mini/chemia/3padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/7listopada/0004.jpeg b/static/mini/chemia/7listopada/0004.jpeg
new file mode 100644
index 0000000..57abac5
--- /dev/null
+++ b/static/mini/chemia/7listopada/0004.jpeg
Binary files differ
diff --git a/static/mini/chemia/7listopada/0005.jpeg b/static/mini/chemia/7listopada/0005.jpeg
new file mode 100644
index 0000000..bd0500c
--- /dev/null
+++ b/static/mini/chemia/7listopada/0005.jpeg
Binary files differ
diff --git a/static/mini/chemia/7listopada/0006.jpeg b/static/mini/chemia/7listopada/0006.jpeg
new file mode 100644
index 0000000..599087e
--- /dev/null
+++ b/static/mini/chemia/7listopada/0006.jpeg
Binary files differ
diff --git a/static/mini/chemia/7listopada2012/00.jpg b/static/mini/chemia/7listopada2012/00.jpg
new file mode 100644
index 0000000..57abac5
--- /dev/null
+++ b/static/mini/chemia/7listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/chemia/7listopada2012/01.jpg b/static/mini/chemia/7listopada2012/01.jpg
new file mode 100644
index 0000000..bd0500c
--- /dev/null
+++ b/static/mini/chemia/7listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/chemia/7listopada2012/02.jpg b/static/mini/chemia/7listopada2012/02.jpg
new file mode 100644
index 0000000..599087e
--- /dev/null
+++ b/static/mini/chemia/7listopada2012/02.jpg
Binary files differ
diff --git a/static/mini/chemia/9stycznia/0020.jpeg b/static/mini/chemia/9stycznia/0020.jpeg
new file mode 100644
index 0000000..05f4430
--- /dev/null
+++ b/static/mini/chemia/9stycznia/0020.jpeg
Binary files differ
diff --git a/static/mini/chemia/9stycznia/0021.jpeg b/static/mini/chemia/9stycznia/0021.jpeg
new file mode 100644
index 0000000..8e90a40
--- /dev/null
+++ b/static/mini/chemia/9stycznia/0021.jpeg
Binary files differ
diff --git a/static/mini/chemia/9stycznia2013/00.jpg b/static/mini/chemia/9stycznia2013/00.jpg
new file mode 100644
index 0000000..05f4430
--- /dev/null
+++ b/static/mini/chemia/9stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/chemia/9stycznia2013/01.jpg b/static/mini/chemia/9stycznia2013/01.jpg
new file mode 100644
index 0000000..8e90a40
--- /dev/null
+++ b/static/mini/chemia/9stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/chemia/kolokwia/1015_ch_wykl_kol2.jpg b/static/mini/chemia/kolokwia/1015_ch_wykl_kol2.jpg
new file mode 100644
index 0000000..d8ac419
--- /dev/null
+++ b/static/mini/chemia/kolokwia/1015_ch_wykl_kol2.jpg
Binary files differ
diff --git a/static/mini/chemia/kolokwia/kolos_poprzedni_rok_a.jpg b/static/mini/chemia/kolokwia/kolos_poprzedni_rok_a.jpg
new file mode 100644
index 0000000..de6890a
--- /dev/null
+++ b/static/mini/chemia/kolokwia/kolos_poprzedni_rok_a.jpg
Binary files differ
diff --git a/static/mini/chemia/kolokwia/kolos_poprzedni_rok_b.jpg b/static/mini/chemia/kolokwia/kolos_poprzedni_rok_b.jpg
new file mode 100644
index 0000000..6f522a2
--- /dev/null
+++ b/static/mini/chemia/kolokwia/kolos_poprzedni_rok_b.jpg
Binary files differ
diff --git a/static/mini/chemia/kolokwia/pytania_na_kolokwium.JPG b/static/mini/chemia/kolokwia/pytania_na_kolokwium.JPG
new file mode 100644
index 0000000..488d8b2
--- /dev/null
+++ b/static/mini/chemia/kolokwia/pytania_na_kolokwium.JPG
Binary files differ
diff --git a/static/mini/mechanika/12padziernika2012/00.jpg b/static/mini/mechanika/12padziernika2012/00.jpg
new file mode 100644
index 0000000..fd5a947
--- /dev/null
+++ b/static/mini/mechanika/12padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/12padziernika2012/01.jpg b/static/mini/mechanika/12padziernika2012/01.jpg
new file mode 100644
index 0000000..1c1beba
--- /dev/null
+++ b/static/mini/mechanika/12padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/12padziernika2012/02.jpg b/static/mini/mechanika/12padziernika2012/02.jpg
new file mode 100644
index 0000000..7473156
--- /dev/null
+++ b/static/mini/mechanika/12padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/mechanika/12padziernika2012/03.jpg b/static/mini/mechanika/12padziernika2012/03.jpg
new file mode 100644
index 0000000..ada43b7
--- /dev/null
+++ b/static/mini/mechanika/12padziernika2012/03.jpg
Binary files differ
diff --git a/static/mini/mechanika/14grudnia2012/00.jpg b/static/mini/mechanika/14grudnia2012/00.jpg
new file mode 100644
index 0000000..056bdc4
--- /dev/null
+++ b/static/mini/mechanika/14grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/14grudnia2012/01.jpg b/static/mini/mechanika/14grudnia2012/01.jpg
new file mode 100644
index 0000000..f883b28
--- /dev/null
+++ b/static/mini/mechanika/14grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/16listopada2012/00.jpg b/static/mini/mechanika/16listopada2012/00.jpg
new file mode 100644
index 0000000..ec086e1
--- /dev/null
+++ b/static/mini/mechanika/16listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/19padziernika2012/00.jpg b/static/mini/mechanika/19padziernika2012/00.jpg
new file mode 100644
index 0000000..4b42636
--- /dev/null
+++ b/static/mini/mechanika/19padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/19padziernika2012/01.jpg b/static/mini/mechanika/19padziernika2012/01.jpg
new file mode 100644
index 0000000..f341687
--- /dev/null
+++ b/static/mini/mechanika/19padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/19padziernika2012/02.jpg b/static/mini/mechanika/19padziernika2012/02.jpg
new file mode 100644
index 0000000..9775cb9
--- /dev/null
+++ b/static/mini/mechanika/19padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/mechanika/23listopada2012/00.jpg b/static/mini/mechanika/23listopada2012/00.jpg
new file mode 100644
index 0000000..ee1b430
--- /dev/null
+++ b/static/mini/mechanika/23listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/23listopada2012/01.jpg b/static/mini/mechanika/23listopada2012/01.jpg
new file mode 100644
index 0000000..1afb6d7
--- /dev/null
+++ b/static/mini/mechanika/23listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/26padziernika2012/00.jpg b/static/mini/mechanika/26padziernika2012/00.jpg
new file mode 100644
index 0000000..06371df
--- /dev/null
+++ b/static/mini/mechanika/26padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/26padziernika2012/01.jpg b/static/mini/mechanika/26padziernika2012/01.jpg
new file mode 100644
index 0000000..a34d706
--- /dev/null
+++ b/static/mini/mechanika/26padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/26padziernika2012/02.jpg b/static/mini/mechanika/26padziernika2012/02.jpg
new file mode 100644
index 0000000..57847fc
--- /dev/null
+++ b/static/mini/mechanika/26padziernika2012/02.jpg
Binary files differ
diff --git a/static/mini/mechanika/30listopada2012/00.jpg b/static/mini/mechanika/30listopada2012/00.jpg
new file mode 100644
index 0000000..a89c628
--- /dev/null
+++ b/static/mini/mechanika/30listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/30listopada2012/01.jpg b/static/mini/mechanika/30listopada2012/01.jpg
new file mode 100644
index 0000000..1eaebf6
--- /dev/null
+++ b/static/mini/mechanika/30listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/4stycznia2013/00.jpg b/static/mini/mechanika/4stycznia2013/00.jpg
new file mode 100644
index 0000000..ff2d266
--- /dev/null
+++ b/static/mini/mechanika/4stycznia2013/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/4stycznia2013/01.jpg b/static/mini/mechanika/4stycznia2013/01.jpg
new file mode 100644
index 0000000..084a933
--- /dev/null
+++ b/static/mini/mechanika/4stycznia2013/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/5padziernika2012/00.jpg b/static/mini/mechanika/5padziernika2012/00.jpg
new file mode 100644
index 0000000..4318eb8
--- /dev/null
+++ b/static/mini/mechanika/5padziernika2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/5padziernika2012/01.jpg b/static/mini/mechanika/5padziernika2012/01.jpg
new file mode 100644
index 0000000..bb2dc0a
--- /dev/null
+++ b/static/mini/mechanika/5padziernika2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/7grudnia2012/00.jpg b/static/mini/mechanika/7grudnia2012/00.jpg
new file mode 100644
index 0000000..6fe1de1
--- /dev/null
+++ b/static/mini/mechanika/7grudnia2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/7grudnia2012/01.jpg b/static/mini/mechanika/7grudnia2012/01.jpg
new file mode 100644
index 0000000..741fbf2
--- /dev/null
+++ b/static/mini/mechanika/7grudnia2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/7grudnia2012/02.jpg b/static/mini/mechanika/7grudnia2012/02.jpg
new file mode 100644
index 0000000..dd61f7d
--- /dev/null
+++ b/static/mini/mechanika/7grudnia2012/02.jpg
Binary files differ
diff --git a/static/mini/mechanika/9listopada2012/00.jpg b/static/mini/mechanika/9listopada2012/00.jpg
new file mode 100644
index 0000000..b10115f
--- /dev/null
+++ b/static/mini/mechanika/9listopada2012/00.jpg
Binary files differ
diff --git a/static/mini/mechanika/9listopada2012/01.jpg b/static/mini/mechanika/9listopada2012/01.jpg
new file mode 100644
index 0000000..ffca11a
--- /dev/null
+++ b/static/mini/mechanika/9listopada2012/01.jpg
Binary files differ
diff --git a/static/mini/mechanika/9listopada2012/02.jpg b/static/mini/mechanika/9listopada2012/02.jpg
new file mode 100644
index 0000000..e359035
--- /dev/null
+++ b/static/mini/mechanika/9listopada2012/02.jpg
Binary files differ
diff --git a/templates/layout.html b/templates/layout.html
index dd4d9d3..22e857e 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -27,16 +27,6 @@
</script>
<script >
- /*function get_file_paths(address, message) {
- $.getJSON( $SCRIPT_ROOT + '/_prepare_paths', {
- mail_address:address,
- message:message
- }, function(data) {
- console.log(data);
-
- }
- );
-}*/
$("document").ready( function() {
});
@@ -58,7 +48,7 @@ $("document").ready( function() {
</div>
- <div class="navbar">
+ <div class="navbar well-small">
<div class="navbar-inner">
<ul class="nav">
<li class="active" id="home"><a href="/view" >Home</a></li>
diff --git a/templates/pyvis.py b/templates/pyvis.py
new file mode 100644
index 0000000..3dfded4
--- /dev/null
+++ b/templates/pyvis.py
@@ -0,0 +1,11 @@
+import numpy as np
+import scipy
+import pylab
+import pymorph
+import mahotas
+from scipy import ndimage
+
+dna = mahotas.imread('dna.jpeg')
+
+pylab.imshow(dna)
+pylab.show() \ No newline at end of file