Skip to content

Commit 86eb38c

Browse files
committed
Commit inicial.
0 parents  commit 86eb38c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1122
-0
lines changed

.directory

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[Dolphin]
2+
Timestamp=2012,7,23,16,11,51
3+
ViewMode=1

back.png

108 KB
Loading

cc.png

31.3 KB
Loading

certificados/building_mathdb.py

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import os
2+
import sys
3+
import sqlite3
4+
5+
f = open('math.txt','r')
6+
data = f.readlines()
7+
data = [x.split(';') for x in data]
8+
data = [[x[0],x[1].lstrip(' ').rstrip('\n')] for x in data]
9+
f.close()
10+
11+
print data
12+
con = None
13+
14+
try:
15+
con = sqlite3.connect('math.db')
16+
cur = con.cursor()
17+
cur.execute('CREATE TABLE Math(Nome TEXT, Datas TEXT)')
18+
for row in data:
19+
cur.execute('INSERT INTO math (Nome,Datas) values (?,?)',(row[0],row[1]))
20+
con.commit()
21+
22+
except sqlite3.Error, e:
23+
24+
print "Error %s:" % e.args[0]
25+
sys.exit(1)
26+
27+
finally:
28+
29+
if con:
30+
con.close()
31+

certificados/certificado.pdf

33.2 KB
Binary file not shown.

certificados/certificado.tex

+251
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
\def\name {Sofya Yanovskaya}
2+
\documentclass{scrartcl}
3+
\usepackage[landscape]{geometry}
4+
\usepackage{chancery}
5+
\usepackage{anyfontsize}
6+
\newfont{\hge}{hge scaled 5000}
7+
\usepackage[utf8]{inputenc}
8+
\usepackage[T1]{fontenc}
9+
\usepackage[dvipsnames]{xcolor}
10+
\usepackage[object=vectorian]{pgfornament}
11+
\usetikzlibrary{calc}
12+
\pagestyle{empty}
13+
\oddsidemargin -1.2cm
14+
\textwidth 25.8cm
15+
\topmargin -2.8cm
16+
\textheight 19.8cm
17+
\begin{document}
18+
\begin{tikzpicture}[every node/.style={inner sep=0pt}]
19+
%\draw[help lines] grid (26,19);
20+
\node (CNW) at (1.5,17.5) {\pgfornament[width=3cm]{61}};
21+
\node (CNE) at (24.5,17.5) {\pgfornament[width=3cm,symmetry=v]{61}};
22+
\node (CSW) at (1.5,1.5) {\pgfornament[width=3cm,symmetry=h]{61}};
23+
\node (CSE) at (24.5,1.5) {\pgfornament[width=3cm,symmetry=c]{61}};
24+
\node [text width=20cm] at (13,9)
25+
{
26+
\begin{center}
27+
{\fontsize{50}{60}\selectfont Certificado}
28+
\end{center}
29+
\vskip3cm
30+
\Huge{
31+
Certificamos que
32+
\name\
33+
participou do Caf\'e com Software Livre em Blumenau, 26 de outubro de 2013.
34+
}
35+
\vskip3cm
36+
\begin{flushright}
37+
Blusol\\
38+
Blumenau, Santa Catarina, Brasil
39+
\end{flushright}
40+
};
41+
\node at (13,16) {\pgfornament[width=6cm,symmetry=h]{75}};
42+
\node at (13,12) {\pgfornament[width=6cm]{75}};
43+
\end{tikzpicture}
44+
\end{document}
45+
46+
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
70+
71+
72+
73+
74+
75+
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
104+
105+
106+
107+
108+
109+
110+
111+
112+
113+
114+
115+
116+
117+
118+
119+
120+
121+
122+
123+
124+
125+
126+
127+
128+
129+
130+
131+
132+
133+
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163+
164+
165+
166+
167+
168+
169+
170+
171+
172+
173+
174+
175+
176+
177+
178+
179+
180+
181+
182+
183+
184+
185+
186+
187+
188+
189+
190+
191+
192+
193+
194+
195+
196+
197+
198+
199+
200+
201+
202+
203+
204+
205+
206+
207+
208+
209+
210+
211+
212+
213+
214+
215+
216+
217+
218+
219+
220+
221+
222+
223+
224+
225+
226+
227+
228+
229+
230+
231+
232+
233+
234+
235+
236+
237+
238+
239+
240+
241+
242+
243+
244+
245+
246+
247+
248+
249+
250+
251+

