- add app.json, set the newest sdkVersion
{
"name": "<yourname>",
"displayName": "<yourname>",
"expo": {
"sdkVersion": "25.0.0"
}
}
/* eslint-disable camelcase */ | |
import axios, { AxiosInstance, AxiosResponse } from 'axios' | |
import crypto from 'crypto' | |
import qs from 'querystring' | |
import URLSafeBase64 from 'urlsafe-base64' | |
import cryptoRandomString from 'crypto-random-string' | |
import { Cookie, CookieJar } from 'tough-cookie' | |
import { EventEmitter } from 'events' | |
interface OAuthParameters { |
predict = ( | |
data, | |
a = 0.95, | |
b = 0.4, | |
g = 0.2, | |
p = this.PERIODS_TO_PREDICT, | |
) => { | |
const alpha = a; | |
const beta = b; | |
const gamma = g; |
# | |
# Github Actions for Serverless Framework | |
# | |
# Create AWS_KEY and AWS_SECRET secrets in Github repository settings | |
# If you're using env.yml file, store its content as ENV Github secret | |
# | |
# Master branch will be deployed as DEV and every new tag starting with "v**" (e.g. v1.0, v1.2, v2.0, etc) will be deployed as PROD | |
# | |
# Learn more: https://maxkostinevich.com/blog/how-to-deploy-serverless-applications-using-github-actions/ | |
# |
{
"name": "<yourname>",
"displayName": "<yourname>",
"expo": {
"sdkVersion": "25.0.0"
}
}
"use strict"; | |
// [run the app] | |
// $ npm install electron | |
// $ ./node_modules/.bin/electron . | |
const {app, nativeImage, Tray, Menu, BrowserWindow} = require("electron"); | |
let top = {}; // prevent gc to keep windows |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
var commentSchema = new Schema({ | |
postId: { | |
type: String, | |
hashKey: true | |
}, | |
id: { | |
type: String, | |
rangeKey: true, | |
default: shortId.generate |
/* | |
by Martin Güther @magegu | |
just call it: | |
uploadFile(absoluteFilePath, callback); | |
*/ | |
var path = require('path'); | |
var async = require('async'); |
// Based on Glacier's example: http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/examples.html#Amazon_Glacier__Multi-part_Upload | |
var fs = require('fs'); | |
var AWS = require('aws-sdk'); | |
AWS.config.loadFromPath('./aws-config.json'); | |
var s3 = new AWS.S3(); | |
// File | |
var fileName = '5.pdf'; | |
var filePath = './' + fileName; | |
var fileKey = fileName; |