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 push_to_wpengine { | |
domain="sftp://" | |
user="" | |
password="" | |
localpath="" | |
remotepath="" # no initial slash | |
lftp $domain -u $user,$password -e "mirror --reverse -c --parallel=4 --delete --verbose --no-perms --exclude-glob .DS_Store '$localpath' $remotepath; bye" | |
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 inject_footer() { | |
?> | |
<h6>This code gets injected into the footer</h6> | |
<?php | |
} | |
add_filter( 'wp_footer' , 'inject_footer' ); |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, user = require('./routes/user') | |
, http = require('http') | |
, path = require('path') |
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
/*! | |
* EJS | |
* Copyright(c) 2012 TJ Holowaychuk <tj@vision-media.ca> | |
* MIT Licensed | |
*/ | |
/** | |
* Module dependencies. | |
*/ |
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
{ | |
"name": "sailsplus", | |
"private": true, | |
"version": "0.0.0", | |
"description": "a Sails application boilerplate", | |
"dependencies": { | |
"sails": "0.8.894", | |
"jam": null, | |
"moment": null | |
}, |
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
var stapler = {}; | |
stapler.color = red; | |
stapler.find = function() { | |
var my_stapler = this; | |
$(everybody).each(function() { | |
this.ask("Have you seen" + my_stapler); | |
} | |
} |
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
<ol class="commentlist"> | |
<li class="comment byuser comment-author-admin bypostauthor even thread-even depth-1" id="comment-2"> | |
<div id="div-comment-2" class="comment-body"> | |
<div class="comment-author vcard"> | |
<img alt="" src="#" class="avatar avatar-32 photo" height="32" width="32"> | |
<cite class="fn">admin</cite> <span class="says">says:</span> | |
</div> | |
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 // outside the loop | |
// empty more text on custom excerpt | |
function custom_excerpt_more( $more ) { | |
return ''; | |
} | |
add_filter( 'excerpt_more', 'custom_excerpt_more' ); | |
// instantiate global excerpt string | |
$more_text = "Read More…"; |
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 | |
// PayPal PDT code | |
// read the post from PayPal system and add 'cmd' | |
$req = 'cmd=_notify-synch'; | |
$tx_token = $_GET['tx']; | |
$auth_token = "YOUR TOKEN GOES HERE"; | |
$req .= "&tx=$tx_token&at=$auth_token"; |