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
test |
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 ruby | |
require 'rubygems' | |
require 'rubygems/gem_runner' | |
require 'rubygems/exceptions' | |
require 'readline' | |
module Gem | |
class StreamUI | |
def say( statement = '' ) | |
@@buffer ||= [] |
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 bash | |
if [[ -z $1 ]]; then | |
echo 'you must specify a shortcut name' | |
exit | |
fi | |
dir="$(pwd)" | |
echo "$1=\"$dir\"" >> ~/.bashrc |
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
" taken from http://www.vim.org/tips/tip.php?tip_id=860 | |
" CountMatches counts the number of times a pattern matches a | |
" range of lines | |
function! CountMatches(pattern, startline, endline) range | |
let l:match_count = 0 | |
let l:restore_cursor = "normal!" . line(".") . "G" . virtcol(".") . "|" | |
normal! H | |
let l:restore_screen = line(".") . "normal!zt" |
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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by git-commit with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
HOOK_PATH=$(dirname $(readlink -f "$0")) | |
tmp="$HOOK_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
<?php | |
class Foo | |
{ | |
public function __construct() | |
{ | |
sleep( 1 ); | |
} | |
} |
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
/** | |
* TableSorter | |
* @param: options (request,action,destination,prev,next,rows,method,head) | |
* @return void; | |
*/ | |
var TableSorter = new Class({ | |
Implements: [Options], | |
options:{ | |
request: '', action: '', destination: '', prev: '', next: '', rows: 50, method: 'get', head: '' | |
}, |
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
>>> parseInt( '', 10 ) | |
NaN | |
>>> typeof( parseInt( '', 10 ) ) | |
"number" |
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
" File: tab_name.vim | |
" Author: Nickolay Golubev | |
" Email: [email protected] | |
" Description: script allow set names for tab pages ( "Call stack", "Help tab", "Broswser" for example ). Useful for console tab mode | |
" Usage: | |
" :TName 'tabname' - set name for current tab page | |
" :TNoName - remove name (page name = buffer name) | |
if exists('tab_name_plugin') | |
finish |
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
<?php | |
/** | |
* PHPSpec | |
* | |
* LICENSE | |
* | |
* This file is subject to the GNU Lesser General Public License Version 3 | |
* that is bundled with this package in the file LICENSE. | |
* It is also available through the world-wide-web at this URL: | |
* http://www.gnu.org/licenses/lgpl-3.0.txt |