Skip to content

Instantly share code, notes, and snippets.

View somersbmatthews's full-sized avatar
🏠
Working from home

Somers B Matthews somersbmatthews

🏠
Working from home
  • Mason, OH
  • 21:35 (UTC -05:00)
View GitHub Profile
@somersbmatthews
somersbmatthews / ngrx_cli_commands.sh
Last active January 21, 2022 16:47
ngrx ng cli commands
# from root directory
ng generate store State --root --state-path store --module app.module.ts
ng generate feature components/store/user/User -m app.module.ts
#from components directory
ng generate container Login --state store/user/user.reducer.ts --state-interface State
@somersbmatthews
somersbmatthews / firebase-admin-multi-apps-init-ES6.md
Created October 31, 2021 10:29 — forked from jofftiquez/firebase-admin-multi-apps-init-ES6.md
Firebase admin - how to initialise multiple applications in ES6 nodejs.

Firebase Admin Multi App Initialization - ES6

This is a snippet that uses firebase's firebase-admin to initialize multiple firebase projects in one admin application.

ES5 version

Using ES6

import 'firebase';
@somersbmatthews
somersbmatthews / test.swift
Created August 25, 2021 20:48
actual problem
//
// GIRC_Medical_Expert_AppTests.swift
// GIRC Medical Expert AppTests
//
// Created by Somers B Matthews on 8/19/21.
//
@testable import GIRC_Medical_Expert_App
import XCTest
import Firebase
import FirebaseAuth
//
// GIRC_Medical_Expert_AppTests.swift
// GIRC Medical Expert AppTests
//
// Created by Somers B Matthews on 8/19/21.
//
@testable import GIRC_Medical_Expert_App
import XCTest
import Firebase
import FirebaseAuth
@somersbmatthews
somersbmatthews / index.js
Created July 13, 2021 17:54
Entire file using luxon
import React, { useContext, useEffect, useRef, useState } from 'react';
import { ActiveNominationContext } from '../../../utils/context/ActiveNominationContext';
import { NominationsDataContext } from '../../../utils/context/NominationsContext';
import NominationBanner from '../../nominationBanner/nominationBanner';
import ApplicationStages from '../../applicationStages/ApplicationStages';
import SearchBar from '../../SearchBar';
import NominationInfo from '../../nominationInfo';
import ApplicationUpdateDetail from '../../nominationInfo/applicationUpdateDetail';
import ApplicationForm from '../../nominationInfo/ApplicationForm';
import { DateTime } from "luxon";
Below are multiple .gitignore files for use with Xcode/Objective-C projects
##########################################
# OS X
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
@somersbmatthews
somersbmatthews / api_test.go
Created March 4, 2021 09:51
girc.app api tests
package test
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io/ioutil"
"log"
@somersbmatthews
somersbmatthews / functionView.swift
Last active February 6, 2021 04:38
function view in swift #swift #ios #swiftui
import Foundation
import SwiftUI
struct PeopleView: View {
@ObservedObject var viewModel = PeopleModel()
var body: some View {
VStack {
@somersbmatthews
somersbmatthews / viewModel.swift
Last active February 5, 2021 21:30
view model in swift #swift #ios #swiftui
import Foundation
final class UserModel: ObservableObject {
struct User: Identifiable {
var id = UUID()
var firstName: String
var lastName: String
var email: String
var degree: String
@somersbmatthews
somersbmatthews / conputedProperties.swift
Created February 5, 2021 21:21
computed properties view extraction with swift #ios #swift #swiftui
import Foundation
import SwiftUI
struct PeopleView: View {
@ObservedObject var viewModel = PeopleModel()
var body: some View {
VStack {