- open a file:
less file.log
- type capital
G
: go to end of file - type small
g
: go to beginning of file - type
?
: enter reverse search - type
/
: enter forward search - type
n
: skips to next search match - type
N
: skips back to last search match
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 yo = require('yo-yo') | |
var dance = [ | |
` | |
O | |
/\_ | |
( | | |
|\ o | |
/ | ejm`, | |
` |
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
> echo '{"a":1}' | ../node_query_server/bin/qs2 | |
net.js:614 | |
throw new TypeError('invalid data'); | |
^ | |
TypeError: invalid data | |
at WriteStream.Socket.write (net.js:614:11) | |
at null._onTimeout (/Users/jan/Work/qs2/node_query_server/index.js:17:20) | |
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15) |
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 shell = require('mesh-viewer')(); | |
var vport = require('gl-viewport')(shell, { viewMode: 'ortho' }); | |
require('keydown')('P').on('pressed', function () { | |
var mode = vport.viewMode === 'ortho' ? 'perspective' : 'ortho'; | |
vport.setViewMode(mode); | |
}) | |
var mesh; | |
shell.on('viewer-init', function () { |
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 inherits = require('inherits'); | |
var Game = require('crtrdg-gameloop'); | |
var Entity = require('crtrdg-entity'); | |
var Keyboard = require('crtrdg-keyboard'); | |
inherits(Player, Entity); | |
function Player(options){ | |
this.position = { | |
x: options.position.x, |
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 observer = require('continuous-observer') | |
var cave = require('cave-automata-2d') | |
var fill = require('ndarray-fill') | |
var zero = require('zeros') | |
var raf = require('raf') | |
var canvas = document.createElement('canvas') | |
var ctx = canvas.getContext('2d') | |
// Set up the controls, so that we can control |
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 graph = require('ngraph.generators').noLinks(142); | |
graph.forEachNode(assignNiceColor); | |
var clickMe = document.createElement('h1') | |
clickMe.setAttribute('style', 'font-family: Helvetica, Arial; font-weight: 200; text-align: center; margin-top: 150px;') | |
clickMe.innerHTML = 'CLICK ME' | |
document.body.appendChild(clickMe) | |
var svg = require('ngraph.vivasvg')(graph); | |
svg.nodeTemplate("<circle r='5' fill='{{node.color}}'></circle>"); |
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
// the master audio context | |
var context = webkitAudioContext || AudioContext | |
var master = new context() | |
// for intro to this module, see http://requirebin.com/?gist=6093984 | |
var jsynth = require('jsynth'); | |
// for intro to this module, see http://requirebin.com/?gist=6094039 | |
var oscillators = require('oscillators') |
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
#!/bin/bash | |
# - updates ubuntu | |
# - creates a sudo-able non-root user called $user_name (for logging into the server later and doing stuff) | |
# - sets up ssh keys for that user by copying the over from /root/.ssh | |
# - disables ssh root login (that's what $user_name is for) | |
# - creates a system user "taco" for the taco process to run as | |
# - sets up basic iptables firewall | |
# | |
printf '\e[1;34m%b\e[m' "\nUpdating the system...\n" | |
apt-get -y -qq update |
wow
such voronoi
html5
many cells
very convexity
so tessellation
NewerOlder