This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func TestGetEvents(t *testing.T) { | |
reset() | |
var tests = []struct { | |
name string | |
limit int | |
result int | |
}{ | |
{"0", 0, 2}, | |
{"-1", 0, 2}, |