Skip to content

Instantly share code, notes, and snippets.

Process: Chocolat [593]
Path: /Applications/Chocolat 3.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Chocolat [593]
User ID: 501
Date/Time: 2014-12-15 14:39:55.682 +0000
@rogernolan
rogernolan / gist:95ea615164e343b3bc54
Last active November 6, 2015 19:57
Parse.com Cloudcode to Loggly logger
///
/// A very simple Loggly client for Parse.com cloudcode.
/// Usage:
/// logger = require('cloud/libs/logger');
/// logger.setToken('your-loggly-token', 'appname'); // Appname is optional.
///
/// logger.log("A String to Log", {'key': 'Extra fields to add to loggly entry'});
/// /// The logger will add a few fields replicating the iOS client fields to help filtering and setting up a grid view on Loggly.
///
/// logger.setConsoleLogging(false); // Stop the logger exhoing to Parse's console.
curl -b cookies.txt -c cookies.txt -X POST -H "Content-Type: application/json" -d '{"email":1,"password":1}' ec2-54-195-205-27.eu-west-1.compute.amazonaws.com/login && curl -b cookies.txt -c cookies.txt "ec2-54-195-205-27.eu-west-1.compute.amazonaws.com/api/v1/meter/0021ed200016/history?from=123456&to=123456778989"
@rogernolan
rogernolan / import-export.py
Created October 29, 2012 09:03
Suunto -> garmin GPX
#!/usr/bin/env python
import argparse
import xml.etree.ElementTree as ET
def main():
parser = argparse.ArgumentParser(description='Reporcess a Suuto GPX file to Garmin format')
parser.add_argument('input', help='Input filename')
parser.add_argument('output', help='output filename')