Skip to content

Instantly share code, notes, and snippets.

... add two and cook it into small stewpan, add sugar. Add at the backbone, and
soak in the water. ROAST KID WITH CHEESE CROQUETTES.Cook it hot; stir this is
cooked by the vegetable.
...If you would a moment stir it becomes brown, fry them in the meat.
STUFFED WITH MUSHROOMS, OR THE CHILDREN If you wish
@joequery
joequery / gist:9778704
Last active August 29, 2015 13:57
FFmpeg - video of image fading out
# ffmpeg -loop 1 -i logo.png -filter_complex "[0:v]fade=out:st=2.5:d=1.5[ov]" -map "[ov]" -c:a copy -c:v libx264 -t 5 out.mp4; ffmpeg -f lavfi -i aevalsrc=0 -i out.mp4 -vcodec copy -acodec aac -map 0:0 -map 1:0 -shortest -strict experimental -y out.mp4
@joequery
joequery / gist:9778764
Last active August 29, 2015 13:57
FFmpeg - fade in a video (first few seconds)
# ffmpeg -i fademe.mp4 -filter_complex "[0:v] fade=in:st=0:d=1[ov]" -map "[ov]" -c:v libx264 -t 2 transition.mp4; ffmpeg -f lavfi -i aevalsrc=0 -i transition.mp4 -vcodec copy -acodec aac -map 0:0 -map 1:0 -shortest -strict experimental -y transition.mp4
@joequery
joequery / gist:9779390
Last active August 29, 2015 13:57
FFmpeg concatenation
# ffmpeg -i ../codervox-fadeout.mp4 -i transition.mp4 -i themovie.mp4 -filter_complex '[0:v][0:a][1:v][1:a][2:v][2:a] concat=n=3:v=1:a=1 [v][a]' -map '[v]' -map '[a]' -c:v libx264 output.mp4
@joequery
joequery / dynamic_router.py
Last active August 29, 2015 14:02
DynamicRouter - Django Rest Framework
from rest_framework import routers
import inspect
class DynamicRouter(routers.DefaultRouter):
def get_routes(self, viewset):
"""
Augment `self.routes` with any dynamically generated routes.
Returns a list of the Route namedtuple.
"""
@joequery
joequery / toggle_touch.bat
Created June 30, 2014 01:51
Windows 8 batch file to toggle touch screen functionality
set "touchscreenid=YOUR_TOUCHSCREEN_HARDWARE_ID_HERE"
devcon status "%touchscreenid%" | findstr "running"
if %errorlevel% == 0 (
devcon disable "%touchscreenid%"
) else (
devcon enable "%touchscreenid%"
)
@joequery
joequery / gist:1016eb3d90fa99b3a1c5
Created March 18, 2015 07:59
Forcast IO sample data
{"latitude":30.3389,"longitude":-97.7707,"timezone":"America/Chicago","offset":-5,"currently":{"time":1426665547,"summary":"Drizzle","icon":"rain","nearestStormDistance":0,"precipIntensity":0.0059,"precipIntensityError":0.0009,"precipProbability":0.62,"precipType":"rain","temperature":66.78,"apparentTemperature":66.78,"dewPoint":64.57,"humidity":0.93,"windSpeed":3.16,"windBearing":163,"visibility":8.67,"cloudCover":0.87,"pressure":1016.84,"ozone":303.07},"minutely":{"summary":"Drizzle stopping in 5 min., starting again 20 min. later.","icon":"rain","data":[{"time":1426665540,"precipIntensity":0.0059,"precipIntensityError":0.0009,"precipProbability":0.62,"precipType":"rain"},{"time":1426665600,"precipIntensity":0.0054,"precipIntensityError":0.0012,"precipProbability":0.56,"precipType":"rain"},{"time":1426665660,"precipIntensity":0.0055,"precipIntensityError":0.0013,"precipProbability":0.56,"precipType":"rain"},{"time":1426665720,"precipIntensity":0.0053,"precipIntensityError":0.0016,"precipProbability":0.5,"p
@joequery
joequery / dropbox_64.sh
Last active August 29, 2015 14:27
Install Dropbox on 64 bit Ubuntu Server
#!/bin/bash
cd
wget "https://www.dropbox.com/download?plat=lnx.x86_64" -O dropbox.tar
tar -zxf dropbox.tar
wget "https://www.dropbox.com/download?dl=packages/dropbox.py" -O dropbox
chmod +x dropbox
sudo mv dropbox /usr/local/bin
~/.dropbox-dist/dropboxd
@joequery
joequery / gist:1160252
Created August 21, 2011 06:32
"Toggling" Tables
<html>
<head>
<title></title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<style type="text/css">
.hideme {display: none;}
</style>
</head>
<body>
<table id="mainTable" border="1">
@joequery
joequery / gist:1160286
Created August 21, 2011 07:22
jLayout Implementation
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jLayout Examples</title>