Description | Amount | |
---|---|---|
Foo | 5.30 | |
Bar | 3.10 | |
# | Total: | 8.40 |
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 perl6 | |
use v6.d; | |
=begin DESCRIPTION | |
Given a newline-delimited file of mm/dd/yyyy, write a newline-delimited | |
file of yyyy-mm-dd. | |
=end DESCRIPTION |
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/bash | |
while inotifywait \ | |
--quiet --quiet \ | |
--recursive \ | |
--event close_write \ | |
lib/ @lib/.precomp/ bin/ t/; do \ | |
clear; \ | |
prove --exec perl6 --lib --verbose; \ | |
done |
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/sh | |
vimrc="$HOME/.vimrc" | |
vim_plugin_dir="$HOME/.vim/plugin" | |
sensible_plugin='https://raw.githubusercontent.com/tpope/vim-sensible/master/plugin/sensible.vim' | |
mkdir -p "$vim_plugin_dir" | |
wget -P "$vim_plugin_dir" "$sensible_plugin" | |
cat << "EOT" - >> "$vimrc" |
Using the dirs
(bash-builtins(7)
) stack to create a playlist for Audacious of two Ubiktune albums I recently purchased off of Bandcamp:
$ dirs -v
0 ~/Music
1 ~/Music/Zackery_Wilson/SNESQUE
2 ~/Music/Joshua_Morse/Waveform_4
$ audacious
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
# Based on this tutorial: | |
# http://www.devshed.com/c/a/Perl/Perl-Bit-by-Bit/3/ | |
# | |
# This will print: | |
# | |
# .--------------------------------. | |
# | Name | Programmer? | Adult? | | |
# +---------+-------------+--------+ | |
# | Bob | Yes | Yes | | |
# | Alice | No | Yes | |
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
/* | |
This is very crude. | |
Example usage: | |
$ node eggtartClient.js \ | |
'https://github.com/fcambus/ansiweather' \ | |
'fcambus/ansiweather' \ | |
AnsiWeather CLI weather unicode shell_script github repository-git | |
null { result: { '$': { code: 'done' } } } |
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
$ npm install mocha should journey | |
$ node_modules/.bin/mocha --ui tdd --reporter tap server.checkHello.test.js | |
1..1 | |
ok 1 Response from /hello URI should return JSON containing "hello" | |
# tests 1 | |
# pass 1 | |
# fail 0 |
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/sh | |
# Try to add GNU readline support to GNU ed | |
hash rlwrap 2>&- | |
if (( $? == 0 )); then | |
exec /usr/bin/rlwrap /bin/ed "$@" | |
else | |
exec /bin/ed "$@" | |
fi |
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/bash | |
# | |
# By Andrew Grangaard ( http://www.lowlevelmanager.com ) | |
# inspired by | |
# svnvimdiff: | |
# Copyright 2007 by Geoff Buchan | |
# http://www.vim.org/scripts/script.php?script_id=1797 | |
# which was | |
# Based on the script cvsvimdiff, written by | |
# Stefano Zacchiroli <zack@cs.unibo.it> |