Skip to content

Instantly share code, notes, and snippets.

View martenbiehl's full-sized avatar

Marten Biehl martenbiehl

  • Munich, Germany
View GitHub Profile
@martenbiehl
martenbiehl / index.html
Last active October 5, 2016 09:24 — forked from anonymous/index.html
Being stupid, Angular edition JS Bin// source http://jsbin.com/buperinusu
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
</head>
<body ng-app="myApp">
<div ng-controller="CtrlOne">
@martenbiehl
martenbiehl / index.html
Created October 5, 2016 09:23 — forked from anonymous/index.html
Simple redux example based on Dan Abramovs Egghead.io course JS Bin// source http://jsbin.com/yozinujofe
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@martenbiehl
martenbiehl / index.html
Last active October 5, 2016 09:23 — forked from anonymous/index.html
Simple redux example based on Dan Abramovs Egghead.io course JS Bin// source http://jsbin.com/yoxejalali
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<pre id="app"></pre>
<script id="jsbin-javascript">
@martenbiehl
martenbiehl / main.cpp
Last active September 4, 2015 15:06 — forked from schwittlick/main.cpp
openframeworks smallestexample
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
void setup() {
}
void update() {
}
var dgram = require('dgram');
var socket = dgram.createSocket('udp4');
var testMessage = "[hello world] pid: " + process.pid;
var broadcastAddress = '255.255.255.255';
var broadcastPort = 5555;
socket.setBroadcast(true);
socket.bind(broadcastPort, '0.0.0.0');
#!/bin/bash
f=$(pwd)
sips --resampleWidth 29 "${f}/${1}" --out "${f}/iPhoneSpotlight-iPhoneSettings-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 87 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]"