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 CreateDoorkeeperTables < ActiveRecord::Migration[6.0] | |
def change | |
create_table :oauth_applications do |t| | |
t.string :name, null: false | |
t.string :uid, null: false | |
t.string :secret, null: false | |
# Remove `null: false` if you are planning to use grant flows | |
# that doesn't require redirect URI to be used during authorization | |
# like Client Credentials flow or Resource Owner Password. |
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
const firebaseFunctions = require("firebase-functions"); | |
let testHttpsFunction = firebaseFunctions.https.onRequest((req, res) => { | |
console.log("This ran successfully"); | |
res.send(200); | |
}); | |
exports.testHttpsFunction = testHttpsFunction; |
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 datetime | |
import glob | |
import os | |
from openpyxl import Workbook | |
from openpyxl import load_workbook | |
from os.path import expanduser | |
home = expanduser("~") | |
os.chdir(home + "/Downloads") |
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 * as functions from 'firebase-functions'; | |
import * as rp from 'request-promise'; | |
import { google } from 'googleapis'; | |
let projectId: string = "my-firebase-project-id"; | |
export let testFunctions = functions.pubsub.topic("testfunctions").onPublish(async (message, context) => { | |
let functionsToExecute = ["functionA", "functionB", "functionC", "functionD",] |
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 { JsonConverter } from 'json2typescript'; | |
import { MapConvert } from './map-converter'; | |
import { Category } from '../index'; | |
@JsonConverter | |
export class CategoryConvert extends MapConvert<Category> { | |
deserialize(data: any): Map<string, Category> { | |
return this.deserializeMap<Category>(data, Category); | |
} |