apt-add-repository ppa:jon-severinsson/ffmpeg
apt-get update
apt-get install ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b build | |
bbb build nuke && build -cleanonly && build | |
bq build nuke && quickbuild $* | |
e start buildd.err | |
mc sdv -u fareast\weye ... | |
s+ sd add $* | |
s- sd delete $* | |
s! sd revert $* | |
sa sdp apply $* | |
sc sd change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import logging | |
# Colorful console | |
RESET_SEQ = "\033[0m" | |
COLOR_SEQ = "\033[1;%dm" | |
BOLD_SEQ = "\033[1m" |
Based on github-flavored-markdown-test project!
Emoji is justice: 😋 😂 💬 ✉️ 🍤
followed by some text
followed by some text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import random | |
x = int(raw_input("how many work items do you have? ")) | |
hours = [4,6,6,8,8,8,8,10,10,12,14] | |
for i in range(x): | |
print random.choice(hours) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
from datetime import datetime | |
from datetime import timedelta | |
now = datetime.now() | |
delta_day = timedelta(days = -1) | |
for i in range(21): | |
now += delta_day |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TARGETFILE=allinone.c | |
if [ -e "$TARGETFILE" ]; then | |
rm -f "$TARGETFILE" | |
fi | |
if [ -n "$1" ]; then | |
printf "$1""\n" >> "$TARGETFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Json_test extends Controller { | |
public function setter() { | |
$fp = fopen("/tmp/json_test.txt","w"); | |
$content = json_encode($_POST); | |
fwrite($fp, $content, strlen($content)); | |
fclose($fp); | |
echo $content; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main (int argc, const char * argv[]) { | |
unsigned int hi; | |
unsigned int lo; | |
long double result; | |
/* Set *hi and *lo to the high and low order bits of the cycle counter. | |
Implementation requires assembly code to use the rdtsc instruction. */ | |
asm("rdtsc; movl %%edx,%0; movl %%eax,%1" /* Read cycle counter */ |
NewerOlder