Skip to content

Instantly share code, notes, and snippets.

View geraldoramos's full-sized avatar

Geraldo Ramos geraldoramos

View GitHub Profile
@geraldoramos
geraldoramos / smartmetronome.ino
Created November 6, 2017 02:42
Smart metronome by Geraldo Ramos
/**
* Smart Metronome experiment
* @author Geraldo Ramos
* @date 2017.11
*
* Copyright (c) 2016 Geraldo Ramos. \n\n
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version. \n\n
---
**prime-style membership advantages**
1. User usage increase: Prime customers spend 130% more than regular Amazon customers
2. Cheaper financial commitment is easier to sell and scale.
3. Does not affect enterprise sales, since selling in bulks/prepaid is still part of the game. Membership are for individuals
4.
---
**prime-style membership advantages**
1. User usage increase: Prime customers spend 130% more than regular Amazon customers
2. Cheaper financial commitment is easier to sell and scale.
3. Does not affect enterprise sales, since selling in bulks/prepaid is still part of the game. Membership are for individuals
4.
import simplejson
import json
def put(data, filename):
try:
jsondata = simplejson.dumps(data, indent=4, skipkeys=True, sort_keys=True)
fd = open(filename, 'w')
fd.write(jsondata)
fd.close()
except: