Skip to content

Instantly share code, notes, and snippets.

@ondras
ondras / bash_prompt.sh
Last active May 14, 2021 15:30 — forked from bradsokol/bash_prompt.sh
Set color bash prompt according to active Git or Mercurial branch/bookmark and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current Git or Mercurial repository
# * the return value of the previous command
#
# USAGE:
#
@ondras
ondras / LICENSE.txt
Last active August 31, 2015 13:51 — forked from 140bytes/LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Ondrej Zara <ondrej.zara@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ondras
ondras / LICENSE.txt
Created April 6, 2012 18:34 — forked from 140bytes/LICENSE.txt
Sierpinski triangle - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Ondrej Zara <http://ondras.zarovi.cz/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ondras
ondras / f.js
Created November 19, 2010 08:21 — forked from kriskowal/f.js
var ASSERT = require("assert");
var BINARY, Buffer, section, subsection;
exports['test The "binary" module exists'] = function () {
BINARY = require("binary");
};
section = exports['test Constructors'] = {};
section['test A buffer function must exist.'] = function () {