Skip to content

Instantly share code, notes, and snippets.

View felix-last's full-sized avatar

Felix Last felix-last

View GitHub Profile
@felix-last
felix-last / elsarticle-num-names-alphsort.bst
Created January 9, 2018 14:54
Modified version of elsarticle-num-names.bst for sorting alphabetically by first author as required by Information Sciences as of Jan 2018
%% Modified version of elsarticle-num-names.bst for alphabetical sorting by Felix Last <[email protected]>
%% Modifications marked with %%MODFL2018
%%
%% Copyright 2007, 2008, 2009 Elsevier Ltd
%%
%% This file is part of the 'Elsarticle Bundle'.
%% ---------------------------------------------
%%
%% It may be distributed under the conditions of the LaTeX Project Public
%% License, either version 1.2 of this license or (at your option) any
@felix-last
felix-last / arxiv2kindle.ipynb
Created December 18, 2017 23:31 — forked from bshillingford/arxiv2kindle.ipynb
arxiv2kindle: recompiles an arxiv paper for kindle-sized screens, and sends it to your wifi-enabled kindle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@felix-last
felix-last / nova-ims-thesis.tex
Last active October 14, 2017 11:10
Nova IMS Latex Bootstrap
% template to submit thesis to IMS @ Universidade de Lisboa
% copy fragments as needed to create latex pdf
% fill in Word template (e.g. Templatethesis_MAA_EN.doc from moodle)
% export pages up to, but excluding the table of contents as pdf
% merge the two pdfs (how? google 'how to merge pdfs' :) )
% using article document class is important for some modifications below to get the desired outcome
\documentclass[a4paper]{article}
% set page margins
@felix-last
felix-last / .block
Last active October 27, 2016 06:09 — forked from mbostock/.block
Cluster Dendrogram
license: gpl-3.0
height: 2000
border: no
var dot = document.createElement('div');
dot.className = 'dot';
dot.style.top = graph.y(d.value.y0 + d.value.y) + 'px';
dot.style.borderColor = d.series.color;
this.element.appendChild(dot);
dot.className = 'dot active';
var legend = document.querySelector('#legend');
$('<span></span>').addClass('value').appendTo('.label, #legend');
value_space = $('.value');
console.log(value_space);
var Hover = Rickshaw.Class.create(Rickshaw.Graph.HoverDetail, {
render: function(args) {
args.detail.sort(function(a, b) { return a.order - b.order }).forEach( function(d) {
var value = document.createElement('div');
value.className = 'value ';