Skip to content

Instantly share code, notes, and snippets.

@tbrugz
tbrugz / footnote-example.fo
Created March 6, 2020 14:24
FO with footnote example
<?xml version="1.0" encoding="UTF-8"?>
<!--
slightly adapted from:
https://flylib.com/books/en/1.262.1.190/1/
-->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="20mm" margin-left="20mm"
margin-bottom="10mm" margin-top="10mm" page-width="300mm"
page-height="400mm" master-name="page">
@tbrugz
tbrugz / LICENSE
Last active May 22, 2016 23:33 — forked from kerryrodden/.block
Sequences sunburst
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
/*--- checkForBadJavascripts()
This is a utility function, meant to be used inside a Greasemonkey script that
has the "@run-at document-start" directive set.
It Checks for and deletes or replaces specific <script> tags.
*/
function checkForBadJavascripts (controlArray) {
/*--- Note that this is a self-initializing function. The controlArray
parameter is only active for the FIRST call. After that, it is an
event listener.

header 1 underline

header 2 underline

header 1

header 2

@tbrugz
tbrugz / q1.R
Created October 2, 2012 17:52
Eleições municipais: correlacionando valor da receita com valor dos bens
tse <- read.csv("Candidatos RS municipais - 2008 e 2012.csv", header=T, sep=",")
# cargo 11 = prefeito; cargo 13 = vereador
f.tse2012p <- tse[tse$ANO_ELEICAO==2012 & tse$CD_CARGO==11,]
f.tse2012v <- tse[tse$ANO_ELEICAO==2012 & tse$CD_CARGO==13,]
f.tse2008p <- tse[tse$ANO_ELEICAO==2008 & tse$CD_CARGO==11,]
f.tse2008v <- tse[tse$ANO_ELEICAO==2008 & tse$CD_CARGO==13,]
# regressões logaritmicas - 2012
lml.tse2012p <- lm(log(f.tse2012p$VL_RECEITA) ~ log(f.tse2012p$VL_BEM))