Skip to content

Commit a0b9a79

Browse files
committed
the basics
1 parent 67dfac9 commit a0b9a79

27 files changed

+3180
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*~
2+
.jshintrc
3+
.imdoneignore
4+
.imdone
5+
node_modules/

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# help.wtf: what is this I don't even
2+
3+
help.wtf is a cheatsheet service.
4+
5+
It operates on the basis of JSON files with markdown and syntax highlighting support.
6+
7+
help.wtf is pretty minimalist:
8+
- koa, which doesn't really do anything
9+
- no database, it's all loaded into memory
10+
- no auth (yet, we might add favstars or something)
11+
- no client side JS libraries, except for the composer
12+
(which uses bootstrap + json-editor)
13+
14+
Want to contribute your own cheatsheets? Visit http://help.wtf/_compose to use
15+
the composer, or just submit a pull request.

_static/code.css

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
/*
2+
3+
Railscasts-like style (c) Visoft, Inc. (Damien White)
4+
5+
*/
6+
7+
@media screen {
8+
9+
.hljs {
10+
display: block;
11+
overflow-x: auto;
12+
padding: 0.5em;
13+
background: #232323;
14+
color: #e6e1dc;
15+
-webkit-text-size-adjust: none;
16+
}
17+
18+
.hljs-comment,
19+
.hljs-shebang {
20+
color: #bc9458;
21+
font-style: italic;
22+
}
23+
24+
.hljs-keyword,
25+
.ruby .hljs-function .hljs-keyword,
26+
.hljs-request,
27+
.hljs-status,
28+
.nginx .hljs-title,
29+
.method,
30+
.hljs-list .hljs-title {
31+
color: #c26230;
32+
}
33+
34+
.hljs-string,
35+
.hljs-number,
36+
.hljs-regexp,
37+
.hljs-tag .hljs-value,
38+
.hljs-cdata,
39+
.hljs-filter .hljs-argument,
40+
.hljs-attr_selector,
41+
.apache .hljs-cbracket,
42+
.hljs-date,
43+
.tex .hljs-command,
44+
.asciidoc .hljs-link_label,
45+
.markdown .hljs-link_label {
46+
color: #a5c261;
47+
}
48+
49+
.hljs-subst {
50+
color: #519f50;
51+
}
52+
53+
.hljs-tag,
54+
.hljs-tag .hljs-keyword,
55+
.hljs-tag .hljs-title,
56+
.hljs-doctype,
57+
.hljs-sub .hljs-identifier,
58+
.hljs-pi,
59+
.input_number {
60+
color: #e8bf6a;
61+
}
62+
63+
.hljs-identifier {
64+
color: #d0d0ff;
65+
}
66+
67+
.hljs-class .hljs-title,
68+
.hljs-type,
69+
.smalltalk .hljs-class,
70+
.hljs-doctag {
71+
text-decoration: none;
72+
}
73+
74+
.hljs-constant,
75+
.hljs-name {
76+
color: #da4939;
77+
}
78+
79+
80+
.hljs-symbol,
81+
.hljs-built_in,
82+
.ruby .hljs-symbol .hljs-string,
83+
.ruby .hljs-symbol .hljs-identifier,
84+
.asciidoc .hljs-link_url,
85+
.markdown .hljs-link_url,
86+
.hljs-attribute {
87+
color: #6d9cbe;
88+
}
89+
90+
.asciidoc .hljs-link_url,
91+
.markdown .hljs-link_url {
92+
text-decoration: underline;
93+
}
94+
95+
96+
97+
.hljs-params,
98+
.hljs-variable,
99+
.clojure .hljs-attribute {
100+
color: #d0d0ff;
101+
}
102+
103+
.css .hljs-tag,
104+
.hljs-rule .hljs-property,
105+
.hljs-pseudo,
106+
.tex .hljs-special {
107+
color: #cda869;
108+
}
109+
110+
.css .hljs-class {
111+
color: #9b703f;
112+
}
113+
114+
.hljs-rule .hljs-keyword {
115+
color: #c5af75;
116+
}
117+
118+
.hljs-rule .hljs-value {
119+
color: #cf6a4c;
120+
}
121+
122+
.css .hljs-id {
123+
color: #8b98ab;
124+
}
125+
126+
.hljs-annotation,
127+
.apache .hljs-sqbracket,
128+
.nginx .hljs-built_in {
129+
color: #9b859d;
130+
}
131+
132+
.hljs-preprocessor,
133+
.hljs-preprocessor *,
134+
.hljs-pragma {
135+
color: #8996a8 !important;
136+
}
137+
138+
.hljs-hexcolor,
139+
.css .hljs-value .hljs-number {
140+
color: #a5c261;
141+
}
142+
143+
.hljs-title,
144+
.hljs-decorator,
145+
.css .hljs-function {
146+
color: #ffc66d;
147+
}
148+
149+
.diff .hljs-header,
150+
.hljs-chunk {
151+
background-color: #2f33ab;
152+
color: #e6e1dc;
153+
display: inline-block;
154+
width: 100%;
155+
}
156+
157+
.diff .hljs-change {
158+
background-color: #4a410d;
159+
color: #f8f8f8;
160+
display: inline-block;
161+
width: 100%;
162+
}
163+
164+
.hljs-addition {
165+
background-color: #144212;
166+
color: #e6e1dc;
167+
display: inline-block;
168+
width: 100%;
169+
}
170+
171+
.hljs-deletion {
172+
background-color: #600;
173+
color: #e6e1dc;
174+
display: inline-block;
175+
width: 100%;
176+
}
177+
178+
.coffeescript .javascript,
179+
.javascript .xml,
180+
.tex .hljs-formula,
181+
.xml .javascript,
182+
.xml .vbscript,
183+
.xml .css,
184+
.xml .hljs-cdata {
185+
opacity: 0.7;
186+
}
187+
}

_static/composer.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#licenseWarning {
2+
display: none;
3+
}
4+
#successMessage {
5+
display: none;
6+
}
7+
#failureMessage {
8+
display: none;
9+
}
10+
#previewBanner {
11+
display: none;
12+
font-size: 1.2em;
13+
color: red;
14+
}
15+
16+
.error {
17+
color: red;
18+
}
19+
20+
.message {
21+
font-size: 1.2em;
22+
margin-bottom: 1em;
23+
font-weight: bold;
24+
}
25+
26+
textarea.form-control {
27+
height: 10em;
28+
font-family:monospace;
29+
}

0 commit comments

Comments
 (0)