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
source ~/ps1.sh | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
alias ls='ls -GFh' | |
alias lsd='ls -d -- */' | |
#/usr/local/bin before /usr/bin | |
#export PATH='/usr/local/bin:$PATH' |
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
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Save and restore snapshot | |
bind 0:ctrl snapshot work3 save-to-disk | |
bind 0:ctrl;alt activate-snapshot work3 | |
# Push Bindings |
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
[alias] | |
lg = log -20 --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn\\ %C(cyan)%cr]" --decorate --abbrev-commit --date=relative | |
who = shortlog -sn | |
dip = diff --patience | |
stat = status -sb | |
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}" | |
word = diff --word-diff=color | |
up = "!git fetch --all -p && git rebase @{u}" | |
mine = "!git lg --author=\"$(git config user.name)\"" | |
aliases = "!git config --list | grep alias | cut -c 7- | sed 's/=//' | column -t -s ''" |
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
function _e () { | |
local color; local escape; local newline; local bold=0 | |
if [[ $1 == "bold" ]]; then | |
shift; bold=1 | |
fi | |
case $1 in | |
white ) color=37 ;; | |
red ) color=31 ;; | |
green ) color=32 ;; | |
yellow ) color=33 ;; |
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 node | |
var fs = require('fs') | |
var path = require('path') | |
var dir = process.argv[2] | |
if (!dir) throw new Error('Usage: ./chess.js path-to-pgn-files/ ') | |
var white = 0 | |
var black = 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
;(function () { | |
var doc = document.documentElement | |
var IE7 = navigator.userAgent.indexOf('MSIE 7') > 0 | |
logpane = document.createElement('div') | |
var height = 180 | |
var width = 480 | |
document.body.appendChild(logpane) | |
logpane.style.background = '#fff' | |
logpane.style.padding = '10px' | |
logpane.style.position = IE7 ? 'absolute' : 'fixed' |
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
Verifying I am +ricardobeat on my passcard. https://onename.com/ricardobeat |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
</head> | |
<body> | |
<!--Site--> | |
<div id="site"> | |
<!--container--> | |
<div id="container"> |
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
function testAttributeSupport() { | |
var head = document.getElementsByTagName('head')[0]; | |
var style = document.createElement('style'); | |
var s = 'div[id] {}'; | |
style.type = 'text/css'; | |
if (style.styleSheet) | |
style.styleSheet.cssText = s; | |
else | |
style.appendChild( document.createTextNode(s) ); |
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
w = new Stream('net://'+jsArguments[0]); | |
r = true; | |
while(r){ | |
sleep(500); | |
txt = system.stdin.readLine(); | |
if (txt) { | |
w.writeln( txt ); | |
} | |
if (txt == 'quit'){ | |
r = false; |
OlderNewer