certificados/certificados.py

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import os
2+
import sys
3+
import sqlite3
4+
5+
con = None
6+
filename = 'certificado'
7+
8+
# Abrir banco de dados para ler nomes.
9+
try:
10+
con = sqlite3.connect('math.db')
11+
cur = con.cursor()
12+
cur.execute('select * from math')
13+
data = cur.fetchall()
14+
15+
except sqlite3.Error, e:
16+
17+
print "Error %s:" % e.args[0]
18+
sys.exit(1)
19+
20+
finally:
21+
22+
if con:
23+
con.close()
24+
25+
# Gerar um certificado para cada nome.
26+
for row in data:
27+
f = open(filename+'.tex','r+')
28+
old = f.readlines()
29+
if old[0][1:4] == 'def':
30+
offset = 1
31+
else:
32+
offset = 0
33+
f.seek(0)
34+
f.write('\\def\\name {'+row[0]+'}\n')
35+
f.writelines(old[offset:])
36+
f.close()
37+
38+
# Compilar.
39+
try:
40+
os.system('pdflatex '+filename+'.tex')
41+
os.system('mv '+filename+'.pdf '+filename+'_'+row[0].replace(' ','_')+'.pdf')
42+
except OSError:
43+
print('LaTeX not installed.')
44+
# os.system('xdg-open '+filename+'.pdf &')

certificados/math.db

2 KB
Binary file not shown.

certificados/math.txt

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Maria Agnesi; (1718-1799)
2+
Gertrude Blanch; (1897-1996)
3+
Mary Cartwright; (1900-1998)
4+
Sarah Flannery; (1982- )
5+
Sophie Germain; (1776-1831)
6+
Louise Hay; (1935-1989)
7+
Grace Hopper; (1906-1992)
8+
Carol Karp; (1926-1972)
9+
Sofia Kovalevskaya; (1850-1891)
10+
Cecilia Krieger; (1894-1974)
11+
Olga Ladyzhenskaya; (1922-2004)
12+
Ada Lovelace; (1815-1852)
13+
Jessie MacWilliams; (1917-1990)
14+
Dusa McDuff; (1945- )
15+
Maryam Mirzakhani; (1977- )
16+
Ruth Moufang; (1905-1977)
17+
Evelyn Nelson; (1943-1987)
18+
Hanna Neumann; (1914-1971)
19+
Emmy Noether; (1882-1935)
20+
Cheryl Praeger; (1948- )
21+
Julia Robinson; (1919-1985)
22+
Charlotte Scott; (1858-1931)
23+
Mary Somerville; (1780-1872)
24+
Ulrike Tillmann; (1962-)
25+
Karen Uhlenbeck; (1942- )
26+
Katrin Wehrheim; (1972- )
27+
Mary Wheeler; (1931- )
28+
Melanie Wood; (1981- )
29+
Margaret Wright; (1944- )
30+
Sofya Yanovskaya; (1896-1966)

chart.pdf

15.7 KB
Binary file not shown.

chart.tex

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
\documentclass{article}
2+
\usepackage{calc}
3+
\usepackage{ifthen}
4+
\usepackage{tikz}
5+
\usepackage{txfonts}
6+
\begin{document}
7+
\newcommand{\slice}[5]{\pgfmathparse{0.5*#1+0.5*#2}\let\midangle\pgfmathresult
8+
% slice
9+
\draw[thick,fill=blue!#5!white] (0,0) -- (#1:1) arc (#1:#2:1) -- cycle;
10+
% outer label
11+
\node[label=\midangle:#4] at (\midangle:1) {};
12+
% inner label
13+
\pgfmathparse{min((#2-#1-10)/110*(-0.3),0)} \let\temp\pgfmathresult \pgfmathparse{max(\temp,-0.5) + 0.8} \let\innerpos\pgfmathresult \node[rectangle, fill=white] at (\midangle:\innerpos) {#3};}
14+
\begin{tikzpicture}[scale=3]
15+
\newcounter{a}
16+
\newcounter{b}
17+
\foreach \p/\t in {
18+
7/OpenSUSE,6/Fedora,6/Slackware,30/Ubuntu,5/Chakra,5/Gentoo,26/Outras,15/Debian
19+
} {
20+
\setcounter{a}{\value{b}} \addtocounter{b}{\p} \slice{\thea/100*360} {\theb/100*360} {\p\%}{\t}{\theb}
21+
}
22+
\end{tikzpicture}
23+
\end{document}

cv.pdf

51.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)