Skip to content

Instantly share code, notes, and snippets.

View JanMarvin's full-sized avatar

Jan Marvin Garbuszus JanMarvin

  • Düsseldorf, Germany
View GitHub Profile
@JanMarvin
JanMarvin / v8_build_log.txt
Created September 26, 2020 15:42
v8 build error
==> Rcpp::compileAttributes()
* Updated R/RcppExports.R
==> R CMD INSTALL --no-multiarch --with-keep.source V8
* installing to library ‘/home/jmg/R/x86_64-pc-linux-gnu-library/4.0’
* installing *source* package ‘V8’ ...
** using staged installation
Using PKG_CFLAGS=-I/usr/include/v8 -I/usr/include/v8-3.14
@JanMarvin
JanMarvin / PKGBUILD
Created August 23, 2020 18:44
v8-win
# Maintainer: Jan Marvin Garbuszus <jan.garbuszus@rub.de>
# Contributor: Marco Pompili <aur (at) mg.odd.red>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: tocer <tocer.deng@gmail.com>
# Contributor: David Flemström <david.flemstrom@gmail.com>
pkgname=v8-r
pkgver=8.7.3
if ( -not(Test-Path Env:\CRAN) ) {
$CRAN = "https://cloud.r-project.org"
}
Else {
$CRAN = $env:CRAN
}
# Found at http://zduck.com/2012/powershell-batch-files-exit-codes/
Function Exec
@JanMarvin
JanMarvin / PKGBUILD
Created September 9, 2019 17:59
build itstool with python3
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Michael Pusterhofer <pusterhofer(at)student(dot)tugraz(dot)at>
pkgname=itstool
pkgver=2.0.6
pkgrel=1
epoch=1
pkgdesc="XML to PO and back again"
arch=(any)
url="http://itstool.org/"
@JanMarvin
JanMarvin / import_gv100.R
Created August 24, 2019 15:21
R code to import the GV100
pfd <- "~/Dokumente/Geo/GV100/3108/GV100AD_310819.ASC"
tmp <- read.delim(pfd, stringsAsFactors = FALSE, header = FALSE, encoding = "latin1")
gv100 <- vector("list", length = 6)
# Satzart 10 - Landdaten
sa10 <- tmp[startsWith(tmp$V1, "10"), ]
@JanMarvin
JanMarvin / PKGBUILD
Last active June 10, 2019 07:15
v8
# Maintainer: Marco Pompili <aur (at) mg.odd.red>
# Contributor: Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: tocer <tocer.deng@gmail.com>
# Contributor: David Flemström <david.flemstrom@gmail.com>
# Contributor: Jan Marvin Garbuszus <jan.garbuszus@rub.de>
pkgname=v8
pkgver=7.6.100
@JanMarvin
JanMarvin / lookfor.R
Last active June 14, 2018 13:27
lookfor in R
library(readstata13)
ppfad <- read.dta13("~/Dokumente/Daten/SOEP/2016/soep/ppfad.dta",
convert.factors = FALSE)
lookfor <- function(string, data) {
# prepare
> nc <- st_read("inst/shape/nc.shp")
Reading layer `nc' from data source `/home/jmg/Source/sf/inst/shape/nc.shp' using driver `ESRI Shapefile'
Simple feature collection with 100 features and 14 fields
geometry type: MULTIPOLYGON
dimension: XY
bbox: xmin: -84.3 ymin: 33.9 xmax: -75.5 ymax: 36.6
epsg (SRID): 4267
proj4string: +proj=longlat +datum=NAD27 +no_defs
>
> options(digits = 7)
library(RSelenium)
library(rvest)
first <- function(obj) sapply(obj, function(x)x[[1]])
ris <- function(name = "Bochum Hbf") {
url <- "https://www.bahn.de/ris"
@JanMarvin
JanMarvin / master.R
Created February 10, 2018 18:09
WO comments
# awesome: http://kateto.net/network-visualization
# install.packages("RSelenium", dependencies = TRUE)
# # debug Rselenium (currently RSelenium downloads are broken)
# library(wdman)
# selServ <- wdman::selenium(verbose = FALSE)
# selServ$log()