I hereby claim:
- I am s-leroux on github.
- I am sylvain_leroux (https://keybase.io/sylvain_leroux) on keybase.
- I have a public key whose fingerprint is 9796 D177 578B 9B3C BFC1 3656 AB58 1F1D 1F61 C522
To claim this, I am signing this object:
#!/bin/bash | |
INFILE="$1" | |
OUTFILE="$2" | |
DATFILE="${INFILE}.dat" | |
SVGFILE="${INFILE}.svg" | |
sox "${INFILE}" "${DATFILE}" | |
gnuplot << EOF | |
# set terminal pngcairo size 750,400 enhanced font 'Verdana,10' |
gpg --recv 8738CD6B956F460C |
I hereby claim:
To claim this, I am signing this object:
// | |
// Tested with openjdk-8 | |
// | |
// Usage: | |
// javac Surprise.java | |
// java Surprise | |
// | |
public class Surprise { | |
public static void main(String args[]) { | |
long n = Integer.MAX_VALUE; |
#!/bin/bash | |
# Original code by Hagen Wierstorf (http://www.gnuplotting.org) | |
# http://www.gnuplotting.org/code/shape2txt | |
# Shamelessly modified by Sylvain Leroux for the worst | |
function usage() { | |
echo "Usage:" | |
echo " shape2txt file.shp" | |
} |
for file in "$@" | |
do | |
tidy -q -numeric -asxhtml \ | |
--show-warnings no \ | |
"${file}" | \ | |
xmlstarlet sel -T \ | |
-t \ | |
-m "//_:a[text()='eGovernment']" \ | |
-m "//*[contains(@class,'coverage-description')]/_:a" \ | |
-o "$(basename "${file}")"'|' \ |
#!/bin/bash | |
set -e | |
shopt -s expand_aliases | |
alias make='make -j9' | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libblas-dev libgsl-dev python-cairo-dev \ | |
libgtk2.0-dev libgtkmm-2.4-dev libcairomm-1.0-dev libcairo2-dev \ |
#!/usr/bin/env python | |
# svglinkify.py - Add hyperlinks to PDFs generated by Inkscape | |
# Copyright (C) 2015 Mansour Behabadi <mansour@oxplot.com> | |
# | |
# This script comes with no warranty whatsoever. Use at your own risk. | |
# If you decide to distribute verbatim or modified versions of this | |
# code, you must retain this copyright notice. | |
# | |
# Usage: svglinkify.py <svg-file> <inkscape-gen-pdf> <linkified-pdf> | |
# Requires: |
#!/bin/bash | |
echo '1 2 3' > sample.data | |
cut -d' ' -f1,3 sample.data | read X Z | |
echo $((X+Z)) |
#!/bin/bash | |
COLOR="#59838c" | |
for f in FRAME-*.png; do convert \( -size 1920x1080 xc:black \) \( $f -alpha Off -level 10%,100% -negate \) -compose CopyOpacity -composite ${f/FRAME/ALPHA}; done | |
for f in ALPHA-*.png; do convert \( -size 1920x1080 xc:"$COLOR" \) \( $f \) -compose Over -composite ${f/ALPHA/OVER}; done |