├── 404.html ├── CNAME ├── README.md ├── dis_template.py ├── gen_page.py ├── images ├── bkg.png ├── blacktocat.png ├── python.org.16.ico └── python.org.ico ├── index.html ├── javascripts ├── highlight.pack.js └── main.js ├── stylesheets ├── bootstrap.css ├── compress.css ├── gments │ ├── arta.css │ ├── ascetic.css │ ├── brown_paper.css │ ├── brown_papersq.png │ ├── dark.css │ ├── default.css │ ├── far.css │ ├── github.css │ ├── googlecode.css │ ├── idea.css │ ├── ir_black.css │ ├── magula.css │ ├── monokai.css │ ├── pojoaque.css │ ├── pojoaque.jpg │ ├── rainbow.css │ ├── school_book.css │ ├── school_book.png │ ├── solarized_dark.css │ ├── solarized_light.css │ ├── sunburst.css │ ├── tomorrow-night-blue.css │ ├── tomorrow-night-bright.css │ ├── tomorrow-night-eighties.css │ ├── tomorrow-night.css │ ├── tomorrow.css │ ├── vs.css │ ├── xcode.css │ └── zenburn.css └── stylesheet.css ├── template.html └── tests ├── test01 ├── t1.py └── t2.py ├── test02 ├── t1.py └── t2.py ├── test03 ├── t1.py └── t2.py ├── test04 ├── t1.py └── t2.py ├── test05 ├── t1.py ├── t2.py └── t3.py ├── test06 ├── t1.py ├── t2.py └── t3.py ├── test07 ├── t1.py ├── t2.py ├── t3.py └── t4.py ├── test08 ├── t1.py ├── t2.py ├── t3.py └── t4.py ├── test09 ├── t1.py └── t2.py ├── test10 ├── t1.py └── t2.py ├── test11 ├── t1.py ├── t2.py └── t3.py ├── test12 ├── t1.py └── t2.py ├── test13 ├── t1.py └── t2.py ├── test14 ├── t1.py └── t2.py ├── test15 ├── t1.py ├── t2.py └── t3.py ├── test16 ├── t1.py └── t2.py ├── test17 ├── t1.py ├── t2.py └── t3.py ├── test18 ├── t1.py ├── t2.py └── t3.py ├── test19 ├── t1.py ├── t2.py ├── t3.py ├── t4.py ├── t5.py └── t6.py ├── test20 ├── t1.py ├── t2.py └── t3.py ├── test21 ├── t1.py ├── t2.py └── t3.py ├── test22 ├── t1.py └── t2.py ├── test23 ├── t1.py ├── t2.py └── t3.py ├── test24 ├── t1.py ├── t2.py └── t3.py ├── test25 ├── t1.py ├── t2.py ├── t3.py └── t4.py ├── test26 ├── t1.py └── t2.py ├── test27 ├── t1.py └── t2.py ├── test28 ├── t1.py ├── t2.py └── t3.py ├── test29 ├── t1.py ├── t2.py ├── t3.py └── t4.py ├── test30 ├── t1.py ├── t2.py └── t3.py ├── test31 ├── t1.py └── t2.py ├── test32 ├── t1.py └── t2.py ├── test33 ├── t1.py ├── t2.py └── t3.py ├── test34 ├── t1.py └── t2.py ├── test35 ├── t1.py ├── t2.py └── t3.py ├── test36 ├── t1.py ├── t2.py └── t3.py ├── test37 ├── t1.py ├── t2.py └── t3.py └── test38 ├── t1.py ├── t2.py ├── t3.py └── t4.py /404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Python: faster way 9 | 23 | 24 | 25 | 26 |
27 | ...............404.........404404404404..................404......
28 | ............404404......404404404404404404............404404......
29 | .........404...404......404............404.........404...404......
30 | ......404......404......404............404......404......404......
31 | ...404.........404......404............404...404.........404......
32 | ...404404404404404404...404............404...404404404404404404...
33 | ...............404......404............404...............404......
34 | ...............404......404404404404404404...............404......
35 | ...............404.........404404404404..................404......
36 |         
37 | 38 | 39 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | pythonfasterway.cf 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Python--Faster-Way 2 | ================== 3 | 4 | Python: Faster Way 5 | 6 | http://pythonfasterway.cf/ 7 | 8 | http://zokis.github.io/Python--Faster-Way/ 9 | 10 | 11 | Creating a new test: 12 | -------------------- 13 | 14 | * Create a folder in the "_tests_" directory with the name: "_test+number_test_" 15 | * Create the tests on files _.py_ named "_t+local_number_test_" 16 | * The _.py_ must have a function named "_a_" 17 | * Can create a "_number_" variable with an integer that will be used by the "_timeit_" 18 | 19 | To generate the Page run: 20 | ------------------------- 21 | ``` 22 | python gen_page.py 23 | ``` 24 | this process can take 25 | -------------------------------------------------------------------------------- /dis_template.py: -------------------------------------------------------------------------------- 1 | from dis import dis 2 | 3 | 4 | %s 5 | 6 | dis(a) 7 | -------------------------------------------------------------------------------- /gen_page.py: -------------------------------------------------------------------------------- 1 | import os 2 | import platform 3 | import subprocess 4 | import sys 5 | import timeit 6 | 7 | from jinja2 import Template 8 | from unipath import Path, DIRS, FILES 9 | 10 | NUMBER = 1000000 11 | 12 | base_path = Path(os.path.abspath(__file__)).parent 13 | dis_template = Path(base_path, 'dis_template.py').read_file() 14 | template = Template(base_path.child('template.html').read_file()) 15 | test_path = Path(base_path, 'tests') 16 | tmp = Path('/tmp') 17 | 18 | 19 | def main(): 20 | def gen_tests(): 21 | for Tx, group_x_dir in enumerate(test_path.walk(filter=DIRS), 1): 22 | print "Gen Test: %s" % Tx 23 | group = [] 24 | for tx, test_x_file in enumerate(group_x_dir.walk(filter=FILES), 1): 25 | print " Sub Test: %s" % tx 26 | file_content = test_x_file.read_file() 27 | 28 | dis_test_content = dis_template % file_content 29 | 30 | dis_test_file = tmp.child('__pfw_%s_%s' % (group_x_dir.name, test_x_file.name)) 31 | dis_test_file.write_file(dis_test_content) 32 | 33 | p = subprocess.Popen( 34 | ['python', '-B', str(dis_test_file)], 35 | stdout=subprocess.PIPE, 36 | stderr=subprocess.PIPE 37 | ) 38 | out, err = p.communicate() 39 | 40 | dis_test_file.remove() 41 | 42 | code = compile(file_content, '', 'exec') 43 | 44 | f = {'number': None} 45 | exec code in f 46 | number = f['number'] or NUMBER 47 | group.append({ 48 | 'dis': out, 49 | 'file_content': file_content, 50 | 'number': number, 51 | 'timeit_min': min(timeit.repeat(f['a'], number=number)), 52 | }) 53 | group.sort(key=lambda x: x['timeit_min']) 54 | 55 | yield { 56 | 'n': Tx, 57 | 'span': 12 / len(group), 58 | 'cases': group, 59 | } 60 | 61 | ts = template.stream({ 62 | 'plat_sys': platform.system(), 63 | 'plat_rel': platform.release(), 64 | 'sys_version': sys.version, 65 | 'tests': gen_tests() 66 | }) 67 | ts.enable_buffering() 68 | ts.dump('index.html') 69 | 70 | 71 | if __name__ == '__main__': 72 | main() 73 | -------------------------------------------------------------------------------- /images/bkg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/images/bkg.png -------------------------------------------------------------------------------- /images/blacktocat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/images/blacktocat.png -------------------------------------------------------------------------------- /images/python.org.16.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/images/python.org.16.ico -------------------------------------------------------------------------------- /images/python.org.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/images/python.org.ico -------------------------------------------------------------------------------- /javascripts/highlight.pack.js: -------------------------------------------------------------------------------- 1 | var hljs=new function(){function l(o){return o.replace(/&/gm,"&").replace(//gm,">")}function b(p){for(var o=p.firstChild;o;o=o.nextSibling){if(o.nodeName=="CODE"){return o}if(!(o.nodeType==3&&o.nodeValue.match(/\s+/))){break}}}function h(p,o){return Array.prototype.map.call(p.childNodes,function(q){if(q.nodeType==3){return o?q.nodeValue.replace(/\n/g,""):q.nodeValue}if(q.nodeName=="BR"){return"\n"}return h(q,o)}).join("")}function a(q){var p=(q.className+" "+q.parentNode.className).split(/\s+/);p=p.map(function(r){return r.replace(/^language-/,"")});for(var o=0;o"}while(x.length||v.length){var u=t().splice(0,1)[0];y+=l(w.substr(p,u.offset-p));p=u.offset;if(u.event=="start"){y+=s(u.node);r.push(u.node)}else{if(u.event=="stop"){var o,q=r.length;do{q--;o=r[q];y+=("")}while(o!=u.node);r.splice(q,1);while(q'+L[0]+""}else{r+=L[0]}N=A.lR.lastIndex;L=A.lR.exec(K)}return r+K.substr(N)}function z(){if(A.sL&&!e[A.sL]){return l(w)}var r=A.sL?d(A.sL,w):g(w);if(A.r>0){v+=r.keyword_count;B+=r.r}return''+r.value+""}function J(){return A.sL!==undefined?z():G()}function I(L,r){var K=L.cN?'':"";if(L.rB){x+=K;w=""}else{if(L.eB){x+=l(r)+K;w=""}else{x+=K;w=r}}A=Object.create(L,{parent:{value:A}});B+=L.r}function C(K,r){w+=K;if(r===undefined){x+=J();return 0}var L=o(r,A);if(L){x+=J();I(L,r);return L.rB?0:r.length}var M=s(A,r);if(M){if(!(M.rE||M.eE)){w+=r}x+=J();do{if(A.cN){x+=""}A=A.parent}while(A!=M.parent);if(M.eE){x+=l(r)}w="";if(M.starts){I(M.starts,"")}return M.rE?0:r.length}if(t(r,A)){throw"Illegal"}w+=r;return r.length||1}var F=e[D];f(F);var A=F;var w="";var B=0;var v=0;var x="";try{var u,q,p=0;while(true){A.t.lastIndex=p;u=A.t.exec(E);if(!u){break}q=C(E.substr(p,u.index-p),u[0]);p=u.index+q}C(E.substr(p));return{r:B,keyword_count:v,value:x,language:D}}catch(H){if(H=="Illegal"){return{r:0,keyword_count:0,value:l(E)}}else{throw H}}}function g(s){var o={keyword_count:0,r:0,value:l(s)};var q=o;for(var p in e){if(!e.hasOwnProperty(p)){continue}var r=d(p,s);r.language=p;if(r.keyword_count+r.r>q.keyword_count+q.r){q=r}if(r.keyword_count+r.r>o.keyword_count+o.r){q=o;o=r}}if(q.language){o.second_best=q}return o}function i(q,p,o){if(p){q=q.replace(/^((<[^>]+>|\t)+)/gm,function(r,v,u,t){return v.replace(/\t/g,p)})}if(o){q=q.replace(/\n/g,"
")}return q}function m(r,u,p){var v=h(r,p);var t=a(r);if(t=="no-highlight"){return}var w=t?d(t,v):g(v);t=w.language;var o=c(r);if(o.length){var q=document.createElement("pre");q.innerHTML=w.value;w.value=j(o,c(q),v)}w.value=i(w.value,u,p);var s=r.className;if(!s.match("(\\s|^)(language-)?"+t+"(\\s|$)")){s=s?(s+" "+t):t}r.innerHTML=w.value;r.className=s;r.result={language:t,kw:w.keyword_count,re:w.r};if(w.second_best){r.second_best={language:w.second_best.language,kw:w.second_best.keyword_count,re:w.second_best.r}}}function n(){if(n.called){return}n.called=true;Array.prototype.map.call(document.getElementsByTagName("pre"),b).filter(Boolean).forEach(function(o){m(o,hljs.tabReplace)})}function k(){window.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}var e={};this.LANGUAGES=e;this.highlight=d;this.highlightAuto=g;this.fixMarkup=i;this.highlightBlock=m;this.initHighlighting=n;this.initHighlightingOnLoad=k;this.IR="[a-zA-Z][a-zA-Z0-9_]*";this.UIR="[a-zA-Z_][a-zA-Z0-9_]*";this.NR="\\b\\d+(\\.\\d+)?";this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)";this.BNR="\\b(0b[01]+)";this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";this.BE={b:"\\\\[\\s\\S]",r:0};this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE],r:0};this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE],r:0};this.CLCM={cN:"comment",b:"//",e:"$"};this.CBLCLM={cN:"comment",b:"/\\*",e:"\\*/"};this.HCM={cN:"comment",b:"#",e:"$"};this.NM={cN:"number",b:this.NR,r:0};this.CNM={cN:"number",b:this.CNR,r:0};this.BNM={cN:"number",b:this.BNR,r:0};this.inherit=function(q,r){var o={};for(var p in q){o[p]=q[p]}if(r){for(var p in r){o[p]=r[p]}}return o}}();hljs.LANGUAGES.python=function(a){var f={cN:"prompt",b:"^(>>>|\\.\\.\\.) "};var c=[{cN:"string",b:"(u|b)?r?'''",e:"'''",c:[f],r:10},{cN:"string",b:'(u|b)?r?"""',e:'"""',c:[f],r:10},{cN:"string",b:"(u|r|ur)'",e:"'",c:[a.BE],r:10},{cN:"string",b:'(u|r|ur)"',e:'"',c:[a.BE],r:10},{cN:"string",b:"(b|br)'",e:"'",c:[a.BE]},{cN:"string",b:'(b|br)"',e:'"',c:[a.BE]}].concat([a.ASM,a.QSM]);var e={cN:"title",b:a.UIR};var d={cN:"params",b:"\\(",e:"\\)",c:["self",a.CNM,f].concat(c)};var b={bWK:true,e:":",i:"[${=;\\n]",c:[e,d],r:10};return{k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10",built_in:"None True False Ellipsis NotImplemented"},i:"(|\\?)",c:c.concat([f,a.HCM,a.inherit(b,{cN:"function",k:"def"}),a.inherit(b,{cN:"class",k:"class"}),a.CNM,{cN:"decorator",b:"@",e:"$"},{b:"\\b(print|exec)\\("}])}}(hljs);hljs.LANGUAGES.cpp=function(a){var b={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr"};return{k:b,i:"",k:b,r:10,c:["self"]}]}}(hljs); -------------------------------------------------------------------------------- /javascripts/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/javascripts/main.js -------------------------------------------------------------------------------- /stylesheets/bootstrap.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v2.3.2 3 | * 4 | * Copyright 2013 Twitter, Inc 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | * Designed and built with all the love in the world @twitter by @mdo and @fat. 9 | */ 10 | .clearfix { 11 | *zoom: 1; 12 | } 13 | .clearfix:before, 14 | .clearfix:after { 15 | display: table; 16 | content: ""; 17 | line-height: 0; 18 | } 19 | .clearfix:after { 20 | clear: both; 21 | } 22 | .hide-text { 23 | font: 0/0 a; 24 | color: transparent; 25 | text-shadow: none; 26 | background-color: transparent; 27 | border: 0; 28 | } 29 | .input-block-level { 30 | display: block; 31 | width: 100%; 32 | min-height: 30px; 33 | -webkit-box-sizing: border-box; 34 | -moz-box-sizing: border-box; 35 | box-sizing: border-box; 36 | } 37 | article, 38 | aside, 39 | details, 40 | figcaption, 41 | figure, 42 | footer, 43 | header, 44 | hgroup, 45 | nav, 46 | section { 47 | display: block; 48 | } 49 | audio, 50 | canvas, 51 | video { 52 | display: inline-block; 53 | *display: inline; 54 | *zoom: 1; 55 | } 56 | audio:not([controls]) { 57 | display: none; 58 | } 59 | html { 60 | font-size: 100%; 61 | -webkit-text-size-adjust: 100%; 62 | -ms-text-size-adjust: 100%; 63 | } 64 | a:focus { 65 | outline: thin dotted #333; 66 | outline: 5px auto -webkit-focus-ring-color; 67 | outline-offset: -2px; 68 | } 69 | a:hover, 70 | a:active { 71 | outline: 0; 72 | } 73 | sub, 74 | sup { 75 | position: relative; 76 | font-size: 75%; 77 | line-height: 0; 78 | vertical-align: baseline; 79 | } 80 | sup { 81 | top: -0.5em; 82 | } 83 | sub { 84 | bottom: -0.25em; 85 | } 86 | img { 87 | /* Responsive images (ensure images don't scale beyond their parents) */ 88 | 89 | max-width: 100%; 90 | /* Part 1: Set a maxium relative to the parent */ 91 | 92 | width: auto\9; 93 | /* IE7-8 need help adjusting responsive images */ 94 | 95 | height: auto; 96 | /* Part 2: Scale the height according to the width, otherwise you get stretching */ 97 | 98 | vertical-align: middle; 99 | border: 0; 100 | -ms-interpolation-mode: bicubic; 101 | } 102 | #map_canvas img, 103 | .google-maps img { 104 | max-width: none; 105 | } 106 | button, 107 | input, 108 | select, 109 | textarea { 110 | margin: 0; 111 | font-size: 100%; 112 | vertical-align: middle; 113 | } 114 | button, 115 | input { 116 | *overflow: visible; 117 | line-height: normal; 118 | } 119 | button::-moz-focus-inner, 120 | input::-moz-focus-inner { 121 | padding: 0; 122 | border: 0; 123 | } 124 | button, 125 | html input[type="button"], 126 | input[type="reset"], 127 | input[type="submit"] { 128 | -webkit-appearance: button; 129 | cursor: pointer; 130 | } 131 | label, 132 | select, 133 | button, 134 | input[type="button"], 135 | input[type="reset"], 136 | input[type="submit"], 137 | input[type="radio"], 138 | input[type="checkbox"] { 139 | cursor: pointer; 140 | } 141 | input[type="search"] { 142 | -webkit-box-sizing: content-box; 143 | -moz-box-sizing: content-box; 144 | box-sizing: content-box; 145 | -webkit-appearance: textfield; 146 | } 147 | input[type="search"]::-webkit-search-decoration, 148 | input[type="search"]::-webkit-search-cancel-button { 149 | -webkit-appearance: none; 150 | } 151 | textarea { 152 | overflow: auto; 153 | vertical-align: top; 154 | } 155 | @media print { 156 | * { 157 | text-shadow: none !important; 158 | color: #000 !important; 159 | background: transparent !important; 160 | box-shadow: none !important; 161 | } 162 | a, 163 | a:visited { 164 | text-decoration: underline; 165 | } 166 | a[href]:after { 167 | content: " (" attr(href) ")"; 168 | } 169 | abbr[title]:after { 170 | content: " (" attr(title) ")"; 171 | } 172 | .ir a:after, 173 | a[href^="javascript:"]:after, 174 | a[href^="#"]:after { 175 | content: ""; 176 | } 177 | pre, 178 | blockquote { 179 | border: 1px solid #999; 180 | page-break-inside: avoid; 181 | } 182 | thead { 183 | display: table-header-group; 184 | } 185 | tr, 186 | img { 187 | page-break-inside: avoid; 188 | } 189 | img { 190 | max-width: 100% !important; 191 | } 192 | @page { 193 | margin: 0.5cm; 194 | } 195 | p, 196 | h2, 197 | h3 { 198 | orphans: 3; 199 | widows: 3; 200 | } 201 | h2, 202 | h3 { 203 | page-break-after: avoid; 204 | } 205 | } 206 | .row { 207 | margin-left: -20px; 208 | *zoom: 1; 209 | } 210 | .row:before, 211 | .row:after { 212 | display: table; 213 | content: ""; 214 | line-height: 0; 215 | } 216 | .row:after { 217 | clear: both; 218 | } 219 | [class*="span"] { 220 | float: left; 221 | min-height: 1px; 222 | margin-left: 20px; 223 | } 224 | .container, 225 | .navbar-static-top .container, 226 | .navbar-fixed-top .container, 227 | .navbar-fixed-bottom .container { 228 | width: 940px; 229 | } 230 | .span12 { 231 | width: 940px; 232 | } 233 | .span11 { 234 | width: 860px; 235 | } 236 | .span10 { 237 | width: 780px; 238 | } 239 | .span9 { 240 | width: 700px; 241 | } 242 | .span8 { 243 | width: 620px; 244 | } 245 | .span7 { 246 | width: 540px; 247 | } 248 | .span6 { 249 | width: 460px; 250 | } 251 | .span5 { 252 | width: 380px; 253 | } 254 | .span4 { 255 | width: 300px; 256 | } 257 | .span3 { 258 | width: 220px; 259 | } 260 | .span2 { 261 | width: 140px; 262 | } 263 | .span1 { 264 | width: 60px; 265 | } 266 | .offset12 { 267 | margin-left: 980px; 268 | } 269 | .offset11 { 270 | margin-left: 900px; 271 | } 272 | .offset10 { 273 | margin-left: 820px; 274 | } 275 | .offset9 { 276 | margin-left: 740px; 277 | } 278 | .offset8 { 279 | margin-left: 660px; 280 | } 281 | .offset7 { 282 | margin-left: 580px; 283 | } 284 | .offset6 { 285 | margin-left: 500px; 286 | } 287 | .offset5 { 288 | margin-left: 420px; 289 | } 290 | .offset4 { 291 | margin-left: 340px; 292 | } 293 | .offset3 { 294 | margin-left: 260px; 295 | } 296 | .offset2 { 297 | margin-left: 180px; 298 | } 299 | .offset1 { 300 | margin-left: 100px; 301 | } 302 | .row-fluid { 303 | width: 100%; 304 | *zoom: 1; 305 | } 306 | .row-fluid:before, 307 | .row-fluid:after { 308 | display: table; 309 | content: ""; 310 | line-height: 0; 311 | } 312 | .row-fluid:after { 313 | clear: both; 314 | } 315 | .row-fluid [class*="span"] { 316 | display: block; 317 | width: 100%; 318 | min-height: 30px; 319 | -webkit-box-sizing: border-box; 320 | -moz-box-sizing: border-box; 321 | box-sizing: border-box; 322 | float: left; 323 | margin-left: 2.127659574468085%; 324 | *margin-left: 2.074468085106383%; 325 | } 326 | .row-fluid [class*="span"]:first-child { 327 | margin-left: 0; 328 | } 329 | .row-fluid .controls-row [class*="span"] + [class*="span"] { 330 | margin-left: 2.127659574468085%; 331 | } 332 | .row-fluid .span12 { 333 | width: 100%; 334 | *width: 99.94680851063829%; 335 | } 336 | .row-fluid .span11 { 337 | width: 91.48936170212765%; 338 | *width: 91.43617021276594%; 339 | } 340 | .row-fluid .span10 { 341 | width: 82.97872340425532%; 342 | *width: 82.92553191489361%; 343 | } 344 | .row-fluid .span9 { 345 | width: 74.46808510638297%; 346 | *width: 74.41489361702126%; 347 | } 348 | .row-fluid .span8 { 349 | width: 65.95744680851064%; 350 | *width: 65.90425531914893%; 351 | } 352 | .row-fluid .span7 { 353 | width: 57.44680851063829%; 354 | *width: 57.39361702127659%; 355 | } 356 | .row-fluid .span6 { 357 | width: 48.93617021276595%; 358 | *width: 48.88297872340425%; 359 | } 360 | .row-fluid .span5 { 361 | width: 40.42553191489362%; 362 | *width: 40.37234042553192%; 363 | } 364 | .row-fluid .span4 { 365 | width: 31.914893617021278%; 366 | *width: 31.861702127659576%; 367 | } 368 | .row-fluid .span3 { 369 | width: 23.404255319148934%; 370 | *width: 23.351063829787233%; 371 | } 372 | .row-fluid .span2 { 373 | width: 14.893617021276595%; 374 | *width: 14.840425531914894%; 375 | } 376 | .row-fluid .span1 { 377 | width: 6.382978723404255%; 378 | *width: 6.329787234042553%; 379 | } 380 | .row-fluid .offset12 { 381 | margin-left: 104.25531914893617%; 382 | *margin-left: 104.14893617021275%; 383 | } 384 | .row-fluid .offset12:first-child { 385 | margin-left: 102.12765957446808%; 386 | *margin-left: 102.02127659574467%; 387 | } 388 | .row-fluid .offset11 { 389 | margin-left: 95.74468085106382%; 390 | *margin-left: 95.6382978723404%; 391 | } 392 | .row-fluid .offset11:first-child { 393 | margin-left: 93.61702127659574%; 394 | *margin-left: 93.51063829787232%; 395 | } 396 | .row-fluid .offset10 { 397 | margin-left: 87.23404255319149%; 398 | *margin-left: 87.12765957446807%; 399 | } 400 | .row-fluid .offset10:first-child { 401 | margin-left: 85.1063829787234%; 402 | *margin-left: 84.99999999999999%; 403 | } 404 | .row-fluid .offset9 { 405 | margin-left: 78.72340425531914%; 406 | *margin-left: 78.61702127659572%; 407 | } 408 | .row-fluid .offset9:first-child { 409 | margin-left: 76.59574468085106%; 410 | *margin-left: 76.48936170212764%; 411 | } 412 | .row-fluid .offset8 { 413 | margin-left: 70.2127659574468%; 414 | *margin-left: 70.10638297872339%; 415 | } 416 | .row-fluid .offset8:first-child { 417 | margin-left: 68.08510638297872%; 418 | *margin-left: 67.9787234042553%; 419 | } 420 | .row-fluid .offset7 { 421 | margin-left: 61.70212765957446%; 422 | *margin-left: 61.59574468085106%; 423 | } 424 | .row-fluid .offset7:first-child { 425 | margin-left: 59.574468085106375%; 426 | *margin-left: 59.46808510638297%; 427 | } 428 | .row-fluid .offset6 { 429 | margin-left: 53.191489361702125%; 430 | *margin-left: 53.085106382978715%; 431 | } 432 | .row-fluid .offset6:first-child { 433 | margin-left: 51.063829787234035%; 434 | *margin-left: 50.95744680851063%; 435 | } 436 | .row-fluid .offset5 { 437 | margin-left: 44.68085106382979%; 438 | *margin-left: 44.57446808510638%; 439 | } 440 | .row-fluid .offset5:first-child { 441 | margin-left: 42.5531914893617%; 442 | *margin-left: 42.4468085106383%; 443 | } 444 | .row-fluid .offset4 { 445 | margin-left: 36.170212765957444%; 446 | *margin-left: 36.06382978723405%; 447 | } 448 | .row-fluid .offset4:first-child { 449 | margin-left: 34.04255319148936%; 450 | *margin-left: 33.93617021276596%; 451 | } 452 | .row-fluid .offset3 { 453 | margin-left: 27.659574468085104%; 454 | *margin-left: 27.5531914893617%; 455 | } 456 | .row-fluid .offset3:first-child { 457 | margin-left: 25.53191489361702%; 458 | *margin-left: 25.425531914893618%; 459 | } 460 | .row-fluid .offset2 { 461 | margin-left: 19.148936170212764%; 462 | *margin-left: 19.04255319148936%; 463 | } 464 | .row-fluid .offset2:first-child { 465 | margin-left: 17.02127659574468%; 466 | *margin-left: 16.914893617021278%; 467 | } 468 | .row-fluid .offset1 { 469 | margin-left: 10.638297872340425%; 470 | *margin-left: 10.53191489361702%; 471 | } 472 | .row-fluid .offset1:first-child { 473 | margin-left: 8.51063829787234%; 474 | *margin-left: 8.404255319148938%; 475 | } 476 | [class*="span"].hide, 477 | .row-fluid [class*="span"].hide { 478 | display: none; 479 | } 480 | [class*="span"].pull-right, 481 | .row-fluid [class*="span"].pull-right { 482 | float: right; 483 | } 484 | .container { 485 | margin-right: auto; 486 | margin-left: auto; 487 | *zoom: 1; 488 | } 489 | .container:before, 490 | .container:after { 491 | display: table; 492 | content: ""; 493 | line-height: 0; 494 | } 495 | .container:after { 496 | clear: both; 497 | } 498 | .container-fluid { 499 | padding-right: 20px; 500 | padding-left: 20px; 501 | *zoom: 1; 502 | } 503 | .container-fluid:before, 504 | .container-fluid:after { 505 | display: table; 506 | content: ""; 507 | line-height: 0; 508 | } 509 | .container-fluid:after { 510 | clear: both; 511 | } 512 | p { 513 | margin: 0 0 10px; 514 | } 515 | .lead { 516 | margin-bottom: 20px; 517 | font-size: 21px; 518 | font-weight: 200; 519 | line-height: 30px; 520 | } 521 | small { 522 | font-size: 85%; 523 | } 524 | strong { 525 | font-weight: bold; 526 | } 527 | em { 528 | font-style: italic; 529 | } 530 | cite { 531 | font-style: normal; 532 | } 533 | .muted { 534 | color: #999999; 535 | } 536 | a.muted:hover, 537 | a.muted:focus { 538 | color: #808080; 539 | } 540 | .text-warning { 541 | color: #c09853; 542 | } 543 | a.text-warning:hover, 544 | a.text-warning:focus { 545 | color: #a47e3c; 546 | } 547 | .text-error { 548 | color: #b94a48; 549 | } 550 | a.text-error:hover, 551 | a.text-error:focus { 552 | color: #953b39; 553 | } 554 | .text-info { 555 | color: #3a87ad; 556 | } 557 | a.text-info:hover, 558 | a.text-info:focus { 559 | color: #2d6987; 560 | } 561 | .text-success { 562 | color: #468847; 563 | } 564 | a.text-success:hover, 565 | a.text-success:focus { 566 | color: #356635; 567 | } 568 | .text-left { 569 | text-align: left; 570 | } 571 | .text-right { 572 | text-align: right; 573 | } 574 | .text-center { 575 | text-align: center; 576 | } 577 | h1, 578 | h2, 579 | h3, 580 | h4, 581 | h5, 582 | h6 { 583 | margin: 10px 0; 584 | font-family: inherit; 585 | font-weight: bold; 586 | line-height: 20px; 587 | color: inherit; 588 | text-rendering: optimizelegibility; 589 | } 590 | h1 small, 591 | h2 small, 592 | h3 small, 593 | h4 small, 594 | h5 small, 595 | h6 small { 596 | font-weight: normal; 597 | line-height: 1; 598 | color: #999999; 599 | } 600 | h1, 601 | h2, 602 | h3 { 603 | line-height: 40px; 604 | } 605 | h1 { 606 | font-size: 38.5px; 607 | } 608 | h2 { 609 | font-size: 31.5px; 610 | } 611 | h3 { 612 | font-size: 24.5px; 613 | } 614 | h4 { 615 | font-size: 17.5px; 616 | } 617 | h5 { 618 | font-size: 14px; 619 | } 620 | h6 { 621 | font-size: 11.9px; 622 | } 623 | h1 small { 624 | font-size: 24.5px; 625 | } 626 | h2 small { 627 | font-size: 17.5px; 628 | } 629 | h3 small { 630 | font-size: 14px; 631 | } 632 | h4 small { 633 | font-size: 14px; 634 | } 635 | .page-header { 636 | padding-bottom: 9px; 637 | margin: 20px 0 30px; 638 | border-bottom: 1px solid #eeeeee; 639 | } 640 | ul, 641 | ol { 642 | padding: 0; 643 | margin: 0 0 10px 25px; 644 | } 645 | ul ul, 646 | ul ol, 647 | ol ol, 648 | ol ul { 649 | margin-bottom: 0; 650 | } 651 | li { 652 | line-height: 20px; 653 | } 654 | ul.unstyled, 655 | ol.unstyled { 656 | margin-left: 0; 657 | list-style: none; 658 | } 659 | ul.inline, 660 | ol.inline { 661 | margin-left: 0; 662 | list-style: none; 663 | } 664 | ul.inline > li, 665 | ol.inline > li { 666 | display: inline-block; 667 | *display: inline; 668 | /* IE7 inline-block hack */ 669 | 670 | *zoom: 1; 671 | padding-left: 5px; 672 | padding-right: 5px; 673 | } 674 | dl { 675 | margin-bottom: 20px; 676 | } 677 | dt, 678 | dd { 679 | line-height: 20px; 680 | } 681 | dt { 682 | font-weight: bold; 683 | } 684 | dd { 685 | margin-left: 10px; 686 | } 687 | .dl-horizontal { 688 | *zoom: 1; 689 | } 690 | .dl-horizontal:before, 691 | .dl-horizontal:after { 692 | display: table; 693 | content: ""; 694 | line-height: 0; 695 | } 696 | .dl-horizontal:after { 697 | clear: both; 698 | } 699 | .dl-horizontal dt { 700 | float: left; 701 | width: 160px; 702 | clear: left; 703 | text-align: right; 704 | overflow: hidden; 705 | text-overflow: ellipsis; 706 | white-space: nowrap; 707 | } 708 | .dl-horizontal dd { 709 | margin-left: 180px; 710 | } 711 | hr { 712 | margin: 20px 0; 713 | border: 0; 714 | border-top: 1px solid #eeeeee; 715 | border-bottom: 1px solid #ffffff; 716 | } 717 | abbr[title], 718 | abbr[data-original-title] { 719 | cursor: help; 720 | border-bottom: 1px dotted #999999; 721 | } 722 | abbr.initialism { 723 | font-size: 90%; 724 | text-transform: uppercase; 725 | } 726 | blockquote { 727 | padding: 0 0 0 15px; 728 | margin: 0 0 20px; 729 | border-left: 5px solid #eeeeee; 730 | } 731 | blockquote p { 732 | margin-bottom: 0; 733 | font-size: 17.5px; 734 | font-weight: 300; 735 | line-height: 1.25; 736 | } 737 | blockquote small { 738 | display: block; 739 | line-height: 20px; 740 | color: #999999; 741 | } 742 | blockquote small:before { 743 | content: '\2014 \00A0'; 744 | } 745 | blockquote.pull-right { 746 | float: right; 747 | padding-right: 15px; 748 | padding-left: 0; 749 | border-right: 5px solid #eeeeee; 750 | border-left: 0; 751 | } 752 | blockquote.pull-right p, 753 | blockquote.pull-right small { 754 | text-align: right; 755 | } 756 | blockquote.pull-right small:before { 757 | content: ''; 758 | } 759 | blockquote.pull-right small:after { 760 | content: '\00A0 \2014'; 761 | } 762 | q:before, 763 | q:after, 764 | blockquote:before, 765 | blockquote:after { 766 | content: ""; 767 | } 768 | address { 769 | display: block; 770 | margin-bottom: 20px; 771 | font-style: normal; 772 | line-height: 20px; 773 | } 774 | code, 775 | pre { 776 | padding: 0 3px 2px; 777 | font-family: Monaco, Menlo, Consolas, "Courier New", monospace; 778 | font-size: 12px; 779 | color: #333333; 780 | -webkit-border-radius: 3px; 781 | -moz-border-radius: 3px; 782 | border-radius: 3px; 783 | } 784 | code { 785 | padding: 2px 4px; 786 | color: #d14; 787 | background-color: #f7f7f9; 788 | border: 1px solid #e1e1e8; 789 | white-space: nowrap; 790 | } 791 | pre { 792 | display: block; 793 | padding: 9.5px; 794 | margin: 0 0 10px; 795 | font-size: 13px; 796 | line-height: 20px; 797 | word-break: break-all; 798 | word-wrap: break-word; 799 | white-space: pre; 800 | white-space: pre-wrap; 801 | background-color: #f5f5f5; 802 | border: 1px solid #ccc; 803 | border: 1px solid rgba(0, 0, 0, 0.15); 804 | -webkit-border-radius: 4px; 805 | -moz-border-radius: 4px; 806 | border-radius: 4px; 807 | } 808 | pre.prettyprint { 809 | margin-bottom: 20px; 810 | } 811 | pre code { 812 | padding: 0; 813 | color: inherit; 814 | white-space: pre; 815 | white-space: pre-wrap; 816 | background-color: transparent; 817 | border: 0; 818 | } 819 | .pre-scrollable { 820 | max-height: 340px; 821 | overflow-y: scroll; 822 | } 823 | [class^="icon-"], 824 | [class*=" icon-"] { 825 | display: inline-block; 826 | width: 14px; 827 | height: 14px; 828 | *margin-right: .3em; 829 | line-height: 14px; 830 | vertical-align: text-top; 831 | background-image: url("../img/glyphicons-halflings.png"); 832 | background-position: 14px 14px; 833 | background-repeat: no-repeat; 834 | margin-top: 1px; 835 | } 836 | /* White icons with optional class, or on hover/focus/active states of certain elements */ 837 | .icon-white, 838 | .nav-pills > .active > a > [class^="icon-"], 839 | .nav-pills > .active > a > [class*=" icon-"], 840 | .nav-list > .active > a > [class^="icon-"], 841 | .nav-list > .active > a > [class*=" icon-"], 842 | .navbar-inverse .nav > .active > a > [class^="icon-"], 843 | .navbar-inverse .nav > .active > a > [class*=" icon-"], 844 | .dropdown-menu > li > a:hover > [class^="icon-"], 845 | .dropdown-menu > li > a:focus > [class^="icon-"], 846 | .dropdown-menu > li > a:hover > [class*=" icon-"], 847 | .dropdown-menu > li > a:focus > [class*=" icon-"], 848 | .dropdown-menu > .active > a > [class^="icon-"], 849 | .dropdown-menu > .active > a > [class*=" icon-"], 850 | .dropdown-submenu:hover > a > [class^="icon-"], 851 | .dropdown-submenu:focus > a > [class^="icon-"], 852 | .dropdown-submenu:hover > a > [class*=" icon-"], 853 | .dropdown-submenu:focus > a > [class*=" icon-"] { 854 | background-image: url("../img/glyphicons-halflings-white.png"); 855 | } 856 | .icon-glass { 857 | background-position: 0 0; 858 | } 859 | .icon-music { 860 | background-position: -24px 0; 861 | } 862 | .icon-search { 863 | background-position: -48px 0; 864 | } 865 | .icon-envelope { 866 | background-position: -72px 0; 867 | } 868 | .icon-heart { 869 | background-position: -96px 0; 870 | } 871 | .icon-star { 872 | background-position: -120px 0; 873 | } 874 | .icon-star-empty { 875 | background-position: -144px 0; 876 | } 877 | .icon-user { 878 | background-position: -168px 0; 879 | } 880 | .icon-film { 881 | background-position: -192px 0; 882 | } 883 | .icon-th-large { 884 | background-position: -216px 0; 885 | } 886 | .icon-th { 887 | background-position: -240px 0; 888 | } 889 | .icon-th-list { 890 | background-position: -264px 0; 891 | } 892 | .icon-ok { 893 | background-position: -288px 0; 894 | } 895 | .icon-remove { 896 | background-position: -312px 0; 897 | } 898 | .icon-zoom-in { 899 | background-position: -336px 0; 900 | } 901 | .icon-zoom-out { 902 | background-position: -360px 0; 903 | } 904 | .icon-off { 905 | background-position: -384px 0; 906 | } 907 | .icon-signal { 908 | background-position: -408px 0; 909 | } 910 | .icon-cog { 911 | background-position: -432px 0; 912 | } 913 | .icon-trash { 914 | background-position: -456px 0; 915 | } 916 | .icon-home { 917 | background-position: 0 -24px; 918 | } 919 | .icon-file { 920 | background-position: -24px -24px; 921 | } 922 | .icon-time { 923 | background-position: -48px -24px; 924 | } 925 | .icon-road { 926 | background-position: -72px -24px; 927 | } 928 | .icon-download-alt { 929 | background-position: -96px -24px; 930 | } 931 | .icon-download { 932 | background-position: -120px -24px; 933 | } 934 | .icon-upload { 935 | background-position: -144px -24px; 936 | } 937 | .icon-inbox { 938 | background-position: -168px -24px; 939 | } 940 | .icon-play-circle { 941 | background-position: -192px -24px; 942 | } 943 | .icon-repeat { 944 | background-position: -216px -24px; 945 | } 946 | .icon-refresh { 947 | background-position: -240px -24px; 948 | } 949 | .icon-list-alt { 950 | background-position: -264px -24px; 951 | } 952 | .icon-lock { 953 | background-position: -287px -24px; 954 | } 955 | .icon-flag { 956 | background-position: -312px -24px; 957 | } 958 | .icon-headphones { 959 | background-position: -336px -24px; 960 | } 961 | .icon-volume-off { 962 | background-position: -360px -24px; 963 | } 964 | .icon-volume-down { 965 | background-position: -384px -24px; 966 | } 967 | .icon-volume-up { 968 | background-position: -408px -24px; 969 | } 970 | .icon-qrcode { 971 | background-position: -432px -24px; 972 | } 973 | .icon-barcode { 974 | background-position: -456px -24px; 975 | } 976 | .icon-tag { 977 | background-position: 0 -48px; 978 | } 979 | .icon-tags { 980 | background-position: -25px -48px; 981 | } 982 | .icon-book { 983 | background-position: -48px -48px; 984 | } 985 | .icon-bookmark { 986 | background-position: -72px -48px; 987 | } 988 | .icon-print { 989 | background-position: -96px -48px; 990 | } 991 | .icon-camera { 992 | background-position: -120px -48px; 993 | } 994 | .icon-font { 995 | background-position: -144px -48px; 996 | } 997 | .icon-bold { 998 | background-position: -167px -48px; 999 | } 1000 | .icon-italic { 1001 | background-position: -192px -48px; 1002 | } 1003 | .icon-text-height { 1004 | background-position: -216px -48px; 1005 | } 1006 | .icon-text-width { 1007 | background-position: -240px -48px; 1008 | } 1009 | .icon-align-left { 1010 | background-position: -264px -48px; 1011 | } 1012 | .icon-align-center { 1013 | background-position: -288px -48px; 1014 | } 1015 | .icon-align-right { 1016 | background-position: -312px -48px; 1017 | } 1018 | .icon-align-justify { 1019 | background-position: -336px -48px; 1020 | } 1021 | .icon-list { 1022 | background-position: -360px -48px; 1023 | } 1024 | .icon-indent-left { 1025 | background-position: -384px -48px; 1026 | } 1027 | .icon-indent-right { 1028 | background-position: -408px -48px; 1029 | } 1030 | .icon-facetime-video { 1031 | background-position: -432px -48px; 1032 | } 1033 | .icon-picture { 1034 | background-position: -456px -48px; 1035 | } 1036 | .icon-pencil { 1037 | background-position: 0 -72px; 1038 | } 1039 | .icon-map-marker { 1040 | background-position: -24px -72px; 1041 | } 1042 | .icon-adjust { 1043 | background-position: -48px -72px; 1044 | } 1045 | .icon-tint { 1046 | background-position: -72px -72px; 1047 | } 1048 | .icon-edit { 1049 | background-position: -96px -72px; 1050 | } 1051 | .icon-share { 1052 | background-position: -120px -72px; 1053 | } 1054 | .icon-check { 1055 | background-position: -144px -72px; 1056 | } 1057 | .icon-move { 1058 | background-position: -168px -72px; 1059 | } 1060 | .icon-step-backward { 1061 | background-position: -192px -72px; 1062 | } 1063 | .icon-fast-backward { 1064 | background-position: -216px -72px; 1065 | } 1066 | .icon-backward { 1067 | background-position: -240px -72px; 1068 | } 1069 | .icon-play { 1070 | background-position: -264px -72px; 1071 | } 1072 | .icon-pause { 1073 | background-position: -288px -72px; 1074 | } 1075 | .icon-stop { 1076 | background-position: -312px -72px; 1077 | } 1078 | .icon-forward { 1079 | background-position: -336px -72px; 1080 | } 1081 | .icon-fast-forward { 1082 | background-position: -360px -72px; 1083 | } 1084 | .icon-step-forward { 1085 | background-position: -384px -72px; 1086 | } 1087 | .icon-eject { 1088 | background-position: -408px -72px; 1089 | } 1090 | .icon-chevron-left { 1091 | background-position: -432px -72px; 1092 | } 1093 | .icon-chevron-right { 1094 | background-position: -456px -72px; 1095 | } 1096 | .icon-plus-sign { 1097 | background-position: 0 -96px; 1098 | } 1099 | .icon-minus-sign { 1100 | background-position: -24px -96px; 1101 | } 1102 | .icon-remove-sign { 1103 | background-position: -48px -96px; 1104 | } 1105 | .icon-ok-sign { 1106 | background-position: -72px -96px; 1107 | } 1108 | .icon-question-sign { 1109 | background-position: -96px -96px; 1110 | } 1111 | .icon-info-sign { 1112 | background-position: -120px -96px; 1113 | } 1114 | .icon-screenshot { 1115 | background-position: -144px -96px; 1116 | } 1117 | .icon-remove-circle { 1118 | background-position: -168px -96px; 1119 | } 1120 | .icon-ok-circle { 1121 | background-position: -192px -96px; 1122 | } 1123 | .icon-ban-circle { 1124 | background-position: -216px -96px; 1125 | } 1126 | .icon-arrow-left { 1127 | background-position: -240px -96px; 1128 | } 1129 | .icon-arrow-right { 1130 | background-position: -264px -96px; 1131 | } 1132 | .icon-arrow-up { 1133 | background-position: -289px -96px; 1134 | } 1135 | .icon-arrow-down { 1136 | background-position: -312px -96px; 1137 | } 1138 | .icon-share-alt { 1139 | background-position: -336px -96px; 1140 | } 1141 | .icon-resize-full { 1142 | background-position: -360px -96px; 1143 | } 1144 | .icon-resize-small { 1145 | background-position: -384px -96px; 1146 | } 1147 | .icon-plus { 1148 | background-position: -408px -96px; 1149 | } 1150 | .icon-minus { 1151 | background-position: -433px -96px; 1152 | } 1153 | .icon-asterisk { 1154 | background-position: -456px -96px; 1155 | } 1156 | .icon-exclamation-sign { 1157 | background-position: 0 -120px; 1158 | } 1159 | .icon-gift { 1160 | background-position: -24px -120px; 1161 | } 1162 | .icon-leaf { 1163 | background-position: -48px -120px; 1164 | } 1165 | .icon-fire { 1166 | background-position: -72px -120px; 1167 | } 1168 | .icon-eye-open { 1169 | background-position: -96px -120px; 1170 | } 1171 | .icon-eye-close { 1172 | background-position: -120px -120px; 1173 | } 1174 | .icon-warning-sign { 1175 | background-position: -144px -120px; 1176 | } 1177 | .icon-plane { 1178 | background-position: -168px -120px; 1179 | } 1180 | .icon-calendar { 1181 | background-position: -192px -120px; 1182 | } 1183 | .icon-random { 1184 | background-position: -216px -120px; 1185 | width: 16px; 1186 | } 1187 | .icon-comment { 1188 | background-position: -240px -120px; 1189 | } 1190 | .icon-magnet { 1191 | background-position: -264px -120px; 1192 | } 1193 | .icon-chevron-up { 1194 | background-position: -288px -120px; 1195 | } 1196 | .icon-chevron-down { 1197 | background-position: -313px -119px; 1198 | } 1199 | .icon-retweet { 1200 | background-position: -336px -120px; 1201 | } 1202 | .icon-shopping-cart { 1203 | background-position: -360px -120px; 1204 | } 1205 | .icon-folder-close { 1206 | background-position: -384px -120px; 1207 | width: 16px; 1208 | } 1209 | .icon-folder-open { 1210 | background-position: -408px -120px; 1211 | width: 16px; 1212 | } 1213 | .icon-resize-vertical { 1214 | background-position: -432px -119px; 1215 | } 1216 | .icon-resize-horizontal { 1217 | background-position: -456px -118px; 1218 | } 1219 | .icon-hdd { 1220 | background-position: 0 -144px; 1221 | } 1222 | .icon-bullhorn { 1223 | background-position: -24px -144px; 1224 | } 1225 | .icon-bell { 1226 | background-position: -48px -144px; 1227 | } 1228 | .icon-certificate { 1229 | background-position: -72px -144px; 1230 | } 1231 | .icon-thumbs-up { 1232 | background-position: -96px -144px; 1233 | } 1234 | .icon-thumbs-down { 1235 | background-position: -120px -144px; 1236 | } 1237 | .icon-hand-right { 1238 | background-position: -144px -144px; 1239 | } 1240 | .icon-hand-left { 1241 | background-position: -168px -144px; 1242 | } 1243 | .icon-hand-up { 1244 | background-position: -192px -144px; 1245 | } 1246 | .icon-hand-down { 1247 | background-position: -216px -144px; 1248 | } 1249 | .icon-circle-arrow-right { 1250 | background-position: -240px -144px; 1251 | } 1252 | .icon-circle-arrow-left { 1253 | background-position: -264px -144px; 1254 | } 1255 | .icon-circle-arrow-up { 1256 | background-position: -288px -144px; 1257 | } 1258 | .icon-circle-arrow-down { 1259 | background-position: -312px -144px; 1260 | } 1261 | .icon-globe { 1262 | background-position: -336px -144px; 1263 | } 1264 | .icon-wrench { 1265 | background-position: -360px -144px; 1266 | } 1267 | .icon-tasks { 1268 | background-position: -384px -144px; 1269 | } 1270 | .icon-filter { 1271 | background-position: -408px -144px; 1272 | } 1273 | .icon-briefcase { 1274 | background-position: -432px -144px; 1275 | } 1276 | .icon-fullscreen { 1277 | background-position: -456px -144px; 1278 | } 1279 | .well { 1280 | min-height: 20px; 1281 | padding: 19px; 1282 | margin-bottom: 20px; 1283 | background-color: #f5f5f5; 1284 | border: 1px solid #e3e3e3; 1285 | -webkit-border-radius: 4px; 1286 | -moz-border-radius: 4px; 1287 | border-radius: 4px; 1288 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); 1289 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); 1290 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); 1291 | } 1292 | .well blockquote { 1293 | border-color: #ddd; 1294 | border-color: rgba(0, 0, 0, 0.15); 1295 | } 1296 | .well-large { 1297 | padding: 24px; 1298 | -webkit-border-radius: 6px; 1299 | -moz-border-radius: 6px; 1300 | border-radius: 6px; 1301 | } 1302 | .well-small { 1303 | padding: 9px; 1304 | -webkit-border-radius: 3px; 1305 | -moz-border-radius: 3px; 1306 | border-radius: 3px; 1307 | } 1308 | -------------------------------------------------------------------------------- /stylesheets/compress.css: -------------------------------------------------------------------------------- 1 | .clearfix{*zoom:1} 2 | .clearfix:before,.clearfix:after{display:table;content:"";line-height:0} 3 | .clearfix:after{clear:both} 4 | .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0} 5 | .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} 6 | article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block} 7 | audio,canvas,video{display:inline-block;*display:inline;*zoom:1} 8 | audio:not([controls]){display:none} 9 | html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%} 10 | a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px} 11 | a:hover,a:active{outline:0} 12 | sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline} 13 | sup{top:-.5em} 14 | sub{bottom:-.25em} 15 | img{max-width:100%;width:auto\9;height:auto;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic} 16 | #map_canvas img,.google-maps img{max-width:none} 17 | button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle} 18 | button,input{*overflow:visible;line-height:normal} 19 | button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0} 20 | button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer} 21 | label,select,button,input[type=button],input[type=reset],input[type=submit],input[type=radio],input[type=checkbox]{cursor:pointer} 22 | input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield} 23 | input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none} 24 | textarea{overflow:auto;vertical-align:top} 25 | @media print{*{text-shadow:none!important;color:#000!important;background:transparent!important;box-shadow:none!important} 26 | a,a:visited{text-decoration:underline} 27 | a[href]:after{content:"("attr(href) ")"} 28 | abbr[title]:after{content:"("attr(title) ")"} 29 | .ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""} 30 | pre,blockquote{border:1px solid #999;page-break-inside:avoid} 31 | thead{display:table-header-group} 32 | tr,img{page-break-inside:avoid} 33 | img{max-width:100%!important} 34 | @ page{margin:.5cm} 35 | p,h2,h3{orphans:3;widows:3} 36 | h2,h3{page-break-after:avoid} 37 | } 38 | .row{margin-left:-20px;*zoom:1} 39 | .row:before,.row:after{display:table;content:"";line-height:0} 40 | .row:after{clear:both} 41 | [class*=span]{float:left;min-height:1px;margin-left:20px} 42 | .container,.navbar-static-top .container,.navbar-fixed-top .container,.navbar-fixed-bottom .container{width:940px} 43 | .span12{width:940px} 44 | .span11{width:860px} 45 | .span10{width:780px} 46 | .span9{width:700px} 47 | .span8{width:620px} 48 | .span7{width:540px} 49 | .span6{width:460px} 50 | .span5{width:380px} 51 | .span4{width:300px} 52 | .span3{width:220px} 53 | .span2{width:140px} 54 | .span1{width:60px} 55 | .offset12{margin-left:980px} 56 | .offset11{margin-left:900px} 57 | .offset10{margin-left:820px} 58 | .offset9{margin-left:740px} 59 | .offset8{margin-left:660px} 60 | .offset7{margin-left:580px} 61 | .offset6{margin-left:500px} 62 | .offset5{margin-left:420px} 63 | .offset4{margin-left:340px} 64 | .offset3{margin-left:260px} 65 | .offset2{margin-left:180px} 66 | .offset1{margin-left:100px} 67 | .row-fluid{width:100%;*zoom:1} 68 | .row-fluid:before,.row-fluid:after{display:table;content:"";line-height:0} 69 | .row-fluid:after{clear:both} 70 | .row-fluid [class*=span]{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;float:left;margin-left:2.127659574468085%;*margin-left:2.074468085106383%} 71 | .row-fluid [class*=span]:first-child{margin-left:0} 72 | .row-fluid .controls-row [class*=span]+[class*=span]{margin-left:2.127659574468085%} 73 | .row-fluid .span12{width:100%;*width:99.94680851063829%} 74 | .row-fluid .span11{width:91.48936170212765%;*width:91.43617021276594%} 75 | .row-fluid .span10{width:82.97872340425532%;*width:82.92553191489361%} 76 | .row-fluid .span9{width:74.46808510638297%;*width:74.41489361702126%} 77 | .row-fluid .span8{width:65.95744680851064%;*width:65.90425531914893%} 78 | .row-fluid .span7{width:57.44680851063829%;*width:57.39361702127659%} 79 | .row-fluid .span6{width:48.93617021276595%;*width:48.88297872340425%} 80 | .row-fluid .span5{width:40.42553191489362%;*width:40.37234042553192%} 81 | .row-fluid .span4{width:31.914893617021278%;*width:31.861702127659576%} 82 | .row-fluid .span3{width:23.404255319148934%;*width:23.351063829787233%} 83 | .row-fluid .span2{width:14.893617021276595%;*width:14.840425531914894%} 84 | .row-fluid .span1{width:6.382978723404255%;*width:6.329787234042553%} 85 | .row-fluid .offset12{margin-left:104.25531914893617%;*margin-left:104.14893617021275%} 86 | .row-fluid .offset12:first-child{margin-left:102.12765957446808%;*margin-left:102.02127659574467%} 87 | .row-fluid .offset11{margin-left:95.74468085106382%;*margin-left:95.6382978723404%} 88 | .row-fluid .offset11:first-child{margin-left:93.61702127659574%;*margin-left:93.51063829787232%} 89 | .row-fluid .offset10{margin-left:87.23404255319149%;*margin-left:87.12765957446807%} 90 | .row-fluid .offset10:first-child{margin-left:85.1063829787234%;*margin-left:84.99999999999999%} 91 | .row-fluid .offset9{margin-left:78.72340425531914%;*margin-left:78.61702127659572%} 92 | .row-fluid .offset9:first-child{margin-left:76.59574468085106%;*margin-left:76.48936170212764%} 93 | .row-fluid .offset8{margin-left:70.2127659574468%;*margin-left:70.10638297872339%} 94 | .row-fluid .offset8:first-child{margin-left:68.08510638297872%;*margin-left:67.9787234042553%} 95 | .row-fluid .offset7{margin-left:61.70212765957446%;*margin-left:61.59574468085106%} 96 | .row-fluid .offset7:first-child{margin-left:59.574468085106375%;*margin-left:59.46808510638297%} 97 | .row-fluid .offset6{margin-left:53.191489361702125%;*margin-left:53.085106382978715%} 98 | .row-fluid .offset6:first-child{margin-left:51.063829787234035%;*margin-left:50.95744680851063%} 99 | .row-fluid .offset5{margin-left:44.68085106382979%;*margin-left:44.57446808510638%} 100 | .row-fluid .offset5:first-child{margin-left:42.5531914893617%;*margin-left:42.4468085106383%} 101 | .row-fluid .offset4{margin-left:36.170212765957444%;*margin-left:36.06382978723405%} 102 | .row-fluid .offset4:first-child{margin-left:34.04255319148936%;*margin-left:33.93617021276596%} 103 | .row-fluid .offset3{margin-left:27.659574468085104%;*margin-left:27.5531914893617%} 104 | .row-fluid .offset3:first-child{margin-left:25.53191489361702%;*margin-left:25.425531914893618%} 105 | .row-fluid .offset2{margin-left:19.148936170212764%;*margin-left:19.04255319148936%} 106 | .row-fluid .offset2:first-child{margin-left:17.02127659574468%;*margin-left:16.914893617021278%} 107 | .row-fluid .offset1{margin-left:10.638297872340425%;*margin-left:10.53191489361702%} 108 | .row-fluid .offset1:first-child{margin-left:8.51063829787234%;*margin-left:8.404255319148938%} 109 | [class*=span].hide,.row-fluid [class*=span].hide{display:none} 110 | [class*=span].pull-right,.row-fluid [class*=span].pull-right{float:right} 111 | .container{margin-right:auto;margin-left:auto;*zoom:1} 112 | .container:before,.container:after{display:table;content:"";line-height:0} 113 | .container:after{clear:both} 114 | .container-fluid{padding-right:20px;padding-left:20px;*zoom:1} 115 | .container-fluid:before,.container-fluid:after{display:table;content:"";line-height:0} 116 | .container-fluid:after{clear:both} 117 | p{margin:0 0 10px} 118 | .lead{margin-bottom:20px;font-size:21px;font-weight:200;line-height:30px} 119 | small{font-size:85%} 120 | strong{font-weight:700} 121 | em{font-style:italic} 122 | cite{font-style:normal} 123 | .muted{color:#999} 124 | a.muted:hover,a.muted:focus{color:gray} 125 | .text-warning{color:#c09853} 126 | a.text-warning:hover,a.text-warning:focus{color:#a47e3c} 127 | .text-error{color:#b94a48} 128 | a.text-error:hover,a.text-error:focus{color:#953b39} 129 | .text-info{color:#3a87ad} 130 | a.text-info:hover,a.text-info:focus{color:#2d6987} 131 | .text-success{color:#468847} 132 | a.text-success:hover,a.text-success:focus{color:#356635} 133 | .text-left{text-align:left} 134 | .text-right{text-align:right} 135 | .text-center{text-align:center} 136 | h1,h2,h3,h4,h5,h6{margin:10px 0;font-family:inherit;font-weight:700;line-height:20px;color:inherit;text-rendering:optimizelegibility} 137 | h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-weight:400;line-height:1;color:#999} 138 | h1,h2,h3{line-height:40px} 139 | h1{font-size:38.5px} 140 | h2{font-size:31.5px} 141 | h3{font-size:24.5px} 142 | h4{font-size:17.5px} 143 | h5{font-size:14px} 144 | h6{font-size:11.9px} 145 | h1 small{font-size:24.5px} 146 | h2 small{font-size:17.5px} 147 | h3 small{font-size:14px} 148 | h4 small{font-size:14px} 149 | .page-header{padding-bottom:9px;margin:20px 0 30px;border-bottom:1px solid #eee} 150 | ul,ol{padding:0;margin:0 0 10px 25px} 151 | ul ul,ul ol,ol ol,ol ul{margin-bottom:0} 152 | li{line-height:20px} 153 | ul.unstyled,ol.unstyled{margin-left:0;list-style:none} 154 | ul.inline,ol.inline{margin-left:0;list-style:none} 155 | ul.inline>li,ol.inline>li{display:inline-block;*display:inline;*zoom:1;padding-left:5px;padding-right:5px} 156 | dl{margin-bottom:20px} 157 | dt,dd{line-height:20px} 158 | dt{font-weight:700} 159 | dd{margin-left:10px} 160 | .dl-horizontal{*zoom:1} 161 | .dl-horizontal:before,.dl-horizontal:after{display:table;content:"";line-height:0} 162 | .dl-horizontal:after{clear:both} 163 | .dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} 164 | .dl-horizontal dd{margin-left:180px} 165 | hr{margin:20px 0;border:0;border-top:1px solid #eee;border-bottom:1px solid #fff} 166 | abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999} 167 | abbr.initialism{font-size:90%;text-transform:uppercase} 168 | blockquote{padding:0 0 0 15px;margin:0 0 20px;border-left:5px solid #eee} 169 | blockquote p{margin-bottom:0;font-size:17.5px;font-weight:300;line-height:1.25} 170 | blockquote small{display:block;line-height:20px;color:#999} 171 | blockquote small:before{content:'\2014 \00A0'} 172 | blockquote.pull-right{float:right;padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0} 173 | blockquote.pull-right p,blockquote.pull-right small{text-align:right} 174 | blockquote.pull-right small:before{content:''} 175 | blockquote.pull-right small:after{content:'\00A0 \2014'} 176 | q:before,q:after,blockquote:before,blockquote:after{content:""} 177 | address{display:block;margin-bottom:20px;font-style:normal;line-height:20px} 178 | code,pre{padding:0 3px 2px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;font-size:12px;color:#333;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px} 179 | code{padding:2px 4px;color:#d14;background-color:#f7f7f9;border:1px solid #e1e1e8;white-space:nowrap} 180 | pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:20px;word-break:break-all;word-wrap:break-word;white-space:pre;white-space:pre-wrap;background-color:#f5f5f5;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px} 181 | pre.prettyprint{margin-bottom:20px} 182 | pre code{padding:0;color:inherit;white-space:pre;white-space:pre-wrap;background-color:transparent;border:0} 183 | .pre-scrollable{max-height:340px;overflow-y:scroll} 184 | [class^=icon-],[class*=icon-]{display:inline-block;width:14px;height:14px;*margin-right:.3em;line-height:14px;vertical-align:text-top;background-image:url(../img/glyphicons-halflings.png);background-position:14px 14px;background-repeat:no-repeat;margin-top:1px} 185 | .icon-white,.nav-pills>.active>a>[class^=icon-],.nav-pills>.active>a>[class*=icon-],.nav-list>.active>a>[class^=icon-],.nav-list>.active>a>[class*=icon-],.navbar-inverse .nav>.active>a>[class^=icon-],.navbar-inverse .nav>.active>a>[class*=icon-],.dropdown-menu>li>a:hover>[class^=icon-],.dropdown-menu>li>a:focus>[class^=icon-],.dropdown-menu>li>a:hover>[class*=icon-],.dropdown-menu>li>a:focus>[class*=icon-],.dropdown-menu>.active>a>[class^=icon-],.dropdown-menu>.active>a>[class*=icon-],.dropdown-submenu:hover>a>[class^=icon-],.dropdown-submenu:focus>a>[class^=icon-],.dropdown-submenu:hover>a>[class*=icon-],.dropdown-submenu:focus>a>[class*=icon-]{background-image:url(../img/glyphicons-halflings-white.png)} 186 | .icon-glass{background-position:0 0} 187 | .icon-music{background-position:-24px 0} 188 | .icon-search{background-position:-48px 0} 189 | .icon-envelope{background-position:-72px 0} 190 | .icon-heart{background-position:-96px 0} 191 | .icon-star{background-position:-120px 0} 192 | .icon-star-empty{background-position:-144px 0} 193 | .icon-user{background-position:-168px 0} 194 | .icon-film{background-position:-192px 0} 195 | .icon-th-large{background-position:-216px 0} 196 | .icon-th{background-position:-240px 0} 197 | .icon-th-list{background-position:-264px 0} 198 | .icon-ok{background-position:-288px 0} 199 | .icon-remove{background-position:-312px 0} 200 | .icon-zoom-in{background-position:-336px 0} 201 | .icon-zoom-out{background-position:-360px 0} 202 | .icon-off{background-position:-384px 0} 203 | .icon-signal{background-position:-408px 0} 204 | .icon-cog{background-position:-432px 0} 205 | .icon-trash{background-position:-456px 0} 206 | .icon-home{background-position:0 -24px} 207 | .icon-file{background-position:-24px -24px} 208 | .icon-time{background-position:-48px -24px} 209 | .icon-road{background-position:-72px -24px} 210 | .icon-download-alt{background-position:-96px -24px} 211 | .icon-download{background-position:-120px -24px} 212 | .icon-upload{background-position:-144px -24px} 213 | .icon-inbox{background-position:-168px -24px} 214 | .icon-play-circle{background-position:-192px -24px} 215 | .icon-repeat{background-position:-216px -24px} 216 | .icon-refresh{background-position:-240px -24px} 217 | .icon-list-alt{background-position:-264px -24px} 218 | .icon-lock{background-position:-287px -24px} 219 | .icon-flag{background-position:-312px -24px} 220 | .icon-headphones{background-position:-336px -24px} 221 | .icon-volume-off{background-position:-360px -24px} 222 | .icon-volume-down{background-position:-384px -24px} 223 | .icon-volume-up{background-position:-408px -24px} 224 | .icon-qrcode{background-position:-432px -24px} 225 | .icon-barcode{background-position:-456px -24px} 226 | .icon-tag{background-position:0 -48px} 227 | .icon-tags{background-position:-25px -48px} 228 | .icon-book{background-position:-48px -48px} 229 | .icon-bookmark{background-position:-72px -48px} 230 | .icon-print{background-position:-96px -48px} 231 | .icon-camera{background-position:-120px -48px} 232 | .icon-font{background-position:-144px -48px} 233 | .icon-bold{background-position:-167px -48px} 234 | .icon-italic{background-position:-192px -48px} 235 | .icon-text-height{background-position:-216px -48px} 236 | .icon-text-width{background-position:-240px -48px} 237 | .icon-align-left{background-position:-264px -48px} 238 | .icon-align-center{background-position:-288px -48px} 239 | .icon-align-right{background-position:-312px -48px} 240 | .icon-align-justify{background-position:-336px -48px} 241 | .icon-list{background-position:-360px -48px} 242 | .icon-indent-left{background-position:-384px -48px} 243 | .icon-indent-right{background-position:-408px -48px} 244 | .icon-facetime-video{background-position:-432px -48px} 245 | .icon-picture{background-position:-456px -48px} 246 | .icon-pencil{background-position:0 -72px} 247 | .icon-map-marker{background-position:-24px -72px} 248 | .icon-adjust{background-position:-48px -72px} 249 | .icon-tint{background-position:-72px -72px} 250 | .icon-edit{background-position:-96px -72px} 251 | .icon-share{background-position:-120px -72px} 252 | .icon-check{background-position:-144px -72px} 253 | .icon-move{background-position:-168px -72px} 254 | .icon-step-backward{background-position:-192px -72px} 255 | .icon-fast-backward{background-position:-216px -72px} 256 | .icon-backward{background-position:-240px -72px} 257 | .icon-play{background-position:-264px -72px} 258 | .icon-pause{background-position:-288px -72px} 259 | .icon-stop{background-position:-312px -72px} 260 | .icon-forward{background-position:-336px -72px} 261 | .icon-fast-forward{background-position:-360px -72px} 262 | .icon-step-forward{background-position:-384px -72px} 263 | .icon-eject{background-position:-408px -72px} 264 | .icon-chevron-left{background-position:-432px -72px} 265 | .icon-chevron-right{background-position:-456px -72px} 266 | .icon-plus-sign{background-position:0 -96px} 267 | .icon-minus-sign{background-position:-24px -96px} 268 | .icon-remove-sign{background-position:-48px -96px} 269 | .icon-ok-sign{background-position:-72px -96px} 270 | .icon-question-sign{background-position:-96px -96px} 271 | .icon-info-sign{background-position:-120px -96px} 272 | .icon-screenshot{background-position:-144px -96px} 273 | .icon-remove-circle{background-position:-168px -96px} 274 | .icon-ok-circle{background-position:-192px -96px} 275 | .icon-ban-circle{background-position:-216px -96px} 276 | .icon-arrow-left{background-position:-240px -96px} 277 | .icon-arrow-right{background-position:-264px -96px} 278 | .icon-arrow-up{background-position:-289px -96px} 279 | .icon-arrow-down{background-position:-312px -96px} 280 | .icon-share-alt{background-position:-336px -96px} 281 | .icon-resize-full{background-position:-360px -96px} 282 | .icon-resize-small{background-position:-384px -96px} 283 | .icon-plus{background-position:-408px -96px} 284 | .icon-minus{background-position:-433px -96px} 285 | .icon-asterisk{background-position:-456px -96px} 286 | .icon-exclamation-sign{background-position:0 -120px} 287 | .icon-gift{background-position:-24px -120px} 288 | .icon-leaf{background-position:-48px -120px} 289 | .icon-fire{background-position:-72px -120px} 290 | .icon-eye-open{background-position:-96px -120px} 291 | .icon-eye-close{background-position:-120px -120px} 292 | .icon-warning-sign{background-position:-144px -120px} 293 | .icon-plane{background-position:-168px -120px} 294 | .icon-calendar{background-position:-192px -120px} 295 | .icon-random{background-position:-216px -120px;width:16px} 296 | .icon-comment{background-position:-240px -120px} 297 | .icon-magnet{background-position:-264px -120px} 298 | .icon-chevron-up{background-position:-288px -120px} 299 | .icon-chevron-down{background-position:-313px -119px} 300 | .icon-retweet{background-position:-336px -120px} 301 | .icon-shopping-cart{background-position:-360px -120px} 302 | .icon-folder-close{background-position:-384px -120px;width:16px} 303 | .icon-folder-open{background-position:-408px -120px;width:16px} 304 | .icon-resize-vertical{background-position:-432px -119px} 305 | .icon-resize-horizontal{background-position:-456px -118px} 306 | .icon-hdd{background-position:0 -144px} 307 | .icon-bullhorn{background-position:-24px -144px} 308 | .icon-bell{background-position:-48px -144px} 309 | .icon-certificate{background-position:-72px -144px} 310 | .icon-thumbs-up{background-position:-96px -144px} 311 | .icon-thumbs-down{background-position:-120px -144px} 312 | .icon-hand-right{background-position:-144px -144px} 313 | .icon-hand-left{background-position:-168px -144px} 314 | .icon-hand-up{background-position:-192px -144px} 315 | .icon-hand-down{background-position:-216px -144px} 316 | .icon-circle-arrow-right{background-position:-240px -144px} 317 | .icon-circle-arrow-left{background-position:-264px -144px} 318 | .icon-circle-arrow-up{background-position:-288px -144px} 319 | .icon-circle-arrow-down{background-position:-312px -144px} 320 | .icon-globe{background-position:-336px -144px} 321 | .icon-wrench{background-position:-360px -144px} 322 | .icon-tasks{background-position:-384px -144px} 323 | .icon-filter{background-position:-408px -144px} 324 | .icon-briefcase{background-position:-432px -144px} 325 | .icon-fullscreen{background-position:-456px -144px} 326 | .well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)} 327 | .well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)} 328 | .well-large{padding:24px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px} 329 | .well-small{padding:9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px} 330 | body{margin:0;padding:0;background:#151515 url(../images/bkg.png) 0 0;font:16px;font-family:Monaco,"Bitstream Vera Sans Mono","Lucida Console",Terminal,monospace;color:#eaeaea;line-height:1.5} 331 | .container-super{width:90%;max-width:600px;margin:0 auto} 332 | section{display:block;margin:0 0 20px} 333 | h1,h2,h3,h4,h5,h6{margin:0 0 20px} 334 | li{line-height:1.4} 335 | header{width:100%;margin:0 0 40px;padding:20px 0;background:rgba(0,0,0,.1);border-bottom:1px dashed #b5e853} 336 | header h1{margin:0 0 0 -40px;font-family:Monaco,"Bitstream Vera Sans Mono","Lucida Console",Terminal,monospace;font-size:30px;font-weight:700;color:#b5e853;letter-spacing:-1px;line-height:1.5;text-shadow:0 1px 1px rgba(0,0,0,.1),0 0 5px rgba(181,232,83,.1),0 0 10px rgba(181,232,83,.1);-webkit-font-smoothing:antialiased} 337 | header h1:before{content:"./ ";font-size:24px} 338 | header h2{font-size:18px;font-weight:300;color:#666} 339 | #downloads .btn{display:inline-block;margin:0;text-align:center} 340 | #main_content{width:100%;-webkit-font-smoothing:antialiased} 341 | section img{max-width:100%} 342 | h1,h2,h3,h4,h5,h6{font-family:Monaco,"Bitstream Vera Sans Mono","Lucida Console",Terminal,monospace;font-weight:400;color:#b5e853;letter-spacing:-.03em;text-shadow:0 1px 1px rgba(0,0,0,.1),0 0 5px rgba(181,232,83,.1),0 0 10px rgba(181,232,83,.1)} 343 | #main_content h1{font-size:30px} 344 | #main_content h2{font-size:24px} 345 | #main_content h3{font-size:18px} 346 | #main_content h4{font-size:14px} 347 | #main_content h5{margin:0 0 5px;font-size:12px;text-transform:uppercase} 348 | #main_content h6{margin:0 0 5px;font-size:12px;color:#999;text-transform:uppercase} 349 | dt{font-style:italic;font-weight:700} 350 | ul li{list-style:none} 351 | ul li:before{content:">>";margin-right:21px;margin-left:-37px;font-family:Monaco,"Bitstream Vera Sans Mono","Lucida Console",Terminal,monospace;font-size:13px;color:#b5e853;line-height:16px} 352 | blockquote{padding-left:10px;color:#aaa;border-left:1px dotted #666} 353 | pre{overflow:auto;overflow-y:hidden;padding:10px;background:#272822;font-size:14px;color:#FFF;text-wrap:normal;border:1px solid rgba(180,230,80,.25);border-radius:12px;-moz-border-radius:12px;-webkit-border-radius:12px} 354 | table{width:100%;margin:0 0 20px} 355 | th{padding:5px 10px;text-align:left;border-bottom:1px dashed #b5e853} 356 | td{padding:5px 10px} 357 | hr{height:0;color:#b5e853;border:0;border-bottom:1px dashed #b5e853} 358 | .btn{display:inline-block;padding:8px 18px;background:-webkit-linear-gradient(top,rgba(40,40,40,.3),rgba(35,35,35,.3) 50%,rgba(10,10,10,.3) 50%,rgba(0,0,0,.3));font-family:Helvetica,Arial,sans-serif;font-size:13px;font-weight:700;color:rgba(255,255,255,.8);text-decoration:none;text-shadow:0 -1px 0 rgba(0,0,0,.75);border:2px solid rgba(0,0,0,.7);border-radius:50px;border-top:2px solid rgba(0,0,0,1);border-bottom:2px solid rgba(0,0,0,.7);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)} 359 | .btn:hover{background:-webkit-linear-gradient(top,rgba(40,40,40,.6),rgba(35,35,35,.6) 50%,rgba(10,10,10,.8) 50%,rgba(0,0,0,.8))} 360 | .btn .icon{display:inline-block;float:left;height:16px;width:16px;margin:1px 8px 0 0} 361 | .btn-github .icon{opacity:.6;background:url(../images/blacktocat.png) 0 0 no-repeat} 362 | a{color:#63c0f5;text-shadow:0 0 5px rgba(104,182,255,.5)} 363 | .cf:before,.cf:after{content:"";display:table} 364 | .cf:after{clear:both} 365 | .cf{zoom:1} 366 | a{text-decoration: none} -------------------------------------------------------------------------------- /stylesheets/gments/arta.css: -------------------------------------------------------------------------------- 1 | /* 2 | Date: 17.V.2011 3 | Author: pumbur 4 | */ 5 | 6 | pre code 7 | { 8 | display: block; padding: 0.5em; 9 | background: #222; 10 | } 11 | 12 | pre .profile .header *, 13 | pre .ini .title, 14 | pre .nginx .title 15 | { 16 | color: #fff; 17 | } 18 | 19 | pre .comment, 20 | pre .javadoc, 21 | pre .preprocessor, 22 | pre .preprocessor .title, 23 | pre .shebang, 24 | pre .profile .summary, 25 | pre .diff, 26 | pre .pi, 27 | pre .doctype, 28 | pre .tag, 29 | pre .template_comment, 30 | pre .css .rules, 31 | pre .tex .special 32 | { 33 | color: #444; 34 | } 35 | 36 | pre .string, 37 | pre .symbol, 38 | pre .diff .change, 39 | pre .regexp, 40 | pre .xml .attribute, 41 | pre .smalltalk .char, 42 | pre .xml .value, 43 | pre .ini .value, 44 | pre .clojure .attribute 45 | { 46 | color: #ffcc33; 47 | } 48 | 49 | pre .number, 50 | pre .addition 51 | { 52 | color: #00cc66; 53 | } 54 | 55 | pre .built_in, 56 | pre .literal, 57 | pre .vhdl .typename, 58 | pre .go .constant, 59 | pre .go .typename, 60 | pre .ini .keyword, 61 | pre .lua .title, 62 | pre .perl .variable, 63 | pre .php .variable, 64 | pre .mel .variable, 65 | pre .django .variable, 66 | pre .css .funtion, 67 | pre .smalltalk .method, 68 | pre .hexcolor, 69 | pre .important, 70 | pre .flow, 71 | pre .inheritance, 72 | pre .parser3 .variable 73 | { 74 | color: #32AAEE; 75 | } 76 | 77 | pre .keyword, 78 | pre .tag .title, 79 | pre .css .tag, 80 | pre .css .class, 81 | pre .css .id, 82 | pre .css .pseudo, 83 | pre .css .attr_selector, 84 | pre .lisp .title, 85 | pre .clojure .built_in, 86 | pre .winutils, 87 | pre .tex .command, 88 | pre .request, 89 | pre .status 90 | { 91 | color: #6644aa; 92 | } 93 | 94 | pre .title, 95 | pre .ruby .constant, 96 | pre .vala .constant, 97 | pre .parent, 98 | pre .deletion, 99 | pre .template_tag, 100 | pre .css .keyword, 101 | pre .objectivec .class .id, 102 | pre .smalltalk .class, 103 | pre .lisp .keyword, 104 | pre .apache .tag, 105 | pre .nginx .variable, 106 | pre .envvar, 107 | pre .bash .variable, 108 | pre .go .built_in, 109 | pre .vbscript .built_in, 110 | pre .lua .built_in, 111 | pre .rsl .built_in, 112 | pre .tail, 113 | pre .avrasm .label, 114 | pre .tex .formula, 115 | pre .tex .formula * 116 | { 117 | color: #bb1166; 118 | } 119 | 120 | pre .yardoctag, 121 | pre .phpdoc, 122 | pre .profile .header, 123 | pre .ini .title, 124 | pre .apache .tag, 125 | pre .parser3 .title 126 | { 127 | font-weight: bold; 128 | } 129 | 130 | pre .coffeescript .javascript, 131 | pre .javascript .xml, 132 | pre .tex .formula, 133 | pre .xml .javascript, 134 | pre .xml .vbscript, 135 | pre .xml .css, 136 | pre .xml .cdata 137 | { 138 | opacity: 0.6; 139 | } 140 | 141 | pre code, 142 | pre .javascript, 143 | pre .css, 144 | pre .xml, 145 | pre .subst, 146 | pre .diff .chunk, 147 | pre .css .value, 148 | pre .css .attribute, 149 | pre .lisp .string, 150 | pre .lisp .number, 151 | pre .tail .params, 152 | pre .container, 153 | pre .haskell *, 154 | pre .erlang *, 155 | pre .erlang_repl * 156 | { 157 | color: #aaa; 158 | } 159 | -------------------------------------------------------------------------------- /stylesheets/gments/ascetic.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: white; color: black; 10 | } 11 | 12 | pre .string, 13 | pre .tag .value, 14 | pre .filter .argument, 15 | pre .addition, 16 | pre .change, 17 | pre .apache .tag, 18 | pre .apache .cbracket, 19 | pre .nginx .built_in, 20 | pre .tex .formula { 21 | color: #888; 22 | } 23 | 24 | pre .comment, 25 | pre .template_comment, 26 | pre .shebang, 27 | pre .doctype, 28 | pre .pi, 29 | pre .javadoc, 30 | pre .deletion, 31 | pre .apache .sqbracket { 32 | color: #CCC; 33 | } 34 | 35 | pre .keyword, 36 | pre .tag .title, 37 | pre .ini .title, 38 | pre .lisp .title, 39 | pre .clojure .title, 40 | pre .http .title, 41 | pre .nginx .title, 42 | pre .css .tag, 43 | pre .winutils, 44 | pre .flow, 45 | pre .apache .tag, 46 | pre .tex .command, 47 | pre .request, 48 | pre .status { 49 | font-weight: bold; 50 | } 51 | -------------------------------------------------------------------------------- /stylesheets/gments/brown_paper.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Brown Paper style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background:#b7a68e url(./brown_papersq.png); 10 | } 11 | 12 | pre .keyword, 13 | pre .literal, 14 | pre .change, 15 | pre .winutils, 16 | pre .flow, 17 | pre .lisp .title, 18 | pre .clojure .built_in, 19 | pre .nginx .title, 20 | pre .tex .special, 21 | pre .request, 22 | pre .status { 23 | color:#005599; 24 | font-weight:bold; 25 | } 26 | 27 | pre code, 28 | pre .subst, 29 | pre .tag .keyword { 30 | color: #363C69; 31 | } 32 | 33 | pre .string, 34 | pre .title, 35 | pre .haskell .type, 36 | pre .tag .value, 37 | pre .css .rules .value, 38 | pre .preprocessor, 39 | pre .ruby .symbol, 40 | pre .ruby .symbol .string, 41 | pre .ruby .class .parent, 42 | pre .built_in, 43 | pre .sql .aggregate, 44 | pre .django .template_tag, 45 | pre .django .variable, 46 | pre .smalltalk .class, 47 | pre .javadoc, 48 | pre .ruby .string, 49 | pre .django .filter .argument, 50 | pre .smalltalk .localvars, 51 | pre .smalltalk .array, 52 | pre .attr_selector, 53 | pre .pseudo, 54 | pre .addition, 55 | pre .stream, 56 | pre .envvar, 57 | pre .apache .tag, 58 | pre .apache .cbracket, 59 | pre .tex .number { 60 | color: #2C009F; 61 | } 62 | 63 | pre .comment, 64 | pre .java .annotation, 65 | pre .python .decorator, 66 | pre .template_comment, 67 | pre .pi, 68 | pre .doctype, 69 | pre .deletion, 70 | pre .shebang, 71 | pre .apache .sqbracket, 72 | pre .nginx .built_in, 73 | pre .tex .formula { 74 | color: #802022; 75 | } 76 | 77 | pre .keyword, 78 | pre .literal, 79 | pre .css .id, 80 | pre .phpdoc, 81 | pre .title, 82 | pre .haskell .type, 83 | pre .vbscript .built_in, 84 | pre .sql .aggregate, 85 | pre .rsl .built_in, 86 | pre .smalltalk .class, 87 | pre .diff .header, 88 | pre .chunk, 89 | pre .winutils, 90 | pre .bash .variable, 91 | pre .apache .tag, 92 | pre .tex .command { 93 | font-weight: bold; 94 | } 95 | 96 | pre .coffeescript .javascript, 97 | pre .javascript .xml, 98 | pre .tex .formula, 99 | pre .xml .javascript, 100 | pre .xml .vbscript, 101 | pre .xml .css, 102 | pre .xml .cdata { 103 | opacity: 0.8; 104 | } 105 | -------------------------------------------------------------------------------- /stylesheets/gments/brown_papersq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/stylesheets/gments/brown_papersq.png -------------------------------------------------------------------------------- /stylesheets/gments/dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Dark style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #444; 10 | } 11 | 12 | pre .keyword, 13 | pre .literal, 14 | pre .change, 15 | pre .winutils, 16 | pre .flow, 17 | pre .lisp .title, 18 | pre .clojure .built_in, 19 | pre .nginx .title, 20 | pre .tex .special { 21 | color: white; 22 | } 23 | 24 | pre code, 25 | pre .subst { 26 | color: #DDD; 27 | } 28 | 29 | pre .string, 30 | pre .title, 31 | pre .haskell .type, 32 | pre .ini .title, 33 | pre .tag .value, 34 | pre .css .rules .value, 35 | pre .preprocessor, 36 | pre .ruby .symbol, 37 | pre .ruby .symbol .string, 38 | pre .ruby .class .parent, 39 | pre .built_in, 40 | pre .sql .aggregate, 41 | pre .django .template_tag, 42 | pre .django .variable, 43 | pre .smalltalk .class, 44 | pre .javadoc, 45 | pre .ruby .string, 46 | pre .django .filter .argument, 47 | pre .smalltalk .localvars, 48 | pre .smalltalk .array, 49 | pre .attr_selector, 50 | pre .pseudo, 51 | pre .addition, 52 | pre .stream, 53 | pre .envvar, 54 | pre .apache .tag, 55 | pre .apache .cbracket, 56 | pre .tex .command, 57 | pre .prompt { 58 | color: #D88; 59 | } 60 | 61 | pre .comment, 62 | pre .java .annotation, 63 | pre .python .decorator, 64 | pre .template_comment, 65 | pre .pi, 66 | pre .doctype, 67 | pre .deletion, 68 | pre .shebang, 69 | pre .apache .sqbracket, 70 | pre .tex .formula { 71 | color: #777; 72 | } 73 | 74 | pre .keyword, 75 | pre .literal, 76 | pre .title, 77 | pre .css .id, 78 | pre .phpdoc, 79 | pre .haskell .type, 80 | pre .vbscript .built_in, 81 | pre .sql .aggregate, 82 | pre .rsl .built_in, 83 | pre .smalltalk .class, 84 | pre .diff .header, 85 | pre .chunk, 86 | pre .winutils, 87 | pre .bash .variable, 88 | pre .apache .tag, 89 | pre .tex .special, 90 | pre .request, 91 | pre .status { 92 | font-weight: bold; 93 | } 94 | 95 | pre .coffeescript .javascript, 96 | pre .javascript .xml, 97 | pre .tex .formula, 98 | pre .xml .javascript, 99 | pre .xml .vbscript, 100 | pre .xml .css, 101 | pre .xml .cdata { 102 | opacity: 0.5; 103 | } 104 | -------------------------------------------------------------------------------- /stylesheets/gments/default.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Original style from softwaremaniacs.org (c) Ivan Sagalaev 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #F0F0F0; 10 | } 11 | 12 | pre code, 13 | pre .subst, 14 | pre .tag .title, 15 | pre .lisp .title, 16 | pre .clojure .built_in, 17 | pre .nginx .title { 18 | color: black; 19 | } 20 | 21 | pre .string, 22 | pre .title, 23 | pre .constant, 24 | pre .parent, 25 | pre .tag .value, 26 | pre .rules .value, 27 | pre .rules .value .number, 28 | pre .preprocessor, 29 | pre .ruby .symbol, 30 | pre .ruby .symbol .string, 31 | pre .aggregate, 32 | pre .template_tag, 33 | pre .django .variable, 34 | pre .smalltalk .class, 35 | pre .addition, 36 | pre .flow, 37 | pre .stream, 38 | pre .bash .variable, 39 | pre .apache .tag, 40 | pre .apache .cbracket, 41 | pre .tex .command, 42 | pre .tex .special, 43 | pre .erlang_repl .function_or_atom, 44 | pre .markdown .header { 45 | color: #800; 46 | } 47 | 48 | pre .comment, 49 | pre .annotation, 50 | pre .template_comment, 51 | pre .diff .header, 52 | pre .chunk, 53 | pre .markdown .blockquote { 54 | color: #888; 55 | } 56 | 57 | pre .number, 58 | pre .date, 59 | pre .regexp, 60 | pre .literal, 61 | pre .smalltalk .symbol, 62 | pre .smalltalk .char, 63 | pre .go .constant, 64 | pre .change, 65 | pre .markdown .bullet, 66 | pre .markdown .link_url { 67 | color: #080; 68 | } 69 | 70 | pre .label, 71 | pre .javadoc, 72 | pre .ruby .string, 73 | pre .decorator, 74 | pre .filter .argument, 75 | pre .localvars, 76 | pre .array, 77 | pre .attr_selector, 78 | pre .important, 79 | pre .pseudo, 80 | pre .pi, 81 | pre .doctype, 82 | pre .deletion, 83 | pre .envvar, 84 | pre .shebang, 85 | pre .apache .sqbracket, 86 | pre .nginx .built_in, 87 | pre .tex .formula, 88 | pre .erlang_repl .reserved, 89 | pre .prompt, 90 | pre .markdown .link_label, 91 | pre .vhdl .attribute, 92 | pre .clojure .attribute, 93 | pre .coffeescript .property { 94 | color: #88F 95 | } 96 | 97 | pre .keyword, 98 | pre .id, 99 | pre .phpdoc, 100 | pre .title, 101 | pre .built_in, 102 | pre .aggregate, 103 | pre .css .tag, 104 | pre .javadoctag, 105 | pre .phpdoc, 106 | pre .yardoctag, 107 | pre .smalltalk .class, 108 | pre .winutils, 109 | pre .bash .variable, 110 | pre .apache .tag, 111 | pre .go .typename, 112 | pre .tex .command, 113 | pre .markdown .strong, 114 | pre .request, 115 | pre .status { 116 | font-weight: bold; 117 | } 118 | 119 | pre .markdown .emphasis { 120 | font-style: italic; 121 | } 122 | 123 | pre .nginx .built_in { 124 | font-weight: normal; 125 | } 126 | 127 | pre .coffeescript .javascript, 128 | pre .javascript .xml, 129 | pre .tex .formula, 130 | pre .xml .javascript, 131 | pre .xml .vbscript, 132 | pre .xml .css, 133 | pre .xml .cdata { 134 | opacity: 0.5; 135 | } 136 | -------------------------------------------------------------------------------- /stylesheets/gments/far.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | FAR Style (c) MajestiC 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #000080; 10 | } 11 | 12 | pre code, 13 | pre .subst { 14 | color: #0FF; 15 | } 16 | 17 | pre .string, 18 | pre .ruby .string, 19 | pre .haskell .type, 20 | pre .tag .value, 21 | pre .css .rules .value, 22 | pre .css .rules .value .number, 23 | pre .preprocessor, 24 | pre .ruby .symbol, 25 | pre .ruby .symbol .string, 26 | pre .built_in, 27 | pre .sql .aggregate, 28 | pre .django .template_tag, 29 | pre .django .variable, 30 | pre .smalltalk .class, 31 | pre .addition, 32 | pre .apache .tag, 33 | pre .apache .cbracket, 34 | pre .tex .command, 35 | pre .clojure .title { 36 | color: #FF0; 37 | } 38 | 39 | pre .keyword, 40 | pre .css .id, 41 | pre .title, 42 | pre .haskell .type, 43 | pre .vbscript .built_in, 44 | pre .sql .aggregate, 45 | pre .rsl .built_in, 46 | pre .smalltalk .class, 47 | pre .xml .tag .title, 48 | pre .winutils, 49 | pre .flow, 50 | pre .change, 51 | pre .envvar, 52 | pre .bash .variable, 53 | pre .tex .special, 54 | pre .clojure .built_in { 55 | color: #FFF; 56 | } 57 | 58 | pre .comment, 59 | pre .phpdoc, 60 | pre .javadoc, 61 | pre .java .annotation, 62 | pre .template_comment, 63 | pre .deletion, 64 | pre .apache .sqbracket, 65 | pre .tex .formula { 66 | color: #888; 67 | } 68 | 69 | pre .number, 70 | pre .date, 71 | pre .regexp, 72 | pre .literal, 73 | pre .smalltalk .symbol, 74 | pre .smalltalk .char, 75 | pre .clojure .attribute { 76 | color: #0F0; 77 | } 78 | 79 | pre .python .decorator, 80 | pre .django .filter .argument, 81 | pre .smalltalk .localvars, 82 | pre .smalltalk .array, 83 | pre .attr_selector, 84 | pre .pseudo, 85 | pre .xml .pi, 86 | pre .diff .header, 87 | pre .chunk, 88 | pre .shebang, 89 | pre .nginx .built_in, 90 | pre .prompt { 91 | color: #008080; 92 | } 93 | 94 | pre .keyword, 95 | pre .css .id, 96 | pre .title, 97 | pre .haskell .type, 98 | pre .vbscript .built_in, 99 | pre .sql .aggregate, 100 | pre .rsl .built_in, 101 | pre .smalltalk .class, 102 | pre .winutils, 103 | pre .flow, 104 | pre .apache .tag, 105 | pre .nginx .built_in, 106 | pre .tex .command, 107 | pre .tex .special, 108 | pre .request, 109 | pre .status { 110 | font-weight: bold; 111 | } 112 | -------------------------------------------------------------------------------- /stylesheets/gments/github.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | github.com style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | color: #333; 10 | background: #f8f8ff 11 | } 12 | 13 | pre .comment, 14 | pre .template_comment, 15 | pre .diff .header, 16 | pre .javadoc { 17 | color: #998; 18 | font-style: italic 19 | } 20 | 21 | pre .keyword, 22 | pre .css .rule .keyword, 23 | pre .winutils, 24 | pre .javascript .title, 25 | pre .nginx .title, 26 | pre .subst, 27 | pre .request, 28 | pre .status { 29 | color: #333; 30 | font-weight: bold 31 | } 32 | 33 | pre .number, 34 | pre .hexcolor, 35 | pre .ruby .constant { 36 | color: #099; 37 | } 38 | 39 | pre .string, 40 | pre .tag .value, 41 | pre .phpdoc, 42 | pre .tex .formula { 43 | color: #d14 44 | } 45 | 46 | pre .title, 47 | pre .id { 48 | color: #900; 49 | font-weight: bold 50 | } 51 | 52 | pre .javascript .title, 53 | pre .lisp .title, 54 | pre .clojure .title, 55 | pre .subst { 56 | font-weight: normal 57 | } 58 | 59 | pre .class .title, 60 | pre .haskell .type, 61 | pre .vhdl .literal, 62 | pre .tex .command { 63 | color: #458; 64 | font-weight: bold 65 | } 66 | 67 | pre .tag, 68 | pre .tag .title, 69 | pre .rules .property, 70 | pre .django .tag .keyword { 71 | color: #000080; 72 | font-weight: normal 73 | } 74 | 75 | pre .attribute, 76 | pre .variable, 77 | pre .lisp .body { 78 | color: #008080 79 | } 80 | 81 | pre .regexp { 82 | color: #009926 83 | } 84 | 85 | pre .class { 86 | color: #458; 87 | font-weight: bold 88 | } 89 | 90 | pre .symbol, 91 | pre .ruby .symbol .string, 92 | pre .lisp .keyword, 93 | pre .tex .special, 94 | pre .prompt { 95 | color: #990073 96 | } 97 | 98 | pre .built_in, 99 | pre .lisp .title, 100 | pre .clojure .built_in { 101 | color: #0086b3 102 | } 103 | 104 | pre .preprocessor, 105 | pre .pi, 106 | pre .doctype, 107 | pre .shebang, 108 | pre .cdata { 109 | color: #999; 110 | font-weight: bold 111 | } 112 | 113 | pre .deletion { 114 | background: #fdd 115 | } 116 | 117 | pre .addition { 118 | background: #dfd 119 | } 120 | 121 | pre .diff .change { 122 | background: #0086b3 123 | } 124 | 125 | pre .chunk { 126 | color: #aaa 127 | } 128 | -------------------------------------------------------------------------------- /stylesheets/gments/googlecode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Google Code style (c) Aahan Krish 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: white; color: black; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .javadoc, 15 | pre .comment * { 16 | color: #800; 17 | } 18 | 19 | pre .keyword, 20 | pre .method, 21 | pre .list .title, 22 | pre .clojure .built_in, 23 | pre .nginx .title, 24 | pre .tag .title, 25 | pre .setting .value, 26 | pre .winutils, 27 | pre .tex .command, 28 | pre .http .title, 29 | pre .request, 30 | pre .status { 31 | color: #008; 32 | } 33 | 34 | pre .envvar, 35 | pre .tex .special { 36 | color: #660; 37 | } 38 | 39 | pre .string, 40 | pre .tag .value, 41 | pre .cdata, 42 | pre .filter .argument, 43 | pre .attr_selector, 44 | pre .apache .cbracket, 45 | pre .date, 46 | pre .regexp { 47 | color: #080; 48 | } 49 | 50 | pre .sub .identifier, 51 | pre .pi, 52 | pre .tag, 53 | pre .tag .keyword, 54 | pre .decorator, 55 | pre .ini .title, 56 | pre .shebang, 57 | pre .prompt, 58 | pre .hexcolor, 59 | pre .rules .value, 60 | pre .css .value .number, 61 | pre .literal, 62 | pre .symbol, 63 | pre .ruby .symbol .string, 64 | pre .number, 65 | pre .css .function, 66 | pre .clojure .attribute { 67 | color: #066; 68 | } 69 | 70 | pre .class .title, 71 | pre .haskell .type, 72 | pre .smalltalk .class, 73 | pre .javadoctag, 74 | pre .yardoctag, 75 | pre .phpdoc, 76 | pre .typename, 77 | pre .tag .attribute, 78 | pre .doctype, 79 | pre .class .id, 80 | pre .built_in, 81 | pre .setting, 82 | pre .params, 83 | pre .variable, 84 | pre .clojure .title { 85 | color: #606; 86 | } 87 | 88 | pre .css .tag, 89 | pre .rules .property, 90 | pre .pseudo, 91 | pre .subst { 92 | color: #000; 93 | } 94 | 95 | pre .css .class, pre .css .id { 96 | color: #9B703F; 97 | } 98 | 99 | pre .value .important { 100 | color: #ff7700; 101 | font-weight: bold; 102 | } 103 | 104 | pre .rules .keyword { 105 | color: #C5AF75; 106 | } 107 | 108 | pre .annotation, 109 | pre .apache .sqbracket, 110 | pre .nginx .built_in { 111 | color: #9B859D; 112 | } 113 | 114 | pre .preprocessor, 115 | pre .preprocessor * { 116 | color: #444; 117 | } 118 | 119 | pre .tex .formula { 120 | background-color: #EEE; 121 | font-style: italic; 122 | } 123 | 124 | pre .diff .header, 125 | pre .chunk { 126 | color: #808080; 127 | font-weight: bold; 128 | } 129 | 130 | pre .diff .change { 131 | background-color: #BCCFF9; 132 | } 133 | 134 | pre .addition { 135 | background-color: #BAEEBA; 136 | } 137 | 138 | pre .deletion { 139 | background-color: #FFC8BD; 140 | } 141 | 142 | pre .comment .yardoctag { 143 | font-weight: bold; 144 | } 145 | -------------------------------------------------------------------------------- /stylesheets/gments/idea.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Intellij Idea-like styling (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | color: #000; 10 | background: #fff; 11 | } 12 | 13 | pre .subst, 14 | pre .title { 15 | font-weight: normal; 16 | color: #000; 17 | } 18 | 19 | pre .comment, 20 | pre .template_comment, 21 | pre .javadoc, 22 | pre .diff .header { 23 | color: #808080; 24 | font-style: italic; 25 | } 26 | 27 | pre .annotation, 28 | pre .decorator, 29 | pre .preprocessor, 30 | pre .doctype, 31 | pre .pi, 32 | pre .chunk, 33 | pre .shebang, 34 | pre .apache .cbracket, 35 | pre .prompt, 36 | pre .http .title { 37 | color: #808000; 38 | } 39 | 40 | pre .tag, 41 | pre .pi { 42 | background: #efefef; 43 | } 44 | 45 | pre .tag .title, 46 | pre .id, 47 | pre .attr_selector, 48 | pre .pseudo, 49 | pre .literal, 50 | pre .keyword, 51 | pre .hexcolor, 52 | pre .css .function, 53 | pre .ini .title, 54 | pre .css .class, 55 | pre .list .title, 56 | pre .clojure .title, 57 | pre .nginx .title, 58 | pre .tex .command, 59 | pre .request, 60 | pre .status { 61 | font-weight: bold; 62 | color: #000080; 63 | } 64 | 65 | pre .attribute, 66 | pre .rules .keyword, 67 | pre .number, 68 | pre .date, 69 | pre .regexp, 70 | pre .tex .special { 71 | font-weight: bold; 72 | color: #0000ff; 73 | } 74 | 75 | pre .number, 76 | pre .regexp { 77 | font-weight: normal; 78 | } 79 | 80 | pre .string, 81 | pre .value, 82 | pre .filter .argument, 83 | pre .css .function .params, 84 | pre .apache .tag { 85 | color: #008000; 86 | font-weight: bold; 87 | } 88 | 89 | pre .symbol, 90 | pre .ruby .symbol .string, 91 | pre .char, 92 | pre .tex .formula { 93 | color: #000; 94 | background: #d0eded; 95 | font-style: italic; 96 | } 97 | 98 | pre .phpdoc, 99 | pre .yardoctag, 100 | pre .javadoctag { 101 | text-decoration: underline; 102 | } 103 | 104 | pre .variable, 105 | pre .envvar, 106 | pre .apache .sqbracket, 107 | pre .nginx .built_in { 108 | color: #660e7a; 109 | } 110 | 111 | pre .addition { 112 | background: #baeeba; 113 | } 114 | 115 | pre .deletion { 116 | background: #ffc8bd; 117 | } 118 | 119 | pre .diff .change { 120 | background: #bccff9; 121 | } 122 | -------------------------------------------------------------------------------- /stylesheets/gments/ir_black.css: -------------------------------------------------------------------------------- 1 | /* 2 | IR_Black style (c) Vasily Mikhailitchenko 3 | */ 4 | 5 | pre code { 6 | display: block; padding: 0.5em; 7 | background: #000; color: #f8f8f8; 8 | } 9 | 10 | pre .shebang, 11 | pre .comment, 12 | pre .template_comment, 13 | pre .javadoc { 14 | color: #7c7c7c; 15 | } 16 | 17 | pre .keyword, 18 | pre .tag, 19 | pre .tex .command, 20 | pre .request, 21 | pre .status, 22 | pre .clojure .attribute { 23 | color: #96CBFE; 24 | } 25 | 26 | pre .sub .keyword, 27 | pre .method, 28 | pre .list .title, 29 | pre .nginx .title { 30 | color: #FFFFB6; 31 | } 32 | 33 | pre .string, 34 | pre .tag .value, 35 | pre .cdata, 36 | pre .filter .argument, 37 | pre .attr_selector, 38 | pre .apache .cbracket, 39 | pre .date { 40 | color: #A8FF60; 41 | } 42 | 43 | pre .subst { 44 | color: #DAEFA3; 45 | } 46 | 47 | pre .regexp { 48 | color: #E9C062; 49 | } 50 | 51 | pre .title, 52 | pre .sub .identifier, 53 | pre .pi, 54 | pre .decorator, 55 | pre .tex .special, 56 | pre .haskell .type, 57 | pre .constant, 58 | pre .smalltalk .class, 59 | pre .javadoctag, 60 | pre .yardoctag, 61 | pre .phpdoc, 62 | pre .nginx .built_in { 63 | color: #FFFFB6; 64 | } 65 | 66 | pre .symbol, 67 | pre .ruby .symbol .string, 68 | pre .number, 69 | pre .variable, 70 | pre .vbscript, 71 | pre .literal { 72 | color: #C6C5FE; 73 | } 74 | 75 | pre .css .tag { 76 | color: #96CBFE; 77 | } 78 | 79 | pre .css .rules .property, 80 | pre .css .id { 81 | color: #FFFFB6; 82 | } 83 | 84 | pre .css .class { 85 | color: #FFF; 86 | } 87 | 88 | pre .hexcolor { 89 | color: #C6C5FE; 90 | } 91 | 92 | pre .number { 93 | color:#FF73FD; 94 | } 95 | 96 | pre .coffeescript .javascript, 97 | pre .javascript .xml, 98 | pre .tex .formula, 99 | pre .xml .javascript, 100 | pre .xml .vbscript, 101 | pre .xml .css, 102 | pre .xml .cdata { 103 | opacity: 0.7; 104 | } 105 | -------------------------------------------------------------------------------- /stylesheets/gments/magula.css: -------------------------------------------------------------------------------- 1 | /* 2 | Description: Magula style for highligh.js 3 | Author: Ruslan Keba 4 | Website: http://rukeba.com/ 5 | Version: 1.0 6 | Date: 2009-01-03 7 | Music: Aphex Twin / Xtal 8 | */ 9 | 10 | pre code { 11 | display: block; padding: 0.5em; 12 | background-color: #f4f4f4; 13 | } 14 | 15 | pre code, 16 | pre .subst, 17 | pre .lisp .title, 18 | pre .clojure .built_in { 19 | color: black; 20 | } 21 | 22 | pre .string, 23 | pre .title, 24 | pre .parent, 25 | pre .tag .value, 26 | pre .rules .value, 27 | pre .rules .value .number, 28 | pre .preprocessor, 29 | pre .ruby .symbol, 30 | pre .ruby .symbol .string, 31 | pre .aggregate, 32 | pre .template_tag, 33 | pre .django .variable, 34 | pre .smalltalk .class, 35 | pre .addition, 36 | pre .flow, 37 | pre .stream, 38 | pre .bash .variable, 39 | pre .apache .cbracket { 40 | color: #050; 41 | } 42 | 43 | pre .comment, 44 | pre .annotation, 45 | pre .template_comment, 46 | pre .diff .header, 47 | pre .chunk { 48 | color: #777; 49 | } 50 | 51 | pre .number, 52 | pre .date, 53 | pre .regexp, 54 | pre .literal, 55 | pre .smalltalk .symbol, 56 | pre .smalltalk .char, 57 | pre .change, 58 | pre .tex .special { 59 | color: #800; 60 | } 61 | 62 | pre .label, 63 | pre .javadoc, 64 | pre .ruby .string, 65 | pre .decorator, 66 | pre .filter .argument, 67 | pre .localvars, 68 | pre .array, 69 | pre .attr_selector, 70 | pre .pseudo, 71 | pre .pi, 72 | pre .doctype, 73 | pre .deletion, 74 | pre .envvar, 75 | pre .shebang, 76 | pre .apache .sqbracket, 77 | pre .nginx .built_in, 78 | pre .tex .formula, 79 | pre .prompt, 80 | pre .clojure .attribute { 81 | color: #00e; 82 | } 83 | 84 | pre .keyword, 85 | pre .id, 86 | pre .phpdoc, 87 | pre .title, 88 | pre .built_in, 89 | pre .aggregate, 90 | pre .smalltalk .class, 91 | pre .winutils, 92 | pre .bash .variable, 93 | pre .apache .tag, 94 | pre .xml .tag, 95 | pre .tex .command, 96 | pre .request, 97 | pre .status { 98 | font-weight: bold; 99 | color: navy; 100 | } 101 | 102 | pre .nginx .built_in { 103 | font-weight: normal; 104 | } 105 | 106 | pre .coffeescript .javascript, 107 | pre .javascript .xml, 108 | pre .tex .formula, 109 | pre .xml .javascript, 110 | pre .xml .vbscript, 111 | pre .xml .css, 112 | pre .xml .cdata { 113 | opacity: 0.5; 114 | } 115 | 116 | /* --- */ 117 | pre .apache .tag { 118 | font-weight: bold; 119 | color: blue; 120 | } 121 | 122 | -------------------------------------------------------------------------------- /stylesheets/gments/monokai.css: -------------------------------------------------------------------------------- 1 | /* 2 | Monokai style - ported by Luigi Maselli - http://grigio.org 3 | */ 4 | 5 | pre code { 6 | display: block; padding: 0.5em; 7 | background: #272822; 8 | } 9 | 10 | pre .tag, 11 | pre .tag .title, 12 | pre .keyword, 13 | pre .literal, 14 | pre .change, 15 | pre .winutils, 16 | pre .flow, 17 | pre .lisp .title, 18 | pre .clojure .built_in, 19 | pre .nginx .title, 20 | pre .tex .special { 21 | color: #F92672; 22 | } 23 | 24 | pre code { 25 | color: #DDD; 26 | } 27 | 28 | pre code .constant { 29 | color: #66D9EF; 30 | } 31 | 32 | pre .class .title { 33 | color: white; 34 | } 35 | 36 | pre .attribute, 37 | pre .symbol, 38 | pre .symbol .string, 39 | pre .value, 40 | pre .regexp { 41 | color: #BF79DB; 42 | } 43 | 44 | pre .tag .value, 45 | pre .string, 46 | pre .subst, 47 | pre .title, 48 | pre .haskell .type, 49 | pre .preprocessor, 50 | pre .ruby .class .parent, 51 | pre .built_in, 52 | pre .sql .aggregate, 53 | pre .django .template_tag, 54 | pre .django .variable, 55 | pre .smalltalk .class, 56 | pre .javadoc, 57 | pre .django .filter .argument, 58 | pre .smalltalk .localvars, 59 | pre .smalltalk .array, 60 | pre .attr_selector, 61 | pre .pseudo, 62 | pre .addition, 63 | pre .stream, 64 | pre .envvar, 65 | pre .apache .tag, 66 | pre .apache .cbracket, 67 | pre .tex .command, 68 | pre .prompt { 69 | color: #A6E22E; 70 | } 71 | 72 | pre .comment, 73 | pre .java .annotation, 74 | pre .python .decorator, 75 | pre .template_comment, 76 | pre .pi, 77 | pre .doctype, 78 | pre .deletion, 79 | pre .shebang, 80 | pre .apache .sqbracket, 81 | pre .tex .formula { 82 | color: #75715E; 83 | } 84 | 85 | pre .keyword, 86 | pre .literal, 87 | pre .css .id, 88 | pre .phpdoc, 89 | pre .title, 90 | pre .haskell .type, 91 | pre .vbscript .built_in, 92 | pre .sql .aggregate, 93 | pre .rsl .built_in, 94 | pre .smalltalk .class, 95 | pre .diff .header, 96 | pre .chunk, 97 | pre .winutils, 98 | pre .bash .variable, 99 | pre .apache .tag, 100 | pre .tex .special, 101 | pre .request, 102 | pre .status { 103 | font-weight: bold; 104 | } 105 | 106 | pre .coffeescript .javascript, 107 | pre .javascript .xml, 108 | pre .tex .formula, 109 | pre .xml .javascript, 110 | pre .xml .vbscript, 111 | pre .xml .css, 112 | pre .xml .cdata { 113 | opacity: 0.5; 114 | } 115 | -------------------------------------------------------------------------------- /stylesheets/gments/pojoaque.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Pojoaque Style by Jason Tate 4 | http://web-cms-designs.com/ftopict-10-pojoaque-style-for-highlight-js-code-highlighter.html 5 | Based on Solarized Style from http://ethanschoonover.com/solarized 6 | 7 | */ 8 | 9 | pre code { 10 | display: block; padding: 0.5em; 11 | color: #DCCF8F; 12 | background: url(./pojoaque.jpg) repeat scroll left top #181914; 13 | } 14 | 15 | pre .comment, 16 | pre .template_comment, 17 | pre .diff .header, 18 | pre .doctype, 19 | pre .lisp .string, 20 | pre .javadoc { 21 | color: #586e75; 22 | font-style: italic; 23 | } 24 | 25 | pre .keyword, 26 | pre .css .rule .keyword, 27 | pre .winutils, 28 | pre .javascript .title, 29 | pre .method, 30 | pre .addition, 31 | pre .css .tag, 32 | pre .clojure .title, 33 | pre .nginx .title { 34 | color: #B64926; 35 | } 36 | 37 | pre .number, 38 | pre .command, 39 | pre .string, 40 | pre .tag .value, 41 | pre .phpdoc, 42 | pre .tex .formula, 43 | pre .regexp, 44 | pre .hexcolor { 45 | color: #468966; 46 | } 47 | 48 | pre .title, 49 | pre .localvars, 50 | pre .function .title, 51 | pre .chunk, 52 | pre .decorator, 53 | pre .built_in, 54 | pre .lisp .title, 55 | pre .clojure .built_in, 56 | pre .identifier, 57 | pre .id { 58 | color: #FFB03B; 59 | } 60 | 61 | pre .attribute, 62 | pre .variable, 63 | pre .lisp .body, 64 | pre .smalltalk .number, 65 | pre .constant, 66 | pre .class .title, 67 | pre .parent, 68 | pre .haskell .type { 69 | color: #b58900; 70 | } 71 | 72 | pre .css .attribute { 73 | color: #b89859; 74 | } 75 | 76 | pre .css .number,pre .css .hexcolor{ 77 | color: #DCCF8F; 78 | } 79 | 80 | pre .css .class { 81 | color: #d3a60c; 82 | } 83 | 84 | pre .preprocessor, 85 | pre .pi, 86 | pre .shebang, 87 | pre .symbol, 88 | pre .symbol .string, 89 | pre .diff .change, 90 | pre .special, 91 | pre .attr_selector, 92 | pre .important, 93 | pre .subst, 94 | pre .cdata { 95 | color: #cb4b16; 96 | } 97 | 98 | pre .deletion { 99 | color: #dc322f; 100 | } 101 | 102 | pre .tex .formula { 103 | background: #073642; 104 | } 105 | -------------------------------------------------------------------------------- /stylesheets/gments/pojoaque.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/stylesheets/gments/pojoaque.jpg -------------------------------------------------------------------------------- /stylesheets/gments/rainbow.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Style with support for rainbow parens 4 | 5 | */ 6 | 7 | pre ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; } 8 | pre ::selection { background:#FF5E99; color:#fff; text-shadow: none; } 9 | 10 | pre code { 11 | display: block; padding: 0.5em; 12 | background: #474949; color: #D1D9E1; 13 | } 14 | 15 | 16 | pre .body, 17 | pre .collection { 18 | color: #D1D9E1; 19 | } 20 | 21 | pre .comment, 22 | pre .template_comment, 23 | pre .diff .header, 24 | pre .doctype, 25 | pre .lisp .string, 26 | pre .javadoc { 27 | color: #969896; 28 | font-style: italic; 29 | } 30 | 31 | pre .keyword, 32 | pre .clojure .attribute, 33 | pre .winutils, 34 | pre .javascript .title, 35 | pre .addition, 36 | pre .css .tag { 37 | color: #cc99cc; 38 | } 39 | 40 | pre .number { color: #f99157; } 41 | 42 | pre .command, 43 | pre .string, 44 | pre .tag .value, 45 | pre .phpdoc, 46 | pre .tex .formula, 47 | pre .regexp, 48 | pre .hexcolor { 49 | color: #8abeb7; 50 | } 51 | 52 | pre .title, 53 | pre .localvars, 54 | pre .function .title, 55 | pre .chunk, 56 | pre .decorator, 57 | pre .built_in, 58 | pre .lisp .title, 59 | pre .identifier 60 | { 61 | color: #b5bd68; 62 | } 63 | 64 | pre .class .keyword 65 | { 66 | color: #f2777a; 67 | } 68 | 69 | pre .variable, 70 | pre .lisp .body, 71 | pre .smalltalk .number, 72 | pre .constant, 73 | pre .class .title, 74 | pre .parent, 75 | pre .haskell .label, 76 | pre .id, 77 | pre .lisp .title, 78 | pre .clojure .title .built_in { 79 | color: #ffcc66; 80 | } 81 | 82 | pre .tag .title, 83 | pre .rules .property, 84 | pre .django .tag .keyword, 85 | pre .clojure .title .built_in { 86 | font-weight: bold; 87 | } 88 | 89 | pre .attribute, 90 | pre .clojure .title { 91 | color: #81a2be; 92 | } 93 | 94 | pre .preprocessor, 95 | pre .pi, 96 | pre .shebang, 97 | pre .symbol, 98 | pre .symbol .string, 99 | pre .diff .change, 100 | pre .special, 101 | pre .attr_selector, 102 | pre .important, 103 | pre .subst, 104 | pre .cdata { 105 | color: #f99157; 106 | } 107 | 108 | pre .deletion { 109 | color: #dc322f; 110 | } 111 | 112 | pre .tex .formula { 113 | background: #eee8d5; 114 | } 115 | -------------------------------------------------------------------------------- /stylesheets/gments/school_book.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | School Book style from goldblog.com.ua (c) Zaripov Yura 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 15px 0.5em 0.5em 30px; 9 | font-size: 11px !important; 10 | line-height:16px !important; 11 | } 12 | 13 | pre{ 14 | background:#f6f6ae url(./school_book.png); 15 | border-top: solid 2px #d2e8b9; 16 | border-bottom: solid 1px #d2e8b9; 17 | } 18 | 19 | pre .keyword, 20 | pre .literal, 21 | pre .change, 22 | pre .winutils, 23 | pre .flow, 24 | pre .lisp .title, 25 | pre .clojure .built_in, 26 | pre .nginx .title, 27 | pre .tex .special { 28 | color:#005599; 29 | font-weight:bold; 30 | } 31 | 32 | pre code, 33 | pre .subst, 34 | pre .tag .keyword { 35 | color: #3E5915; 36 | } 37 | 38 | pre .string, 39 | pre .title, 40 | pre .haskell .type, 41 | pre .tag .value, 42 | pre .css .rules .value, 43 | pre .preprocessor, 44 | pre .ruby .symbol, 45 | pre .ruby .symbol .string, 46 | pre .ruby .class .parent, 47 | pre .built_in, 48 | pre .sql .aggregate, 49 | pre .django .template_tag, 50 | pre .django .variable, 51 | pre .smalltalk .class, 52 | pre .javadoc, 53 | pre .ruby .string, 54 | pre .django .filter .argument, 55 | pre .smalltalk .localvars, 56 | pre .smalltalk .array, 57 | pre .attr_selector, 58 | pre .pseudo, 59 | pre .addition, 60 | pre .stream, 61 | pre .envvar, 62 | pre .apache .tag, 63 | pre .apache .cbracket, 64 | pre .nginx .built_in, 65 | pre .tex .command { 66 | color: #2C009F; 67 | } 68 | 69 | pre .comment, 70 | pre .java .annotation, 71 | pre .python .decorator, 72 | pre .template_comment, 73 | pre .pi, 74 | pre .doctype, 75 | pre .deletion, 76 | pre .shebang, 77 | pre .apache .sqbracket { 78 | color: #E60415; 79 | } 80 | 81 | pre .keyword, 82 | pre .literal, 83 | pre .css .id, 84 | pre .phpdoc, 85 | pre .title, 86 | pre .haskell .type, 87 | pre .vbscript .built_in, 88 | pre .sql .aggregate, 89 | pre .rsl .built_in, 90 | pre .smalltalk .class, 91 | pre .xml .tag .title, 92 | pre .diff .header, 93 | pre .chunk, 94 | pre .winutils, 95 | pre .bash .variable, 96 | pre .apache .tag, 97 | pre .tex .command, 98 | pre .request, 99 | pre .status { 100 | font-weight: bold; 101 | } 102 | 103 | pre .coffeescript .javascript, 104 | pre .javascript .xml, 105 | pre .tex .formula, 106 | pre .xml .javascript, 107 | pre .xml .vbscript, 108 | pre .xml .css, 109 | pre .xml .cdata { 110 | opacity: 0.5; 111 | } 112 | -------------------------------------------------------------------------------- /stylesheets/gments/school_book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zokis/Python--Faster-Way/8f11e9246198c6bc3c0c58668674d75188c966ae/stylesheets/gments/school_book.png -------------------------------------------------------------------------------- /stylesheets/gments/solarized_dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #002b36; color: #839496; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .diff .header, 15 | pre .doctype, 16 | pre .pi, 17 | pre .lisp .string, 18 | pre .javadoc { 19 | color: #586e75; 20 | font-style: italic; 21 | } 22 | 23 | pre .keyword, 24 | pre .winutils, 25 | pre .method, 26 | pre .addition, 27 | pre .css .tag, 28 | pre .request, 29 | pre .status, 30 | pre .nginx .title { 31 | color: #859900; 32 | } 33 | 34 | pre .number, 35 | pre .command, 36 | pre .string, 37 | pre .tag .value, 38 | pre .phpdoc, 39 | pre .tex .formula, 40 | pre .regexp, 41 | pre .hexcolor { 42 | color: #2aa198; 43 | } 44 | 45 | pre .title, 46 | pre .localvars, 47 | pre .chunk, 48 | pre .decorator, 49 | pre .built_in, 50 | pre .identifier, 51 | pre .vhdl .literal, 52 | pre .id { 53 | color: #268bd2; 54 | } 55 | 56 | pre .attribute, 57 | pre .variable, 58 | pre .lisp .body, 59 | pre .smalltalk .number, 60 | pre .constant, 61 | pre .class .title, 62 | pre .parent, 63 | pre .haskell .type { 64 | color: #b58900; 65 | } 66 | 67 | pre .preprocessor, 68 | pre .preprocessor .keyword, 69 | pre .shebang, 70 | pre .symbol, 71 | pre .symbol .string, 72 | pre .diff .change, 73 | pre .special, 74 | pre .attr_selector, 75 | pre .important, 76 | pre .subst, 77 | pre .cdata, 78 | pre .clojure .title { 79 | color: #cb4b16; 80 | } 81 | 82 | pre .deletion { 83 | color: #dc322f; 84 | } 85 | 86 | pre .tex .formula { 87 | background: #073642; 88 | } 89 | -------------------------------------------------------------------------------- /stylesheets/gments/solarized_light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Orginal Style from ethanschoonover.com/solarized (c) Jeremy Hull 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #fdf6e3; color: #657b83; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .diff .header, 15 | pre .doctype, 16 | pre .pi, 17 | pre .lisp .string, 18 | pre .javadoc { 19 | color: #93a1a1; 20 | font-style: italic; 21 | } 22 | 23 | pre .keyword, 24 | pre .winutils, 25 | pre .method, 26 | pre .addition, 27 | pre .css .tag, 28 | pre .request, 29 | pre .status, 30 | pre .nginx .title { 31 | color: #859900; 32 | } 33 | 34 | pre .number, 35 | pre .command, 36 | pre .string, 37 | pre .tag .value, 38 | pre .phpdoc, 39 | pre .tex .formula, 40 | pre .regexp, 41 | pre .hexcolor { 42 | color: #2aa198; 43 | } 44 | 45 | pre .title, 46 | pre .localvars, 47 | pre .chunk, 48 | pre .decorator, 49 | pre .built_in, 50 | pre .identifier, 51 | pre .vhdl .literal, 52 | pre .id { 53 | color: #268bd2; 54 | } 55 | 56 | pre .attribute, 57 | pre .variable, 58 | pre .lisp .body, 59 | pre .smalltalk .number, 60 | pre .constant, 61 | pre .class .title, 62 | pre .parent, 63 | pre .haskell .type { 64 | color: #b58900; 65 | } 66 | 67 | pre .preprocessor, 68 | pre .preprocessor .keyword, 69 | pre .shebang, 70 | pre .symbol, 71 | pre .symbol .string, 72 | pre .diff .change, 73 | pre .special, 74 | pre .attr_selector, 75 | pre .important, 76 | pre .subst, 77 | pre .cdata, 78 | pre .clojure .title { 79 | color: #cb4b16; 80 | } 81 | 82 | pre .deletion { 83 | color: #dc322f; 84 | } 85 | 86 | pre .tex .formula { 87 | background: #eee8d5; 88 | } 89 | -------------------------------------------------------------------------------- /stylesheets/gments/sunburst.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Sunburst-like style (c) Vasily Polovnyov 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #000; color: #f8f8f8; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .javadoc { 15 | color: #aeaeae; 16 | font-style: italic; 17 | } 18 | 19 | pre .keyword, 20 | pre .ruby .function .keyword, 21 | pre .request, 22 | pre .status, 23 | pre .nginx .title { 24 | color: #E28964; 25 | } 26 | 27 | pre .function .keyword, 28 | pre .sub .keyword, 29 | pre .method, 30 | pre .list .title { 31 | color: #99CF50; 32 | } 33 | 34 | pre .string, 35 | pre .tag .value, 36 | pre .cdata, 37 | pre .filter .argument, 38 | pre .attr_selector, 39 | pre .apache .cbracket, 40 | pre .date, 41 | pre .tex .command { 42 | color: #65B042; 43 | } 44 | 45 | pre .subst { 46 | color: #DAEFA3; 47 | } 48 | 49 | pre .regexp { 50 | color: #E9C062; 51 | } 52 | 53 | pre .title, 54 | pre .sub .identifier, 55 | pre .pi, 56 | pre .tag, 57 | pre .tag .keyword, 58 | pre .decorator, 59 | pre .shebang, 60 | pre .prompt { 61 | color: #89BDFF; 62 | } 63 | 64 | pre .class .title, 65 | pre .haskell .type, 66 | pre .smalltalk .class, 67 | pre .javadoctag, 68 | pre .yardoctag, 69 | pre .phpdoc { 70 | text-decoration: underline; 71 | } 72 | 73 | pre .symbol, 74 | pre .ruby .symbol .string, 75 | pre .number { 76 | color: #3387CC; 77 | } 78 | 79 | pre .params, 80 | pre .variable, 81 | pre .clojure .attribute { 82 | color: #3E87E3; 83 | } 84 | 85 | pre .css .tag, 86 | pre .rules .property, 87 | pre .pseudo, 88 | pre .tex .special { 89 | color: #CDA869; 90 | } 91 | 92 | pre .css .class { 93 | color: #9B703F; 94 | } 95 | 96 | pre .rules .keyword { 97 | color: #C5AF75; 98 | } 99 | 100 | pre .rules .value { 101 | color: #CF6A4C; 102 | } 103 | 104 | pre .css .id { 105 | color: #8B98AB; 106 | } 107 | 108 | pre .annotation, 109 | pre .apache .sqbracket, 110 | pre .nginx .built_in { 111 | color: #9B859D; 112 | } 113 | 114 | pre .preprocessor { 115 | color: #8996A8; 116 | } 117 | 118 | pre .hexcolor, 119 | pre .css .value .number { 120 | color: #DD7B3B; 121 | } 122 | 123 | pre .css .function { 124 | color: #DAD085; 125 | } 126 | 127 | pre .diff .header, 128 | pre .chunk, 129 | pre .tex .formula { 130 | background-color: #0E2231; 131 | color: #F8F8F8; 132 | font-style: italic; 133 | } 134 | 135 | pre .diff .change { 136 | background-color: #4A410D; 137 | color: #F8F8F8; 138 | } 139 | 140 | pre .addition { 141 | background-color: #253B22; 142 | color: #F8F8F8; 143 | } 144 | 145 | pre .deletion { 146 | background-color: #420E09; 147 | color: #F8F8F8; 148 | } 149 | 150 | pre .coffeescript .javascript, 151 | pre .javascript .xml, 152 | pre .tex .formula, 153 | pre .xml .javascript, 154 | pre .xml .vbscript, 155 | pre .xml .css, 156 | pre .xml .cdata { 157 | opacity: 0.5; 158 | } 159 | -------------------------------------------------------------------------------- /stylesheets/gments/tomorrow-night-blue.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Blue Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | .tomorrow-comment, pre .comment, pre .title { 6 | color: #7285b7; 7 | } 8 | 9 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 10 | color: #ff9da4; 11 | } 12 | 13 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 14 | color: #ffc58f; 15 | } 16 | 17 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 18 | color: #ffeead; 19 | } 20 | 21 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 22 | color: #d1f1a9; 23 | } 24 | 25 | .tomorrow-aqua, pre .css .hexcolor { 26 | color: #99ffff; 27 | } 28 | 29 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 30 | color: #bbdaff; 31 | } 32 | 33 | .tomorrow-purple, pre .keyword, pre .javascript .function { 34 | color: #ebbbff; 35 | } 36 | 37 | pre code { 38 | display: block; 39 | background: #002451; 40 | color: white; 41 | padding: 0.5em; 42 | } 43 | 44 | pre .coffeescript .javascript, 45 | pre .javascript .xml, 46 | pre .tex .formula, 47 | pre .xml .javascript, 48 | pre .xml .vbscript, 49 | pre .xml .css, 50 | pre .xml .cdata { 51 | opacity: 0.5; 52 | } 53 | -------------------------------------------------------------------------------- /stylesheets/gments/tomorrow-night-bright.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Bright Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | .tomorrow-comment, pre .comment, pre .title { 5 | color: #969896; 6 | } 7 | 8 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 9 | color: #d54e53; 10 | } 11 | 12 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 13 | color: #e78c45; 14 | } 15 | 16 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 17 | color: #e7c547; 18 | } 19 | 20 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 21 | color: #b9ca4a; 22 | } 23 | 24 | .tomorrow-aqua, pre .css .hexcolor { 25 | color: #70c0b1; 26 | } 27 | 28 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 29 | color: #7aa6da; 30 | } 31 | 32 | .tomorrow-purple, pre .keyword, pre .javascript .function { 33 | color: #c397d8; 34 | } 35 | 36 | pre code { 37 | display: block; 38 | background: black; 39 | color: #eaeaea; 40 | padding: 0.5em; 41 | } 42 | 43 | pre .coffeescript .javascript, 44 | pre .javascript .xml, 45 | pre .tex .formula, 46 | pre .xml .javascript, 47 | pre .xml .vbscript, 48 | pre .xml .css, 49 | pre .xml .cdata { 50 | opacity: 0.5; 51 | } 52 | -------------------------------------------------------------------------------- /stylesheets/gments/tomorrow-night-eighties.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Eighties Theme */ 2 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 3 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 4 | .tomorrow-comment, pre .comment, pre .title { 5 | color: #999999; 6 | } 7 | 8 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 9 | color: #f2777a; 10 | } 11 | 12 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 13 | color: #f99157; 14 | } 15 | 16 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 17 | color: #ffcc66; 18 | } 19 | 20 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 21 | color: #99cc99; 22 | } 23 | 24 | .tomorrow-aqua, pre .css .hexcolor { 25 | color: #66cccc; 26 | } 27 | 28 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 29 | color: #6699cc; 30 | } 31 | 32 | .tomorrow-purple, pre .keyword, pre .javascript .function { 33 | color: #cc99cc; 34 | } 35 | 36 | pre code { 37 | display: block; 38 | background: #2d2d2d; 39 | color: #cccccc; 40 | padding: 0.5em; 41 | } 42 | 43 | pre .coffeescript .javascript, 44 | pre .javascript .xml, 45 | pre .tex .formula, 46 | pre .xml .javascript, 47 | pre .xml .vbscript, 48 | pre .xml .css, 49 | pre .xml .cdata { 50 | opacity: 0.5; 51 | } 52 | -------------------------------------------------------------------------------- /stylesheets/gments/tomorrow-night.css: -------------------------------------------------------------------------------- 1 | /* Tomorrow Night Theme */ 2 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 3 | /* Original theme - https://github.com/chriskempson/tomorrow-theme */ 4 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 5 | .tomorrow-comment, pre .comment, pre .title { 6 | color: #969896; 7 | } 8 | 9 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 10 | color: #cc6666; 11 | } 12 | 13 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 14 | color: #de935f; 15 | } 16 | 17 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 18 | color: #f0c674; 19 | } 20 | 21 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 22 | color: #b5bd68; 23 | } 24 | 25 | .tomorrow-aqua, pre .css .hexcolor { 26 | color: #8abeb7; 27 | } 28 | 29 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 30 | color: #81a2be; 31 | } 32 | 33 | .tomorrow-purple, pre .keyword, pre .javascript .function { 34 | color: #b294bb; 35 | } 36 | 37 | pre code { 38 | display: block; 39 | background: #1d1f21; 40 | color: #c5c8c6; 41 | padding: 0.5em; 42 | } 43 | 44 | pre .coffeescript .javascript, 45 | pre .javascript .xml, 46 | pre .tex .formula, 47 | pre .xml .javascript, 48 | pre .xml .vbscript, 49 | pre .xml .css, 50 | pre .xml .cdata { 51 | opacity: 0.5; 52 | } 53 | -------------------------------------------------------------------------------- /stylesheets/gments/tomorrow.css: -------------------------------------------------------------------------------- 1 | /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ 2 | .tomorrow-comment, pre .comment, pre .title { 3 | color: #8e908c; 4 | } 5 | 6 | .tomorrow-red, pre .variable, pre .attribute, pre .tag, pre .regexp, pre .ruby .constant, pre .xml .tag .title, pre .xml .pi, pre .xml .doctype, pre .html .doctype, pre .css .id, pre .css .class, pre .css .pseudo { 7 | color: #c82829; 8 | } 9 | 10 | .tomorrow-orange, pre .number, pre .preprocessor, pre .built_in, pre .literal, pre .params, pre .constant { 11 | color: #f5871f; 12 | } 13 | 14 | .tomorrow-yellow, pre .class, pre .ruby .class .title, pre .css .rules .attribute { 15 | color: #eab700; 16 | } 17 | 18 | .tomorrow-green, pre .string, pre .value, pre .inheritance, pre .header, pre .ruby .symbol, pre .xml .cdata { 19 | color: #718c00; 20 | } 21 | 22 | .tomorrow-aqua, pre .css .hexcolor { 23 | color: #3e999f; 24 | } 25 | 26 | .tomorrow-blue, pre .function, pre .python .decorator, pre .python .title, pre .ruby .function .title, pre .ruby .title .keyword, pre .perl .sub, pre .javascript .title, pre .coffeescript .title { 27 | color: #4271ae; 28 | } 29 | 30 | .tomorrow-purple, pre .keyword, pre .javascript .function { 31 | color: #8959a8; 32 | } 33 | 34 | pre code { 35 | display: block; 36 | background: white; 37 | color: #4d4d4c; 38 | padding: 0.5em; 39 | } 40 | 41 | pre .coffeescript .javascript, 42 | pre .javascript .xml, 43 | pre .tex .formula, 44 | pre .xml .javascript, 45 | pre .xml .vbscript, 46 | pre .xml .css, 47 | pre .xml .cdata { 48 | opacity: 0.5; 49 | } 50 | -------------------------------------------------------------------------------- /stylesheets/gments/vs.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Visual Studio-like style based on original C# coloring by Jason Diamond 4 | 5 | */ 6 | pre code { 7 | display: block; padding: 0.5em; 8 | } 9 | 10 | pre .comment, 11 | pre .annotation, 12 | pre .template_comment, 13 | pre .diff .header, 14 | pre .chunk, 15 | pre .apache .cbracket { 16 | color: rgb(0, 128, 0); 17 | } 18 | 19 | pre .keyword, 20 | pre .id, 21 | pre .built_in, 22 | pre .smalltalk .class, 23 | pre .winutils, 24 | pre .bash .variable, 25 | pre .tex .command, 26 | pre .request, 27 | pre .status, 28 | pre .nginx .title, 29 | pre .xml .tag, 30 | pre .xml .tag .value { 31 | color: rgb(0, 0, 255); 32 | } 33 | 34 | pre .string, 35 | pre .title, 36 | pre .parent, 37 | pre .tag .value, 38 | pre .rules .value, 39 | pre .rules .value .number, 40 | pre .ruby .symbol, 41 | pre .ruby .symbol .string, 42 | pre .aggregate, 43 | pre .template_tag, 44 | pre .django .variable, 45 | pre .addition, 46 | pre .flow, 47 | pre .stream, 48 | pre .apache .tag, 49 | pre .date, 50 | pre .tex .formula { 51 | color: rgb(163, 21, 21); 52 | } 53 | 54 | pre .ruby .string, 55 | pre .decorator, 56 | pre .filter .argument, 57 | pre .localvars, 58 | pre .array, 59 | pre .attr_selector, 60 | pre .pseudo, 61 | pre .pi, 62 | pre .doctype, 63 | pre .deletion, 64 | pre .envvar, 65 | pre .shebang, 66 | pre .preprocessor, 67 | pre .userType, 68 | pre .apache .sqbracket, 69 | pre .nginx .built_in, 70 | pre .tex .special, 71 | pre .prompt { 72 | color: rgb(43, 145, 175); 73 | } 74 | 75 | pre .phpdoc, 76 | pre .javadoc, 77 | pre .xmlDocTag { 78 | color: rgb(128, 128, 128); 79 | } 80 | 81 | pre .vhdl .typename { font-weight: bold; } 82 | pre .vhdl .string { color: #666666; } 83 | pre .vhdl .literal { color: rgb(163, 21, 21); } 84 | pre .vhdl .attribute { color: #00B0E8; } 85 | 86 | pre .xml .attribute { color: rgb(255, 0, 0); } 87 | -------------------------------------------------------------------------------- /stylesheets/gments/xcode.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | XCode style (c) Angel Garcia 4 | 5 | */ 6 | 7 | pre code { 8 | display: block; padding: 0.5em; 9 | background: #fff; color: black; 10 | } 11 | 12 | pre .comment, 13 | pre .template_comment, 14 | pre .javadoc, 15 | pre .comment * { 16 | color: rgb(0,106,0); 17 | } 18 | 19 | pre .keyword, 20 | pre .literal, 21 | pre .nginx .title { 22 | color: rgb(170,13,145); 23 | } 24 | pre .method, 25 | pre .list .title, 26 | pre .tag .title, 27 | pre .setting .value, 28 | pre .winutils, 29 | pre .tex .command, 30 | pre .http .title, 31 | pre .request, 32 | pre .status { 33 | color: #008; 34 | } 35 | 36 | pre .envvar, 37 | pre .tex .special { 38 | color: #660; 39 | } 40 | 41 | pre .string { 42 | color: rgb(196,26,22); 43 | } 44 | pre .tag .value, 45 | pre .cdata, 46 | pre .filter .argument, 47 | pre .attr_selector, 48 | pre .apache .cbracket, 49 | pre .date, 50 | pre .regexp { 51 | color: #080; 52 | } 53 | 54 | pre .sub .identifier, 55 | pre .pi, 56 | pre .tag, 57 | pre .tag .keyword, 58 | pre .decorator, 59 | pre .ini .title, 60 | pre .shebang, 61 | pre .prompt, 62 | pre .hexcolor, 63 | pre .rules .value, 64 | pre .css .value .number, 65 | pre .symbol, 66 | pre .symbol .string, 67 | pre .number, 68 | pre .css .function, 69 | pre .clojure .title, 70 | pre .clojure .built_in { 71 | color: rgb(28,0,207); 72 | } 73 | 74 | pre .class .title, 75 | pre .haskell .type, 76 | pre .smalltalk .class, 77 | pre .javadoctag, 78 | pre .yardoctag, 79 | pre .phpdoc, 80 | pre .typename, 81 | pre .tag .attribute, 82 | pre .doctype, 83 | pre .class .id, 84 | pre .built_in, 85 | pre .setting, 86 | pre .params, 87 | pre .clojure .attribute { 88 | color: rgb(92,38,153); 89 | } 90 | 91 | pre .variable { 92 | color: rgb(63,110,116); 93 | } 94 | pre .css .tag, 95 | pre .rules .property, 96 | pre .pseudo, 97 | pre .subst { 98 | color: #000; 99 | } 100 | 101 | pre .css .class, pre .css .id { 102 | color: #9B703F; 103 | } 104 | 105 | pre .value .important { 106 | color: #ff7700; 107 | font-weight: bold; 108 | } 109 | 110 | pre .rules .keyword { 111 | color: #C5AF75; 112 | } 113 | 114 | pre .annotation, 115 | pre .apache .sqbracket, 116 | pre .nginx .built_in { 117 | color: #9B859D; 118 | } 119 | 120 | pre .preprocessor, 121 | pre .preprocessor * { 122 | color: rgb(100,56,32); 123 | } 124 | 125 | pre .tex .formula { 126 | background-color: #EEE; 127 | font-style: italic; 128 | } 129 | 130 | pre .diff .header, 131 | pre .chunk { 132 | color: #808080; 133 | font-weight: bold; 134 | } 135 | 136 | pre .diff .change { 137 | background-color: #BCCFF9; 138 | } 139 | 140 | pre .addition { 141 | background-color: #BAEEBA; 142 | } 143 | 144 | pre .deletion { 145 | background-color: #FFC8BD; 146 | } 147 | 148 | pre .comment .yardoctag { 149 | font-weight: bold; 150 | } 151 | 152 | pre .method .id { 153 | color: #000; 154 | } 155 | -------------------------------------------------------------------------------- /stylesheets/gments/zenburn.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Zenburn style from voldmar.ru (c) Vladimir Epifanov 4 | based on dark.css by Ivan Sagalaev 5 | 6 | */ 7 | 8 | pre code { 9 | display: block; padding: 0.5em; 10 | background: #3F3F3F; 11 | color: #DCDCDC; 12 | } 13 | 14 | pre .keyword, 15 | pre .tag, 16 | pre .css .class, 17 | pre .css .id, 18 | pre .lisp .title, 19 | pre .nginx .title, 20 | pre .request, 21 | pre .status, 22 | pre .clojure .attribute { 23 | color: #E3CEAB; 24 | } 25 | 26 | pre .django .template_tag, 27 | pre .django .variable, 28 | pre .django .filter .argument { 29 | color: #DCDCDC; 30 | } 31 | 32 | pre .number, 33 | pre .date { 34 | color: #8CD0D3; 35 | } 36 | 37 | pre .dos .envvar, 38 | pre .dos .stream, 39 | pre .variable, 40 | pre .apache .sqbracket { 41 | color: #EFDCBC; 42 | } 43 | 44 | pre .dos .flow, 45 | pre .diff .change, 46 | pre .python .exception, 47 | pre .python .built_in, 48 | pre .literal, 49 | pre .tex .special { 50 | color: #EFEFAF; 51 | } 52 | 53 | pre .diff .chunk, 54 | pre .subst { 55 | color: #8F8F8F; 56 | } 57 | 58 | pre .dos .keyword, 59 | pre .python .decorator, 60 | pre .title, 61 | pre .haskell .type, 62 | pre .diff .header, 63 | pre .ruby .class .parent, 64 | pre .apache .tag, 65 | pre .nginx .built_in, 66 | pre .tex .command, 67 | pre .prompt { 68 | color: #efef8f; 69 | } 70 | 71 | pre .dos .winutils, 72 | pre .ruby .symbol, 73 | pre .ruby .symbol .string, 74 | pre .ruby .string { 75 | color: #DCA3A3; 76 | } 77 | 78 | pre .diff .deletion, 79 | pre .string, 80 | pre .tag .value, 81 | pre .preprocessor, 82 | pre .built_in, 83 | pre .sql .aggregate, 84 | pre .javadoc, 85 | pre .smalltalk .class, 86 | pre .smalltalk .localvars, 87 | pre .smalltalk .array, 88 | pre .css .rules .value, 89 | pre .attr_selector, 90 | pre .pseudo, 91 | pre .apache .cbracket, 92 | pre .tex .formula { 93 | color: #CC9393; 94 | } 95 | 96 | pre .shebang, 97 | pre .diff .addition, 98 | pre .comment, 99 | pre .java .annotation, 100 | pre .template_comment, 101 | pre .pi, 102 | pre .doctype { 103 | color: #7F9F7F; 104 | } 105 | 106 | pre .coffeescript .javascript, 107 | pre .javascript .xml, 108 | pre .tex .formula, 109 | pre .xml .javascript, 110 | pre .xml .vbscript, 111 | pre .xml .css, 112 | pre .xml .cdata { 113 | opacity: 0.5; 114 | } 115 | 116 | -------------------------------------------------------------------------------- /stylesheets/stylesheet.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | padding: 0; 4 | 5 | background: #151515 url("../images/bkg.png") 0 0; 6 | font: 16px; 7 | font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; 8 | color: #eaeaea; 9 | line-height: 1.5; 10 | } 11 | 12 | /* General & 'Reset' Stuff */ 13 | 14 | .container-super { 15 | width: 90%; 16 | max-width: 600px; 17 | margin: 0 auto; 18 | } 19 | 20 | section { 21 | display: block; 22 | 23 | margin: 0 0 20px 0; 24 | } 25 | 26 | h1, h2, h3, h4, h5, h6 { 27 | margin: 0 0 20px; 28 | } 29 | 30 | li { 31 | line-height: 1.4 ; 32 | } 33 | 34 | header { 35 | width: 100%; 36 | margin: 0 0 40px 0; 37 | padding: 20px 0; 38 | 39 | background: rgba(0, 0, 0, 0.1); 40 | border-bottom: 1px dashed #b5e853; 41 | } 42 | 43 | header h1 { 44 | margin: 0 0 0 -40px; 45 | 46 | font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; 47 | font-size: 30px; 48 | font-weight: bold; 49 | color: #b5e853; 50 | letter-spacing: -1px; 51 | line-height: 1.5; 52 | text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 53 | 54 | 0 0 5px rgba(181, 232, 83, 0.1), 55 | 0 0 10px rgba(181, 232, 83, 0.1); 56 | -webkit-font-smoothing: antialiased; 57 | } 58 | 59 | header h1:before { 60 | content: "./ "; 61 | 62 | font-size: 24px; 63 | } 64 | 65 | header h2 { 66 | font-size: 18px; 67 | font-weight: 300; 68 | color: #666; 69 | } 70 | 71 | #downloads .btn { 72 | display: inline-block; 73 | 74 | margin: 0; 75 | 76 | text-align: center; 77 | } 78 | 79 | /*Main Content*/ 80 | 81 | #main_content { 82 | width: 100%; 83 | 84 | -webkit-font-smoothing: antialiased; 85 | } 86 | section img { 87 | max-width: 100% 88 | } 89 | 90 | h1, h2, h3, h4, h5, h6 { 91 | font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; 92 | font-weight: normal; 93 | color: #b5e853; 94 | letter-spacing: -0.03em; 95 | text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 96 | 97 | 0 0 5px rgba(181, 232, 83, 0.1), 98 | 0 0 10px rgba(181, 232, 83, 0.1); 99 | } 100 | 101 | #main_content h1 { 102 | font-size: 30px; 103 | } 104 | 105 | #main_content h2 { 106 | font-size: 24px; 107 | } 108 | 109 | #main_content h3 { 110 | font-size: 18px; 111 | } 112 | 113 | #main_content h4 { 114 | font-size: 14px; 115 | } 116 | 117 | #main_content h5 { 118 | margin: 0 0 5px 0; 119 | 120 | font-size: 12px; 121 | text-transform: uppercase; 122 | } 123 | 124 | #main_content h6 { 125 | margin: 0 0 5px 0; 126 | 127 | font-size: 12px; 128 | color: #999; 129 | text-transform: uppercase; 130 | } 131 | 132 | dt { 133 | font-style: italic; 134 | font-weight: bold; 135 | } 136 | 137 | ul li { 138 | list-style: none; 139 | } 140 | 141 | ul li:before { 142 | content: ">>"; 143 | 144 | margin-right: 21px; 145 | margin-left: -37px; 146 | 147 | font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; 148 | font-size: 13px; 149 | color: #b5e853; 150 | line-height: 16px; 151 | } 152 | 153 | blockquote { 154 | padding-left: 10px; 155 | 156 | color: #aaa; 157 | border-left: 1px dotted #666; 158 | } 159 | 160 | pre { 161 | overflow: auto; 162 | overflow-y: hidden; 163 | padding: 10px; 164 | 165 | background: rgb(39, 40, 34); 166 | font-size: 14px; 167 | color: #FFF; 168 | text-wrap: normal; 169 | border: 1px solid rgba(180, 230, 80, 0.25); 170 | border-radius: 12px; 171 | 172 | -moz-border-radius: 12px; 173 | -webkit-border-radius: 12px; 174 | } 175 | 176 | table { 177 | width: 100%; 178 | margin: 0 0 20px 0; 179 | } 180 | 181 | th { 182 | padding: 5px 10px; 183 | 184 | text-align: left; 185 | border-bottom: 1px dashed #b5e853; 186 | } 187 | 188 | td { 189 | padding: 5px 10px; 190 | } 191 | 192 | hr { 193 | height: 0; 194 | 195 | color: #b5e853; 196 | border: 0; 197 | border-bottom: 1px dashed #b5e853; 198 | } 199 | 200 | /* Buttons 201 | */ 202 | 203 | .btn { 204 | display: inline-block; 205 | 206 | padding: 8px 18px; 207 | 208 | background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3)); 209 | font-family: Helvetica, Arial, sans-serif; 210 | font-size: 13px; 211 | font-weight: bold; 212 | color: rgba(255, 255, 255, 0.8); 213 | text-decoration: none; 214 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75); 215 | border: 2px solid rgba(0, 0, 0, 0.7); 216 | border-radius: 50px; 217 | border-top: 2px solid rgba(0, 0, 0, 1); 218 | border-bottom: 2px solid rgba(0, 0, 0, 0.7); 219 | box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); 220 | } 221 | 222 | .btn:hover { 223 | background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8)); 224 | } 225 | 226 | .btn .icon { 227 | display: inline-block; 228 | float: left; 229 | 230 | height: 16px; 231 | width: 16px; 232 | margin: 1px 8px 0 0; 233 | } 234 | 235 | .btn-github .icon { 236 | opacity: 0.6; 237 | background: url("../images/blacktocat.png") 0 0 no-repeat; 238 | } 239 | 240 | /* Links 241 | a, a:hover, a:visited 242 | */ 243 | 244 | a { 245 | color: #63c0f5; 246 | text-shadow: 0 0 5px rgba(104, 182, 255, 0.5); 247 | } 248 | 249 | /* Clearfix */ 250 | 251 | .cf:before, .cf:after { 252 | content:""; 253 | 254 | display:table; 255 | } 256 | 257 | .cf:after { 258 | clear:both; 259 | } 260 | 261 | .cf { 262 | zoom:1; 263 | } 264 | -------------------------------------------------------------------------------- /template.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | Python: faster way 14 | 15 | 16 |
17 |
18 |

