Skip to content

Instantly share code, notes, and snippets.

@mamrehn
mamrehn / [profile] map and iterators.ipynb
Created January 12, 2017 15:23
Test for StackOverflow question about python's list comprehension vs.map. http://stackoverflow.com/questions/1247486/python-list-comprehension-vs-map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>The curse of dimensionality</title>
</head>
<body>
<h3>The curse of dimensionality</h3>
<p>
@mamrehn
mamrehn / README.md
Last active October 9, 2015 12:05
Short introduction to AngularJS 1.x

Short introduction to AngularJS 1.x

Get AngularJS at https://angularjs.org/.

See a demo of this code @plunker.

Model

Services hold the business logic for an app.

@mamrehn
mamrehn / test.stl
Last active September 29, 2015 11:00
STL file format test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mamrehn
mamrehn / random_data_thresholded.stl
Created September 27, 2015 13:07
STL file format test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mamrehn
mamrehn / test.stl
Created September 27, 2015 13:02
An STL file format test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mamrehn
mamrehn / README.md
Last active August 29, 2015 14:21
Binary Websocket Test

Quick way to test binary websocket API behaviour.

Example outcome:

# Up
object [object ArrayBuffer], Key data: 38, String data: ☁
string , Key data: 38, String data: ☁

# Down
@mamrehn
mamrehn / README.md
Last active August 29, 2015 14:18
HTML5 WebSocket profiling using ws[s]://echo.websocket.org

WebSocket Test

ws://echo.websocket.org

iterations = 50
dataSize   = 512
mean [ms]  = 105.20454545454545
deviation  = 4.966156120337965
variance = 24.662706611570233
@mamrehn
mamrehn / python-gpu.md
Last active August 29, 2015 14:16
Python packages
@mamrehn
mamrehn / angular_on_canvas.html
Created November 11, 2014 14:05
Simple example of canvas drawing in Coffeescript, AngularJS using HTML5 Canvas. Interactive: http://plnkr.co/JZrYLo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>AngularJS Canvas Pixel Drawing</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />