This file contains hidden or 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/perl | |
# Reads STDIN as 'Outlook CSV' (e.g. contacts exported from GMail webUI). | |
# Writes to STDOUT as mutt aliases | |
# | |
# Example usage: | |
# | |
# perl csv2muttalias.pl < contacts.csv >> ~/.muttrc | |
use strict; |
This file contains hidden or 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
# HDI vs Irreligion; | |
# Source: | |
# https://en.wikipedia.org/wiki/List_of_countries_by_irreligion | |
# https://en.wikipedia.org/wiki/List_of_countries_by_Human_Development_Index | |
# gnuplot command line: | |
# echo "set xlabel 'Irreligion (% of population)'; set xrange [0:100]; \ | |
# set ylabel 'HDI'; set term png size 1024,768; \ | |
# set output 'hdi-vs-irreligion.png'; \ | |
# f(x) = a*x + b; a=0.003;b=0.7; \ | |
# fit f(x) 'hdi-vs-irreligion.data' using 2:3 via a,b; \ |
This file contains hidden or 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
#!/bin/sh -f | |
# Run iconv(1) tests with every possible input combination of two bytes. | |
# Copyright (C) 2019 Free Software Foundation, Inc. | |
# This file is part of the GNU C Library. | |
# Contributed by Arjun Shankar <[email protected]>, 2019. | |
# The GNU C Library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public | |
# License as published by the Free Software Foundation; either | |
# version 2.1 of the License, or (at your option) any later version. |
This file contains hidden or 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
HANG: ANSI_X3.110; echo -en "\x00\x23" | iconv -c -f ANSI_X3.110 -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: ARMSCII-8; echo -en "\x00\xa1" | iconv -c -f ARMSCII-8 -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: ASMO_449; echo -en "\x00\xa1" | iconv -c -f ASMO_449 -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: BIG5; echo -en "\x00\x81" | iconv -c -f BIG5 -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: BIG5HKSCS; echo -en "\x00\xff" | iconv -c -f BIG5HKSCS -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: BRF; echo -en "\x00\xff" | iconv -c -f BRF -t "UTF-8//TRANSLIT//IGNORE" | |
HANG: BS_4730; echo -en "\x00\xff" | iconv -c -f BS_4730 -t "UTF-8//TRANSLIT//IGNORE" | |
OK: CP10007 | |
OK: CP1125 | |
HANG: CP1250; echo -en "\x00\x81" | iconv -c -f CP1250 -t "UTF-8//TRANSLIT//IGNORE" |
OlderNewer