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 perl | |
# Dynamically patch cpanm | |
# Alternative implementation to: | |
# https://gist.github.com/kentfredric/ce1df3e7e509e071b63d | |
use strict; | |
use 5.010001; | |
use warnings; | |
use Scalar::Util qw(blessed); |
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
#!/bin/zsh | |
export TESTS=${TESTS:-1000000} | |
# liberated from liquidprompt | |
local ti_sgr0="$( { tput sgr0 || tput me ; } 2>/dev/null )" | |
local ti_bold="$( { tput bold || tput md ; } 2>/dev/null )" | |
if tput setaf >/dev/null 2>&1 ; then | |
ti_setaf () { tput setaf "$1" ; } | |
elif tput AF >/dev/null 2>&1 ; then |
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
# Copiez sur coffeescript.org, onglet "Try CoffeeScript" pour l'exécuter en ligne. | |
exports = {} | |
# | |
# Used to calculate the checksum | |
# http://fr.wikipedia.org/wiki/Relev%C3%A9_d'identit%C3%A9_op%C3%A9rateur | |
# | |
exports.calcChksm = (oo, q, rrrrrr, notel) -> | |
concatenation = "#{oo}#{q}#{rrrrrr}#{notel}" | |
ordre = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+" |