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
testing, can these be downloaded? deleted? Edited, yes. Does anyone else see the download link? | |
OK, I see the delete link at the bottom. So yes, they can be deleted. |
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
*.pbxproj -crlf -diff -merge |
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 | |
/** | |
* Make a copy of this file named wp-config-db.php | |
* wp-config-db SHOULD NOT be version controled, add it to gitignore | |
* Use this to store database access information so the main | |
* wp-config.php file can be modified and version controlled. | |
*/ | |
/** | |
* Debug block, set WP_DEBUG to false to disable this on the live site |
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
ruby -e 'Dir.glob("*@2x.*").each { |f| %x[ git mv #{f} #{f.gsub("@", "_")} ] }' |
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
// Add to the options object when initializing MediaElement.js players for high-quality scaling | |
// found in source file mediaelement-and-player.js:1192, adds "smoothing=true" to flashvars | |
enablePluginSmoothing: true |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
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
# https://gist.github.com/joemaller/4503986 | |
# | |
# A set of color functions to help with fancy $PS1 prompts | |
# | |
# This: | |
# PROMPT_COMMAND='PS1="\e[32;1m\]\u@\[\e[35;1m\]\H \[\e[0m\]\w]\$ "'' | |
# | |
# Can be more clearly written as: | |
# PROMPT_COMMAND='PS1="$(DARK_GREEN \\u@)$(PURPLE \\H) \w]\$ "'' | |
# |
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
# https://gist.github.com/joemaller/4527475 | |
# | |
# A simple bash function for coloring the current git branch. | |
# - Red: Tree is dirty | |
# - Yellow: All modified files are staged | |
# - Green: Tree is clean | |
# | |
# This uses the color functions from https://gist.github.com/4503986 | |
function git_branch() { |
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 | |
# This script bootstraps a basic ruby rbenv environment using Homebrew | |
# | |
# Should be executed in the current shell by calling from source (or dot): | |
# $ source ./.rbenv | |
# $ . ./.rbenv | |
RUBY_VERSION='1.9.3-p362' |
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 function array_sortByKey($arr, $key) | |
{ | |
$sort_on_key = function ($a, $b) use ($key) { | |
$a[$key] = (isset($a[$key])) ?: null; | |
$b[$key] = (isset($b[$key])) ?: null; | |
return strnatcmp($a[$key], $b[$key]); | |
}; | |
usort($arr, $sort_on_key); | |
return $arr; | |
} |
OlderNewer