This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Not fit for human consumption</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="./path/to/my/script.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { injectGlobal } from 'react-emotion'; | |
injectGlobal(` | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- sqlite | |
.tables | |
-- mysql | |
-- psql | |
\c students -- connect to student db | |
\d -- shows all tables | |
\d foo -- shows info about foo table | |
\i tables.sql -- import and run entire file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# egrep -i '^q[u]' testfile | |
# egrep -i '^q[^u]' testfile | |
quarter | |
qatre | |
A quarter mile. | |
# egrep -i '3[-./]19[-./]12' testfile | |
3/19/12 | |
3-19-12 | |
3.19.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Person(fname, lname) { | |
this.fname = fname; | |
this.lname = lname; | |
} | |
Person.prototype.fullName = function() { | |
return this.fname + ' ' + this.lname; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GreetingManager = (function () { | |
var instance; | |
function init() { | |
var greeting = 'yo'; | |
return { | |
greet: function() { |