Skip to content

Instantly share code, notes, and snippets.

View skopp's full-sized avatar

Rashaad Essop skopp

View GitHub Profile
var url = require('url')
var websocket = require('websocket-stream')
var engine = require('voxel-engine')
var duplexEmitter = require('duplex-emitter')
console.log('starting', 1)
var socket = websocket('ws://' + url.parse(window.location.href).host)
var emitter = duplexEmitter(socket)
@101010101
101010101 / index.html
Created April 1, 2013 14:52
A CodePen by jdg_mthl. Google John omega - You'll smell when it's released.
<div class="cont">
<div class="frame1"></div>
<div class="frame2"></div>
<div class="line1"></div>
<div class="line2"></div>
<div class="line3"></div>
<div class="line4"></div>
<div class="line5"></div>
@101010101
101010101 / COPYRIGHTS_FAQ_EULA
Created April 1, 2013 14:43
Google John [omega] - a mini-prjoect thing meant as both a comeback to AND a possible item that would be Google Nose (http://goo.gl/AQn58) compatible - version: 0.0.1 # date 1 april 2013
//// Google John is a toilet that reads data from your waste matter and returns relevant ads in Web History!
/// Works with Google Nose Beta!
// Google Nose Beta will intensify the aroma of the house you built by a whoppin 4%!
/////
// *F*A*Q*
// "BULL!" you say?
// We sh## you not
//"ETA?"
//Does the pope cr@/o in the woods?
...___________________________________________________________________________
[[ _ _ _ _ _ |
[[ | | (_) | | | | | |
[[ ___| | _____ _ __ _ __ ___ _ __ __ _ _| |_| |__ _ _| |__ |
[[ / __| |/ / _ \| '_ \| '_ \ / _ \| '_ \ / _` | | __| '_ \| | | | '_ \ |
[[ \__ \ < (_) | |_) | |_) | | (_) | | | | | (_| | | |_| | | | |_| | |_) | |
[[ |___/_|\_\___/| .__/| .__/ \___/|_| |_| \__, |_|\__|_| |_|\__,_|_.__/ |
[[ | | | | __/ | |
[[ |_| |_| |___/ |
[[..........................................................................._/
@max-mapper
max-mapper / readme.md
Created March 31, 2013 05:23
what are mipmaps?

thanks to @mikolalysenko for explaining

20:14 < mikolalysenko> basically mip maps were a hack some guy came up with in the 80s to do filtering with variable sized kernels
20:14 < mikolalysenko> it turns out that if you just draw a texture at full resolution some distance away, then you will get these shimmering aliasing 
                       artefacts
20:14 < mikolalysenko> so the solution to this is to just smooth out the texture, so it isn't so noisy
20:15 < mikolalysenko> however the amount you smooth has to be proportional to the distance
20:15 < mikolalysenko> so what a mip pyramid basically is just a collection of filtered images at different down sampled resolutions
20:15 < mikolalysenko> and you can interpolate between them to approximate a blur by a kernel of variable radius
@czottmann
czottmann / gist:5231707
Last active December 15, 2015 08:29
Stack traces for https://app.gistboxapp.com/library/my-gists [Google Chrome 26.0.1410.40 beta]
Uncaught TypeError: Cannot read property 'login' of null frontend.js:15
_.Class.formatGist frontend.js:15
(anonymous function) frontend.js:15
x.each.x.forEach frontend.js:6
h.(anonymous function) frontend.js:7
_.Class.formattedGists frontend.js:15
_.Class.starredGists frontend.js:15
Backbone.View.extend.render frontend.js:16
Backbone.View.extend.initialize frontend.js:16
o.View frontend.js:7
@max-mapper
max-mapper / readme.md
Created March 24, 2013 00:54
sudoroom engraver CNC instructions

sudoroom CNC machine instructions

it is composed of a few components:

  • an internet connected desktop windows PC that runs special software: mach3 (icon on desktop)
  • a hacked engraver that does the milling
  • a stepper driver that sits between the PC and the engraver and communicates via parallel port

mach3 only accepts geecode. you can either use your own geecode or use the program on the PC called CamBam to generate the geecode.

@skopp
skopp / index.html
Last active December 15, 2015 08:19
The Matrix Console in JS
<canvas id="q"></canvas>
@skopp
skopp / embeddableclip.html
Last active December 7, 2020 03:18
A simple way to embed gist into Blogger's dynamic view.
<!-- to do: make this parse -->
<div class="clipboardEmbedClip" data-clip-id="LQL1lDhsxPcZfc2h4vuk3E1MpI-5Xc_CPlqe" data-width="782" data-height="763" data-scale="disabled">
</div>
<script type="text/javascript">(function() {if (!window.CLIPBOARD || !window.CLIPBOARD.widgets) {var elem = document.createElement("script");elem.type = "text/javascript";elem.async = true;elem.src = "//clipboard.com/js/widgets.js";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(elem, s);}})();
</script>
@bkabrda
bkabrda / gist:5202929
Created March 20, 2013 07:29
PyGitHub python3 failures
running test
running build_py
running egg_info
writing /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/PKG-INFO
writing top-level names to /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/top_level.txt
writing dependency_links to /builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/dependency_links.txt
reading manifest file '/builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/SOURCES.txt'
writing manifest file '/builddir/build/BUILD/python3-python-github-1.11.1-3.fc20/build/lib/PyGithub.egg-info/SOURCES.txt'
running build_ext
testAttributes (github.tests.AuthenticatedUser.AuthenticatedUser) ... ok