Skip to content

Instantly share code, notes, and snippets.

View kikofernandez's full-sized avatar

Kiko Fernandez-Reyes kikofernandez

View GitHub Profile
@kikofernandez
kikofernandez / EEP-DeprecationOfArgumentsErlang.md
Created October 5, 2022 09:39
EEP Deprecation of function arguments to Erlang
Author: Kiko Fernandez-Reyes <kiko@erlang.org>
Status: Draft
Type: Standards Track
Created: 10-Oct-2022
Post-History:
Replaces: 2, 3

EEP 61: Deprecation of types in functions

@kikofernandez
kikofernandez / biblio.py
Last active November 26, 2020 13:21
Capitalise title
# Original by Daniel L. Greenwald
# http://dlgreenwald.weebly.com/blog/capitalizing-titles-in-bibtex
# Modified by Garrett Dash Nelson
import re
from titlecase import titlecase
def capitalise(x):
if x[0].isupper():
x = "{" + x[0] + "}" + x[1:]

Keybase proof

I hereby claim:

  • I am kikofernandez on github.
  • I am kikofernandez (https://keybase.io/kikofernandez) on keybase.
  • I have a public key ASDGencYx46AwAQce3kqbfM4mYVSH9Ab22nGBe3zq1u4rgo

To claim this, I am signing this object:

@kikofernandez
kikofernandez / pandoc.css
Created December 19, 2017 08:45 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@kikofernandez
kikofernandez / workaround.md
Created September 12, 2016 20:07 — forked from kgrz/workaround.md
Possible workaround for installing nokogiri 1.6.8 on OSX with brewed libxml2 2.9.4

Problem:

The following commands fail on OSX:

gem install nokogiri
gem install nokogiri -- --use-system-libraries
gem install nokogiri -- --use-system-libraries --with-xslt-dir=/usr/local/opt/libxslt --with-xml2-dir=/usr/local/opt/libxml2

Version:

[Socket]1<-1[Server]
[Server]1-1>[Database]
[Server]++1-1>[Match]
[Match]++1-1>[Strategy]
[ABCClient]*-1>[Socket]
[ABCClient]^-[Responder]
[ABCClient]^-[Requester]
[Requester]uses -.- *>[Request]
@kikofernandez
kikofernandez / .gitignore
Created January 23, 2015 14:33
Global .gitignore
# Mac OS X hidden files
.DS_Store
# Vim swap files
.*.sw?
# Pow and Powder config
/.pow*
# RVM and rbenv
@kikofernandez
kikofernandez / Vagrantfile
Last active August 29, 2015 14:12
Ubuntu Trusty 64 bits: Development environment with GHC 7.8.3, cabal 1.20, clang, g++, valgrind, git, emacs and vim
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@kikofernandez
kikofernandez / Berksfile
Last active December 20, 2015 16:09
chef-solo code for installing nginx and datomic
site :opscode
cookbook 'nginx'
cookbook 'chef-leiningen'
@kikofernandez
kikofernandez / Install Ruby On EC2
Created June 22, 2013 10:06
In order for you to very quickly get up and running with rbenv & the latest Ruby MRI. Just copy it and run it. Original Author: Parker J. Moore
# Taken from http://blog.parkermoore.de/2013/02/06/install-rbenv-on-ubuntu-12-dot-04/
# Author: Parker J. Moore
# I couldn't find the Gist...
sudo apt-get install zlib1g-dev openssl libopenssl-ruby1.9.1 libssl-dev libruby1.9.1 libreadline-dev git-core make make-doc
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL # Restart the shell