sudo apt-get install libncurses5-dev libx11-dev libxpm-dev libxt-dev libxtst-dev python-dev ruby-dev mercurial liblua5.2-dev libperl-dev tcl-dev
mkdir vim
cd vim
hg clone https://code.google.com/p/vim/ .
./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp --with-x --enable-cscope --enable-multibyte --enable-perlinterp --enable-luainterp --enable-tclinterp
make
sudo make install
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
<input type="text" onchange="var that=this;setTimeout(function(){do_this(that.value);},50);" onkeypress="this.onchange();" onpaste="this.onchange();" oncut="this.onchange();" oninput="this.onchange();"> | |
<script type="text/javascript"> | |
function do_this(value) { | |
console.log(value); | |
} | |
</script> |
##vim
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
##vim via html file
<!-- vim: set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab: -->
note: putting it before DOCTYPE will cause problems with IE (quirks mode)
##encode
console.log(unescape(encodeURIComponent("string to be encoded")));
##with escape formatting
console.log(encodeURIComponent("string to be encoded").replace(/%.{2}/g, function(v) { return "\\x" + v.substring(1, 3).toLowerCase(); }));
this will be displayed, formatted with \x for use as escape sequences in various languages
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
$connection = null; /* should be initialized only when needed in query() */ | |
/** | |
* sql query result object | |
* easily iterate/re-iterate from a query() call | |
*/ | |
class QueryResult { | |
private $sql_result; | |
public function __construct($sql_result) { |
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
enter following as integration command in conemu settings: | |
c:\cygwin64\bin\mintty.exe /bin/sh -lc 'cd "$(cygpath "${%ConEmuWorkDir%}")"; exec bash' |
I hereby claim:
- I am xxami on github.
- I am lilah (https://keybase.io/lilah) on keybase.
- I have a public key whose fingerprint is 8049 EB3F 4A30 6E5D 202B 5593 1EEE D9B0 49D7 9049
To claim this, I am signing this object:
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
version: '2' | |
vars: | |
cc: cc | |
cflags: -std=c18 -pedantic -Wall -fstack-protector-strong -O2 | |
tasks: | |
build: | |
silent: true |
OlderNewer