Skip to content

Instantly share code, notes, and snippets.

View albertojacini's full-sized avatar

Alberto Jacini albertojacini

View GitHub Profile
import * as React from 'react'
import { PayPalButton } from 'react-paypal-button-v2'
import Typography from '@material-ui/core/Typography'
import { PAYMENT_GATEWAYS, YG_EMAIL_BASE } from 'config'
import { Checkout as CheckoutInterface } from 'lib/queries/generatedTypes/Checkout'
interface PaypalOrderParams {
@albertojacini
albertojacini / gist:0d28e9d8f2f9724b34cb
Created June 28, 2014 14:15
Angular groupBy filter
/*
* Inspired by http://stackoverflow.com/a/20645945
*/
app.filter('groupBy', ['$parse', function ($parse) {
return function (list, group_by) {
function addChangedTag (item, field) {
item[field + '_CHANGED'] = true;
}
@albertojacini
albertojacini / fabfile.py
Last active December 17, 2015 16:59
Fabfile for deployment on Webfaction
# Fabfile for deployment on Webfaction
from fabric.api import *
# This is used by fabric to login in the server and must be set to the Webfaction account username.
env.user = 'iperborea'
### Define roles ###
def staging():