Skip to content

Instantly share code, notes, and snippets.

@cfobel
cfobel / janus.plugin.streaming.cfg
Last active March 27, 2023 22:50
WebRTC Stream Logitech C920 through Janus gateway
; /opt/janus/etc/janus/janus.plugin.streaming.cfg
; [stream-name]
; type = rtp|live|ondemand|rtsp
; rtp = stream originated by an external tool (e.g., gstreamer or
; ffmpeg) and sent to the plugin via RTP
; live = local file streamed live to multiple listeners
; (multiple listeners = same streaming context)
; ondemand = local file streamed on-demand to a single listener
; (multiple listeners = different streaming contexts)
; rtsp = stream originated by an external RTSP feed (only
@cfobel
cfobel / video_mode_selector_demo.py
Created March 9, 2016 20:05
Demo usage of pygst_utils.video_view.mode.VideoModeSelector
import gtk
from pygst_utils.video_view.mode import VideoModeSelector
# Run with `ipython -i video_mode_selector_demo.py`
selector = VideoModeSelector()
selector.show_and_run()
# Press <ctrl>+c to drop back to IPython prompt.
checkbox = gtk.CheckButton()
selector.widget.add(checkbox)
@cfobel
cfobel / LICENSE
Last active March 19, 2021 14:55
color palette
Copyright (c) 2021 Christian Fobel
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@cfobel
cfobel / leonardo-1.0.5.md
Last active August 29, 2015 14:24
Arduino configs
  • runtime
    • ide
      • path : c:\arduino-1.6.5-r2
      • version : 1_6_5
  • name : Arduino Leonardo
  • vid
    • 1 : 0x2341
    • 0 : 0x2341
    • 3 : 0x2A03
    • 2 : 0x2A03
@cfobel
cfobel / Transfer benchmark.ipynb
Created June 18, 2015 15:38
Arduino RPC transfer benchmark
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfobel
cfobel / Motor control.ipynb
Created June 12, 2015 15:46
Interactive Firmata motor control notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfobel
cfobel / netlist_example.cpp
Created March 24, 2015 22:56
netlist_example
#include <thrust/device_vector.h>
#include <thrust/reduce.h>
#include <thrust/copy.h>
#include <thrust/iterator/permutation_iterator.h>
#include <stdint.h>
#include <iterator>
#include <iostream>
#include <iomanip>
#define DUMPN(d_vector,N,dtype,width) \
@cfobel
cfobel / Tag-v0.1
Created January 15, 2015 13:52
dmf-control-board
Tagger: Ryan Fobel <ryan@fobel.net>
Date: Thu Sep 15 18:38:01 2011 -0400
Version 1.0
commit cc3c0f140dda20c8b971b0a01d4d1723536384f2
Author: Ryan Fobel <ryan@fobel.net>
Date: Wed Jul 6 09:07:03 2011 -0400
Fix autoconnection of DmfControlBoard and function generator
@cfobel
cfobel / show-me-the-numbers
Created December 17, 2014 21:37
Color palette
GIMP Palette
Name: Show me the numbers
Columns: 0
# See here: http://www.amazon.ca/Show-Me-Numbers-Designing-Enlighten/dp/0970601999
# A great book! Please support the author, Stephen Few
140 140 140 light-grey
136 189 230 light-blue
251 178 88 light-orange
144 205 151 light-green
246 170 201 light-pink
@cfobel
cfobel / .vimrc.bundles.load
Created December 15, 2014 15:55
Customized vim plugin bundles
" Modeline and Notes {
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell:
"
" __ _ _____ _
" ___ _ __ / _/ |___ / __ __(_)_ __ ___
" / __| '_ \| |_| | |_ \ _____\ \ / /| | '_ ` _ \
" \__ \ |_) | _| |___) |_____|\ V / | | | | | | |
" |___/ .__/|_| |_|____/ \_/ |_|_| |_| |_|
" |_|
"