start new:
tmux
start new with session name:
tmux new -s myname
Up for grabs: | |
gkermit progress meter | |
diff -u -ur org/gkermit.c ./gkermit.c | |
--- org/gkermit.c 1999-12-27 03:11:19.000000000 +0100 | |
+++ ./gkermit.c 2016-02-29 15:45:29.000000000 +0100 | |
@@ -89,6 +89,10 @@ | |
int recvtype = 0; /* Type of last packet received */ | |
int datalen = 0; /* Length of received data field */ | |
#!/bin/bash | |
if [[ $# -lt 1 ]] ;then | |
echo "Inspect json files in your browsers devtools" | |
echo "Usage: jsonvis <file>" | |
exit | |
fi | |
( printf "console.log('FILE: $1\134n-----------\134n', "; cat $1 ; echo ");" ) > /tmp/jsonvis.js | |
cat << EOF > /tmp/jsonvis.html |
#!/bin/bash | |
mkdir -p bundle | |
cd bundle | |
# Maintain your list of plugins here | |
(cat << EOF | |
https://github.com/vim-scripts/matchit.zip | |
https://github.com/JalaiAmitahl/maven-compiler.vim | |
https://github.com/junegunn/vim-easy-align | |
EOF | |
) | \ |
" Disaster prevention | |
vmap u <Esc> | |
vmap U <Esc> | |
vnoremap gu u | |
vnoremap gU U |
function! JumpBuffers() | |
let jumptxt = "" | |
redir! => jumptxt | |
silent jumps | |
redir END | |
let byName = {} | |
let byIndex = [] | |
for line in reverse(split(jumptxt, '\n')) | |
let name = strpart(line, 16) | |
let bufno = bufnr(name) |
/** | |
* A function for converting hex <-> dec w/o loss of precision. | |
* | |
* The problem is that parseInt("0x12345...") isn't precise enough to convert | |
* 64-bit integers correctly. | |
* | |
* Internally, this uses arrays to encode decimal digits starting with the least | |
* significant: | |
* 8 = [8] | |
* 16 = [6, 1] |
function Gauge(placeholderName, configuration) | |
{ | |
this.placeholderName = placeholderName; | |
var self = this; // for internal d3 functions | |
this.configure = function(configuration) | |
{ | |
this.config = configuration; | |
#!/usr/bin/env node --harmony | |
// jshint esversion: 6 | |
// ported to Node from https://gist.github.com/graven/921334 | |
// Demonstrate using es6 generators | |
// console.log("color indexes should be drawn in bold text of the same color.\n"); | |
function pad(elm, len, base) { | |
let str = base ? elm.toString(base) : elm; | |
let padding = base ? "00000000000000000000" : " "; | |
return str.length >= len ? str : (padding+str).substr(0-len); |