A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
module Jekyll | |
class AudioTag < Liquid::Tag | |
def initialize(tag_name, files, tokens) | |
super | |
@files = files | |
end | |
def render(context) | |
HTML << '<audio controls="controls">' | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Capture Photo</title> | |
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1"/> | |
<script type="text/javascript" charset="utf-8" src="js/phonegap.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
var pictureSource; // picture source | |
var destinationType; // sets the format of returned value |
# Title: MP3 tag for Jekyll | |
# Authors: Devin Weaver, Daniel Roos (youtube changes) | |
# Description: Allows mp3 tag to include mp3 files embedded into the post. | |
# It uses the player 'audio.js' from http://kolber.github.com/audiojs/ | |
# | |
# Install the plugin according to the manuel of the author by adding the necessary lines to the head-template | |
# and adding the files into the right directories. | |
# | |
# Please read my [blog post about it][2]. | |
# |
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)import processing.pdf.*; | |
color[] rgb = { | |
#FF0000, #00FF00, #0000FF | |
}; | |
//SPACING BETWEEN LINES | |
float spMin = 2; | |
float spMax = 4; | |
float strokeWidth = 0.5; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
The document provides description on calibration of three Kinect for Microsoft sensors connected to one computer with several usb controllers. Three cameras setup is shown below:
![Figure 1] (http://i.imgur.com/sdOWbVl.jpg)
Intrinsic, extrinsic, and Kinect2Kinect calibration is performed to know the position of each sensor in the space. Our setup is ROS Indigo with Ubuntu 14.04. freenect_launch and camera_pose ROS packages are used. Camera_pose package provides the pipeline to calibrate the relative 6D poses between multiple camera's. freenect_launch package contains launch files for using OpenNI-compliant devices in ROS. It creates a nodelet graph to transform raw data from the device driver into point clouds, disparity images, and other products suitable for processing and visualization. It is installed with catkin as follows:
# Prep