This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature qw(say); | |
use Getopt::Std; | |
# If set to true, exit script after processing --help or --version flags | |
$Getopt::Std::STANDARD_HELP_VERSION = 1; | |
our $VERSION = "0.1"; | |
#------------------------------------------------------------------------------# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calculate the size of an HTML element, whose size is specified with CSS, on | |
# the screen of a specific device (laptop, tablet, phone, ...). | |
# | |
# Where to get the needed information? | |
# - ppi: https://www.gsmarena.com/ or http://dpi.lv/ | |
# - dpr: http://devicepixelratio.com/ | |
# - linres: https://www.gsmarena.com/ | |
# - viewport: default viewport width for mobile only, first line of: | |
# http://whatsmy.browsersize.com/ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Begin of manually added comments | |
%------------------------------------------------------------------------------% | |
% | |
% The main characteristics of this bib style are: | |
% - Ordering of references in ALPHABETICAL order | |
% - Author names: initials + surname (e.g. J. F. Smith) | |
% - Maximum three authors (missing names replaced by et al.) | |
% - Date as month + year | |
% - Titles (and punctuation) in double quotes | |
% - Don't change capitalisation of titles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Begin of manually added comments | |
%------------------------------------------------------------------------------% | |
% | |
% The main characteristics of this bib style are: | |
% - Ordering of references in CITATION order | |
% - Author names: initials + surname (e.g. J. F. Smith) | |
% - Maximum three authors (missing names replaced by et al.) | |
% - Date as month + year | |
% - Titles (and punctuation) in double quotes | |
% - Don't change capitalisation of titles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% LaTeX class for simple short (or long) notes. | |
% | |
% Usage: place .cls file in same directory as .tex file and reference class | |
% in .tex file with: \documentclass{note} | |
% | |
% Daniel Weibel <[email protected]> 7 May 2016 | |
%------------------------------------------------------------------------------% | |
\LoadClass[a4paper]{article} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Usage: pdflatex letter.tex | |
\documentclass[ | |
11pt, | |
stdletter, | |
orderfromtodate, | |
sigleft, | |
a4paper | |
]{newlfm} | |
\usepackage{kpfonts} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Resize all the images in a specified folder with ImageMagick. Put the | |
# resized images in another specified folder. | |
# | |
# Of course, this script is an overkill. Just typing the loop on the command | |
# line would be enough... | |
# | |
# Daniel Weibel <[email protected]>, 27 Dec. 2014 | |
#------------------------------------------------------------------------------# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A small Graphviz "Hello World" program | |
// | |
// Usage: | |
// | |
// dot -Tpdf graphviz.dot >out.pdf | |
// | |
// See all supported output formats with: | |
// | |
// dot -Txxx | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Vectors (all elts. same type) | |
teams <- c("PHI","NYM","FLA","ATL","WSN") | |
w <- c(92, 89, 94, 72, 59) | |
l <- c(70, 73, 77, 90, 102) | |
# Lists (elts. can have different types) | |
list <- list(teams=teams, wins=w, losses=l) | |
# Data frame (list of equally long vectors) | |
df <- data.frame(teams=teams, wins=w, losses=l) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class A { | |
private int x; | |
private int y; | |
public A(int a, int b) { | |
x = a; | |
y = b; | |
} | |
public static void main(String[] args) { |