Skip to content

Instantly share code, notes, and snippets.

View JoeRoddy's full-sized avatar
💭
bridg.dev

Joseph Roddy JoeRoddy

💭
bridg.dev
View GitHub Profile
@JoeRoddy
JoeRoddy / bridg.js
Created August 6, 2023 20:26
Bridg example compiled client
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
@JoeRoddy
JoeRoddy / cloudSettings
Last active July 30, 2019 21:00
vscode-settings-sync
{"lastUpload":"2019-07-30T20:59:58.821Z","extensionVersion":"v3.4.1"}
@JoeRoddy
JoeRoddy / contacts.js
Created January 10, 2019 05:18
people api example
// Copyright 2016, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<!DOCTYPE html>
<html>
<head>
<title>Coded by kids</title>
<style>
h1 {
color:blue;
}
.red-header {
@JoeRoddy
JoeRoddy / FirebaseToFirestore.js
Created October 18, 2017 16:19
Convert Firebase Database JSON to Firestore Collections
var db = firebase.firestore();
var content = require("./sourceData.json");
content &&
Object.keys(content).forEach(contentKey => {
const nestedContent = content[contentKey];
if (typeof nestedContent === "object") {
Object.keys(nestedContent).forEach(docTitle => {
firebase
.firestore()