Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Created September 17, 2020 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/3a978b07b753f6bc8c94d0d25c36556b to your computer and use it in GitHub Desktop.
Save iaindooley/3a978b07b753f6bc8c94d0d25c36556b to your computer and use it in GitHub Desktop.
Extract DB files
function parseDbFileSomehow()
{
//Is it a CSV? Tab delimited?
//Use Google Drive API to getBlob() and parse into lines
return file_lines;
}
function createCards()
{
var lines = parseDbFileSomehow();
var target_list = new Trellinator().board("My Board").list("Inbox");
for(var i = 0;i < lines.length;i++)
{
Card.create(target_list,{name: lines[0],desc: lines[1]});//replace with your actual format
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment