Skip to content

Instantly share code, notes, and snippets.

Christian Hent christianhent

Block or report user

Report or block christianhent

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gpsbabel_cli_gt730fls
@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
View events.json
[
{
"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",
View profiles.json
[
{
"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",
@christianhent
christianhent / main.js
Last active Nov 3, 2015
Gerade noch so unter 100 Zeilen
View main.js
$(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;
View mustache
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 / slideshow.txt
Created Mar 5, 2017
Record a slideshow video from images
View slideshow.txt
#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 / default.php
Created Dec 15, 2017
alternative zatracks polyline layout
View default.php
<?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 / joomla article, markers content
Created Dec 15, 2017
joomla article, map markers for zatracks
View joomla article, markers content
<ul id="wpts" hidden>
<li title="Wöhrder Wiese">49.450647,11.0866813</li>
<li title="Wasserwerk Erlenstegen">49.472041,11.1398093</li>
<li title="Brücke am Pulversee">49.458071,11.1097983</li>
</ul>
View map.php
<script>
// ... existing map code
// ...
// ... your markers code goes here
document.addEventListener("DOMContentLoaded", function(event){
var container = document.getElementById("wpts");
if (typeof(container) != 'undefined' && container != null){
var wpts = document.getElementById("wpts").children;
var string = null;
var title = null;
@christianhent
christianhent / map.php
Last active Dec 16, 2017
disables the standard zoom control
View map.php
<script>
// ... existing map code
// ...
// set {zoomControl: false} to disable the default zoom control
var map = new L.Map('map',{
fullscreenControl: true,
zoomControl: false,
fullscreenControlOptions: {
position: 'topleft'
},
You can’t perform that action at this time.