:tabnew
- new blank tab:tabedit [file]
- open file in tab
gt
(:tabn
) - next tab
key:"string value" | |
int_key:22 |
Most GStreamer examples found online are either for Linux or for gstreamer 0.10.
This particular release note seems to have covered important changes, such as:
Applying -v
will print out useful information. And most importantly the negotiation results.
/* | |
* ===================================================================================== | |
* | |
* Filename: camera.c | |
* | |
* Description: | |
* | |
* Version: 1.0 | |
* Created: 2013年08月23日 15时54分17秒 | |
* Revision: none |
/* | |
* V4L2 video capture example | |
* | |
* This program can be used and distributed without restrictions. | |
* | |
* This program is provided with the V4L2 API | |
* see http://linuxtv.org/docs.php for more information | |
*/ | |
#include <stdio.h> |
#!/bin/sh | |
# udhcpc config script | |
# $interface is the name of the device udhcpc is using | |
# $router is the (space_separated) list of gateways | |
# $broadcast is the broadcast address | |
# $ip is the ip address that we get from the dhcp server | |
# $dns is the list of dns servers we get from the dhcp server | |
# $domain is the domain of the network |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <stdio.h> | |
//define pixelformat of windows bitmap, notice the unusual ordering of colors | |
typedef struct { | |
unsigned char B; | |
unsigned char G; | |
unsigned char R; |
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
<?php | |
$filename = dirname('.') . $_SERVER['PHP_SELF']; | |
if (isset($_GET['download-source'])) { | |
header("Content-type: application/force-download"); | |
$file = fopen(__FILE__, 'r'); | |
$content = fread($file, filesize(__FILE__)); | |
print $content; | |
die(); | |
} |