Skip to content

Instantly share code, notes, and snippets.

View mmansion's full-sized avatar
🐢
turtle power

Mikhail Mansion mmansion

🐢
turtle power
View GitHub Profile
import processing.video.*;
int w = 640;
int h = 480;
Capture cam;
//set cam name based on printed list of avail cams
//String camName = "FaceTime HD Camera (Built-in)";
String camName = "Logitech Camera";
@mmansion
mmansion / gist:e95d146bb8c28dcb308e
Created January 23, 2016 15:44 — forked from skull-squadron/gist:952660
Restart ssh-agent
killall ssh-agent; eval `ssh-agent`
@mmansion
mmansion / index.html
Created March 15, 2015 14:05
JS Bin Log to File with NodeJS // source http://jsbin.com/dexako
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Log to File with NodeJS">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@mmansion
mmansion / index.html
Created March 14, 2015 22:42
JS Bin [Object.Create() with Private Vars] // source http://jsbin.com/janoteyeho
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Object.Create() with Private Vars]">
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
function getAlphaRange(range) {
@mmansion
mmansion / README.md
Last active August 29, 2015 14:07
Regular Expression with Subexpression Either-or case// source http://jsbin.com/vapizi/1
@mmansion
mmansion / README.md
Created September 24, 2014 15:43
Iterate array multiple times within larger loop

Iterate array multiple times within a larger loop

@mmansion
mmansion / README.md
Last active August 29, 2015 14:06
Unit and group drawing distribution// source http://jsbin.com/kayut/30

Units within groups - row & column drawing distribution

@mmansion
mmansion / README.md
Last active August 29, 2015 14:06
Grid col/width distribution// source http://jsbin.com/zopudu/27

Grid column and row distribution schema