Skip to content

Instantly share code, notes, and snippets.

@paulakg4
paulakg4 / fiddle.css
Created November 18, 2011 20:03 — forked from zalun/fiddle.css
Demo for jsFiddle
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
@paulakg4
paulakg4 / fiddle.css
Created November 18, 2011 20:05 — forked from zalun/fiddle.css
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}

Python Number Conversion Chart

From To Expression
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_upsells', 15 );
if ( ! function_exists( 'woocommerce_output_upsells' ) ) {
function woocommerce_output_upsells() {
woocommerce_upsell_display( 3,3 ); // Display 3 products in rows of 3
}
}
@paulakg4
paulakg4 / gist:5609036
Created May 19, 2013 21:16
iPython Notebook example of how to ssh into a remote server and make a local sql backup- uses the sakila library.
{
"metadata": {
"name": "Remote SSH MYSQL DUMP "
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Bitnami Wordpress Admin Commands"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@paulakg4
paulakg4 / syncDocsToSite
Last active December 17, 2015 13:29
Google Apps Script that takes a list of Google Docs Folders and puts any files found in those folders onto a specified Google Sites 'List' Page -does not recurs into folders...yet
function syncUSnewsletters()
{
Logger.clear();
var done = false;
//----Put your folder id's here-v
var folders = ["0B5McCjQAGnGQUTR3N3hiZUNCeEk", "0B5McCjQAGnGQNzljZmMzNjgtZDg1Ni00MDg1LTkxZTYtOTlmN2EwY2JlNDA1", "0B5McCjQAGnGQYzc0YzNiNDgtYjk4ZC00YmVmLTk2MTQtYzVlNjdjYTVkNWVi", "0B5McCjQAGnGQMTk5ZjhlMDctMzU5Ni00MTliLWI3MTItOTM1MzJiM2RmYzQz", "0B5McCjQAGnGQNWYzMTdiYzAtOTFmNi00NzVlLThlY2UtNWU3MTFkOTk2YTNm"];
//---And the Google Sites 'List Page' here-V