Skip to content

Instantly share code, notes, and snippets.

@danzeeeman
danzeeeman / gist:6214320
Created August 12, 2013 19:36
ffmpeg Raspberry Pi
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[rawvideo @ 0x1b28440] Estimating duration from bitrate, this may be inaccurate
Input #0, rawvideo, from '/home/pi/openFrameworks/apps/myApps/omxCameraApp/bin/data/ofxvrpipe0':
Duration: N/A, bitrate: N/A
Stream #0.0: Video: rawvideo, rgb24, 1280x720, 30 tbr, 30 tbn, 30 tbc
Incompatible pixel format 'rgb24' for codec 'mpeg4', auto-selecting format 'yuv420p'
[buffer @ 0x1b28e20] w:1280 h:720 pixfmt:rgb24
[avsink @ 0x1b289a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
[scale @ 0x1b323a0] w:1280 h:720 fmt:rgb24 -> w:1280 h:720 fmt:yuv420p flags:0x4
function themename_menu_link(&$variables) {
$element = $variables['element'];
$sub_menu = '';
$element['#attributes']['data-menu-parent'] = $element['#original_link']['menu_name'] . '-' . $element['#original_link']['depth'];
if ($element['#below']) {
$sub_menu = drupal_render($element['#below']);
}
@jvcleave
jvcleave / distccd-rpi.plist
Last active November 30, 2025 15:45
mac distcc install instructions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>distccd-rpi</string>
<key>Program</key>
<string>/Users/YOUR_USER_NAME/Scripts/launchd-distccd.sh</string>
<key>RunAtLoad</key>
<true/>
@jvcleave
jvcleave / eglinfo
Last active December 7, 2023 15:16
Raspberry Pi GL extensions
source
http://pastebin.com/raw.php?i=Vnje5sEe
gcc -o eglinfo eglinfo.c -lEGL -lGLESv2 -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -L/opt/vc/lib
EGL
Vendor: Broadcom
Version: 1.4
Client APIs: OpenGL_ES OpenVG
@jasny
jasny / bootstrap-em.less
Last active January 5, 2020 15:36
Use em or rem font-size in Bootstrap 3
/**
* Use em or rem font-size in Bootstrap 3
*/
@font-size-root: 14px;
@font-unit: 0rem; // Pick em or rem here
// Convert all variables to em
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <sys/time.h>
#include <interface/mmal/mmal.h>
#include <interface/mmal/util/mmal_util.h>
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active September 10, 2026 10:48
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@jvcleave
jvcleave / VideoSource.h
Created July 7, 2014 18:27
VideoSource
#pragma once
#include "ofMain.h"
class VideoSource
{
public:
ofVideoGrabber camera;
ofVideoPlayer videoPlayer;
@bakercp
bakercp / Install
Created July 21, 2014 20:25
openFrameworks on the UDOO Udoobuntu 1.0
To Install:
- Download 0.8.3 or use the 0.8.3 tag on master.
- Install dependencies.
- Copy config.linuxarmv7l.udoo.mk into $OF_ROOT/libs/openFrameworksCompiled/project/linuxarmv7l
- Go to example project.
To Prep:
$ export MAKEFLAGS="-j4 -s PLATFORM_VARIANT=udoo"
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active April 4, 2026 04:30
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;