Python: faster way

19 |

20 | Tricks for your code run faster -- 21 | 22 | 23 | 24 |

25 |
26 |
27 |
28 |

#Platform

29 |
30 |
31 | >>> import sys
32 | >>> import platform
33 | >>> platform.system()
34 | '{{ plat_sys }}'
35 | >>> platform.release()
36 | '{{ plat_rel }}'
37 | >>> sys.version
38 | '{{ sys_version}}'
39 | >>> import timeit
40 | >>> from dis import dis
41 | >>> 
42 |         
43 |
44 | {% for test in tests %} 45 |

#Test {{ test.n }}

46 |
47 | {% for case in test.cases %} 48 |
49 | {{ case.file_content }}
50 | >>> 
51 | >>> min(timeit.repeat(a, number={{ case.number }}))
52 | ... {{ case.timeit_min }}
53 | >>> 
54 | >>> dis(a)
55 | {{ case.dis|e }}
56 | >>> 
57 |         
58 | {% endfor %} 59 |
60 | {% endfor %} 61 |
62 | 63 | 71 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /tests/test01/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | d = {} 3 | return d 4 | -------------------------------------------------------------------------------- /tests/test01/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | d = dict() 3 | return d 4 | -------------------------------------------------------------------------------- /tests/test02/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [0, 8, 6, 4, 2, 1, 3, 5, 7, 9] 3 | l.sort() 4 | return l 5 | -------------------------------------------------------------------------------- /tests/test02/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [0, 8, 6, 4, 2, 1, 3, 5, 7, 9] 3 | return sorted(l) 4 | -------------------------------------------------------------------------------- /tests/test03/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a, b, c, d, e, f, g, h, i, j = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 3 | return j, i, h, g, f, e, d, c, b, a 4 | -------------------------------------------------------------------------------- /tests/test03/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 0 3 | b = 1 4 | c = 2 5 | d = 3 6 | e = 4 7 | f = 5 8 | g = 6 9 | h = 7 10 | i = 8 11 | j = 9 12 | return j, i, h, g, f, e, d, c, b, a 13 | -------------------------------------------------------------------------------- /tests/test04/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a, b, c, d, e, f = 2, 5, 52, 25, 225, 552 3 | if a < b < c < d < e < f: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test04/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a, b, c, d, e, f = 2, 5, 52, 25, 225, 552 3 | if a < b and b < c and c < d and d < e and e < f: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test05/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = True 3 | if a: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test05/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = True 3 | if a is True: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test05/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = True 3 | if a == True: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test06/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | if a is not 2: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test06/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | if not a is 2: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test06/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | if a != 2: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test07/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [] 3 | if a: 4 | return False 5 | return True 6 | -------------------------------------------------------------------------------- /tests/test07/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [] 3 | if not a: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test07/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [] 3 | if a == []: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test07/t4.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [] 3 | if len(a) <= 0: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test08/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = object() 3 | if not a: 4 | return False 5 | return True 6 | -------------------------------------------------------------------------------- /tests/test08/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = object() 3 | if a is None: 4 | return False 5 | return True 6 | -------------------------------------------------------------------------------- /tests/test08/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = object() 3 | if a: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test08/t4.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = object() 3 | if a is not None: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test09/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4, 5] 3 | s = 0 4 | for p, v in enumerate(a): 5 | s += p 6 | s += v 7 | return s 8 | -------------------------------------------------------------------------------- /tests/test09/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4, 5] 3 | s = 0 4 | for i in range(len(a)): 5 | s += i 6 | s += a[i] 7 | return s 8 | -------------------------------------------------------------------------------- /tests/test10/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | r = '' 3 | for i in range(10): 4 | r += str(i) 5 | return r 6 | -------------------------------------------------------------------------------- /tests/test10/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | r = [] 3 | for i in range(10): 4 | r.append(str(i)) 5 | return ''.join(r) 6 | -------------------------------------------------------------------------------- /tests/test11/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 5 3 | b = 2 4 | c = 3 5 | return "%d" % (a*(b+c)) 6 | -------------------------------------------------------------------------------- /tests/test11/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 5 3 | b = 2 4 | c = 3 5 | return str(a*(b+c)) 6 | -------------------------------------------------------------------------------- /tests/test11/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 5 3 | b = 2 4 | c = 3 5 | return "%s" % (a*(b+c)) 6 | -------------------------------------------------------------------------------- /tests/test12/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4, 5] 3 | return a.__len__() 4 | -------------------------------------------------------------------------------- /tests/test12/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4, 5] 3 | return len(a) 4 | -------------------------------------------------------------------------------- /tests/test13/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | b = 2 4 | c = 2 5 | d = 5 6 | return (a.__add__(b.__add__(c))).__mul__(d) 7 | -------------------------------------------------------------------------------- /tests/test13/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | b = 2 4 | c = 2 5 | d = 5 6 | return (a+b+c)*d 7 | -------------------------------------------------------------------------------- /tests/test14/t1.py: -------------------------------------------------------------------------------- 1 | class Z(): 2 | 3 | def __init__(self, v): 4 | self.v = v 5 | 6 | def __mul__(self, o): 7 | return Z(self.v * o.v) 8 | 9 | def __add__(self, o): 10 | return Z(self.v + o.v) 11 | 12 | 13 | def a(): 14 | a = Z(5) 15 | b = Z(2) 16 | c = Z(3) 17 | return (b + c) * a 18 | -------------------------------------------------------------------------------- /tests/test14/t2.py: -------------------------------------------------------------------------------- 1 | class Z(): 2 | 3 | def __init__(self, v): 4 | self.v = v 5 | 6 | def __mul__(self, o): 7 | return Z(self.v * o.v) 8 | 9 | def __add__(self, o): 10 | return Z(self.v + o.v) 11 | 12 | 13 | def a(): 14 | a = Z(5) 15 | b = Z(2) 16 | c = Z(3) 17 | return (b.__add__(c)).__mul__(a) 18 | -------------------------------------------------------------------------------- /tests/test15/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | s = 0 3 | for i in range(10001): 4 | s += i 5 | return s 6 | 7 | 8 | number = 100000 9 | -------------------------------------------------------------------------------- /tests/test15/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return sum(i for i in range(10001)) 3 | 4 | 5 | number = 100000 6 | -------------------------------------------------------------------------------- /tests/test15/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return sum(range(10001)) 3 | 4 | 5 | number = 100000 6 | -------------------------------------------------------------------------------- /tests/test16/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [] 3 | for i in range(1000): 4 | l.append(i) 5 | return l 6 | 7 | 8 | number = 100000 9 | -------------------------------------------------------------------------------- /tests/test16/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return [i for i in range(1000)] 3 | 4 | 5 | number = 100000 6 | -------------------------------------------------------------------------------- /tests/test17/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | d = {} 3 | for i in range(100): 4 | d.update({str(i): i*2}) 5 | return d 6 | -------------------------------------------------------------------------------- /tests/test17/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | d = {} 3 | for i in range(100): 4 | d[str(i)] = i*2 5 | return d 6 | -------------------------------------------------------------------------------- /tests/test17/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return {str(i): i*2 for i in range(100)} 3 | -------------------------------------------------------------------------------- /tests/test18/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = range(50, -20, -2) 3 | d = {} 4 | for p, v in enumerate(l): 5 | d.update({p: v}) 6 | return d 7 | -------------------------------------------------------------------------------- /tests/test18/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = range(50, -20, -2) 3 | d = {} 4 | for p, v in enumerate(l): 5 | d[p] = v 6 | return d 7 | -------------------------------------------------------------------------------- /tests/test18/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = range(50, -20, -2) 3 | return {p: v for p, v in enumerate(l)} 4 | -------------------------------------------------------------------------------- /tests/test19/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 0 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test19/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = True 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test19/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test19/t4.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [] 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test19/t5.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1] 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test19/t6.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4] 3 | return bool(a) 4 | -------------------------------------------------------------------------------- /tests/test20/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | return True if a != 2 else False 4 | -------------------------------------------------------------------------------- /tests/test20/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | return a != 2 4 | -------------------------------------------------------------------------------- /tests/test20/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | return a != 2 and True or False 4 | -------------------------------------------------------------------------------- /tests/test21/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [1, 2, 3, 4, 5] 3 | return sum([p+v for p, v in enumerate(a)]) 4 | -------------------------------------------------------------------------------- /tests/test21/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return sum([p+v for p, v in enumerate([1, 2, 3, 4, 5])]) 3 | -------------------------------------------------------------------------------- /tests/test21/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return sum([p+v for p, v in enumerate(xrange(1, 6))]) 3 | -------------------------------------------------------------------------------- /tests/test22/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | if a == 1 or a == 2 or a == 3: 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test22/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = 1 3 | if a in (1, 2, 3): 4 | return True 5 | return False 6 | -------------------------------------------------------------------------------- /tests/test23/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | r = '' 3 | for i in range(10): 4 | r = '%s%s' % (r, str(i)) 5 | return r 6 | -------------------------------------------------------------------------------- /tests/test23/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return ''.join(map(str, xrange(10))) 3 | -------------------------------------------------------------------------------- /tests/test23/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return ''.join(map(str, range(10))) 3 | -------------------------------------------------------------------------------- /tests/test24/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [[1, 2, 3], [2, 3, 4], [4, 5, 6]] 3 | b = {x[1]: x[2] for x in a} 4 | return b 5 | -------------------------------------------------------------------------------- /tests/test24/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [[1, 2, 3], [2, 3, 4], [4, 5, 6]] 3 | b = dict((x, y)for w, x, y in a) 4 | return b 5 | -------------------------------------------------------------------------------- /tests/test24/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | a = [[1, 2, 3], [2, 3, 4], [4, 5, 6]] 3 | b = {k: v for x, k, v in a} 4 | return b 5 | -------------------------------------------------------------------------------- /tests/test25/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 1 3 | return not n 4 | -------------------------------------------------------------------------------- /tests/test25/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 0 3 | return not n 4 | -------------------------------------------------------------------------------- /tests/test25/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 1 3 | if n: 4 | return False 5 | else: 6 | return True 7 | -------------------------------------------------------------------------------- /tests/test25/t4.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 0 3 | if n: 4 | return False 5 | else: 6 | return True 7 | -------------------------------------------------------------------------------- /tests/test26/t1.py: -------------------------------------------------------------------------------- 1 | def k(x=1, y=1, z=-1): 2 | return x * (y - 2 * z) 3 | 4 | 5 | def a(): 6 | return k(**{'x': 5, 'y': 3}) 7 | -------------------------------------------------------------------------------- /tests/test26/t2.py: -------------------------------------------------------------------------------- 1 | def k(x=1, y=1, z=-1): 2 | return x * (y - 2 * z) 3 | 4 | 5 | def a(): 6 | return k(x=5, y=3) 7 | -------------------------------------------------------------------------------- /tests/test27/t1.py: -------------------------------------------------------------------------------- 1 | def a(n=25): 2 | a, b = 0, 1 3 | for i in range(n): 4 | a, b = b, a + b 5 | return a 6 | -------------------------------------------------------------------------------- /tests/test27/t2.py: -------------------------------------------------------------------------------- 1 | def a(n=25): 2 | a, b = 0, 1 3 | for i in range(n): 4 | x = a + b 5 | a = b 6 | b = x 7 | return a 8 | -------------------------------------------------------------------------------- /tests/test28/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | x = 0 3 | y = 0 4 | z = 0 5 | w = 0 6 | k = 0 7 | return x, y, z, w, k 8 | -------------------------------------------------------------------------------- /tests/test28/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | x = y = z = w = k = 0 3 | return x, y, z, w, k 4 | -------------------------------------------------------------------------------- /tests/test28/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | x, y, z, w, k = 0, 0, 0, 0, 0 3 | return x, y, z, w, k 4 | -------------------------------------------------------------------------------- /tests/test29/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 123.123 3 | return int(n) 4 | -------------------------------------------------------------------------------- /tests/test29/t2.py: -------------------------------------------------------------------------------- 1 | import math 2 | 3 | 4 | def a(): 5 | n = 123.123 6 | return math.floor(n) 7 | -------------------------------------------------------------------------------- /tests/test29/t3.py: -------------------------------------------------------------------------------- 1 | import math 2 | 3 | 4 | def a(): 5 | n = 123.123 6 | return math.trunc(n) 7 | -------------------------------------------------------------------------------- /tests/test29/t4.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | n = 123.123 3 | return n // 1 4 | -------------------------------------------------------------------------------- /tests/test30/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | f = lambda *args: args 3 | return f('a', 'b') 4 | -------------------------------------------------------------------------------- /tests/test30/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | f = lambda *args: args 3 | return f(*('a', 'b')) 4 | -------------------------------------------------------------------------------- /tests/test30/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | f = lambda *args: args 3 | return f(*'ab') 4 | -------------------------------------------------------------------------------- /tests/test31/t1.py: -------------------------------------------------------------------------------- 1 | def a(int=int, str=str, range=range): 2 | for i in range(500): 3 | int(str(i)) 4 | 5 | 6 | number = 100000 7 | -------------------------------------------------------------------------------- /tests/test31/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | for i in range(500): 3 | int(str(i)) 4 | 5 | 6 | number = 100000 7 | -------------------------------------------------------------------------------- /tests/test32/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | D = {} 3 | for k in xrange(0, 200): 4 | D.get(k) 5 | return D 6 | -------------------------------------------------------------------------------- /tests/test32/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | D = {} 3 | for k in xrange(0, 200): 4 | D[k] if k in D else None 5 | return D 6 | -------------------------------------------------------------------------------- /tests/test33/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | s = "World" 3 | return "Hello, {0}!".format(s) 4 | -------------------------------------------------------------------------------- /tests/test33/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | s = "World" 3 | return "Hello, %s!" % s 4 | -------------------------------------------------------------------------------- /tests/test33/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | s = "World" 3 | return "Hello, " + s + "!" 4 | -------------------------------------------------------------------------------- /tests/test34/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | my_list = [1, 2, 3, 5, 12, 11, 16, 14] 3 | for i in range(20): 4 | if i in my_list: 5 | pass 6 | return my_list 7 | -------------------------------------------------------------------------------- /tests/test34/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | my_set = {1, 2, 3, 5, 12, 11, 16, 14} 3 | for i in range(20): 4 | if i in my_set: 5 | pass 6 | return my_set 7 | -------------------------------------------------------------------------------- /tests/test35/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 3 | c = l[:] 4 | return l, c 5 | -------------------------------------------------------------------------------- /tests/test35/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 3 | c = list(l) 4 | return l, c 5 | -------------------------------------------------------------------------------- /tests/test35/t3.py: -------------------------------------------------------------------------------- 1 | import copy 2 | 3 | 4 | def a(): 5 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 6 | c = copy.copy(l) 7 | return l, c 8 | -------------------------------------------------------------------------------- /tests/test36/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | return [[0] * 5 for x in range(5)] 3 | -------------------------------------------------------------------------------- /tests/test36/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | r = [] 3 | for x in range(5): 4 | r.append([0] * 5) 5 | return r 6 | -------------------------------------------------------------------------------- /tests/test36/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | r = [] 3 | for x in range(5): 4 | _r = [] 5 | for y in range(5): 6 | _r.append(0) 7 | r.append(_r) 8 | return r 9 | -------------------------------------------------------------------------------- /tests/test37/t1.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 3 | l[:] = [] 4 | return l 5 | -------------------------------------------------------------------------------- /tests/test37/t2.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 3 | del l[:] 4 | return l 5 | -------------------------------------------------------------------------------- /tests/test37/t3.py: -------------------------------------------------------------------------------- 1 | def a(): 2 | l = [1, 2, 3, 4, 5, 6, 7, 8, 9] 3 | l *= 0 4 | return l 5 | -------------------------------------------------------------------------------- /tests/test38/t1.py: -------------------------------------------------------------------------------- 1 | class Spam(): 2 | def __init__(self): 3 | self.eggs = 'eggs' 4 | 5 | 6 | def a(): 7 | spam = Spam() 8 | if hasattr(spam, 'eggs'): 9 | eggs = spam.eggs 10 | else: 11 | eggs = None 12 | return eggs 13 | -------------------------------------------------------------------------------- /tests/test38/t2.py: -------------------------------------------------------------------------------- 1 | class Spam(): 2 | def __init__(self): 3 | self.eggs = 'eggs' 4 | 5 | 6 | def a(): 7 | spam = Spam() 8 | try: 9 | eggs = spam.eggs 10 | except AttributeError: 11 | eggs = None 12 | return eggs 13 | -------------------------------------------------------------------------------- /tests/test38/t3.py: -------------------------------------------------------------------------------- 1 | class Spam(): 2 | def __init__(self): 3 | self.not_eggs = 'eggs' 4 | 5 | 6 | def a(): 7 | spam = Spam() 8 | if hasattr(spam, 'eggs'): 9 | eggs = spam.eggs 10 | else: 11 | eggs = None 12 | return eggs 13 | -------------------------------------------------------------------------------- /tests/test38/t4.py: -------------------------------------------------------------------------------- 1 | class Spam(): 2 | def __init__(self): 3 | self.not_eggs = 'eggs' 4 | 5 | 6 | def a(): 7 | spam = Spam() 8 | try: 9 | eggs = spam.eggs 10 | except AttributeError: 11 | eggs = None 12 | return eggs 13 | --------------------------------------------------------------------------------