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
inoremap jj <Esc>`^ | |
set ignorecase | |
set smartcase | |
set scrolloff=3 | |
set history=1000 |
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
/** | |
* Macros to make $q Promises better in IE8 | |
* | |
* Tested with v0.6.0 of sweet.js | |
*/ | |
/** | |
* These operator macros will take `.catch` and `.finally` method invocations | |
* and transform them into IE8 safe variants. | |
*/ |
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 | |
// Array Literal support | |
$my_array = [ | |
'you can use', | |
'[]', | |
'now' | |
]; | |
// This used to be a parse error in PHP 5.3. |
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 Create_Users_Table { | |
/** | |
* Make changes to the database. | |
* | |
* @return void | |
*/ | |
public function up() { |
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 python | |
# | |
# Copyright (c) 2012 Felipe Contreras | |
# | |
# Inspired by Rocco Rutte's hg-fast-export | |
# Just copy to your ~/bin, or anywhere in your $PATH. | |
# Then you can clone with: | |
# git clone hg::/path/to/mercurial/repo/ |
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
<Alloy> | |
<Window title="Comments" id="gameComments"> | |
<LeftNavButton> | |
<Button id="leftButton" title="Back" onClick="popWindow" /> | |
</LeftNavButton> | |
<TableView id="commentsTable" /> | |
<View id="writeComment"> | |
<TextField id="commentText"/> | |
<Button id="sendBtn" /> | |
</View> |
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
public class TreeNode | |
{ | |
private Comparable value; | |
TreeNode left, right; | |
public TreeNode(Comparable initValue) | |
{ | |
value = initValue; | |
left = null; | |
right = null; |
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
import java.util.Scanner; | |
public class BinarySearchTree extends BinaryTree | |
{ | |
public void insert(Comparable item) | |
{ | |
if (getRoot() == null) | |
setRoot(new TreeNode(item)); | |
else | |
{ |
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
RewriteEngine on | |
RewriteCond $1 !^(index\.php|public|stylesheets|images|javascripts|robots\.txt) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] |
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
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Sep 24 2012 01:10:22) | |
MacOS X (unix) version | |
Included patches: 1-646 | |
Compiled by [email protected] | |
Huge version with MacVim GUI. Features included (+) or not (-): | |
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent | |
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments | |
+conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con_gui +diff | |
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi | |
+file_in_path +find_in_path +float +folding -footer +fork() +fullscreen |
NewerOlder