Skip to content

Instantly share code, notes, and snippets.

View feclare's full-sized avatar

Fede Claramonte feclare

View GitHub Profile
@feclare
feclare / libra2openscale.py
Created April 25, 2017 08:53
Simple script to transform libra csv file to openscale format
#!/usr/bin/env python
"""
Simple script to transform libra csv file to openscale format
"""
import sys
import csv
from dateutil.parser import parse
if len(sys.argv) != 2:
print "Missing file to transform\n"
#/bin/bash
# Script to merge all edgex go repos in only one
# It needs the git-subtree.sh command available at
# https://github.com/git/git/blob/master/contrib/subtree/git-subtree.sh
# Notes:
# - It keeps all the commit history (git log)
# But when you get the log from just a file or directory only new commits are
# shown (git log file_or_path)
# - git blame works
func TestGetEvents(t *testing.T) {
reset()
var tests = []struct {
name string
limit int
result int
}{
{"0", 0, 2},
{"-1", 0, 2},