aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
Commit message (Collapse)AuthorAgeFilesLines
* .functions: Add `gz` function to get gzipped file sizePaul Irish2012-05-311-0/+8
|
* .functions: Minor comment tweaksMathias Bynens2012-03-281-1/+1
|
* Added newline after codepointPeter Kruithof2012-03-281-1/+2
|
* Added codepoint functionPeter Kruithof2012-03-281-0/+5
|
* .functions: Alias `diff` to `git diff` when availableMathias Bynens2012-03-231-0/+8
|
* .functions: Add `dataurl` functionMathias Bynens2012-03-221-0/+5
| | | | Based on @lri’s http://lri.me/profile.
* .functions: Add `gurl` function for gzip-enabled `curl`Mathias Bynens2012-03-151-0/+5
| | | | Inspired by @bluesmoon: http://twitter.com/bluesmoon/status/179982379098710017
* `server` function: Serve everything as UTF-8Mathias Bynens2012-01-091-1/+2
| | | | Even though this is not technically correct for binary files, it doesn’t actually break anything.
* Better `json` functionMathias Bynens2012-01-021-3/+1
| | | | Ref. 9b0af44766d2a2cc61ae0142ac3ec9f0bed75674
* Serve unknown file types as UTF-8, as suggested by @janmoesenMathias Bynens2012-01-021-1/+1
|
* `server` function: Set the default Content-Type to `text/plain` instead of ↵Mathias Bynens2011-12-311-1/+3
| | | | | | `application/octet-stream` Hat tip to @cowboy: https://github.com/cowboy/dotfiles/blob/2874a86d207883a18e5e4c01219f9adb42d82c09/bin/serve#L26-43
* `server`: Use parameter expansion instead of a fake ternaryMathias Bynens2011-12-311-2/+1
|
* Replace the `server` alias with a function that optionally takes an argument ↵Mathias Bynens2011-12-311-0/+7
| | | | | | specifying the port number Inspired by @padolsey’s https://gist.github.com/1525217#gistcomment-71652.
* Allow piping to the `json` functionMathias Bynens2011-12-281-2/+10
|
* Use tabs instead of double-space indentsMathias Bynens2011-12-281-8/+8
|
* Add `unidecode` functionMathias Bynens2011-12-281-0/+6
| | | | | | | Example: $ unidecode "\x{1D306}" 𝌆
* Add `escape` function which escapes UTF-8 characters into their 3-byte formatMathias Bynens2011-12-271-0/+7
| | | | | | | | | Example: $ escape "♥♡♥" \xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5 $ echo -e "\xE2\x99\xA5\xE2\x99\xA1\xE2\x99\xA5" ♥♡♥
* Make the `json()` function more generic by allowing any JSON string instead ↵Mathias Bynens2011-10-081-1/+1
| | | | of just JSON URLs.
* Add `json` function. Example usage: `json ↵Mathias Bynens2011-09-291-3/+7
| | | | http://fronteers.nl/congres/2011/attendees.json`
* Whitespace cleanup.Mathias Bynens2011-09-051-1/+1
|
* Initial commit.Mathias Bynens2011-09-051-0/+15