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 | |
if [ ! $1 ]; then | |
echo "Usage:" | |
echo " $0 site_shortname" | |
echo "Example:" | |
echo " $0 acme" | |
exit | |
fi |
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
$ git st | |
M contact.html | |
M contact.php | |
$ git add contact.html | |
$ git st | |
A contact.html | |
M contact.php | |
$ git ci -m "Add required attribute to form fields" |
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
/results | |
Primary Payload: result_number, photographer_id, distance | |
Sideload Payload: Full Photographer Objects for each search result | |
Meta Payload: seed, pagintation data | |
/photographers/:id | |
Primary Payload: Full photographer object, including specialties | |
/specialties | |
Primary Payload: Full list of specialties |
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
{exp:weblog:entries weblog="category-page" status="open|closed"} | |
<?php $contentListTag = "{content-list-tag}" ?> | |
{/exp:weblog:entries} | |
{exp:simpletag:taglist tagname="<?php echo $contentListTag ?>"} | |
{exp:weblog:entries entry_id="{tagged_entries}" limit="10" orderby="view_count_one" sort="desc" dynamic="off" paginate="both"} | |
{embed=includes/page-teaser title="{title}" detail-page-thumbnail="{detail-page-thumbnail}" page_uri="{page_uri}" summary_text="{summary_text}" featured-content-new="{embed:featured-content-new}"} |
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 renderProductsForm($products) { | |
echo '<form action="#">'; | |
foreach ($products as $key => $value) { | |
echo "<label>{$key}</label>"; | |
echo "<input type='text' name='{$key}' />"; | |
} | |
echo '<input type="submit">'; | |
echo '</form>'; | |
} |
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 "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap gapple/services | |
brew install caskroom/cask/brew-cask | |
brew install composer | |
brew install hub | |
brew install node | |
brew install git | |
brew install sphp | |
brew install ssh-copy-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
<!doctype html> | |
<html class=" no-js" lang="en"> | |
<!--<![endif]--> | |
<head> | |
</head> | |
<body> | |
<div class="global-message-wrapper notification_error"> | |
</div> | |
<div class="pl-solo header-wrapper"> |
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
<head> | |
<style> | |
p { | |
margin: 0 0 1em 0; | |
} | |
</style> | |
</head> | |
<body> | |
<p>My first paragraph</p> | |
<p>My second paragraph</p> |