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
| @ECHO OFF | |
| REM Example | |
| REM File must have 4 peices of data, seperated by commas & spaces and individual records on each line | |
| REM 4 Peices of data | |
| REM , as delimiter | |
| REM Read file line by line | |
| FOR /F "tokens=1-4 delims=, " %%a in (filename.ext) do ( | |
| REM %%a is the first item on the line, %%b is the second, etc. |
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
| // BookmarksBar Layout code from BMarks Bar - Chrome (iOS Tweak) | |
| // User Settings | |
| // DISPLAY_OTHER_BOOKMARKS_ITEM = [YES|NO] | |
| // DISPLAY_REST_BOOKMARKS_ITEM = [YES|NO] | |
| // ... | |
| // Application Constants | |
| // #define kEdgeSpacing 9.f | |
| // #define kItemSpacing 10.f |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd"> | |
| <en-export export-date="20130730T205637Z" application="Evernote" version="Evernote Mac"> | |
| <note> | |
| <title>Test Note for Export</title> | |
| <content> | |
| <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"> | |
| <en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> | |
| Hello, World. |
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
| noteStore = client.get_note_store() | |
| notebook = Types.Notebook() | |
| notebook.name = "My Notebook" | |
| notebook = noteStore.createNotebook(notebook) | |
| print notebook.guid |
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
| noteStore = client.get_note_store() | |
| note = Types.Note() | |
| note.title = "I'm a test note!" | |
| note.content = '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">' | |
| note.content += '<en-note>Hello, world!</en-note>' | |
| note = noteStore.createNote(note) |
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
| noteStore = client.get_note_store() | |
| notebooks = noteStore.listNotebooks() | |
| for n in notebooks: | |
| print n.name |
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
| filter = NoteStore.NoteFilter() | |
| filter.ascending = False | |
| spec = NoteStore.NotesMetadataResultSpec() | |
| spec.includeTitle = True | |
| ourNoteList = noteStore.findNotesMetadata(authToken, filter, 0, 100, spec) | |
| wholeNotes = [] | |
| for note in ourNoteList.notes: |
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
| filter = NoteStore.NoteFilter() | |
| filter.words = "created:month-3" | |
| filter.notebookGuid = "SomeNotebookGuidHere" | |
| filter.tagGuids = ["tagGuid1","tagGuid2"] |
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
| def getAllSharedNotes(authToken, noteStore, maxCount=None): | |
| noteFilter = NoteStore.NoteFilter() | |
| noteFilter.words = "sharedate:*" | |
| sharedNotes = [] | |
| offset = 0 | |
| if not maxCount: | |
| maxCount = 500 | |
| while len(sharedNotes) < maxCount: | |
| try: | |
| noteList = noteStore.findNotes(authToken, noteFilter, offset, 50) |
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
| def stopSharingSingleNote(authToken, noteStore, noteGuid): | |
| try: | |
| noteStore.stopSharingNote(authToken, noteGuid) | |
| except (EDAMNotFoundException, EDAMSystemException, EDAMUserException), e: | |
| print "Error stopping sharing note:" | |
| print type(e), e | |
| return None | |
| return noteGuid |
OlderNewer