Skip to content

Instantly share code, notes, and snippets.

🔰
✌( ͡ᵔ ͜ʖ ͡ᵔ )✌

Max Ogden maxogden

🔰
✌( ͡ᵔ ͜ʖ ͡ᵔ )✌
Block or report user

Report or block maxogden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@maxogden
maxogden / index.js
Created Mar 17, 2016 — forked from shama/index.js
requirebin sketch
View index.js
var yo = require('yo-yo')
var dance = [
`
O
/\_
( |
|\ o
/ | ejm`,
`
@maxogden
maxogden / log
Last active Aug 29, 2015 — forked from janl/log
View log
> 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)
View readme.md

less commands

  • 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
@maxogden
maxogden / index.js
Created May 5, 2014 — forked from substack/index.js
requirebin sketch
View index.js
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 () {
@maxogden
maxogden / index.js
Last active Oct 17, 2016 — forked from sethvincent/index.js
requirebin sketch
View index.js
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,
@maxogden
maxogden / index.js
Created Mar 14, 2014 — forked from hughsk/index.js
requirebin sketch
View index.js
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
@maxogden
maxogden / index.js
Created Mar 14, 2014 — forked from anvaka/index.js
requirebin sketch
View index.js
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>");
@maxogden
maxogden / index.js
Created Mar 8, 2014 — forked from NHQ/index.js
requirebin sketch
View index.js
// 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')
View initial.sh
#!/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
View README.md
  wow
         such voronoi
                 html5
     many cells
                       very convexity
   so tessellation
You can’t perform that action at this time.