View CityStateSeeder.php
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 | |
use Illuminate\Database\Seeder; | |
class CityStateSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
View .htaccess
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^test$ ../56c63.php [L] | |
</IfModule> |
View FileCache.php
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 | |
define('DS', DIRECTORY_SEPARATOR); | |
class FileCache | |
{ | |
public static $options = array( | |
'folder' => 'tmp', | |
'prefix' => 'havaianas_cache_', | |
'expires' => '+20 minutes' | |
); |
View install_mcrypt.sh
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 | |
# Script for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion) | |
# Initially forked from https://gist.github.com/n3b/4060272 | |
if [ -z "$PHP_AUTOCONF" ]; then | |
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz | |
tar xzf autoconf-latest.tar.gz | |
cd autoconf-* | |
./configure --prefix=/usr/local |
View click.js
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
var evt = document.createEvent("MouseEvents"); | |
evt.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, | |
false, false, false, false, 0, null); | |
var el = document.getElementById('bigCookie'); | |
window.setInterval(function click() { | |
el.dispatchEvent(evt); | |
},100); |
View ishostmethod.js
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 isHostMethod(object, property) { | |
var t = typeof object[property]; | |
return t=='function' || | |
(!!(t=='object' && object[property])) || | |
t=='unknown'; | |
} |
View .vimrc
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
" Identation settings | |
set expandtab | |
set tabstop=4 | |
set smarttab | |
set shiftwidth=4 | |
" Display line number | |
set number | |
" Enable mouse integration | |
set mouse=a |
View git_completion.sh
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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |