Skip to content

Instantly share code, notes, and snippets.

View felixlindemann's full-sized avatar

Felix Lindemann felixlindemann

  • Lime-Tree
  • Wuppertal, Germany
View GitHub Profile
@felixlindemann
felixlindemann / carsharingWuppertal.r
Created November 12, 2014 13:32
Kosten für Carsharing in Wuppertal
cf <- 30
cm <- c(0,3,10,25, 10)
cmf <- matrix(c(
2.5, 0.24,
1.9,0.32,
1.7,0.24,
1.5, 0.21,
2.25, 0.26
),
byrow = FALSE, nrow = 2)
@felixlindemann
felixlindemann / ChangeTVShows.scpt
Last active August 29, 2015 14:08
Change TV-Shows Name for compatibility with DLNA-Server
--
-- Change TV-Shows Name for compatibility with DLNA-Server
-- by Felix Lindemann
-- no warrenty !
--
set iconPath to (path to applications folder as text) & "iTunes.app:Contents:Resources:iTunes.icns"
set counter to 0
-- init Progressbar
tell application "SKProgressBar"
@felixlindemann
felixlindemann / Access_Userform_Demo
Last active March 1, 2021 12:50
VBA: Create Userform in MS-Access Programatically - Demo
Public Sub demo_Modul_Userform()
Dim frm As Object
Set frm = getEmptyForm()
frm.Properties("Height") = 100
frm.Properties("Width") = 200
'add control
Dim NewButton As Msforms.CommandButton
@felixlindemann
felixlindemann / access_Userform
Last active August 29, 2015 14:04
VBA: Create Userform in MS-Access Programatically
Option Compare Database
Public Function getEmptyForm() As Object
'This is to stop screen flashing while creating form
' Application.VBE.MainWindow.Visible = False
Set getEmptyForm = Application.VBE.ActiveVBProject.VBComponents.Add(3)
End Function
\NeedsTeXFormat{LaTeX2e}
\documentclass[a4paper]{scrartcl}
\usepackage[left=1.5cm,right=1.5cm,top=1cm,bottom=1cm,includeheadfoot]{geometry} %4
\usepackage{tikz}
\usepackage{here}
\usepackage{listings}
%
\newcommand{\defineR}{ \lstset{ %
language=R, % choose the language of the code
@felixlindemann
felixlindemann / plotR2Latex
Created June 27, 2014 12:38
Demo of TIKZDevice (Plot R to Latex)
require(tikzDevice) #require this package
set.seed(1) # Output will always be the same
inch<- 0.3937008 # give units
h <- 10 # define height of tikz in cm
w <- 10 # define width of tikz in cm
td <- getwd()
tf<- file.path(td, 'tikz.tex') #set file
# tikz(tf,standAlone=TRUE) # if single doc
@felixlindemann
felixlindemann / duplicatePages.js
Created February 4, 2014 12:53
create Duplicate Pages Acrobat XI OSX
function duplicatepages() {
try {
var r = this.getPageBox();
var w = r[2] - r[0];
var h = r[1] - r[3];
var oldD = this;
var newD = app.newDoc({ nWidth: w, nHeight: h });
for(var p=oldD.numPages-1; p>=0; p--) {
@felixlindemann
felixlindemann / gist:8453133
Created January 16, 2014 11:06
reinstall tar
sudo ln -s /usr/bin/tar /usr/bin/gnutar
@felixlindemann
felixlindemann / install.r
Created January 16, 2014 11:01
install on target Computer
library(devtools)
install_github("RDemo", "felixlindemann")
library(RDemo)
foo(7)
@felixlindemann
felixlindemann / createskeleton.r
Created January 16, 2014 10:58
create Package Skeleton
package.skeleton("RDemo")