Skip to content

Instantly share code, notes, and snippets.

View saschagehlich's full-sized avatar

Sascha Gehlich saschagehlich

View GitHub Profile
const RenderOutput = () => {
const { renderer, scene, camera } = useMemo(() => {
const renderer = new THREE.WebGLRenderer()
const scene = new THREE.Scene()
/* und so weiter... */
return { renderer, scene, camera }
}, [])
}
object(Zend\InputFilter\InputFilter)#310 (6) {
["factory":protected]=>
object(Zend\InputFilter\Factory)#313 (3) {
["defaultFilterChain":protected]=>
object(Zend\Filter\FilterChain)#314 (3) {
["plugins":protected]=>
NULL
["filters":protected]=>
object(Zend\Stdlib\PriorityQueue)#315 (3) {
["queueClass":protected]=>
@saschagehlich
saschagehlich / German-Zip-Codes.csv
Last active August 29, 2015 14:25 — forked from jbspeakr/German-Zip-Codes.csv
list of German zip codes (Postleitzahl), including dialing code, name of the city and federal state.
We can't make this file beautiful and searchable because it's too large.
Ort;Zusatz;Plz;Vorwahl;Bundesland
Aach;b Trier;54298;0651;Rheinland-Pfalz
Aach;, Hegau;78267;07774;Baden-Württemberg
Aachen;;52062;0241;Nordrhein-Westfalen
Aachen;;52064;0241;Nordrhein-Westfalen
Aachen;;52066;0241;Nordrhein-Westfalen
Aachen;;52068;0241;Nordrhein-Westfalen
Aachen;;52070;0241;Nordrhein-Westfalen
Aachen;;52072;0241;Nordrhein-Westfalen
Aachen;;52074;0241;Nordrhein-Westfalen
jCTio3Eg0r7eGbDgqLdg85BxUmiqVQlLi5sm1grS
@saschagehlich
saschagehlich / SassMeister-input.scss
Created October 9, 2014 13:13
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
$livingstyleguide--variables: global-variables() !default;
@each $variable, $value in $livingstyleguide--variables {
$value: null !default;
@if $value != null {
// Tile.cpp
int* Tile::getWalkable()
{
int* walkable = new int[4];
walkable[0] = 1;
walkable[0] = 1;
walkable[0] = 1;
return walkable;
// Tile.cpp
int* Tile::getWalkable()
{
int* walkable = new int[4];
// Do some stuff, add 4 values to walkable
return walkable;
}
{
"color_scheme": "Packages/User/hyrule-contrast (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".idea",
@saschagehlich
saschagehlich / arrow.styl
Created February 17, 2014 20:33
An arrow mixin for Stylus, based on @shojberg's "cssarrowplease.com"
/**
* An arrow mixin for Stylus, based on @shojberg's "cssarrowplease.com"
* @param {Position} position
* @param {size, color} arrow
* @param {size, color} border (optional)
*/
arrow(position, arrow, border = 0 white)
// Resolve arguments
$arrowSize = arrow[0]
$arrowColor = arrow[1]
sascha ~/sources/rtmpdump (master)$ rtmpdump -r "rtmpe://myvideo2fs.fplive.net/myvideo2flash" -a "myvideo2flash" -f "MAC 11,4,402,287" -W "http://is1.myvideo.de/de/player/mingR12m/cartridge/video/video.swf" -p "http://www.myvideo.de/watch/7849115/Rihanna_featuring_Drake_What_s_My_Name" -y "flv:movie11/79/7849115.flv" -o "rihanna.flv"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close