city-watch 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/city_watch/commander/home.rb +3 -3
- data/lib/city_watch/commander/server.rb +8 -3
- data/lib/city_watch/commander.rb +1 -1
- data/lib/city_watch.rb +3 -1
- data/lib/version.rb +1 -1
- data/static/javascripts/city_watch.js +0 -0
- data/static/javascripts/highlight.pack.js +1 -0
- data/static/stylesheets/arta.css +158 -0
- data/static/stylesheets/ascetic.css +50 -0
- data/static/stylesheets/brown_paper.css +104 -0
- data/static/stylesheets/brown_papersq.png +0 -0
- data/static/stylesheets/city_watch.css +30 -0
- data/static/stylesheets/dark.css +103 -0
- data/static/stylesheets/default.css +135 -0
- data/static/stylesheets/far.css +111 -0
- data/static/stylesheets/github.css +127 -0
- data/static/stylesheets/googlecode.css +144 -0
- data/static/stylesheets/idea.css +121 -0
- data/static/stylesheets/ir_black.css +104 -0
- data/static/stylesheets/magula.css +121 -0
- data/static/stylesheets/monokai.css +114 -0
- data/static/stylesheets/pojoaque.css +104 -0
- data/static/stylesheets/pojoaque.jpg +0 -0
- data/static/stylesheets/rainbow.css +114 -0
- data/static/stylesheets/school_book.css +111 -0
- data/static/stylesheets/school_book.png +0 -0
- data/static/stylesheets/solarized_dark.css +88 -0
- data/static/stylesheets/solarized_light.css +88 -0
- data/static/stylesheets/sunburst.css +158 -0
- data/static/stylesheets/tomorrow-night-blue.css +52 -0
- data/static/stylesheets/tomorrow-night-bright.css +51 -0
- data/static/stylesheets/tomorrow-night-eighties.css +51 -0
- data/static/stylesheets/tomorrow-night.css +52 -0
- data/static/stylesheets/tomorrow.css +49 -0
- data/static/stylesheets/vs.css +86 -0
- data/static/stylesheets/xcode.css +154 -0
- data/static/stylesheets/zenburn.css +115 -0
- data/watch_commander.ru +2 -0
- metadata +33 -1
data/Gemfile.lock
CHANGED
@@ -2,15 +2,15 @@ class Home
|
|
2
2
|
|
3
3
|
def call(env)
|
4
4
|
|
5
|
-
output =
|
5
|
+
output = CityWatch.header << '<h1>Known servers:</h1><ul>'
|
6
6
|
CityWatch.redis.smembers("#{CityWatch.config[:prefix]}::known_hosts").each do |server|
|
7
|
-
output << "<li><a href
|
7
|
+
output << "<li><a href=\"/" << server << "\">#{server}</a>: <pre><code>" << Yajl::Encoder.encode(Yajl::Parser.parse(CityWatch.redis.zrevrange("#{CityWatch.config[:prefix]}::#{server}::summary",0,0).first),:pretty => true, :indent => " ") << "</code></pre></li>"
|
8
8
|
end
|
9
9
|
output << "</ul></body></html>"
|
10
10
|
|
11
11
|
[200,{"Content-Type" => "text/html"},[output]]
|
12
12
|
end
|
13
13
|
|
14
|
-
Routes.add_route new, { :request_method => 'GET', :path_info => %r{
|
14
|
+
Routes.add_route new, { :request_method => 'GET', :path_info => %r{^/$} }, {}, :home
|
15
15
|
|
16
16
|
end
|
@@ -5,15 +5,20 @@ class Server
|
|
5
5
|
parms = Rack::Request.new(env).params.merge(env["rack.routing_args"]).inject({}){|acc,(k,v)| acc[k.to_sym] = v; acc}
|
6
6
|
server = parms[:server]
|
7
7
|
|
8
|
-
output =
|
8
|
+
output = CityWatch.header << '<h1>' << server << "</h1><ul>"
|
9
9
|
CityWatch.redis.zrevrange("#{CityWatch.config[:prefix]}::#{server}::raw_stats",0,100).each do |update|
|
10
|
-
|
10
|
+
dat = Yajl::Parser.new(:symbolize_keys => true).parse(update)
|
11
|
+
output << "<li><h4>" << dat[:received_at] << "</h4><ul>"
|
12
|
+
dat[:watchmen].each do |name,datr|
|
13
|
+
output << "<li><strong>" << name.to_s << ":</strong> <pre><code>" << Yajl::Encoder.encode(datr,:pretty => true, :indent => " ") << "</code></pre></li>"
|
14
|
+
end
|
15
|
+
output << "</ul></li>"
|
11
16
|
end
|
12
17
|
output << "</ul></body></html>"
|
13
18
|
|
14
19
|
[200,{"Content-Type" => "text/html"},[output]]
|
15
20
|
end
|
16
21
|
|
17
|
-
Routes.add_route new, { :request_method => 'GET', :path_info => %r{^/(?<server>[\w]+)$} }, {}, :server
|
22
|
+
Routes.add_route new, { :request_method => 'GET', :path_info => %r{^/(?<server>[\w\.]+)$} }, {}, :server
|
18
23
|
|
19
24
|
end
|
data/lib/city_watch/commander.rb
CHANGED
data/lib/city_watch.rb
CHANGED
@@ -63,7 +63,9 @@ module CityWatch
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
|
66
|
+
def self.header
|
67
|
+
'<html><head><link rel="stylesheet" href="/stylesheets/city_watch.css"><link rel="stylesheet" href="/stylesheets/default.css"><script src="/javascripts/city_watch.js"></script><script src="/javascripts/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body>'
|
68
|
+
end
|
67
69
|
|
68
70
|
end
|
69
71
|
|
data/lib/version.rb
CHANGED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
var hljs=new function(){function l(o){return o.replace(/&/gm,"&").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<p.length;o++){if(e[p[o]]||p[o]=="no-highlight"){return p[o]}}}function c(q){var o=[];(function p(r,s){for(var t=r.firstChild;t;t=t.nextSibling){if(t.nodeType==3){s+=t.nodeValue.length}else{if(t.nodeName=="BR"){s+=1}else{if(t.nodeType==1){o.push({event:"start",offset:s,node:t});s=p(t,s);o.push({event:"stop",offset:s,node:t})}}}}return s})(q,0);return o}function j(x,v,w){var p=0;var y="";var r=[];function t(){if(x.length&&v.length){if(x[0].offset!=v[0].offset){return(x[0].offset<v[0].offset)?x:v}else{return v[0].event=="start"?x:v}}else{return x.length?x:v}}function s(A){function z(B){return" "+B.nodeName+'="'+l(B.value)+'"'}return"<"+A.nodeName+Array.prototype.map.call(A.attributes,z).join("")+">"}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+=("</"+o.nodeName.toLowerCase()+">")}while(o!=u.node);r.splice(q,1);while(q<r.length){y+=s(r[q]);q++}}}}return y+l(w.substr(p))}function f(q){function o(s,r){return RegExp(s,"m"+(q.cI?"i":"")+(r?"g":""))}function p(y,w){if(y.compiled){return}y.compiled=true;var s=[];if(y.k){var r={};function z(A,t){t.split(" ").forEach(function(B){var C=B.split("|");r[C[0]]=[A,C[1]?Number(C[1]):1];s.push(C[0])})}y.lR=o(y.l||hljs.IR,true);if(typeof y.k=="string"){z("keyword",y.k)}else{for(var x in y.k){if(!y.k.hasOwnProperty(x)){continue}z(x,y.k[x])}}y.k=r}if(w){if(y.bWK){y.b="\\b("+s.join("|")+")\\s"}y.bR=o(y.b?y.b:"\\B|\\b");if(!y.e&&!y.eW){y.e="\\B|\\b"}if(y.e){y.eR=o(y.e)}y.tE=y.e||"";if(y.eW&&w.tE){y.tE+=(y.e?"|":"")+w.tE}}if(y.i){y.iR=o(y.i)}if(y.r===undefined){y.r=1}if(!y.c){y.c=[]}for(var v=0;v<y.c.length;v++){if(y.c[v]=="self"){y.c[v]=y}p(y.c[v],y)}if(y.starts){p(y.starts,w)}var u=[];for(var v=0;v<y.c.length;v++){u.push(y.c[v].b)}if(y.tE){u.push(y.tE)}if(y.i){u.push(y.i)}y.t=u.length?o(u.join("|"),true):{exec:function(t){return null}}}p(q)}function d(D,E){function o(r,M){for(var L=0;L<M.c.length;L++){var K=M.c[L].bR.exec(r);if(K&&K.index==0){return M.c[L]}}}function s(K,r){if(K.e&&K.eR.test(r)){return K}if(K.eW){return s(K.parent,r)}}function t(r,K){return K.i&&K.iR.test(r)}function y(L,r){var K=F.cI?r[0].toLowerCase():r[0];return L.k.hasOwnProperty(K)&&L.k[K]}function G(){var K=l(w);if(!A.k){return K}var r="";var N=0;A.lR.lastIndex=0;var L=A.lR.exec(K);while(L){r+=K.substr(N,L.index-N);var M=y(A,L);if(M){v+=M[1];r+='<span class="'+M[0]+'">'+L[0]+"</span>"}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'<span class="'+r.language+'">'+r.value+"</span>"}function J(){return A.sL!==undefined?z():G()}function I(L,r){var K=L.cN?'<span class="'+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+="</span>"}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,"<br>")}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.ruby=function(e){var a="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?";var j="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?";var g={keyword:"and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include"};var c={cN:"yardoctag",b:"@[A-Za-z]+"};var k=[{cN:"comment",b:"#",e:"$",c:[c]},{cN:"comment",b:"^\\=begin",e:"^\\=end",c:[c],r:10},{cN:"comment",b:"^__END__",e:"\\n$"}];var d={cN:"subst",b:"#\\{",e:"}",l:a,k:g};var i=[e.BE,d];var b=[{cN:"string",b:"'",e:"'",c:i,r:0},{cN:"string",b:'"',e:'"',c:i,r:0},{cN:"string",b:"%[qw]?\\(",e:"\\)",c:i},{cN:"string",b:"%[qw]?\\[",e:"\\]",c:i},{cN:"string",b:"%[qw]?{",e:"}",c:i},{cN:"string",b:"%[qw]?<",e:">",c:i,r:10},{cN:"string",b:"%[qw]?/",e:"/",c:i,r:10},{cN:"string",b:"%[qw]?%",e:"%",c:i,r:10},{cN:"string",b:"%[qw]?-",e:"-",c:i,r:10},{cN:"string",b:"%[qw]?\\|",e:"\\|",c:i,r:10}];var h={cN:"function",bWK:true,e:" |$|;",k:"def",c:[{cN:"title",b:j,l:a,k:g},{cN:"params",b:"\\(",e:"\\)",l:a,k:g}].concat(k)};var f=k.concat(b.concat([{cN:"class",bWK:true,e:"$|;",k:"class module",c:[{cN:"title",b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?",r:0},{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(k)},h,{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:":",c:b.concat([{b:j}]),r:0},{cN:"symbol",b:a+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"number",b:"\\?\\w"},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:k.concat([{cN:"regexp",b:"/",e:"/[a-z]*",i:"\\n",c:[e.BE,d]}]),r:0}]));d.c=f;h.c[1].c=f;return{l:a,k:g,c:f}}(hljs);hljs.LANGUAGES.json=function(a){var e={literal:"true false null"};var d=[a.QSM,a.CNM];var c={cN:"value",e:",",eW:true,eE:true,c:d,k:e};var b={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:true,eE:true,c:[a.BE],i:"\\n",starts:c}],i:"\\S"};var f={b:"\\[",e:"\\]",c:[a.inherit(c,{cN:null})],i:"\\S"};d.splice(d.length,0,b,f);return{c:d,k:e,i:"\\S"}}(hljs);
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/*
|
2
|
+
Date: 17.V.2011
|
3
|
+
Author: pumbur <pumbur@pumbur.net>
|
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
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
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
|
+
}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Brown Paper style from goldblog.com.ua (c) Zaripov Yura <yur4ik7@ukr.net>
|
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
|
+
}
|
Binary file
|
@@ -0,0 +1,30 @@
|
|
1
|
+
body{
|
2
|
+
padding:2em 5em;
|
3
|
+
font-family:'Arial';
|
4
|
+
font-size:13px;
|
5
|
+
}
|
6
|
+
h1,h2,h3,h4{
|
7
|
+
font-weight:bold;
|
8
|
+
}
|
9
|
+
h1{
|
10
|
+
font-size:135%;
|
11
|
+
}
|
12
|
+
h4{
|
13
|
+
font-size:105%;
|
14
|
+
}
|
15
|
+
a{
|
16
|
+
color:rgb(50,30,100);
|
17
|
+
text-decoration:none;
|
18
|
+
border-bottom:1px dotted #666;
|
19
|
+
}
|
20
|
+
a:hover{
|
21
|
+
border-style-bottom:solid;
|
22
|
+
}
|
23
|
+
ul,ul li{
|
24
|
+
margin:0;
|
25
|
+
padding:0;
|
26
|
+
padding-left:1em;
|
27
|
+
}
|
28
|
+
ul li{
|
29
|
+
list-style-type:none;
|
30
|
+
}
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
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
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Original style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
|
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
|
+
}
|