Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@christianhent
christianhent / default.php
Created December 15, 2017 03:53
alternative zatracks polyline layout
<?php if ($displayData['plg_params']['show_map'] == 1 && !empty($trc['polyline']) ) : ?>
<?php $layout = new JLayoutFile('joomla.zatracks.map', $basePath = null, array('suffixes' => array('polyline'),'debug' =>(bool)$dbg));?>
<?php echo $layout->render($trc['polyline']);?>
<?php endif; ?>
@christianhent
christianhent / slideshow.txt
Created March 5, 2017 05:32
Record a slideshow video from images
#1
/usr/lib/xscreensaver/glslideshow -pan 8 -duration 8 -delay 0 -fade 4 -zoom 75 -clip -geometry 1280x720+0+0 &
#2
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1280x720 -i :0.0+0,29 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 Videos/slideshow.mkv
#3
ffmpeg -ss 00:00:02 -t 00:01:50 -i Videos/slideshow.mkv -acodec aac -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 20 -threads 0 Videos/slideshow.mp4
@christianhent
christianhent / mustache
Last active December 28, 2015 06:09
very simple
jqxhr = $.getJSON( "/cache/jevent.json", function() {}).done(function(){
jeventsData = jqxhr.responseJSON;
$.Mustache.load('/tmpl/widgets.htm')
.done(function () {
$('#jevents').mustache('events_widget', jeventsData);
});
});
@christianhent
christianhent / main.js
Last active November 3, 2015 06:20
Gerade noch so unter 100 Zeilen
$(document).ready(function () {
var obj = {};
obj.jqxhr = $.getJSON('/data/styles.json', function () {
}).done(function (data) {
obj.styles = data;
});
obj.curvature = 0.5;
obj.markers = [];
obj.bounds = new google.maps.LatLngBounds();
obj.curveMarker = null;
[
{
"id":"1",
"name":"Christian Hent",
"image":"https://www.endomondo.com/resources/gfx/picture/25778362/thumbnail.jpg",
"icon":"https://www.endomondo.com/resources/gfx/picture/25778362/thumbnail.jpg",
"summary":false,
"url": "https://www.endomondo.com/profile/15238177",
"geo":{
"latitude":"49.448",
[
{
"id":"1",
"name":"JoomlaCampDE",
"image":"https://pbs.twimg.com/profile_images/639435777584197632/62kqMcm4_400x400.png",
"icon":"https://pbs.twimg.com/profile_images/639435777584197632/62kqMcm4_bigger.png",
"summary":"Am 27. Februar 2016 findet das deutschlandweit erste JoomlaCamp, eine Unkonferenz zum beliebten OpenSource Content-Management- System Joomla! statt. Dich erwarten viele spannende Vorträge und interessante Gespräche mit anderen Community-Mitgliedern.",
"url": "http://www.joomlacamp.de/",
"geo":{
"latitude":"51.459070",
@gps : GT 730 FL-S
@ver : GPSBabel 1.4.4
// read
gpsbabel -t -i skytraq,erase=0,baud=0,no-output=0 -f com78 -x nuketypes,routes,waypoints -x track,fix=none,course,speed,start=20140329100001,stop=20140330050059,title=ACTIVE LOG #%Y%m%d -o gpx,suppresswhite=0,logpoint=0,humminbirdextensions=0,garminextensions=0 -F C:/wamp/www/components/com_zatours/gpxfiles/yes.gpx
// erase
gpsbabel -i skytraq,erase,baud=0,no-output -f com78