Requires:
-
Homebrew (http://mxcl.github.io/homebrew/)
-
Ruby
Verify Homebrew is not sick:
brew doctor
<?php | |
/** | |
* Simple FTP Class | |
* | |
* @package SFTP | |
* @name SFTP | |
* @version 1.0 | |
* @author Shay Anderson 05.11 | |
* @link shayanderson.com | |
* @license http://www.gnu.org/licenses/gpl.html GPL License |
<h3><?php echo __('Upload CSV'); ?></h3> | |
<form action="" method="post" enctype="multipart/form-data"> | |
<tr> | |
<td width="20%"><?php echo __('Select file'); ?></td> | |
<td width="80%"><input type="file" name="file" id="file"/></td> | |
</tr> | |
<tr> |
<?php | |
/** | |
* TODO: Replace cptname with name of custom post type | |
* TODO: Replace Screen Title Text Here with the content for the title box | |
*/ | |
function custom_cptname_title( $title ){ | |
$screen = get_current_screen(); | |
if ( 'cptname' == $screen->post_type ) { | |
$title = 'Screen Title Text Here'; |
// replace $username= with correct username | |
function rb_latest_tweet($username = 'rachelbaker', $include_date = true){ | |
$twitter_feed_url = "https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=0&screen_name=$username&count=3"; // will show 3 most recent tweets, can change value if needed // | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $twitter_feed_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
$alltweets = curl_exec($ch); |
Requires:
Homebrew (http://mxcl.github.io/homebrew/)
Ruby
Verify Homebrew is not sick:
brew doctor
/** | |
* Copy a single file or recursively copy a directory along with all contents | |
* @param string $source Source path | |
* @param string $dest Destination path | |
* @return bool Returns TRUE on success, FALSE on failure | |
*/ | |
function copyr($source, $dest) | |
{ | |
// if only one file | |
if (is_file($source)) { |
/** | |
* Extending the Local Storage Object to allow saving of objects. | |
* | |
* @param int|string key object key | |
* @param int|string value object value | |
* @return bool true|false | |
*/ | |
Storage.prototype.setObject = function(key, value) { | |
this.setItem(key, JSON.stringify(value)); | |
}; |
html { | |
font-size: 93.8%; | |
background-color: #f1f2f3; | |
background-image: | |
-webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
-webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
background-image: | |
-moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
-moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
background-image: |
Requires:
Verify Homebrew is not sick:
brew doctor
Install Node (with NPM) with Homebrew: