Skip to content

Instantly share code, notes, and snippets.

Felix Lindemann felixlindemann

Block or report user

Report or block felixlindemann

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 Fast Rsync nas to nas
rsync -rtXx --numeric-ids --progress -e "ssh -T -c aes128-ctr -o Compression=no -x" <user>@<ip>:/<source-path>/ /<dest.path>/
@felixlindemann
felixlindemann / olMap.Demo.js
Created May 10, 2016
altered version of the olMap.Demo.js
View olMap.Demo.js
var map;
var highlightStyleCache = {};
$('#btnAddDemo').click(function (evt) {
evt.preventDefault();
olMapControls.Layers.ReadGpx("gpx/track.gpx", "Bycycle Tour Wuppertal 100km", "id_gpx100km");
addHoverSupport();
$(this).parent().remove();
});
@felixlindemann
felixlindemann / triangular.R
Created Apr 16, 2016
triangular Distribution: Implementation for R
View triangular.R
### https://de.wikipedia.org/wiki/Dreiecksverteilung
dtriangular <- function(x,a,c,b){
if(a>=b){stop("a must be smaller than b")}
if(a>=c){stop("a must be smaller than c")}
if(c>=b){stop("c must be smaller than b")}
if(length(x) >1){
d <- NULL
for(i in 1:length(x)){
d<- c(d, dtriangular(x[i],a,c,b))
@felixlindemann
felixlindemann / clsTime.cs
Created Feb 25, 2016
c# get Time from PTB Server
View clsTime.cs
using System;
using System.Text;
using System.Net.Sockets;
public class clsTime
{
public static System.DateTime GetNISTTime()
@felixlindemann
felixlindemann / changeLanguage.vb
Created Mar 27, 2015
Change default language of Powerpoint 2010
View changeLanguage.vb
Sub ChangeProofingLanguageToEnglish()
Dim j, k As Integer
Dim languageID As MsoLanguageID
'Set this to your preferred language
languageID = msoLanguageIDEnglishUK
For j = 1 To ActivePresentation.Slides.Count
For k = 1 To ActivePresentation.Slides(j).Shapes.Count
ChangeAllSubShapes ActivePresentation.Slides(j).Shapes(k), _
View olMap.Demo.js
$('#btnAddDemo').click(function (evt) {
evt.preventDefault();
addCustomLayer();
$(this).parent().remove();
});
function addCustomLayer(){
View addButtons.js
function AddButtonToMapStyle(parent,index, value){
var isVisible = value.oTile.get('visible') == true;
var title = value.oTile.get('title') ;
$(parent).append('<li><a href="#" data-index="' + index + '">' + title + ' </a></li>');
$(parent + " li:last-child a").addClass('ol-inactive');
if(isVisible){
$(parent + " li:last-child a").removeClass('ol-inactive').addClass('ol-active');
@felixlindemann
felixlindemann / map.initialized.js
Last active Aug 29, 2015
Custom Event: Map.Initialized
View map.initialized.js
$("#" + olMapControls.map.div).on('initialized', function(){
// add Custom Controls
addControls();
});
function addControls(){
$('#btnZoomIn').click(function (evt) {
@felixlindemann
felixlindemann / LoadMap.js
Created Mar 22, 2015
Load Openlayers Map
View LoadMap.js
$( document ).ready(function() {
olMapControls.map.center = [7.1942,51.2762]; // adjust Default Values here
olMapControls.map.zoom = 12;
olMapControls.map.div = 'map';
// init Map
olMapControls.init();
});
You can’t perform that action at this time.