xonecas.io
2495
Xg

xonecas.github.com / commit 0dfbec8

added news colors and layout

xonecas2012-07-05 0dfbec8161710b216b418d5947c5ba925d981a38 parent 52bad38

4 files changed

index.html+99−123
@@ -1,51 +1,50 @@
11 <!doctype html>
22 <html>
3- <head>
4- <meta charset="utf-8">
5- <meta http-equiv="X-UA-Compatible" content="chrome=1">
6- <title>@xonecas (Sean Caetano Martin) by xonecas</title>
7-
8- <link rel="stylesheet" href="stylesheets/styles.css">
9- <script src="javascripts/scale.fix.js"></script>
10- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
11- <!--[if lt IE 9]>
12- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13- <![endif]-->
14- </head>
15- <body>
16- <div class="wrapper">
17- <header>
18- <h1 class="header">@xonecas (Sean Caetano Martin)</h1>
19- <p class="header">My vim stuff. Mostly used in MacVim</p>
20-
21-
22-
23- <ul>
24- <li>
25- <a id="config-link" class="buttons" href="#config">
26- .vimrc
27- </a>
28- </li>
29- <li>
30- <a id="colors-link" class="buttons" href="#colors">
31- vim colorschemes
32- </a>
33- </li>
34- <li>
35- <a class="buttons github" href="https://github.com/xonecas">
36- GitHub Profile
37- </a>
38- </li>
39- </ul>
3+ <head>
4+ <meta charset="utf-8">
5+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
7+ <title>Sean Caetano Martin, xonecas</title>
8+
9+ <link rel="stylesheet" href="stylesheets/so-ducking-stylish.css">
10+ <script src="javascripts/prettify.js"></script>
11+ <meta name="viewport"
12+ content="width=device-width, initial-scale=1, user-scalable=no">
13+ <!--[if lt IE 9]>
14+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
15+ <![endif]-->
16+ <script type="text/javascript">
17+ WebFontConfig = {
18+ google: {
19+ families: [
20+ 'Droid+Sans:400,700:latin',
21+ 'Droid+Sans+Mono::latin'
22+ ]
23+ }
24+ };
4025
41- </header>
26+ (function() {
27+ var wf = document.createElement('script');
28+ wf.src = '//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
29+ wf.type = 'text/javascript';
30+ wf.async = 'true';
31+ var s = document.getElementsByTagName('script')[0];
32+ s.parentNode.insertBefore(wf, s);
33+ })();
34+ </script>
35+ </head>
36+ <body onload="prettyPrint();">
37+ <header>
38+ <h1>Sean Caetano Martin, xonecas</h1>
39+ <h2><em>Ramblings about vim and code...</em></h2>
40+ </header>
4241
4342 <section id="config">
4443 <h3>Sean's vim configuration</h3>
4544
4645 <p>Simple config file :-)</p>
4746
48-<pre><code>call pathogen#infect()
47+ <pre class="prettyprint"><code>call pathogen#infect()
4948 set guioptions=
5049 set directory^=~/.vswap
5150 set number
@@ -65,15 +64,13 @@ set list
6564 set listchars=tab:▸\ ,eol:¬,trail:⋅,extends:❯,precedes:❮
6665 set showbreak=↪
6766 syntax on
68-colorscheme bearded-adventure
67+colorscheme laughing-lana
6968 set background=dark
7069 filetype plugin on
7170 function! ToggleBg()
7271 if &amp;background == "light"
73- "let g:lucius_style = 'dark'
7472 set background=dark
7573 else
76- "let g:lucius_style = 'light'
7774 set background=light
7875 endif
7976 endfunction
@@ -84,99 +81,78 @@ map &lt;C-C&gt; :NERDTreeToggle&lt;CR&gt;
8481
8582 </section>
8683
87- <section id="colors">
88- <h3>Sean's vim colorschemes</h3>
84+ <section id="colors">
85+ <h3>Sean's vim colorschemes</h3>
8986
90- <p>
91- I hacked these colorschemes together, and will continue to do more.
92- I'm lacking dark and light background colorschmes. I change
93- my background so often that I even have a key binding for it. So
94- this is my effort to get more colors out there.
95- </p>
87+ <p>
88+ I hacked these colorschemes together, and will continue to do more.
89+ I'm lacking dark and light background colorschmes. I change
90+ my background so often that I even have a key binding for it. So
91+ this is my effort to get more colors out there.
92+ </p>
9693
97- <p>
98- Just in case you want to get crazy switching backgrounds, add this
99- to your <code>.vimrc</code>.
100- </p>
94+ <p>
95+ Just in case you want to get crazy switching backgrounds, add this
96+ to your <code>.vimrc</code>.
97+ </p>
10198
102-<pre><code>function! ToggleBg()
103- if &amp;background == "light"
104- set background=dark
105- else
106- set background=light
107- endif
99+ <pre class="prettyprint"><code>function! ToggleBg()
100+if &amp;background == "light"
101+set background=dark
102+else
103+set background=light
104+endif
108105 endfunction
109106 command! ToggleBg :call ToggleBg()
110107 map &lt;C-X&gt; :ToggleBg&lt;CR&gt;
111-</code></pre>
108+ </code></pre>
112109
113- <p>
114- These colorschemes were made by fiddling with the source code of
115- <a href="//github.com/noahfrederick/Hemisu">Hemisu</a>.
116- They only support GUI vims, <em>sorry</em>!
117- The names are random, courtesy of github's repo name sugestions.
118- </p>
119-
120- <h3>Laughing-lana</h3>
121- <h4><a class="buttons down-arrow" href="laughing-lana.vim">Download link</a></h4>
122- <div>
123- <img src="images/laughing-lana.png">
124- </div>
125-
126- <h3>Bearded Adventure</h3>
127- <h4><a class="buttons down-arrow" href="bearded-adventure.vim">Download link</a></h4>
128- <div>
129- <img src="images/bearded-adventure.png">
130- </div>
131-
132- <h3>Mustached Octo Nemesis</h3>
133- <h4><a class="buttons down-arrow" href="mustached-octo-nemesis.vim">Download link</a></h4>
134- <div>
135- <img src="images/mustached-octo-nemesis.png">
136- </div>
137-
138- </section>
139- <footer>
140- <p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme, with a tiny twist</small></p>
141- </footer>
142- </div>
143- <!--[if !IE]>
144- <script>fixScale(document);</script>
145- <![endif]-->
146-
147- <script>
148-
149-(function () {
150- var config = document.querySelector('#config'),
151- configLink = document.querySelector('#config-link'),
152- colors = document.querySelector('#colors'),
153- colorsLink = document.querySelector('#colors-link'),
154-
155- handler = function (e) {
156- var container = e.target.href.split('/').pop().substring(1);
157-
158- if (container === 'config') {
159- colors.style.display = 'none';
160- config.style.display = 'block';
161- } else {
162- config.style.display = 'none';
163- colors.style.display = 'block';
164- }
110+ <p>
111+ These colorschemes were made by fiddling with the source code of
112+ <a href="//github.com/noahfrederick/Hemisu">Hemisu</a>.
113+ They only support GUI vims, <em>(update: cli coming soon!)</em>!
114+ The names are random, courtesy of github's repo name sugestions.
115+ </p>
165116
166- window.scrollTo(0, 0);
117+ <hr>
167118
168- if (e.preventDefault) { e.preventDefault(); }
169- return false;
170- };
119+ <h3>Laughing-lana</h3>
120+ <h4>
121+ <a class="buttons down-arrow" href="laughing-lana.vim">
122+ Download link
123+ </a>
124+ </h4>
125+ <div>
126+ <img src="images/laughing-lana.png">
127+ </div>
171128
172- colors.style.display = 'none';
129+ <hr>
173130
174- configLink.addEventListener('click', handler, false);
175- colorsLink.addEventListener('click', handler, false);
131+ <h3>Bearded Adventure</h3>
132+ <h4>
133+ <a class="buttons down-arrow" href="bearded-adventure.vim">
134+ Download link
135+ </a>
136+ </h4>
137+ <div>
138+ <img src="images/bearded-adventure.png">
139+ </div>
176140
177-}());
141+ <hr>
178142
179- </script>
143+ <h3>Mustached Octo Nemesis</h3>
144+ <h4>
145+ <a class="buttons down-arrow" href="mustached-octo-nemesis.vim">
146+ Download link
147+ </a>
148+ </h4>
149+ <div>
150+ <img src="images/mustached-octo-nemesis.png">
151+ </div>
152+ </section>
180153
181- </body>
154+ <footer>
155+ I &lt;3 vim
156+ </footer>
157+ </body>
182158 </html>
javascripts/prettify.js+28−0
@@ -0,0 +1,28 @@
1+var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
2+(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\] …
3+[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"-"===f[c+1]?(d=m(f[c+2]),c+=2):d=j;b.push([j,d]);d<65||j>122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;c<b.length;++c)i=b[c],i[0]<=j[1]+1?j[1]=Math.max(j[1],i[1]):f.push(j=i);b=["["];o&&b.push("^");b.push.apply(b,a);for(c=0 …
4+f.length;++c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c<b;++c){var j=f[c];j==="("?++i:"\\"===j.charAt(0)&&(j=+j.substring(1))&&j<=i&&(d[j]=-1)}for(c=1;c<d.length;++c)-1===d[c]&&(d[c]=++t);for(i=c=0;c<b;++c)j=f[c],j==="("?(++i,d[i]===void 0&&(f[c]="(?:")):"\\"===j.c …
5+(j=+j.substring(1))&&j<=i&&(f[c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b;++c)j=f[c],a=j.charAt(0),j.length>=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p<d;++p){var g=a[p];if(g.ignoreCase)l=!0;else if(/[a-z]/i.test(g.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){s=!0;l=!1;break …
6+{b:8,t:9,n:10,v:11,f:12,r:13},n=[],p=0,d=a.length;p<d;++p){g=a[p];if(g.global||g.multiline)throw Error(""+g);n.push("(?:"+y(g)+")")}return RegExp(n.join("|"),l?"gi":"g")}function M(a){function m(a){switch(a.nodeType){case 1:if(e.test(a.className))break;for(var g=a.firstChild;g;g=g.nextSibling)m(g);g=a.nodeName;if("BR"===g||"LI"===g)h[s]="\n",t[s<<1]=y++,t[s++<<1|1]=a;break;case 3:case 4:g=a.nodeValue,g.length&&(g=p?g.replace(/\r\n?/g,"\n"):g.replace(/[\t\n\r ]+/g," "),h[s]=g,t[s<<1]=y,y+=g.lengt …
7+t[s++<<1|1]=a)}}var e=/(?:^|\s)nocode(?:\s|$)/,h=[],y=0,t=[],s=0,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=document.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);m(a);return{a:h.join("").replace(/\n$/,""),c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){for(var l=a.d,p=[l,"pln"],d=0,g=a.a.match(y)||[],r={},n=0,z=g.length;n<z;++n){var f=g[n],b=r[f],o=void 0,c;if(ty …
8+"string")c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.match(i[1])){b=i[0];break}o||(b="pln")}if((c=b.length>=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e= …
9+l=[],p={},d=0,g=e.length;d<g;++d){var r=e[d],n=r[3];if(n)for(var k=n.length;--k>=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'| …
10+q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\ …
11+q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a …
12+"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.n …
13+a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendCh …
14+for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g<d.length;++g)e(d[g]);m===(m|0)&&d[0].setAttr …
15+m);var r=s.createElement("OL");r.className="linenums";for(var n=Math.max(0,m-1|0)||0,g=0,z=d.length;g<z;++g)l=d[g],l.className="L"+(g+n)%10,l.firstChild||l.appendChild(s.createTextNode("\xa0")),r.appendChild(l);a.appendChild(r)}function k(a,m){for(var e=m.length;--e>=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*</.test(m)?"default-markup":"default-code";return A[a]}function E(a) …
16+a.g;try{var e=M(a.h),h=e.a;a.a=h;a.c=e.c;a.d=0;C(m,h)(a);var k=/\bMSIE\b/.test(navigator.userAgent),m=/\n/g,t=a.a,s=t.length,e=0,l=a.c,p=l.length,h=0,d=a.e,g=d.length,a=0;d[g]=s;var r,n;for(n=r=0;n<g;)d[n]!==d[n+2]?(d[r++]=d[n++],d[r++]=d[n++]):n+=2;g=r;for(n=r=0;n<g;){for(var z=d[n],f=d[n+1],b=n+2;b+2<=g&&d[b+1]===f;)b+=2;d[r++]=z;d[r++]=f;n=b}for(d.length=r;h<p;){var o=l[h+2]||s,c=d[a+2]||s,b=Math.min(o,c),i=l[h+1],j;if(i.nodeType!==1&&(j=t.substring(e,b))){k&&(j=j.replace(m,"\r"));i.nodeValue …
17+j;var u=i.ownerDocument,v=u.createElement("SPAN");v.className=d[a+1];var x=i.parentNode;x.replaceChild(v,i);v.appendChild(i);e<o&&(l[h+1]=i=u.createTextNode(t.substring(b,o)),x.insertBefore(i,v.nextSibling))}e=b;e>=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsig …
18+"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,trans …
19+H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,T …
20+J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,red …
21+I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>) …
22+["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],[" …
23+/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings …
24+["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isn …
25+hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p<h.length&&l.now()<e;p++){var n=h[p],k=n.className;if(k.indexOf("prettyprint")>=0){var k=k.match(g),f,b;if(b …
26+!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p<h.length?se …
27+250):a&&a()}for(var e=[document.getElementsByTagName("pre"),document.getElementsByTagName("code"),document.getElementsByTagName("xmp")],h=[],k=0;k<e.length;++k)for(var t=0,s=e[k].length;t<s;++t)h.push(e[k][t]);var e=q,l=Date;l.now||(l={now:function(){return+new Date}});var p=0,d,g=/\blang(?:uage)?-([\w.]+)(?!\S)/;m()};window.PR={createSimpleLexer:x,registerLangHandler:k,sourceDecorator:u,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL: …
28+PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ"}})();
stylesheets/pretify.css+51−0
@@ -0,0 +1,51 @@
1+/* Pretty printing styles. Used with prettify.js. */
2+/* Vim sunburst theme by David Leibovic */
3+
4+pre .str, code .str { color: #65B042; } /* string - green */
5+pre .kwd, code .kwd { color: #E28964; } /* keyword - dark pink */
6+pre .com, code .com { color: #AEAEAE; font-style: italic; } /* comment - gray */
7+pre .typ, code .typ { color: #89bdff; } /* type - light blue */
8+pre .lit, code .lit { color: #3387CC; } /* literal - blue */
9+pre .pun, code .pun { color: #fff; } /* punctuation - white */
10+pre .pln, code .pln { color: #fff; } /* plaintext - white */
11+pre .tag, code .tag { color: #89bdff; } /* html/xml tag - light blue */
12+pre .atn, code .atn { color: #bdb76b; } /* html/xml attribute name - khaki */
13+pre .atv, code .atv { color: #65B042; } /* html/xml attribute value - green */
14+pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
15+
16+pre.prettyprint, code.prettyprint {
17+ background-color: #000;
18+ -moz-border-radius: 8px;
19+ -webkit-border-radius: 8px;
20+ -o-border-radius: 8px;
21+ -ms-border-radius: 8px;
22+ -khtml-border-radius: 8px;
23+ border-radius: 8px;
24+}
25+
26+pre.prettyprint {
27+ width: 95%;
28+ margin: 1em auto;
29+ padding: 1em;
30+ white-space: pre-wrap;
31+}
32+
33+
34+/* Specify class=linenums on a pre to get line numbering */
35+ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE; } /* IE indents via margin-left */
36+li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
37+/* Alternate shading for lines */
38+li.L1,li.L3,li.L5,li.L7,li.L9 { }
39+
40+@media print {
41+ pre .str, code .str { color: #060; }
42+ pre .kwd, code .kwd { color: #006; font-weight: bold; }
43+ pre .com, code .com { color: #600; font-style: italic; }
44+ pre .typ, code .typ { color: #404; font-weight: bold; }
45+ pre .lit, code .lit { color: #044; }
46+ pre .pun, code .pun { color: #440; }
47+ pre .pln, code .pln { color: #000; }
48+ pre .tag, code .tag { color: #006; font-weight: bold; }
49+ pre .atn, code .atn { color: #404; }
50+ pre .atv, code .atv { color: #060; }
51+}
stylesheets/so-ducking-stylish.css+77−5
@@ -50,8 +50,80 @@ table{border-collapse:collapse;border-spacing:0;}
5050
5151 /* === end normalize === */
5252
53-header {
54- position: fixed;
55- top: 0;
56- background: #fff;
57- border-bottom: 1px solid #eee;
53+pre .str,code .str{color:#025d8c;}
54+pre .kwd,code .kwd{color:#02779e;}
55+pre .com,code .com{color:#1693a5;font-style:italic;}
56+pre .typ,code .typ{color:#3bbbb3;}
57+pre .lit,code .lit{color:#f02311;}
58+pre .pun,code .pun{color:#ff6600;}
59+pre .pln,code .pln{color:#ff9900;}
60+pre .tag,code .tag{color:#fbb829;}
61+pre .atn,code .atn{color:#0c0f66;}
62+pre .atv,code .atv{color:#67baf5;}
63+pre .dec,code .dec{color:#00d2ff;}
64+pre.prettyprint,code.prettyprint{background-color:#000;-moz-border-radius:8px;-webkit-border-radius:8px;-o-border-radius:8px;-ms-border-radius:8px;-khtml-border-radius:8px;border-radius:8px;}
65+pre.prettyprint{width:95%;margin:1em auto;padding:1em;white-space:pre-wrap;}
66+ol.linenums{margin-top:0;margin-bottom:0;color:#AEAEAE;}
67+li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none;}
68+@media print{pre .str,code .str{color:#060;} pre .kwd,code .kwd{color:#006;font-weight:bold;} pre .com,code .com{color:#600;font-style:italic;} pre .typ,code .typ{color:#404;font-weight:bold;} pre .lit,code .lit{color:#044;} pre .pun,code .pun{color:#440;} pre .pln,code .pln{color:#000;} pre .tag,code .tag{color:#006;font-weight:bold;} pre .atn,code .atn{color:#404;} pre .atv,code .atv{color:#060;}}
69+
70+/* === end pretify (code hl) === */
71+
72+html, body {
73+ font-family: 'Droid Sans', sans-serif;
74+ font-size: 16px;
75+ background: #1f1f1f;
76+ color: #f7fdfa;
77+}
78+
79+body {
80+ width: 936px;
81+ padding: 0 10px 0 10px;
82+ border-left: 4px solid #00d2ff;
83+}
84+
85+code, pre {
86+ font-family: 'Droid Sans Mono', sans-serif;
87+ font-size: 13px;
88+}
89+pre {
90+ -webkit-box-shadow: 0px 0px 15px 5px #000;
91+ box-shadow: 0px 0px 15px 5px #000;
92+}
93+
94+img {
95+ max-width: 100%;
96+ -webkit-border-radius: 10px;
97+ border-radius: 10px;
98+ -moz-background-clip: padding;
99+ -webkit-background-clip: padding-box;
100+ background-clip: padding-box;
101+ -webkit-box-shadow: 0px 0px 15px 5px #000;
102+ box-shadow: 0px 0px 15px 5px #000;
103+}
104+
105+header, footer {
106+ text-align: center;
107+ color: #333;
108+ padding: 20px 0;
109+ font-weight: bold;
110+ font-size: 24px;
111+ text-shadow: 0 -1px 1px #000;
112+}
113+
114+a, a:active {
115+ color: #02779e;
116+}
117+
118+a:hover, a:visited {
119+ color: #3bbbb2;;
120+}
121+
122+hr {
123+ width: 50%;
124+ margin: 40px auto;
125+ background-color: #000;
126+ border: none;
127+ border-bottom: 1px solid #333;
128+ height: 1px;
129+}