Skip to content

Instantly share code, notes, and snippets.

View daroczig's full-sized avatar

Gergely Daróczi daroczig

View GitHub Profile
@daroczig
daroczig / README.md
Created April 14, 2014 20:46
Demo statistical report template for "Creating statistical reports in the past, present and future"

A "rapport" template published in Gergely Daróczi (2014): "Creating statistical reports in the past, present and future". Romanian Statistical Review. (?)?: ?-?

@daroczig
daroczig / README.md
Created February 23, 2014 22:03
Estimating the number of homeless people living in Hungary between 1999 and 2011

Placeholder for supplementary resources for the above BMS article.

> library(pander)
> str(Pandoc.brew(text='Pi equals to <%=pi%>.\nAnd here are some random data:\n<%=runif(10)%>'))
Pi equals to _3.142_.
And here are some random data:
_0.9281_, _0.7048_, _0.5285_, _0.469_, _0.4796_, _0.844_, _0.2564_, _0.8511_, _0.5924_ and _0.8484_
List of 3
$ :List of 4
..$ type : chr "text"
..$ text :List of 2
.. ..$ raw : chr "Pi equals to <%=pi%>.\nAnd here are some random data:\n"
## compile a list of available packages on CRAN
aps <- as.data.frame(available.packages())
## get the list of Depends and clean up a bit
deps <- gdata::trim(unlist(strsplit(as.character(aps$Depends), ',')))
deps <- gsub('[ \\(].*|\\n', '', deps)
## freq table
depst <- table(deps)
@daroczig
daroczig / PKGBUILD
Created September 18, 2013 13:39
PKGBUILD for kdeplasma-applets-applicationname
# Maintainer: Andrea Scarpino <[email protected]>
pkgname=kdeplasma-applets-applicationname
pkgver=1.7
pkgrel=1
pkgdesc="A QML plasmoid to display the application name of the focused window"
arch=('any')
url="https://github.com/ndr/applicationname-plasmoid"
license=('GPL')
depends=('kdebase-workspace')
@daroczig
daroczig / demo.Rmd
Created September 8, 2013 18:10
knitting with pander
```{r include=FALSE}
library(pander); library(xtable)
```
# `pander` demo
```{r, results="asis"}
pander(CO2[1:8, ], style = 'rmarkdown')
```
@daroczig
daroczig / PKGBUILD
Last active December 21, 2015 05:59
snakefire-git updated PKGBUILD: https://aur.archlinux.org/packages/snakefire-git/
# Maintainer: Igor Yanchenko <[email protected]>
# Updated: Gergely Daróczig <[email protected]>
pkgname=snakefire-git
pkgver=20130818
pkgrel=1
pkgdesc='A Campfire desktop client'
arch=('i686' 'x86_64' 'ppc')
url='http://snakefire.org'
license=('MIT')
depends=('python2' 'python2-distribute' 'python-pyfire' 'python2-pyqt' 'python2-keyring' 'python2-notify' 'python2-pyenchant')
@daroczig
daroczig / UK_dialect_maps.tpl
Last active December 19, 2015 13:49
Analysing the results of The Cambridge Online Survey of World Englishes in the United Kingdom. See related blogpost @ http://blog.rapporter.net/2013/07/uk-dialect-maps.html
<!--head
meta:
title: UK language usage
description: Analysing the results of The Cambridge Online Survey of World Englishes
in the United Kingdom
author: ' (@daroczig)'
packages:
- class
- descr
- dismo
## load "pander" package
## http://rapporter.github.com/pander/
library(pander)
## "brew" the below file to Pandoc's markdown
Pandoc.brew('example.brew')
## or convert to HTML at one go
## NOTE: `pandoc` is needed for the conversion
Pandoc.brew('example.brew', output = tempfile(), convert = 'html')
@daroczig
daroczig / PKGBUILD
Created June 27, 2012 08:01
rescuetime 2.6.0.144
basename=rescuetime
pkgname="$basename-beta"
pkgver=2.6.0
pkgrel=144
pkgdesc="RescueTime time tracker software (binary beta) + firefox extension"
url="https://www.rescuetime.com"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('qt' 'xprintidle')
optdepends=('firefox: site time tracking')