Skip to content

Instantly share code, notes, and snippets.

View eduardo-marcolino's full-sized avatar

Eduardo Marcolino eduardo-marcolino

View GitHub Profile
@eduardo-marcolino
eduardo-marcolino / Hybrid_Providers_Pinterest.php
Created May 24, 2016 14:59
Pinterest auth provider for HybridAuth
<?php
/*!
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2013, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/
/**
* Hybrid_Providers_Pinterest (By Eduardo Marcolino - https://github.com/eduardo-marcolino)
*/
<?php
/**
* Add checkbox field to the checkout
**/
add_action('woocommerce_after_order_notes', 'my_custom_checkout_field');
function my_custom_checkout_field( $checkout ) {
echo '<div id="my-new-field"><h3>'.__('My Checkbox: ').'</h3>';
@eduardo-marcolino
eduardo-marcolino / redis_storage.py
Created July 30, 2013 13:53
A Storage for Credentials that uses Redis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
@eduardo-marcolino
eduardo-marcolino / TimthumbHelper.php
Created June 25, 2012 19:40
Symfony timthumb generator helper
<?php
/**
* Timthumb Helper
* Helper para geração de thumbnails com o timthumb
*
* @see http://www.binarymoon.co.uk/projects/timthumb/
* @author Eduardo Marcolino <eduardo.marcolino@gmail.com>
*
* @param source $image url to image