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 | |
/** | |
* I had to parse an XLSX spreadsheet (which should damn well have been a CSV!) | |
* but the usual tools were hitting the memory limit pretty quick. I found that | |
* manually parsing the XML worked pretty well. Note that this, most likely, | |
* won't work if cells contain anything more than text or a number (so formulas, | |
* graphs, etc ..., I don't know what'd happen). | |
*/ |
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
{ | |
"listen": [ null, 7890 ], | |
"verbose": true, | |
"color": { | |
"gamma": 2.5, | |
"whitepoint": [ 0.9, 0.9, 0.9 ] | |
}, | |
"devices": [ | |
{ | |
"type": "fadecandy", |
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 | |
/** | |
* Remove all WordPress-specific stylesheets from WordPress login screen | |
*/ | |
/** | |
* Force-remove login-related styles. Can't use the regular method of login_enqueue_scripts | |
* due to wp_admin_css running before login_enqueue_scripts | |
* |
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 | |
add_action('init', 'theme_post_types'); | |
/** | |
* Reqister Post-Types | |
* | |
* @return void | |
*/ | |
function theme_post_types() | |
{ | |
//example #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
<?php | |
/* States */ | |
$us_states = array( | |
'alabama' => 'Alabama', | |
'alaska' => 'Alaska', | |
'arizona' => 'Arizona', | |
'arkansas' => 'Arkansas', | |
'california' => 'California', | |
'colorado' => 'Colorado', |
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
AL : ALABAMA | |
AK : ALASKA | |
AS : AMERICAN SAMOA | |
AZ : ARIZONA | |
AR : ARKANSAS | |
CA : CALIFORNIA | |
CO : COLORADO | |
CT : CONNECTICUT | |
DE : DELAWARE | |
DC : DISTRICT OF COLUMBIA |
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
<select name="State"> | |
<option value="" selected="selected">Select a State</option> | |
<option value="AL">Alabama</option> | |
<option value="AK">Alaska</option> | |
<option value="AZ">Arizona</option> | |
<option value="AR">Arkansas</option> | |
<option value="CA">California</option> | |
<option value="CO">Colorado</option> | |
<option value="CT">Connecticut</option> | |
<option value="DE">Delaware</option> |
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 | |
/** | |
* My Project | |
* | |
* @package MyProject | |
* @subpackage JesGs_Walker_Category | |
* @author Jess Green <jgreen@psy-dreamer.com> | |
* @version $Id$ | |
*/ |
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
" General | |
set number | |
set showbreak=+++ | |
set showmatch | |
set visualbell | |
"set mouse=a "for mouse support | |
set hlsearch | |
set smartcase | |
set ignorecase |
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
export APPLICATION_ENV=development | |
export SVN_EDITOR='/usr/bin/vim' | |
alias la='ls -la --color' | |
PS1="[\h:\\W] $ " | |
#source ~/.gitsource |