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 | |
/** | |
* GGWooCommerceProductTab class. | |
* | |
* Displays a new tab with an editor for every instance created and controls it saving. | |
*/ | |
class GGWooCommerceProductTab | |
{ | |
/** |
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 | |
// Add to functions.php | |
/*=================================================== | |
Created by sk from Renegade Empire with help | |
from these sources: | |
http://docs.woothemes.com/document/editing-product-data-tabs/ | |
http://www.sean-barton.co.uk/2013/03/remove-woocommerce-20-reviews-tab/#.UYnWe7XfB6N |
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 | |
# CONNECTION to MySQL | |
DB_CON_USER="" | |
DB_CON_PASS="" | |
# THIS is what we want to create. | |
# @see http://dev.mysql.com/doc/refman/5.0/en/identifiers.html | |
DB_NAME="" # Max. length. [1-9] (For unquoted) | |
DB_USER="" # Max. length. [1-9] (For unquoted) |
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 | |
# MySQL connection details | |
DB_CON_USER="" | |
DB_CON_PASS="" | |
# What to delete? | |
DB_NAME="" | |
DB_USER="" |
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
.config(function($stateProvider) { | |
$stateProvider.state('books.single.content.chapter.page', { | |
url: '/page/{pageId:int}', | |
resolve: { | |
Page: function(Chapter, $stateParams) { | |
return Chapter.one('pages', $stateParams.pageId).get() | |
} | |
}, | |
onEnter: function(Page, Restangular, $document, $state, $mdDialog) { | |
//console.log("Entering state", Chapter.one('pages', $stateParams.pageId).get()) |
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
// Data location | |
const ENV_EMAIL = 'email'; | |
const ENV_HOST = 'hostname'; | |
const ENV_PASS = 'password'; | |
const ENV_TOKEN = 'idToken'; | |
/** | |
* Determine if a token is expired already | |
*/ | |
function isTokenExpired(idToken) { |