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
import gevent | |
from exchangelib import CalendarItem, EWSDateTime, EWSTimeZone | |
from nylas.db.sharded.models.account import Account | |
from nylas.db.sharded.models.session import session_scope_by_shard_id | |
from nylas.sync.adaptors.ews import EWSSyncAdaptor | |
with session_scope_by_shard_id(0) as db: | |
acc = db.query(Account).get(4) # exchange account, [email protected] | |
adaptor = EWSSyncAdaptor(acc) |
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
from nylas.db.sharded.models.account import Account | |
from nylas.db.sharded.models.session import session_scope_by_shard_id | |
from nylas.sync.adaptors.ews import EWSSyncAdaptor | |
from nylas.sync.types.ews import EWSResponseShape | |
with session_scope_by_shard_id(0) as db: | |
acc = db.query(Account).get(4) # exchange account, [email protected] | |
adaptor = EWSSyncAdaptor(acc) | |
adaptor.authorize_account() |
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
#!/usr/bin/env node | |
/* eslint flowtype/require-valid-file-annotation: 0 */ | |
const program = require('commander'); | |
const mkdirp = require('mkdirp'); | |
const fs = require('fs'); | |
const errors = []; | |
const statefulComponentTemplate = (componentName, { container }) => | |
`class ${componentName} extends Component { |