This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
brew update && brew upgrade && brew cleanup |
<?php | |
//EST is 3 hours foward of LA time | |
date_default_timezone_set('America/Los_Angeles'); | |
$date = date("Y-m-d", time() + 3600 * 3); | |
<?php | |
/** | |
* @Author Anonymous | |
* @link http://www.redrokk.com | |
* @Package Wordpress | |
* @SubPackage RedRokk Library | |
* @copyright Copyright (C) 2011+ Redrokk Interactive Media | |
* | |
* @version 2.0 | |
*/ |
<?php | |
/* | |
This is a very tiny proof-of-concept SMTP client. Currently it's over 320 characters (if the var names are compressed). Think you can build one smaller? | |
*/ | |
ini_set('default_socket_timeout', 3); | |
$user = '[email protected]'; | |
$pass = ''; | |
$host = 'ssl://smtp.gmail.com'; |
// Query arguments | |
$popular_args = array( | |
'posts_per_page' => $size, | |
'meta_key' => '_base_popular_posts_count', | |
'orderby' => 'meta_value_num' | |
'year' => date('Y'), // Current year | |
'monthnum' => date('n') // Current month | |
); |
<?php | |
include '../vendor/autoload.php'; | |
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
$classLoader->register(); | |
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
$classLoader->register(); | |
// config | |
$config = new \Doctrine\ORM\Configuration(); |
#!/usr/bin/python | |
# | |
# Example usage | |
# $ ./gangnam.py | gnuplot | |
# 9 | |
# 0 0 | |
# 1 1 | |
# 2 2 | |
# 0 2 | |
# 1 1 |
<?php | |
//cache file | |
$cachefile = 'cached/'.date('M-d-Y').'.php'; | |
//Total time the file will be cached in seconds set to 10 hours | |
$cachetime = 36000; | |
//If the cache file already exists and the cache file is over 10hours old then display the cache file | |
if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) { | |
include($cachefile); |