To integrate with Express Checkout have your API credentials ready and read on.
Step 1 - Send your transaction data to PayPal (your API credentials are required for safety):
| # This is a template .gitignore file for git-managed WordPress projects. | |
| # | |
| # Fact: you don't want WordPress core files, or your server-specific | |
| # configuration files etc., in your project's repository. You just don't. | |
| # | |
| # Solution: stick this file up your repository root (which it assumes is | |
| # also the WordPress root directory) and add exceptions for any plugins, | |
| # themes, and other directories that should be under version control. | |
| # | |
| # See the comments below for more info on how to add exceptions for your |
| <?php | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses Google Spreadsheet CSV feed | |
| * csvToArray function I think I found on php.net | |
| */ | |
| header('Content-type: application/json'); | |
| // Set your CSV feed |
| $(function(){ | |
| // Namespace the application | |
| var khepin = {}; | |
| // Todo Model | |
| khepin.Todo = Backbone.Model.extend({ | |
| defaults: { | |
| task: null, | |
| done: false |
To integrate with Express Checkout have your API credentials ready and read on.
Step 1 - Send your transaction data to PayPal (your API credentials are required for safety):
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # Alias ST2's command line tool for a shorter (easier-to-remember) name | |
| alias st="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl" | |
| # Search for an open Sublime Text to a function definition | |
| function fx() { | |
| ack "function &?$1\(" | awk {'print $1'} | sed 's/:$//g' | xargs st | |
| } | |
| # Example usage from the root of a WordPress repository |
| curl -D cookie1.txt blog.xrmplatform.org/wp-login.php | |
| # step 1 | |
| # get default cookie of blog and write cookie to cookie1.txt | |
| # step 2 | |
| # simulate browser Firefox( of course , you can use any browser agent<!--more--> what you want!) "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" | |
| # input your username and also password | |
| # write new cookie to cookie2.txt | |
| curl -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" -D cookie2.txt -b cookie1.txt -F log=username -F pwd=password -F testcookie=1 -F wp-submit="Log In" -F redirect_to=blog.xrmplatform.org/wp-admin -F submit=login -F rememberme=forever blog.xrmplatform.org/wp-login.php | |
| # currently cookie2.txt stored all cookie info |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| <?php | |
| /* | |
| * Virtual Themed Page class | |
| * | |
| * This class implements virtual pages for a plugin. | |
| * | |
| * It is designed to be included then called for each part of the plugin | |
| * that wants virtual pages. | |
| * | |
| * It supports multiple virtual pages and content generation functions. |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |