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 | |
/** | |
* Test to see if a given string contains HTML tags | |
*/ | |
function testIfContainsTag($input) | |
{ | |
if (strpos($input, '<') > -1) { | |
return true; | |
} else { | |
return false; |
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 namespace JB; | |
/** | |
* Class NumberHelper Test | |
* @package JB | |
* @author Jarrett Barnett <hello@jarrettbarnett.com> | |
*/ | |
class NumberHelper | |
{ | |
/** | |
* Get Sum of Values Squared By Array Key |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
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/bash | |
# | |
# takes a url like this: | |
# http://www.disneyphotopass.com/api/photostore/getSharedImageList.ashx?ShareToken=[[token]] | |
# and saves all the pictures to ./disneypics | |
# | |
# url can be found by going to http://www.disneyphotopass.com/photoshare.aspx and sharing photos by email. | |
# the link will be in the email | |
[[ -n "$1" ]] || { echo "Please add the share url as a parameter"; exit 0; } |
NewerOlder