If you like to have an extra window for editing files with vim, you may either install/use GVim or you can simply make vim run inside xterm.
You'll need (at least) VIM 7.3 and XTerm 276.
#!/bin/bash | |
# Fallback base64 en-/decoder for systems that lack a native implementation | |
# | |
# @param ... - flags | |
which base64 &>/dev/null || { | |
# if even od is missing | |
which od &>/dev/null || od() | |
{ | |
local C O=0 W=16 |
#!/usr/bin/env bash | |
############################################################################## | |
#### MIME interface | |
############################################################################## | |
# Parse message in MIME format and create a temporary cache directory | |
mime_parse() | |
{ | |
MIME_CACHE=${MIME_CACHE:-`mktemp -d ${BIN}.XXXXXXXXXX`} |
package de.markusfisch.android.textrect.widget; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.RectF; | |
import android.view.View; | |
import de.markusfisch.android.textrect.graphics.TextRect; |
/** | |
* A small and simple hovering image viewer | |
* | |
* @param loadingHtml - HTML snippet to show while loading (optional) | |
*/ | |
function ImageViewer( loadingText ) | |
{ | |
/** Text to show while loading */ | |
this.loadingText = loadingText ? | |
loadingText : |
#!/usr/bin/env bash | |
# Remove blanks | |
remove_blanks() | |
{ | |
[[ $N == *[' ']* ]] || return | |
mv_to "$P/${N// /}" | |
} | |
# Convert hypens to underscores |
------------------------------------------------------------------------------ | |
-- local members | |
------------------------------------------------------------------------------ | |
local devWidth, devHeight = 0, 0 | |
local viewport = nil | |
local layer = nil | |
local quad = nil | |
local prop = nil | |
local imgWidth, imgHeight = 0, 0 |
# Simply put that into your ~/.profile or ~/.bash_aliases | |
# Auto-complete BSD/OSX find to behave like GNU find | |
# | |
# @param ... - find params | |
find --version &>/dev/null || find() | |
{ | |
local P= | |
[ -d "$1" ] || P=. | |
command find $P "$@" |