This file contains hidden or 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
| lines that do not begin with ">" are not interpreted | |
| by the computer. | |
| The keyword "be" adds values to the global object | |
| >be me | |
| >be large, forever alone | |
| >be at home | |
| output: { me, large, forever alone, at home } |
This file contains hidden or 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
| #!/bin/bash | |
| lsof -i :${1} | awk 'NR!=1 {print $2}' | xargs kill |
This file contains hidden or 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
| /* | |
| <nav> | |
| <ul id="top-level"> | |
| <ul id="dropdown"> | |
| </ul> | |
| </ul> | |
| <ul id="top-level-2"> | |
| </ul> |
This file contains hidden or 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. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |