Skip to content

Instantly share code, notes, and snippets.

View max-mapper's full-sized avatar
🔰
✌( ͡ᵔ ͜ʖ ͡ᵔ )✌

Max max-mapper

🔰
✌( ͡ᵔ ͜ʖ ͡ᵔ )✌
View GitHub Profile
@max-mapper
max-mapper / index.js
Created March 17, 2016 18:46 — forked from shama/index.js
requirebin sketch
var yo = require('yo-yo')
var dance = [
`
O
/\_
( |
|\ o
/ | ejm`,
`
@max-mapper
max-mapper / log
Last active August 29, 2015 14:12 — forked from janl/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)
@max-mapper
max-mapper / readme.md
Last active August 29, 2015 14:07 — forked from jlord/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
@max-mapper
max-mapper / index.js
Created May 5, 2014 14:51
requirebin sketch
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 () {
@max-mapper
max-mapper / index.js
Last active September 24, 2023 21:36 — forked from sethvincent/index.js
requirebin sketch
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,
@max-mapper
max-mapper / index.js
Created March 14, 2014 21:48 — forked from hughsk/index.js
requirebin sketch
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
@max-mapper
max-mapper / index.js
Created March 14, 2014 21:02 — forked from anvaka/index.js
requirebin sketch
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>");
@max-mapper
max-mapper / index.js
Created March 8, 2014 05:09 — forked from NHQ/index.js
requirebin sketch
// 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')
#!/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
@max-mapper
max-mapper / README.md
Created November 3, 2013 20:51 — forked from mbostock/.block
  wow
         such voronoi
                 html5
     many cells
                       very convexity
   so tessellation