Skip to content

Instantly share code, notes, and snippets.

View manuelep's full-sized avatar

Manuele manuelep

  • Gter (https://www.gter.it/)
  • Genova (GE)
View GitHub Profile
@manuelep
manuelep / wc-free-checkout-fields.php
Last active March 18, 2019 15:25 — forked from bekarice/wc-free-checkout-fields.php
Simplify WooCommerce checkout fields for free checkouts
<?php // only copy if needed
/**
* Removes coupon form, order notes, and several billing fields if the checkout doesn't require payment.
*
* Tutorial: http://skyver.ge/c
*/
//function sv_free_checkout_fields() {
// first, bail if the cart needs payment, we don't want to do anything
if ( WC()->cart && WC()->cart->needs_payment() ) {
@manuelep
manuelep / test_map.py
Created January 10, 2019 09:50 — forked from fdrcslv/test_map.py
test_map.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
from swissknife.script import common_setup
import plotly.graph_objs as go
import plotly.io as pio
parser = argparse.ArgumentParser(
@manuelep
manuelep / conf.py
Last active June 27, 2017 21:15 — forked from giuserpe/conf.py
class conf:
def __init__(self, path):
self.config = configparser.SafeConfigParser()
self.config.read(path)
self.path = path
def write(self, section, option, value):
"""
http://www.programcreek.com/python/example/1033/ConfigParser.SafeConfigParser