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
filetype on " Automatically detect file types. | |
set nocompatible " We don't want vi compatibility. | |
"Add recently accessed projects menu (project plugin) | |
set viminfo^=! | |
" Minibuffer Explorer Settings | |
let g:miniBufExplMapWindowNavVim = 1 | |
let g:miniBufExplMapWindowNavArrows = 1 | |
let g:miniBufExplMapCTabSwitchBufs = 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
#!/bin/sh | |
if [ -e ~/.vim ]; then | |
echo "WARNING: pls backup your ~/.vim and \n rm -rf .vim " | |
exit | |
fi | |
if [ -e ~/.vimrc ]; then | |
echo "WARNING: pls backup your ~/.vimrc and \n rm ~/.vimrc " | |
exit |
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 curl http://gist.github.com/166924.txt | sh | |
else | |
echo curl http://gist.github.com/$1.txt | sh | |
fi |
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
// 用 prototype 得到已经选择中的 checkbox | |
$$('tbody input[type=checkbox]:checked').size() |
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
using System; | |
using System.Diagnostics; | |
namespace csharp_station.howto | |
{ | |
/// <summary> | |
/// Demonstrates how to start another program from C# | |
/// </summary> | |
class ProcessStart | |
{ |
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
分页打印 分页符号 | |
<div class="page_symbol"> </div> | |
.page_symbol { | |
page-break-after: always; | |
} |
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
run "rm public/index.html" | |
generate(:scaffold, "post title:string body:text") | |
route "map.root :controller => :posts" | |
rake("db:migrate") |
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 remove_blank_line(txt) { | |
return txt.replace(/^\s*\n/gm, ''); | |
} |
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 | |
ruby script/plugin install git://github.com/alvin2ye/dry_view.git --force |
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
<%= javascript_tag " Event.observe(window, 'load', move_to_pos(#{@tpl.el_ids_arr.to_json}, #{@tpl.el_pos.to_json}));" -%> |