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
const axios = require('axios'); | |
const sid = ''; | |
const secret = ''; | |
const oneDayMS = 24 * 60 * 60 * 1000; | |
const iccids = [ | |
] | |
const sids = [ |
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
/** | |
* usage: node queryVSC.js | |
* replace token | |
* requires superagent lib | |
*/ | |
const superagent = require('superagent'); | |
// 3 day window ending Wednesday, 29 January 2020 20:20:00 GMT | |
const url = | |
'https://data.ridebeam.com/status_changes?start_time=1580070000000&end_time=1580329200000'; |
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 akka.actor._ | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model._ | |
import akka.http.scaladsl.server.Directives._ | |
import akka.pattern.ask | |
import akka.stream.ActorMaterializer | |
import akka.util.Timeout | |
import de.heikoseeberger.akkahttpplayjson.PlayJsonSupport | |
import play.api.libs.json._ |
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
class Foo(object): | |
zap = 'zap' | |
def __init__(self): | |
self.bar = 'bar' | |
f = Foo() | |
print f.bar | |
print f.zap | |
print f.__dict__['bar'] | |
print f.__dict__['zap'] # Raises KeyError |