xonecas.io
1361
Xc

xonecas.com / commit 9502284

First commit. New codebase for xonecas.com.

sean2011-07-25 950228492aee8c28f77cb52e98a308c16c240881

198 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

README.markdown+1−0
@@ -0,0 +1 @@
1+# xonecas.com\n These are the source files for my website.
css/.style.css.swp+0−0
Binary file, not shown.
css/OXYGENE1-webfont.eot+0−0
Binary file, not shown.
css/OXYGENE1-webfont.svg+136−0
@@ -0,0 +1,136 @@
1+<?xml version="1.0" standalone="no"?>
2+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3+<svg xmlns="http://www.w3.org/2000/svg">
4+<metadata>
5+This is a custom SVG webfont generated by Font Squirrel.
6+Copyright : Jakob Fischer PizzaDude distribute freely
7+</metadata>
8+<defs>
9+<font id="webfontqiEEoX6p" horiz-adv-x="845" >
10+<font-face units-per-em="2048" ascent="1647" descent="-401" />
11+<missing-glyph horiz-adv-x="1298" />
12+<glyph unicode=" " horiz-adv-x="1298" />
13+<glyph unicode="&#x09;" horiz-adv-x="1298" />
14+<glyph unicode="&#xa0;" horiz-adv-x="1298" />
15+<glyph unicode="!" horiz-adv-x="811" d="M2 51h453v-225h-453v225zM2 510v907h680v-680h-227v-454h-226v227h-227z" />
16+<glyph unicode="&#x22;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
17+<glyph unicode="#" horiz-adv-x="1718" d="M2 283v225h227v229h-227v226h227v227h228v227h225v-454h229v454h453v-454h227v-226h-227v-229h227v-225h-227v-230h-227v-227h-226v457h-229v-230h-227v-227h-226v457h-227zM684 510h225v225h-225v-225z" />
18+<glyph unicode="$" horiz-adv-x="1249" d="M2 510v453h227v227h228v227h225v-227h227v-225h-454v-230h682v-452h-228v-230h-227v-227h-225v227h-228v226h455v231h-682z" />
19+<glyph unicode="%" horiz-adv-x="1277" d="M2 53v455h227v227h228v230h-455v452h453v-454h229v227h227v227h226v-452h-228v-228h-227v-229h455v-455h-453v457h-229v-227h-228v-230h-225z" />
20+<glyph unicode="&#x26;" horiz-adv-x="1269" d="M2 283v680h227v454h680v-454h228v-226h-228v-229h228v-225h-228v-230h-680v230h-227zM457 510h225v225h-225v-225zM457 965h225v225h-225v-225z" />
21+<glyph unicode="'" horiz-adv-x="391" d="M2 965v452h225v-452h-225z" />
22+<glyph unicode="(" horiz-adv-x="1030" d="M2 283v452h227v228h228v227h227v227h225v-452h-227v-228h-227v-458h227v-228h227v-452h-225v227h-227v227h-228v230h-227z" />
23+<glyph unicode=")" horiz-adv-x="1019" d="M2 51h227v228h228v458h-228v228h-227v452h225v-227h228v-227h227v-228h227v-452h-227v-230h-227v-227h-228v-227h-225v452z" />
24+<glyph unicode="*" horiz-adv-x="833" d="M2 283v225h227v229h-227v226h225v-228h230v228h225v-226h-227v-229h227v-225h-225v227h-230v-227h-225z" />
25+<glyph unicode="+" horiz-adv-x="817" d="M2 510v225h227v228h226v-228h227v-225h-227v-227h-226v227h-227z" />
26+<glyph unicode="," horiz-adv-x="618" d="M2 -174v453h453v-680h-226v227h-227z" />
27+<glyph unicode="-" d="M2 510v225h680v-225h-680z" />
28+<glyph unicode="." horiz-adv-x="618" d="M2 -174v453h453v-453h-453z" />
29+<glyph unicode="/" horiz-adv-x="1226" d="M2 53v455h227v227h228v228h227v227h227v227h226v-452h-228v-228h-227v-227h-227v-227h-228v-230h-225z" />
30+<glyph unicode="0" horiz-adv-x="1284" d="M2 283v907h227v227h680v-227h228v-907h-228v-230h-680v230h-227zM457 510h225v680h-225v-680z" />
31+<glyph unicode="1" horiz-adv-x="843" d="M2 965v225h227v227h453v-1364h-225v230h-228v682h-227z" />
32+<glyph unicode="2" horiz-adv-x="1257" d="M2 283v225h227v227h455v457h-229v-227h-453v452h907v-227h228v-453h-228v-227h-454v-231h454v-226h-680v230h-227z" />
33+<glyph unicode="3" horiz-adv-x="1277" d="M2 283v225h453v-229h229v458h-227v226h227v229h-455v225h908v-452h-228v-230h228v-452h-228v-230h-227v-227h-225v227h-228v230h-227z" />
34+<glyph unicode="4" horiz-adv-x="1490" d="M2 510v680h227v227h226v-682h229v455h227v227h226v-682h227v-225h-227v-684h-226v227h-227v457h-682z" />
35+<glyph unicode="5" horiz-adv-x="1261" d="M2 510v907h907v-225h-454v-229h454v-228h228v-452h-228v-230h-680v226h455v231h-682z" />
36+<glyph unicode="6" horiz-adv-x="1257" d="M2 53v1137h227v227h453v-225h-227v-229h454v-228h228v-682h-228v-227h-680v227h-227zM457 53h225v455h-225v-455z" />
37+<glyph unicode="7" horiz-adv-x="1255" d="M2 53v455h227v227h228v457h-455v225h1135v-680h-228v-227h-227v-227h-227v-230h-453z" />
38+<glyph unicode="8" horiz-adv-x="1511" d="M2 283v680h227v454h908v-227h227v-907h-227v-230h-680v230h-455zM457 510h452v225h-452v-225zM684 965h225v225h-225v-225z" />
39+<glyph unicode="9" horiz-adv-x="1288" d="M2 510v680h227v227h680v-227h228v-1137h-228v-227h-452v225h227v232h-455v227h-227zM457 737h225v453h-225v-453z" />
40+<glyph unicode=":" horiz-adv-x="602" d="M2 53v455h453v-455h-453zM2 737v453h453v-453h-453z" />
41+<glyph unicode=";" horiz-adv-x="600" d="M2 53v455h453v-682h-226v227h-227zM2 737v453h453v-453h-453z" />
42+<glyph unicode="&#x3c;" horiz-adv-x="1038" d="M2 510v225h227v228h228v227h452v-225h-227v-228h-227v-229h227v-229h227v-226h-452v230h-228v227h-227z" />
43+<glyph unicode="=" horiz-adv-x="804" d="M2 283v225h680v-225h-680zM2 737v226h680v-226h-680z" />
44+<glyph unicode="&#x3e;" horiz-adv-x="1019" d="M2 53v226h227v229h228v229h-228v228h-227v225h453v-227h227v-228h227v-225h-227v-227h-227v-230h-453z" />
45+<glyph unicode="?" horiz-adv-x="1239" d="M2 965v225h227v227h908v-680h-228v-227h-227v-227h-453v225h228v227h227v457h-229v-227h-453zM229 51h453v-225h-453v225z" />
46+<glyph unicode="@" horiz-adv-x="1937" d="M2 53v1364h1817v-1134h-1135v680h680v-455h229v684h-1138v-1141h909v-225h-1135v227h-227zM911 510h226v225h-226v-225z" />
47+<glyph unicode="A" horiz-adv-x="1286" d="M2 53v1137h227v227h680v-227h228v-1137h-226v230h-227v227h-229v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
48+<glyph unicode="B" horiz-adv-x="1277" d="M2 53v1137h227v227h680v-227h228v-225h-228v-230h228v-452h-228v-230h-227v-227h-453v227h-227zM457 283h225v225h-225v-225zM457 965h225v225h-225v-225z" />
49+<glyph unicode="C" horiz-adv-x="1234" d="M2 283v907h227v227h680v-227h228v-225h-453v227h-229v-684h454v-455h-680v230h-227z" />
50+<glyph unicode="D" horiz-adv-x="1507" d="M2 1192v225h1135v-227h227v-907h-227v-230h-228v-227h-452v227h-228v1139h-227zM684 283h225v907h-225v-907z" />
51+<glyph unicode="E" horiz-adv-x="1241" d="M2 283v907h227v227h908v-225h-682v-229h454v-226h-454v-458h229v229h225v-455h-680v230h-227z" />
52+<glyph unicode="F" horiz-adv-x="1222" d="M2 283v1134h1135v-225h-682v-229h454v-453h-454v-457h-226v230h-227z" />
53+<glyph unicode="G" horiz-adv-x="1265" d="M2 283v907h227v227h453v-225h-227v-684h229v455h453v-1137h-226v457h-229v-230h-453v230h-227z" />
54+<glyph unicode="H" horiz-adv-x="1298" d="M2 283v1134h225v-227h228v-455h229v682h225v-227h228v-1137h-226v230h-227v227h-229v-457h-226v230h-227z" />
55+<glyph unicode="I" horiz-adv-x="616" d="M2 53v1137h227v227h226v-1134h-228v-230h-225z" />
56+<glyph unicode="J" horiz-adv-x="1071" d="M2 53v682h225v-227h230v909h452v-1134h-227v-230h-680z" />
57+<glyph unicode="K" horiz-adv-x="1286" d="M2 53v1137h227v227h226v-454h229v227h227v227h226v-452h-228v-230h228v-682h-226v230h-227v454h-229v-911h-226v227h-227z" />
58+<glyph unicode="L" horiz-adv-x="806" d="M2 283v907h227v227h226v-1138h227v-226h-453v230h-227z" />
59+<glyph unicode="M" horiz-adv-x="1970" d="M2 53v1137h227v227h226v-227h227v-227h229v227h228v227h452v-227h228v-1137h-228v-227h-225v1139h-229v-682h-226v227h-227v227h-229v-454h-228v-230h-225z" />
60+<glyph unicode="N" horiz-adv-x="1490" d="M2 283v1134h453v-227h227v-227h229v454h453v-907h-227v-227h-226v227h-227v227h-229v-684h-226v230h-227z" />
61+<glyph unicode="O" horiz-adv-x="1511" d="M2 510v680h227v227h908v-227h227v-907h-227v-230h-680v230h-228v227h-227zM457 510h452v453h-227v227h-225v-680z" />
62+<glyph unicode="P" horiz-adv-x="1241" d="M2 53v1364h907v-227h228v-453h-228v-227h-454v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
63+<glyph unicode="Q" horiz-adv-x="1499" d="M2 283v907h227v227h908v-227h227v-680h-227v-227h-228v-232h228v-225h-453v227h-227v230h-455zM457 737h227v-227h225v453h-227v227h-225v-453z" />
64+<glyph unicode="R" horiz-adv-x="1277" d="M2 53v1137h227v227h680v-227h228v-453h-228v-229h228v-455h-226v230h-227v227h-229v-684h-226v227h-227zM457 965h225v225h-225v-225z" />
65+<glyph unicode="S" horiz-adv-x="1265" d="M2 510v680h227v227h680v-225h-454v-229h682v-680h-228v-230h-452v226h227v231h-682z" />
66+<glyph unicode="T" horiz-adv-x="1226" d="M2 1192v225h1135v-225h-455v-1139h-225v230h-228v909h-227z" />
67+<glyph unicode="U" horiz-adv-x="1298" d="M2 510v907h453v-909h229v909h225v-227h228v-1137h-226v230h-682v227h-227z" />
68+<glyph unicode="V" horiz-adv-x="1271" d="M2 510v680h225v-227h228v-455h229v909h225v-227h228v-680h-228v-227h-227v-230h-225v230h-228v227h-227z" />
69+<glyph unicode="W" horiz-adv-x="1968" d="M2 283v1134h225v-227h228v-455h229v228h227v227h226v-682h229v909h225v-227h228v-907h-228v-230h-452v230h-228v227h-229v-227h-227v-230h-226v230h-227z" />
70+<glyph unicode="X" horiz-adv-x="1490" d="M2 965v452h225v-227h228v-227h229v227h227v227h226v-227h227v-225h-227v-228h-228v-229h228v-229h227v-226h-227v-227h-226v457h-229v-230h-453v455h228v229h-228v228h-227z" />
71+<glyph unicode="Y" horiz-adv-x="1277" d="M2 737v453h227v227h226v-454h227v-228h229v455h226v-1137h-228v-227h-452v227h-228v226h455v231h-455v227h-227z" />
72+<glyph unicode="Z" horiz-adv-x="1243" d="M2 283v225h227v227h228v457h-230v-227h-225v452h907v-227h228v-225h-228v-228h-227v-227h-227v-231h454v-226h-680v230h-227z" />
73+<glyph unicode="[" horiz-adv-x="808" d="M2 -401v1818h680v-225h-227v-1368h227v-225h-680z" />
74+<glyph unicode="\" horiz-adv-x="1433" d="M2 965v452h225v-227h228v-227h227v-228h227v-227h228v-229h227v-453h-225v227h-228v230h-227v227h-227v227h-228v228h-227z" />
75+<glyph unicode="]" d="M2 -176h227v1368h-227v225h680v-1818h-680v225z" />
76+<glyph unicode="a" horiz-adv-x="1695" d="M2 53v226h227v229h228v229h-228v226h228v454h680v-454h227v-226h-227v-229h227v-229h227v-226h-452v230h-684v-230h-453zM684 965h225v225h-225v-225z" />
77+<glyph unicode="b" horiz-adv-x="1298" d="M2 53v1364h1135v-1364h-226v457h-229v-457h-225v457h-230v-457h-225zM229 965h226v225h-226v-225zM684 965h225v225h-225v-225z" />
78+<glyph unicode="c" horiz-adv-x="1286" d="M2 510v907h1135v-907h-228v-457h-225v457h-229v-457h-226v457h-227zM229 965h226v225h-226v-225zM684 965h225v225h-225v-225z" />
79+<glyph unicode="d" horiz-adv-x="2174" d="M2 283v680h225v-228h230v455h1134v-455h230v228h225v-680h-225v227h-230v-457h-1134v457h-230v-227h-225zM684 283h680v680h-680v-680zM911 510v225h226v-225h-226z" />
80+<glyph unicode="e" horiz-adv-x="1284" d="M2 53v226h227v231h-227v225h227v230h-227v225h225v-227h230v227h225v-227h229v227h226v-225h-228v-230h228v-225h-228v-231h228v-226h-226v230h-229v-230h-225v230h-230v-230h-225z" />
81+<glyph unicode="f" horiz-adv-x="1282" d="M2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
82+<glyph unicode="g" horiz-adv-x="1515" d="M2 51h227v232h-227v1134h1362v-1134h-227v-457h-453v225h227v232h-456v-457h-453v225zM229 510h908v225h-908v-225zM229 965h226v225h-226v-225zM911 965h226v225h-226v-225z" />
83+<glyph unicode="h" horiz-adv-x="1712" d="M2 737v453h227v227h228v228h225v-228h229v228h226v-228h227v-227h227v-453h-227v-227h-227v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-228v227h-227zM229 737h1135v453h-225v-227h-230v227h-225v-227h-229v227h-226v-453z" />
84+<glyph unicode="i" horiz-adv-x="1712" d="M2 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM229 737h226v226h-226v-226zM684 1192h225v225h-225v-225zM1139 737h225v226h-225v-226z" />
85+<glyph unicode="j" horiz-adv-x="1710" d="M2 283v452h455v230h-228v680h1135v-680h-227v-230h454v-452h-225v227h-229v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-230v-227h-225zM684 1192h225v225h-225v-225z" />
86+<glyph unicode="k" horiz-adv-x="2387" d="M229 53v226h228v229h454v227h680v-227h455v-229h227v-226h-227v-227h-1589v227h-228z" />
87+<glyph unicode="l" horiz-adv-x="2070" d="M2 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM229 283v225h1590v-225h-1590zM457 51h1134v-225h-1134v225z" />
88+<glyph unicode="m" horiz-adv-x="1691" d="M2 51h227v228h228v229h227v227h225v-227h228v-229h227v-228h227v-225h-1589v225z" />
89+<glyph unicode="n" horiz-adv-x="1632" d="M2 737v226h227v227h228v227h227v228h225v-228h228v-227h227v-227h227v-226h-1589zM229 283v225h1135v-225h-1135zM457 51h680v-225h-680v225z" />
90+<glyph unicode="o" horiz-adv-x="1679" d="M2 -174v453h227v229h228v455h227v682h225v-682h228v-455h227v-229h227v-453h-225v227h-1139v-227h-225zM684 283h225v452h-225v-452z" />
91+<glyph unicode="p" horiz-adv-x="1699" d="M2 -174v682h227v227h228v455h227v455h225v-455h228v-455h227v-227h227v-682h-225v227h-227v230h-684v-230h-228v-227h-225zM684 510h225v453h-225v-453z" />
92+<glyph unicode="q" horiz-adv-x="2131" d="M2 53v455h455v227h227v682h227v228h226v-228h227v-682h227v-227h455v-455h-453v230h-229v-457h-680v457h-229v-230h-453zM911 965h226v225h-226v-225z" />
93+<glyph unicode="r" horiz-adv-x="1234" d="M2 283v225h1135v-225h-1135zM2 737v908h1135v-908h-226v228h-229v-228h-225v228h-230v-228h-225zM229 51h680v-225h-680v225zM229 1192h226v225h-226v-225zM684 1192h225v225h-225v-225z" />
94+<glyph unicode="s" horiz-adv-x="1812" d="M2 1419v226h1817v-226h-1817zM229 965v225h1362v-225h-1362zM457 510v225h907v-225h-907zM684 53v226h453v-226h-453z" />
95+<glyph unicode="t" horiz-adv-x="1812" d="M2 53v226h1817v-226h-1817zM229 510v225h1362v-225h-1362zM457 965v225h907v-225h-907zM684 1419v226h453v-226h-453z" />
96+<glyph unicode="u" horiz-adv-x="1720" d="M2 53v455h227v227h226v-452h-228v-230h-225zM2 1192v453h225v-228h228v-452h-226v227h-227zM684 53v1592h225v-1592h-225zM1139 283v452h225v-227h227v-455h-225v230h-227zM1139 965v452h227v228h225v-453h-227v-227h-225z" />
97+<glyph unicode="v" horiz-adv-x="1261" d="M2 283v225h225v-225h-225zM2 737v680h455v228h225v-453h-455v-229h910v-680h-455v-230h-225v455h454v229h-909zM911 1192v225h226v-225h-226z" />
98+<glyph unicode="w" horiz-adv-x="1679" d="M2 510v225h680v-682h-225v230h-228v227h-227zM2 965v225h227v227h228v228h225v-680h-680zM911 53v682h680v-225h-227v-227h-227v-230h-226zM911 965v680h226v-228h227v-227h227v-225h-680z" />
99+<glyph unicode="x" horiz-adv-x="2150" d="M2 184h289v-293h293v-290h-582v583zM2 479v289h289v-289h-289zM2 1065v582h582v-289h-293v-293h-289zM586 479v289h293v293h290v-293h293v-289h-293v-293h-290v293h-293zM879 -109h290v-290h-290v290zM879 1358v289h290v-289h-290zM1464 -109h293v293h289v-583h-582v290z M1464 1358v289h582v-582h-289v293h-293zM1757 479v289h289v-289h-289z" />
100+<glyph unicode="y" horiz-adv-x="1701" d="M2 510v680h225v-227h228v-226h-228v-227h-225zM457 53v226h227v229h225v-229h228v-226h-680zM457 1419v226h680v-226h-228v-227h-225v227h-227zM684 737v226h225v-226h-225zM1139 737v226h227v227h225v-680h-225v227h-227z" />
101+<glyph unicode="z" horiz-adv-x="1724" d="M2 53v226h455v458h-230v-227h-225v680h225v-227h230v456h-455v226h680v-455h229v455h680v-226h-454v-456h229v227h225v-680h-225v227h-229v-458h454v-226h-680v457h-229v-457h-680zM457 737h680v226h-680v-226z" />
102+<glyph unicode="{" horiz-adv-x="1030" d="M2 510v225h227v455h228v227h452v-225h-227v-455h-227v-229h227v-457h227v-225h-452v227h-228v457h-227z" />
103+<glyph unicode="}" horiz-adv-x="1028" d="M2 51h227v457h228v229h-228v455h-227v225h453v-227h227v-455h227v-225h-227v-457h-227v-227h-453v225z" />
104+<glyph unicode="~" horiz-adv-x="1300" d="M2 965v452h680v-227h229v227h226v-452h-680v227h-230v-227h-225z" />
105+<glyph unicode="&#xa3;" horiz-adv-x="2048" />
106+<glyph unicode="&#xad;" d="M2 510v225h680v-225h-680z" />
107+<glyph unicode="&#x2000;" horiz-adv-x="823" />
108+<glyph unicode="&#x2001;" horiz-adv-x="1646" />
109+<glyph unicode="&#x2002;" horiz-adv-x="823" />
110+<glyph unicode="&#x2003;" horiz-adv-x="1646" />
111+<glyph unicode="&#x2004;" horiz-adv-x="548" />
112+<glyph unicode="&#x2005;" horiz-adv-x="411" />
113+<glyph unicode="&#x2006;" horiz-adv-x="274" />
114+<glyph unicode="&#x2007;" horiz-adv-x="274" />
115+<glyph unicode="&#x2008;" horiz-adv-x="204" />
116+<glyph unicode="&#x2009;" horiz-adv-x="327" />
117+<glyph unicode="&#x200a;" horiz-adv-x="90" />
118+<glyph unicode="&#x2010;" d="M2 510v225h680v-225h-680z" />
119+<glyph unicode="&#x2011;" d="M2 510v225h680v-225h-680z" />
120+<glyph unicode="&#x2012;" d="M2 510v225h680v-225h-680z" />
121+<glyph unicode="&#x2013;" horiz-adv-x="1024" d="M205 512v205h614v-205h-614z" />
122+<glyph unicode="&#x2014;" horiz-adv-x="2048" d="M205 512v205h1638v-205h-1638z" />
123+<glyph unicode="&#x2019;" horiz-adv-x="391" d="M2 965v452h225v-452h-225z" />
124+<glyph unicode="&#x201c;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
125+<glyph unicode="&#x201d;" horiz-adv-x="1308" d="M2 965v452h453v-680h-226v228h-227zM684 965v452h453v-680h-226v228h-227z" />
126+<glyph unicode="&#x2026;" horiz-adv-x="1855" d="M1239 -174v453h453v-453h-453zM620 -174v453h453v-453h-453zM2 -174v453h453v-453h-453z" />
127+<glyph unicode="&#x202f;" horiz-adv-x="327" />
128+<glyph unicode="&#x205f;" horiz-adv-x="411" />
129+<glyph unicode="&#x2122;" horiz-adv-x="3196" d="M1229 53v1137h227v227h226v-227h227v-227h229v227h228v227h452v-227h228v-1137h-228v-227h-225v1139h-229v-682h-226v227h-227v227h-229v-454h-228v-230h-225zM2 1192v225h1135v-225h-455v-1139h-225v230h-228v909h-227z" />
130+<glyph unicode="&#xe000;" horiz-adv-x="1645" d="M0 1645h1645v-1645h-1645v1645z" />
131+<glyph unicode="&#xfb01;" horiz-adv-x="2994" d="M1284 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM1511 737h226v226h-226v-226zM1966 1192h225v225h-225v-225zM2421 737h225v226h-225v-226zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455 v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
132+<glyph unicode="&#xfb02;" horiz-adv-x="3352" d="M1284 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM1511 283v225h1590v-225h-1590zM1739 51h1134v-225h-1134v225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457 h-453v225zM229 510h226v225h-226v-225zM684 510h225v225h-225v-225z" />
133+<glyph unicode="&#xfb03;" horiz-adv-x="4276" d="M2566 510v453h227v682h1135v-682h227v-453h-454v-459h227v-225h-453v684h-229v-684h-453v225h228v459h-455zM2793 737h226v226h-226v-226zM3248 1192h225v225h-225v-225zM3703 737h225v226h-225v-226zM1284 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229 h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM1511 510h226v225h-226v-225zM1966 510h225v225h-225v-225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-4 …
134+<glyph unicode="&#xfb04;" horiz-adv-x="4634" d="M2566 965v225h227v227h455v228h680v-228h455v-227h227v-225h-227v-228h-1590v228h-227zM2793 283v225h1590v-225h-1590zM3021 51h1134v-225h-1134v225zM1284 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457 h-453v225zM1511 510h226v225h-226v-225zM1966 510h225v225h-225v-225zM2 51h227v232h-227v680h455v229h-455v225h1135v-225h-455v-229h455v-680h-228v-232h228v-225h-453v457h-229v-457h-453v225zM229 510h226v225h-2 …
135+</font>
136+</defs></svg>
css/OXYGENE1-webfont.ttf+0−0
Binary file, not shown.
css/OXYGENE1-webfont.woff+0−0
Binary file, not shown.
css/style.css+216−0
@@ -0,0 +1,216 @@
1+/* http://meyerweb.com/eric/tools/css/reset/
2+ v2.0 | 20110126
3+ License: none (public domain)
4+*/
5+
6+html, body, div, span, applet, object, iframe,
7+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+a, abbr, acronym, address, big, cite, code,
9+del, dfn, em, img, ins, kbd, q, s, samp,
10+small, strike, strong, sub, sup, tt, var,
11+b, u, i, center,
12+dl, dt, dd, ol, ul, li,
13+fieldset, form, label, legend,
14+table, caption, tbody, tfoot, thead, tr, th, td,
15+article, aside, canvas, details, embed,
16+figure, figcaption, footer, header, hgroup,
17+menu, nav, output, ruby, section, summary,
18+time, mark, audio, video {
19+ margin: 0;
20+ padding: 0;
21+ border: 0;
22+ font-size: 100%;
23+ font: inherit;
24+ vertical-align: baseline;
25+}
26+/* HTML5 display-role reset for older browsers */
27+article, aside, details, figcaption, figure,
28+footer, header, hgroup, menu, nav, section {
29+ display: block;
30+}
31+body {
32+ line-height: 1;
33+}
34+ol, ul {
35+ list-style: none;
36+}
37+blockquote, q {
38+ quotes: none;
39+}
40+blockquote:before, blockquote:after,
41+q:before, q:after {
42+ content: '';
43+ content: none;
44+}
45+table {
46+ border-collapse: collapse;
47+ border-spacing: 0;
48+}
49+
50+/* Font kits, from FontSquirrel.com
51+*/
52+@font-face {
53+ font-family: 'Oxygene';
54+ src: url('OXYGENE1-webfont.eot');
55+ src: url('OXYGENE1-webfont.eot?#iefix') format('embedded-opentype'),
56+ url('OXYGENE1-webfont.woff') format('woff'),
57+ url('OXYGENE1-webfont.ttf') format('truetype'),
58+ url('OXYGENE1-webfont.svg#Oxygene1Regular') format('svg');
59+ font-weight: normal;
60+ font-style: normal;
61+}
62+
63+
64+/* From the html5boilerplate
65+ h5bp.com (modified)
66+*/
67+html {
68+ font-size: 100%;
69+ overflow-y: scroll;
70+ -webkit-tap-highlight-color: rgba(0,0,0,0);
71+ -webkit-text-size-adjust: 100%;
72+ -ms-text-size-adjust: 100%;
73+}
74+body {
75+ margin: 0;
76+ font-size: 14px;
77+ line-height: 1.231;
78+}
79+body, button, input, select, textarea {
80+ font-family: 'Helvetica', sans-serif;
81+ color: #222;
82+}
83+
84+::-moz-selection { background: #000; color: #fff; text-shadow: none; }
85+::selection { background: #000; color: #fff; text-shadow: none; }
86+
87+a {
88+ color: #000;
89+ display: inline-block;
90+ padding: 2px 4px;
91+}
92+a:visited { background: #26ADE4; }
93+a:focus { outline: thin dotted; }
94+a:hover, a:active {
95+ outline: 0;
96+ background-color: #eee;
97+}
98+pre, code, kbd, samp {
99+ font-family: monospace, monospace;
100+ _font-family: 'courier new', monospace;
101+ font-size: 1em;
102+ padding: 4px 6px;
103+}
104+pre {
105+ white-space: pre;
106+ white-space: pre-wrap;
107+ word-wrap: break-word;
108+}
109+
110+/* Main styles
111+ by @xonecas
112+*/
113+
114+h1, h2 {
115+ font-family: 'Georgia', serif;
116+ font-weight: bold;
117+ text-shadow: 1px 1px 3px #000;
118+}
119+
120+h1 {
121+ font-size: 64px;
122+ padding: 10px 0;
123+ text-align: center;
124+}
125+h2 {
126+ font-size: 48px;
127+}
128+
129+
130+em { font-style: italic; }
131+strong { font-weight: bold; }
132+
133+p { margin: 1em 0; }
134+
135+pre, code {
136+ background: #fff;
137+ border-left: 10px solid #D1E751;
138+}
139+pre code {
140+ border: none;
141+}
142+header {
143+ position: absolute;
144+ top: 0;
145+ left: 0;
146+ right: 0;
147+ padding: 20px;
148+ background: #fff;
149+ z-index: 10;
150+}
151+
152+#content {
153+ margin: 156px 0 0 0;
154+}
155+
156+#latestTweet {
157+ background: #D1E751;
158+ text-align: center;
159+ padding: 20px;
160+ border-bottom: 10px solid #fff;
161+ border-top: 10px solid #26ADE4;
162+}
163+
164+.post {
165+ padding: 20px;
166+ background: #4DBCE9;
167+ border-top: 10px solid #26ADE4;
168+}
169+
170+.post:first-child {
171+ background: #D1E751;
172+ border-top: none;
173+}
174+ .post:first-child pre, .post:first-child code {
175+ border-color: #4DBCE9;
176+ }
177+
178+.body {
179+ margin: 0 0 0 99px;
180+}
181+
182+/* Blog styles
183+ alien icon; twisted timestamp et all
184+*/
185+.alien {
186+ font-family: 'Oxygene';
187+ font-size: 48px;
188+ display: inline-block;
189+ width: 56px;
190+ padding: 5px;
191+ margin: 0 10px;
192+ text-align: center;
193+}
194+
195+.relTime {
196+ float: left;
197+ width: 80px;
198+ -moz-transform: rotate(-7.5deg);
199+ -o-transform: rotate(-7.5deg);
200+ -webkit-transform: rotate(-7.5deg);
201+ -ms-transform: rotate(-7.5deg);
202+ transform: rotate(-7.5deg);
203+ filter: progid:DXImageTransform.Microsoft.Matrix(
204+ M11=0.9914448613738104, M12=0.13052619222005157, M21=-0.13052619222005157, M22=0.9914448613738104, sizingMethod='auto expand');
205+ zoom: 1;
206+}
207+
208+
209+
210+/* Helpers (from h5bp)
211+*/
212+.hidden { display: none; }
213+.clearfix:before, .clearfix:after { content: ""; display: table; }
214+.clearfix:after { clear: both; }
215+.clearfix { zoom: 1; }
216+
imgs/ajax-loader.gif+0−0
Binary file, not shown.
index.html+67−0
@@ -0,0 +1,67 @@
1+<!doctype html>
2+<html lang="en">
3+<head charset="utf-8">
4+
5+ <title></title>
6+ <meta name="author" content="">
7+ <meta name="description" content="">
8+
9+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
10+
11+ <link rel="stylesheet" href="css/style.css">
12+
13+ <script src="libs/modernizr.js"></script>
14+</head>
15+<body>
16+ <header>
17+ <h1 id="brand">Sean Caetano Martin</h1>
18+ </header>
19+
20+ <section id="content">
21+ <ul id="tumblr">
22+ <li><img src="imgs/ajax-loader.gif"></li>
23+ </ul>
24+ </section>
25+
26+ <section id="latestTweet">
27+ <img src="imgs/ajax-loader.gif">
28+ </section>
29+
30+
31+
32+
33+
34+
35+ <!--
36+ Templates go in this magic div that no one sees
37+ -->
38+ <div class="hidden">
39+ <script id="_latestTweet" type="text/template">
40+ <strong>@<a href="//twitter.com/xonecas">xonecas</a></strong>
41+ <span><%= text %></span>
42+ <em><%= relTime %></em>
43+ </script>
44+ <script id="_tumblr" type="text/template">
45+ <li id="<%= id %>" class="post clearfix">
46+ <h2 class="title">
47+ <span class="alien"><%= alien %></span>
48+ <%= title %>
49+ </h2>
50+ <span class="relTime"><%= relTime %></span>
51+ <div class="body">
52+ <%= body %>
53+ </div>
54+ </li>
55+ </script>
56+ </div>
57+
58+ <!--
59+ Dependencies (need to concat)
60+ -->
61+ <script src="libs/json2.js"></script>
62+ <script src="libs/jquery.js"></script>
63+ <script src="libs/underscore.js"></script>
64+ <script src="libs/backbone.js"></script>
65+ <script src="js/script.js"></script>
66+</body
67+</html>
js/script.js+174−0
@@ -0,0 +1,174 @@
1+$(function () {
2+
3+ // xonecas namespace
4+ // -----------------
5+ var x = window.x = {};
6+
7+ // defaults
8+ // --------
9+ x.alpha = "abcdefghijklmnopqrstuvwxyz";
10+
11+ // Helpers
12+ // -------
13+ function relativeTime(time) {
14+ var then = new Date(time),
15+ now = new Date(),
16+ timestamp = now - then,
17+ days = 0, hours = 0;
18+
19+ days = Math.floor(timestamp / (1000 * 60 * 60 * 24));
20+ hours = Math.floor(timestamp / (1000 * 60 * 60));
21+
22+ if (days === 1)
23+ timestamp = "yesterday";
24+ else if (days > 31)
25+ timestamp = "more than a month ago";
26+ else if (days > 1)
27+ timestamp = days + " days ago";
28+ else if (hours === 1)
29+ timestamp = "an hour ago";
30+ else if (hours > 1)
31+ timestamp = hours + " hours ago";
32+ else
33+ timestamp = "a few moments ago";
34+
35+ return timestamp +".";
36+ }
37+
38+ function linkit (text) {
39+ text = text.replace(
40+ /(ftp|http|https|file):\/\/[\S]+(\b|$)/gim,
41+ '<a href="$&" target="_new">$&</a>');
42+ text = text.replace(/@\w+\s/gi, function (match) {
43+ match = match.substring(0, match.length -1);
44+ return '<a href="//twitter.com/'+match.substring(1)+'">'+match+'</a> ';
45+ });
46+
47+ return text;
48+ }
49+
50+
51+ // Tumblr client
52+ // -------------
53+ x.Blog = Backbone.Collection.extend({
54+ url: "http://api.tumblr.com/v2/blog/xonecas.tumblr.com/posts/text",
55+ page: 0,
56+ count: 5,
57+
58+ parse: function (res, xhr) {
59+
60+ _.each(res.response.posts, function (post, idx) {
61+ post.relTime = relativeTime(post.timestamp);
62+ });
63+
64+ return res.response.posts;
65+ },
66+
67+ sync: function (model, method, options) {
68+ var params = _.extend(options, {
69+ "url": this.url,
70+ "data": {
71+ "limit": this.count,
72+ "offset": this.page * this.count,
73+ "api_key": "IM11cPEsi3jxTeSNwF8BB9Z08UItXcYKiEDLTLvl5RYn6MBcMD"
74+ },
75+ "dataType": "jsonp",
76+ "jsonp": "jsonp"
77+ });
78+
79+ return $.ajax(params);
80+ }
81+ });
82+
83+ x.BlogView = Backbone.View.extend({
84+ collection: new x.Blog(),
85+ el: $('#tumblr'),
86+ template: $('#_tumblr').html(),
87+
88+ initialize: function () {
89+ this.collection.fetch();
90+
91+ _.bindAll(this, 'render');
92+ this.collection.bind('reset', this.render);
93+ },
94+
95+ render: function () {
96+ var that = this;
97+
98+ this.el.empty();
99+ this.collection.forEach(function (el) {
100+ var rnd = Math.floor(Math.random() * x.alpha.length)
101+ el.set({"alien": x.alpha[rnd] }, {"silent": true});
102+ that.el.append(
103+ _.template(that.template, el.toJSON())
104+ );
105+ });
106+ }
107+ });
108+
109+ // Twitter client
110+ // --------------
111+ x.Tweets = Backbone.Collection.extend({
112+ url: "http://api.twitter.com/1/statuses/user_timeline.json",
113+
114+ parse: function (res, xhr) {
115+ _.each(res, function (tweet, idx) {
116+ tweet.relTime = relativeTime(tweet.created_at);
117+ tweet.text = linkit(tweet.text);
118+ });
119+
120+ return res;
121+ },
122+
123+ sync: function (model, method, options) {
124+ var params = _.extend(options, {
125+ "url": this.url,
126+ "data": {
127+ "screen_name": "xonecas",
128+ "count": 10,
129+ "trim_user": true,
130+ "include_rts": true,
131+ "exclude_replies": true
132+ },
133+ "dataType": "jsonp"
134+ });
135+
136+ return $.ajax(params);
137+ }
138+
139+ });
140+
141+ x.TweetsView = Backbone.View.extend({
142+ collection: new x.Tweets(),
143+ el: $('#latestTweet'),
144+ template: $('#_latestTweet').html(),
145+
146+ initialize: function () {
147+ _.bindAll(this, 'render', 'loop');
148+ this.collection.bind('reset', this.loop);
149+ this.collection.fetch();
150+ },
151+
152+ render: function () {
153+ var random = Math.floor(Math.random() * this.collection.length),
154+ tweet = this.collection.at(random);
155+
156+ this.el.html(_.template(this.template, tweet.toJSON()));
157+ },
158+
159+ loop: function () {
160+ this.render();
161+
162+ setTimeout(this.loop, 60 * 1000);
163+ }
164+ });
165+
166+
167+ // main
168+ // ----
169+ x.b = new x.BlogView();
170+ x.t = new x.TweetsView();
171+
172+ return x;
173+
174+});
libs/animationFrame.js+23−0
@@ -0,0 +1,23 @@
1+/**
2+ * Provides requestAnimationFrame in a cross browser way.
3+ * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
4+ */
5+
6+if ( !window.requestAnimationFrame ) {
7+
8+ window.requestAnimationFrame = ( function() {
9+
10+ return window.webkitRequestAnimationFrame ||
11+ window.mozRequestAnimationFrame ||
12+ window.oRequestAnimationFrame ||
13+ window.msRequestAnimationFrame ||
14+ function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) {
15+
16+ window.setTimeout( callback, 1000 / 60 );
17+
18+ };
19+
20+ } )();
21+
22+}
23+
libs/backbone.js+1149−0
@@ -0,0 +1,1149 @@
1+// Backbone.js 0.5.1
2+// (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.
3+// Backbone may be freely distributed under the MIT license.
4+// For all details and documentation:
5+// http://documentcloud.github.com/backbone
6+
7+(function(){
8+
9+ // Initial Setup
10+ // -------------
11+
12+ // Save a reference to the global object.
13+ var root = this;
14+
15+ // Save the previous value of the `Backbone` variable.
16+ var previousBackbone = root.Backbone;
17+
18+ // The top-level namespace. All public Backbone classes and modules will
19+ // be attached to this. Exported for both CommonJS and the browser.
20+ var Backbone;
21+ if (typeof exports !== 'undefined') {
22+ Backbone = exports;
23+ } else {
24+ Backbone = root.Backbone = {};
25+ }
26+
27+ // Current version of the library. Keep in sync with `package.json`.
28+ Backbone.VERSION = '0.5.1';
29+
30+ // Require Underscore, if we're on the server, and it's not already present.
31+ var _ = root._;
32+ if (!_ && (typeof require !== 'undefined')) _ = require('underscore')._;
33+
34+ // For Backbone's purposes, jQuery or Zepto owns the `$` variable.
35+ var $ = root.jQuery || root.Zepto;
36+
37+ // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
38+ // to its previous owner. Returns a reference to this Backbone object.
39+ Backbone.noConflict = function() {
40+ root.Backbone = previousBackbone;
41+ return this;
42+ };
43+
44+ // Turn on `emulateHTTP` to use support legacy HTTP servers. Setting this option will
45+ // fake `"PUT"` and `"DELETE"` requests via the `_method` parameter and set a
46+ // `X-Http-Method-Override` header.
47+ Backbone.emulateHTTP = false;
48+
49+ // Turn on `emulateJSON` to support legacy servers that can't deal with direct
50+ // `application/json` requests ... will encode the body as
51+ // `application/x-www-form-urlencoded` instead and will send the model in a
52+ // form param named `model`.
53+ Backbone.emulateJSON = false;
54+
55+ // Backbone.Events
56+ // -----------------
57+
58+ // A module that can be mixed in to *any object* in order to provide it with
59+ // custom events. You may `bind` or `unbind` a callback function to an event;
60+ // `trigger`-ing an event fires all callbacks in succession.
61+ //
62+ // var object = {};
63+ // _.extend(object, Backbone.Events);
64+ // object.bind('expand', function(){ alert('expanded'); });
65+ // object.trigger('expand');
66+ //
67+ Backbone.Events = {
68+
69+ // Bind an event, specified by a string name, `ev`, to a `callback` function.
70+ // Passing `"all"` will bind the callback to all events fired.
71+ bind : function(ev, callback) {
72+ var calls = this._callbacks || (this._callbacks = {});
73+ var list = calls[ev] || (calls[ev] = []);
74+ list.push(callback);
75+ return this;
76+ },
77+
78+ // Remove one or many callbacks. If `callback` is null, removes all
79+ // callbacks for the event. If `ev` is null, removes all bound callbacks
80+ // for all events.
81+ unbind : function(ev, callback) {
82+ var calls;
83+ if (!ev) {
84+ this._callbacks = {};
85+ } else if (calls = this._callbacks) {
86+ if (!callback) {
87+ calls[ev] = [];
88+ } else {
89+ var list = calls[ev];
90+ if (!list) return this;
91+ for (var i = 0, l = list.length; i < l; i++) {
92+ if (callback === list[i]) {
93+ list[i] = null;
94+ break;
95+ }
96+ }
97+ }
98+ }
99+ return this;
100+ },
101+
102+ // Trigger an event, firing all bound callbacks. Callbacks are passed the
103+ // same arguments as `trigger` is, apart from the event name.
104+ // Listening for `"all"` passes the true event name as the first argument.
105+ trigger : function(eventName) {
106+ var list, calls, ev, callback, args;
107+ var both = 2;
108+ if (!(calls = this._callbacks)) return this;
109+ while (both--) {
110+ ev = both ? eventName : 'all';
111+ if (list = calls[ev]) {
112+ for (var i = 0, l = list.length; i < l; i++) {
113+ if (!(callback = list[i])) {
114+ list.splice(i, 1); i--; l--;
115+ } else {
116+ args = both ? Array.prototype.slice.call(arguments, 1) : arguments;
117+ callback.apply(this, args);
118+ }
119+ }
120+ }
121+ }
122+ return this;
123+ }
124+
125+ };
126+
127+ // Backbone.Model
128+ // --------------
129+
130+ // Create a new model, with defined attributes. A client id (`cid`)
131+ // is automatically generated and assigned for you.
132+ Backbone.Model = function(attributes, options) {
133+ var defaults;
134+ attributes || (attributes = {});
135+ if (defaults = this.defaults) {
136+ if (_.isFunction(defaults)) defaults = defaults();
137+ attributes = _.extend({}, defaults, attributes);
138+ }
139+ this.attributes = {};
140+ this._escapedAttributes = {};
141+ this.cid = _.uniqueId('c');
142+ this.set(attributes, {silent : true});
143+ this._changed = false;
144+ this._previousAttributes = _.clone(this.attributes);
145+ if (options && options.collection) this.collection = options.collection;
146+ this.initialize(attributes, options);
147+ };
148+
149+ // Attach all inheritable methods to the Model prototype.
150+ _.extend(Backbone.Model.prototype, Backbone.Events, {
151+
152+ // A snapshot of the model's previous attributes, taken immediately
153+ // after the last `"change"` event was fired.
154+ _previousAttributes : null,
155+
156+ // Has the item been changed since the last `"change"` event?
157+ _changed : false,
158+
159+ // The default name for the JSON `id` attribute is `"id"`. MongoDB and
160+ // CouchDB users may want to set this to `"_id"`.
161+ idAttribute : 'id',
162+
163+ // Initialize is an empty function by default. Override it with your own
164+ // initialization logic.
165+ initialize : function(){},
166+
167+ // Return a copy of the model's `attributes` object.
168+ toJSON : function() {
169+ return _.clone(this.attributes);
170+ },
171+
172+ // Get the value of an attribute.
173+ get : function(attr) {
174+ return this.attributes[attr];
175+ },
176+
177+ // Get the HTML-escaped value of an attribute.
178+ escape : function(attr) {
179+ var html;
180+ if (html = this._escapedAttributes[attr]) return html;
181+ var val = this.attributes[attr];
182+ return this._escapedAttributes[attr] = escapeHTML(val == null ? '' : '' + val);
183+ },
184+
185+ // Returns `true` if the attribute contains a value that is not null
186+ // or undefined.
187+ has : function(attr) {
188+ return this.attributes[attr] != null;
189+ },
190+
191+ // Set a hash of model attributes on the object, firing `"change"` unless you
192+ // choose to silence it.
193+ set : function(attrs, options) {
194+
195+ // Extract attributes and options.
196+ options || (options = {});
197+ if (!attrs) return this;
198+ if (attrs.attributes) attrs = attrs.attributes;
199+ var now = this.attributes, escaped = this._escapedAttributes;
200+
201+ // Run validation.
202+ if (!options.silent && this.validate && !this._performValidation(attrs, options)) return false;
203+
204+ // Check for changes of `id`.
205+ if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];
206+
207+ // We're about to start triggering change events.
208+ var alreadyChanging = this._changing;
209+ this._changing = true;
210+
211+ // Update attributes.
212+ for (var attr in attrs) {
213+ var val = attrs[attr];
214+ if (!_.isEqual(now[attr], val)) {
215+ now[attr] = val;
216+ delete escaped[attr];
217+ this._changed = true;
218+ if (!options.silent) this.trigger('change:' + attr, this, val, options);
219+ }
220+ }
221+
222+ // Fire the `"change"` event, if the model has been changed.
223+ if (!alreadyChanging && !options.silent && this._changed) this.change(options);
224+ this._changing = false;
225+ return this;
226+ },
227+
228+ // Remove an attribute from the model, firing `"change"` unless you choose
229+ // to silence it. `unset` is a noop if the attribute doesn't exist.
230+ unset : function(attr, options) {
231+ if (!(attr in this.attributes)) return this;
232+ options || (options = {});
233+ var value = this.attributes[attr];
234+
235+ // Run validation.
236+ var validObj = {};
237+ validObj[attr] = void 0;
238+ if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;
239+
240+ // Remove the attribute.
241+ delete this.attributes[attr];
242+ delete this._escapedAttributes[attr];
243+ if (attr == this.idAttribute) delete this.id;
244+ this._changed = true;
245+ if (!options.silent) {
246+ this.trigger('change:' + attr, this, void 0, options);
247+ this.change(options);
248+ }
249+ return this;
250+ },
251+
252+ // Clear all attributes on the model, firing `"change"` unless you choose
253+ // to silence it.
254+ clear : function(options) {
255+ options || (options = {});
256+ var attr;
257+ var old = this.attributes;
258+
259+ // Run validation.
260+ var validObj = {};
261+ for (attr in old) validObj[attr] = void 0;
262+ if (!options.silent && this.validate && !this._performValidation(validObj, options)) return false;
263+
264+ this.attributes = {};
265+ this._escapedAttributes = {};
266+ this._changed = true;
267+ if (!options.silent) {
268+ for (attr in old) {
269+ this.trigger('change:' + attr, this, void 0, options);
270+ }
271+ this.change(options);
272+ }
273+ return this;
274+ },
275+
276+ // Fetch the model from the server. If the server's representation of the
277+ // model differs from its current attributes, they will be overriden,
278+ // triggering a `"change"` event.
279+ fetch : function(options) {
280+ options || (options = {});
281+ var model = this;
282+ var success = options.success;
283+ options.success = function(resp, status, xhr) {
284+ if (!model.set(model.parse(resp, xhr), options)) return false;
285+ if (success) success(model, resp);
286+ };
287+ options.error = wrapError(options.error, model, options);
288+ return (this.sync || Backbone.sync).call(this, 'read', this, options);
289+ },
290+
291+ // Set a hash of model attributes, and sync the model to the server.
292+ // If the server returns an attributes hash that differs, the model's
293+ // state will be `set` again.
294+ save : function(attrs, options) {
295+ options || (options = {});
296+ if (attrs && !this.set(attrs, options)) return false;
297+ var model = this;
298+ var success = options.success;
299+ options.success = function(resp, status, xhr) {
300+ if (!model.set(model.parse(resp, xhr), options)) return false;
301+ if (success) success(model, resp, xhr);
302+ };
303+ options.error = wrapError(options.error, model, options);
304+ var method = this.isNew() ? 'create' : 'update';
305+ return (this.sync || Backbone.sync).call(this, method, this, options);
306+ },
307+
308+ // Destroy this model on the server if it was already persisted. Upon success, the model is removed
309+ // from its collection, if it has one.
310+ destroy : function(options) {
311+ options || (options = {});
312+ if (this.isNew()) return this.trigger('destroy', this, this.collection, options);
313+ var model = this;
314+ var success = options.success;
315+ options.success = function(resp) {
316+ model.trigger('destroy', model, model.collection, options);
317+ if (success) success(model, resp);
318+ };
319+ options.error = wrapError(options.error, model, options);
320+ return (this.sync || Backbone.sync).call(this, 'delete', this, options);
321+ },
322+
323+ // Default URL for the model's representation on the server -- if you're
324+ // using Backbone's restful methods, override this to change the endpoint
325+ // that will be called.
326+ url : function() {
327+ var base = getUrl(this.collection) || this.urlRoot || urlError();
328+ if (this.isNew()) return base;
329+ return base + (base.charAt(base.length - 1) == '/' ? '' : '/') + encodeURIComponent(this.id);
330+ },
331+
332+ // **parse** converts a response into the hash of attributes to be `set` on
333+ // the model. The default implementation is just to pass the response along.
334+ parse : function(resp, xhr) {
335+ return resp;
336+ },
337+
338+ // Create a new model with identical attributes to this one.
339+ clone : function() {
340+ return new this.constructor(this);
341+ },
342+
343+ // A model is new if it has never been saved to the server, and lacks an id.
344+ isNew : function() {
345+ return this.id == null;
346+ },
347+
348+ // Call this method to manually fire a `change` event for this model.
349+ // Calling this will cause all objects observing the model to update.
350+ change : function(options) {
351+ this.trigger('change', this, options);
352+ this._previousAttributes = _.clone(this.attributes);
353+ this._changed = false;
354+ },
355+
356+ // Determine if the model has changed since the last `"change"` event.
357+ // If you specify an attribute name, determine if that attribute has changed.
358+ hasChanged : function(attr) {
359+ if (attr) return this._previousAttributes[attr] != this.attributes[attr];
360+ return this._changed;
361+ },
362+
363+ // Return an object containing all the attributes that have changed, or false
364+ // if there are no changed attributes. Useful for determining what parts of a
365+ // view need to be updated and/or what attributes need to be persisted to
366+ // the server.
367+ changedAttributes : function(now) {
368+ now || (now = this.attributes);
369+ var old = this._previousAttributes;
370+ var changed = false;
371+ for (var attr in now) {
372+ if (!_.isEqual(old[attr], now[attr])) {
373+ changed = changed || {};
374+ changed[attr] = now[attr];
375+ }
376+ }
Cut short: this commit's diff is over 1000 lines.
libs/jquery.js+8981−0
Cut short: this commit's diff is over 1000 lines.
libs/json2.js+480−0
Cut short: this commit's diff is over 1000 lines.
libs/modernizr.js+1116−0
Cut short: this commit's diff is over 1000 lines.
libs/three.js+534−0
Cut short: this commit's diff is over 1000 lines.
libs/underscore.js+839−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/.npmignore+11−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/LICENSE+24−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/index.js+2−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/connect.js+106−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/http.js+212−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/https.js+47−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/index.js+44−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/basicAuth.js+93−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/bodyParser.js+92−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/compiler.js+163−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/cookieParser.js+46−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/directory.js+218−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/errorHandler.js+100−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/favicon.js+76−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/limit.js+78−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/logger.js+283−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/methodOverride.js+38−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/profiler.js+100−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/query.js+40−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/responseTime.js+34−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/router.js+379−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/session.js+346−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/session/cookie.js+126−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/session/memory.js+131−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/session/session.js+137−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/session/store.js+59−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/static.js+212−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/middleware/vhost.js+44−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/patch.js+51−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/public/directory.html+75−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/public/error.html+13−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/public/favicon.ico+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_add.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_attach.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_code.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_copy.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_delete.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_edit.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_error.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_excel.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_find.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_gear.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_go.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_green.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_key.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_lightning.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_link.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_paintbrush.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_paste.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_red.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_refresh.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_save.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_acrobat.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_actionscript.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_add.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_c.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_camera.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_cd.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_code.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_code_red.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_coldfusion.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_compressed.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_copy.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_cplusplus.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_csharp.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_cup.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_database.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_delete.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_dvd.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_edit.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_error.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_excel.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_find.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_flash.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_freehand.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_gear.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_get.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_go.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_h.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_horizontal.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_key.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_lightning.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_link.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_magnify.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_medal.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_office.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_paint.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_paintbrush.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_paste.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_php.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_picture.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_powerpoint.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_put.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_ruby.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_stack.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_star.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_swoosh.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_text.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_text_width.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_tux.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_vector.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_visualstudio.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_width.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_word.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_world.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_wrench.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_white_zip.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_word.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/icons/page_world.png+0−0
Binary file, not shown.
node_modules/connect/lib/public/style.css+141−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/lib/utils.js+427−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/meta.json+1−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/LICENSE+19−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/README.md+54−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/index.js+1−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/mime.js+89−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/mime.types+1479−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/node.types+7−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/package.json+11−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/mime/test.js+74−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/.gitmodules+6−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/History.md+41−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/Makefile+7−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/Readme.md+49−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/benchmark.js+32−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/examples.js+39−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/index.js+2−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/lib/querystring.js+203−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/package.json+9−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/.gitignore+3−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/.gitmodules+3−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/History.md+128−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/Makefile+53−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/Readme.md+61−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/bin/expresso+856−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/docs/api.html+1080−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/docs/index.html+377−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/docs/index.md+290−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/docs/layout/foot.html+3−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/docs/layout/head.html+42−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/lib/bar.js+4−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/lib/foo.js+16−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/package.json+12−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/assert.test.js+91−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/async.test.js+12−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/bar.test.js+13−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/foo.test.js+14−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/http.test.js+146−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/serial/async.test.js+39−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/expresso/test/serial/http.test.js+48−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/.gitmodules+3−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/History.md+22−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/Makefile+6−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/Readme.md+248−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/examples/runner.js+53−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/index.js+2−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/lib/eql.js+91−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/lib/should.js+548−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/package.json+8−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/support/should/test/should.test.js+358−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/test/parse.test.js+133−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/node_modules/qs/test/stringify.test.js+95−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/package.json+24−0
Cut short: this commit's diff is over 1000 lines.
node_modules/connect/test.js+19−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/LICENSE+55−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/README.md+123−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/cookies.js+150−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/main.js+423−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/mimetypes.js+146−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/package.json+14−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/googledoodle.png+0−0
Binary file, not shown.
node_modules/request/tests/server.js+45−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/test-body.js+74−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/test-cookies.js+0−0
node_modules/request/tests/test-errors.js+30−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/test-pipes.js+136−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/test-ssl.js+7−0
Cut short: this commit's diff is over 1000 lines.
node_modules/request/tests/test-timeout.js+84−0
Cut short: this commit's diff is over 1000 lines.
server.js+94−0
Cut short: this commit's diff is over 1000 lines.