Skip to content

Instantly share code, notes, and snippets.

View hsigrist's full-sized avatar
👽
Cofusing

Hans Sigrist hsigrist

👽
Cofusing
View GitHub Profile
@arthuralvim
arthuralvim / Bibtex.sublime-build
Created June 1, 2012 15:13
Sublime Text 2 - build commands for bibtex and clean auxiliary files
// It's saved under path_to_Packages/User/
{
"cmd": ["bibtex", "$file_base_name"],
"path": "$PATH:/usr/texbin:/usr/local/bin",
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)",
"selector": "text.tex.latex"
}
@ccamara
ccamara / apa-esp.csl.xml
Last active October 13, 2015 16:38
American Psychological Association 6th Edition - Spanish Translation #zotero #citation-style #APA
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<!-- This style was edited with the Visual CSL Editor (http://steveridout.com/csl/visualEditor/) -->
<info>
<title>American Psychological Association 6th Edition - Spanish Translation</title>
<id>https://gist.github.com/4225434</id>
<link href="http://www.zotero.org/styles/apa" rel="self"/>
<link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
<author>
<name>Simon Kornblith</name>
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active October 31, 2025 16:45
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@hsigrist
hsigrist / anuario_4medio2013
Created October 8, 2013 23:51
anuario 4medio promoción 2013
Buen viaje, buen camino, mil destinos?
Cada vez que emprendemos un viaje, estamos en busca de algún destino... Sin embargo, llegar a destino no constituye lograr el objetivo: "es el viaje el que aporta la felicidad, no el destino."
Recuerde que en este mundo transitan tres tipos de personas: las movibles - esclavas de las circunstancias, las inamovibles -aquellas que quedan a la orilla del camino y finalmente las que se mueven - aquellas que como Usted aprenden que conocer no es saber, saber es hacer. Acompañe su camino del recto entendimiento, el altruismo y la noble compasión: nunca le faltará nada (ni le sobrará).
Si en el camino es Usted presa del odio y la cólera, cultive con ardor sus antídotos: la paciencia y la tolerancia.
Mantenga ante todo siempre una actitud realista cuando transite hasta su objetivo: Admita el hecho de que le puede costar tiempo, y exigirle un esfuerzo constante. Distinga siempre en su espíritu el logro efectivo de sus ideales versus los criterios con que juzga sus progresos,
@even4void
even4void / .emacs
Last active September 6, 2018 15:26
A basic previewer for R Markdown files edited with Emacs
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.Rmd\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.rmd\\'" . markdown-mode))
(add-hook 'markdown-mode-hook 'turn-on-outline-minor-mode)
(defun rmarkdown-new-chunk (name)
"Insert a new R chunk."
(interactive "sChunk name: ")
(insert "\n```{r " name "}\n")
(save-excursion
@rosswd
rosswd / multi-git-win.md
Last active November 19, 2025 00:02
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
@hsigrist
hsigrist / memoir.sublime-snippet
Created January 2, 2014 13:25
Oficio Memoir Article
<snippet>
<content><![CDATA[
% ${1:nombre_archivo}.tex -- Oficio Memoir Article
% Hans Sigrist/${2:date}, ${3:time}.
%______________________________________________________________________________
% GNU Free Documentation License
% Copyright (c) 2014 Hans Sigrist
% Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".THER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
% Read at <http://hsigrist.tumlr.com/GNU_License> This work consists of the files ${1:nombre_archivo}.tex and the derived file ${1:nombre_archivo}.pdf.
%_______________________
@hsigrist
hsigrist / talk.sublime-snippet
Created January 2, 2014 13:30
HyTeX Beamer Talk
<snippet>
<content><![CDATA[
% ${1:nombre_archivo}.tex -- HyTeX Beamer Talk
% Hans Sigrist/${2:date}, ${3:time}.
%______________________________________________________________________________
% GNU Free Documentation License
% Copyright (c) 2014 Hans Sigrist
% Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".THER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
% Read at <http://hsigrist.tumlr.com/GNU_License> This work consists of the files ${1:nombre_archivo}.tex and the derived file ${1:nombre_archivo}.pdf.
%___________________________
@lmullen
lmullen / Makefile
Last active June 11, 2025 22:04
PDF slides and handouts using Pandoc and Beamer
SLIDES := $(patsubst %.md,%.md.slides.pdf,$(wildcard *.md))
HANDOUTS := $(patsubst %.md,%.md.handout.pdf,$(wildcard *.md))
all : $(SLIDES) $(HANDOUTS)
%.md.slides.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -o $@
%.md.handout.pdf : %.md
pandoc $^ -t beamer --slide-level 2 -V handout -o $@

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: