This file contains hidden or 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
###### | |
## normalize_dates.py | |
## this will search for any 1* or 2* in the title, then will process each note returned using pythons regular expressions | |
## if a date is detected in any of these formats: YYMMDD, YYYYMMDD, YY-MM-DD, YY_MM_DD, YYYY_MM_DD, YYYY-MM-DD | |
## it is rewritten to a normalized format | |
## | |
## I tend to prefix note titles with a date format, but am not very consistent. This will normalize all those into the | |
## same format. It will not fix m/d/y date formats, since I am not interested in those, but feel free to add it! | |
## | |
## Developer documentation: https://dev.evernote.com/doc/ |
This file contains hidden or 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
{ | |
"configuration": { | |
"consumerKey": "not needed with personal account", | |
"consumerSecret": "not needed with personal account", | |
"developerToken": "Get this here in your personal production account https://www.evernote.com/api/DeveloperToken.action" | |
}, | |
"autofile": [ | |
{ | |
"search": "notebook:!!inbox myBalsamiq", | |
"notebook": "21 - Expense Reports", |
This file contains hidden or 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
Here is the library client now: | |
innotas.createClient() | |
.then(function (client) { | |
innotas.login(client, user, pass) | |
}) | |
.then(function (client) { | |
console.log("calling projects", client); | |
innotas.getProjects(client); | |
}) |
This file contains hidden or 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
var sys = require('sys'), | |
events = require('events'); | |
function Downloader() { | |
if(false === (this instanceof Downloader)) { | |
return new Downloader(); | |
} | |
events.EventEmitter.call(this); | |
} |
This file contains hidden or 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
// NODE.JS - SMARTY STREETS SERVER SIDE PROXY EXAMPLE | |
// | |
// Smarty streets does not currently support HTTP OPTIONS. Because of this, | |
// if setting custom headers, it cannot be called from a browser-side library | |
// like AngularJS. | |
// | |
// This is a server side proxy for smarty-streets. It takes the request | |
// query string and passes it on to Smarty Streets along with any of the | |
// custom headers that Smarty Streets currently supports. | |
// |
NewerOlder