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
<html> | |
<head> | |
<title>human-analog</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="{block:IndexPage}{block:Description}{MetaDescription}{/block:Description}{/block:IndexPage}{block:PermalinkPage}{block:PostSummary}{PostSummary}{/block:PostSummary}{/block:PermalinkPage}" /> | |
<meta name="color:Accent" content="#4EA3D0"/> | |
<meta name="font:Body" content="'Helvetica Neue', Helvetica, Arial, sans-serif"/> | |
<meta name="if:Two column posts" content="1"/> |
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
MONGODB_URL = process.env.MONGODB_URL || 'mongodb://localhost/picalum' | |
mongoose.connect(MONGODB_URL, function(err) { | |
erlog.error(err, { | |
message: 'Upon attempting to connect to MongoDB server' | |
, success: 'Successfully connected to MongoDB server.' | |
}) | |
}) |
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
" vim's standard search mode is all wonky, make it normal like on browsers | |
set incsearch | |
" make indents into double spaces | |
filetype plugin indent on | |
set tabstop=2 | |
set shiftwidth=2 | |
" highlight syntax | |
syntax on |
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
*, *:after, *:before { | |
display: block; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; | |
font: inherit; |
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
header.hero h2:before { | |
content: " "; | |
display: block; | |
position: absolute; | |
top: 1em; | |
bottom: 1em; | |
left: 2em; | |
right: 2em; | |
background: transparent url('/web-resources/hexagon-outline.svg') no-repeat center center; | |
-webkit-background-size: contain; |
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 myfunc1 = function(callback) { | |
console.log('hello, world'); | |
callback(); | |
} | |
var myfunc2 = function() { | |
return 'hello, world'; | |
} | |
myfunc1(myfunc2); |
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 http.createServer = function() { | |
var callback = function(req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
console.log('making server'); | |
} | |
//do stuff here to spin up i/o, whatever | |
var response = 'response object stuff'; | |
var request = 'request object stuff'; | |
callback(response, request); |
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 erlog = require('erlog') | |
, express = require('express') | |
, config = require('./lib/web/config') | |
, routes = require('./lib/web/routes') | |
, jade = require('jade') | |
, app = express() | |
, server = app.listen(process.env.PORT || 3000, function(){ | |
erlog('Listening on port 3000.') | |
}) |
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
def myFunc(arg = []): | |
arg.append('foobar') | |
print str(arg) | |
for item in range(10): | |
myFunc() |
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
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev' | |
build-essential is already the newest version. | |
build-essential set to manually installed. | |
cmake is already the newest version. | |
libfreetype6-dev is already the newest version. | |
libfreetype6-dev set to manually installed. | |
libglu1-mesa-dev is already the newest version. |