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
def _connect_to_evernote(self, dev_token): | |
user = None | |
try: | |
self.client = EvernoteClient(token=dev_token) | |
self.user_store = self.client.get_user_store() | |
user = self.user_store.getUser() | |
except EDAMUserException as e: | |
err = e.errorCode | |
print("Error attempting to authenticate to Evernote: %s - %s" % (EDAMErrorCode._VALUES_TO_NAMES[err], e.parameter)) | |
return False |
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
from com.infinitekind.moneydance.model import * | |
import os | |
from javax.swing import JButton, JFrame, JScrollPane, JTextArea, BoxLayout, BorderFactory | |
class SimplePopupExtension(object): | |
def initialize(self, extension_context, extension_object): | |
self.moneydanceContext = extension_context | |
self.moneydanceExtensionObject = extension_object |
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
package com.moneydance.modules.features.myextension; | |
import com.moneydance.apps.md.controller.FeatureModule; | |
import com.moneydance.apps.md.controller.FeatureModuleContext; | |
import com.moneydance.apps.md.controller.ModuleUtil; | |
import com.moneydance.apps.md.controller.UserPreferences; | |
import java.io.*; | |
import java.util.*; | |
import java.text.*; |
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
import curio |
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
class Process: | |
next_id = 0 | |
def __init__(self, name): | |
self.name = name | |
self.id = Process.next_id | |
Process.next_id += 1 |
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
from curio import Queue, CancelledError | |
class Port: | |
def __init__(self): | |
self.chan = None | |
class InputPort(Port): | |
async def recv(self): | |
tok = await self.chan.recv() | |
return tok |
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
from curio import Queue, CancelledError | |
class Port: | |
def __init__(self): | |
self.chan = None | |
class InputPort(Port): | |
async def recv(self): | |
tok = await self.chan.recv() | |
return tok |
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
from curio import Queue, CancelledError | |
class Port: | |
def __init__(self): | |
self.chan = None | |
class InputPort(Port): | |
async def recv(self): | |
tok = await self.chan.recv() | |
return tok |
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
from curio import Queue, CancelledError | |
class Port: | |
def __init__(self): | |
self.chan = None | |
self.proc = None | |
class InputPort(Port): | |
async def recv(self): | |
tok, timestamp = await self.chan.recv() |
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
from curio import Queue, CancelledError | |
class Port: | |
def __init__(self): | |
self.chan = None | |
self.proc = None | |
class InputPort(Port): | |
async def recv(self): | |
tok, timestamp = await self.chan.recv() |
OlderNewer