Skip to content

Instantly share code, notes, and snippets.

@produnis
produnis / latex-vscode.json
Created June 10, 2024 09:32 — forked from CloudyPadmal/latex-vscode.json
Style sheet for LaTeX workshop -- Add this set to settings.json
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"support.function.general.tex",
"support.function.textit.latex",
"support.function.texttt.latex",
"support.function.textbf.latex",
"support.function.textsc.latex",
"support.function.url.latex",
@produnis
produnis / mergeMP3
Last active August 29, 2015 13:56
Nautilus-Scripte
#! /bin/bash
# required Packages:
# ---- zenity
# ---- mp3val
#################################################
# check for zenity
gui=$(which zenity)
if [ ! -x "$gui" ];
then
@produnis
produnis / Backup.sh
Created August 2, 2012 14:22
Scriptordner
#!/bin/bash
###
#### Dies ist mein persoenliches Backup-Script
#### Es benoetigt folgende Pakete: - keine -
# Bitte geben Sie das Zielverzeichnis an
ZIEL="/home/produnis/Downloads/" # default =/home/produnis/Desktop/
USER=produnis # default =produnis
MYSQLPWD=VerySecret # Set your root-pwd for MySQL
###########################################
#!/usr/bin/perl -w
### User-Job-Command:
### /path/to/copy_and_transcode.pl -f %FILE% -p autodetect
# ============================================================================
# = NAME
# copy_and_transcode.pl
#
# = PURPOSE
# Copy a recording before transcoding, so the user can re-cut the original
#
@produnis
produnis / r-packages.r
Created July 14, 2012 22:33
Install packages
install.packages(c("foreign", "ggplot2", "Hmisc", "knitr", "lattice"), dependencies=TRUE)
mma <- read.table("http://www.produnis.de/R/MMA.TXT",sep=";",header=T)
head(mma)
attach(mma)
# Erzeuge eine neue Spalte "time", in welcher Datum und Uhrzeit
# im POSIXct-Format zusammengefasst werden.
mma$time <- as.POSIXct(paste(Datum,Uhrzeit),format="%Y-%m-%d %H:%M")
#Wandle falsch-numerisches in factor() um
mma$Action <- factor(mma$Action)
mma$Person <- factor(mma$Person)
# fertig
@produnis
produnis / style.css
Created July 1, 2012 14:42
myWordpress
pre {
width: 97%;
overflow-x:auto;
}
#bash {
color: #FFFFFF;
background-color: #000000;
font-family: Courier;
font-size: 0.9em;
@produnis
produnis / My_R-Code_for_Mail.R
Created June 27, 2012 13:58
The Personal Analytics of My Life
# Read texttable into R
# You need to specify the path to textfile (created with mailscanner.py)
# in the command below
inbox <- read.table("/Path/to/MyMail-inbox.txt", sep=",", colClasses = "character") # Read table as characters
colnames(inbox) <- c("Datum","Uhrzeit") # give names to colums
inbox$Datum <- strptime(inbox$Datum,format="%Y%m%d") # turn into format DATE
inbox$Uhrzeit <- strptime(inbox$Uhrzeit, format="%H%M%S") # turn into format TIME
plot(inbox$Datum, inbox$Uhrzeit) # plot the stuff
#
# Add data of another texttable
@produnis
produnis / Search-with-one-string.r
Created May 26, 2012 15:21
Pubmed Trend via R
setwd('/home/produnis/Dokumente/Programmierung/R/PubMedTrend')# edit to fit your system
source('pubmed_trend.r')
source('plot_bar.r')
library("RColorBrewer")
#-------------------------------------------------------------
search.for1 <- "schnepp w[Author]"
#----------
search.pub1 <- pubmed_trend(search.str = search.for1, year.span=1990:2012)