Skip to content

Instantly share code, notes, and snippets.

View ccutch's full-sized avatar
🎯
Focusing

Connor McCutcheon ccutch

🎯
Focusing
  • California
View GitHub Profile
@ccutch
ccutch / match_prop.rs
Created November 11, 2018 01:58
Making a quick macro to easily write functions for enums that simply match an variant to a defined return type
// Example enum Material
pub enum Material {
Grass,
Sand,
Rock,
Water,
}
// match_prop macro
macro_rules! match_prop {
@ccutch
ccutch / Firebase.js
Last active November 29, 2018 06:11 — forked from codyswain/Firebase.js
The only important line of HomeScreen.js is line 34. The variable assignment here returns a Promise but no data.
import * as firebase from 'firebase'
import 'firebase/firestore';
class FireBase {
constructor() {
let config = {
apiKey: "AIzaSyAO8BB0W6mXDr3ihvkMn-uJjopgfsf_qow",
authDomain: "cherishly-412dd.firebaseapp.com",
databaseURL: "https://cherishly-412dd.firebaseio.com",
projectId: "cherishly-412dd",
@ccutch
ccutch / Actors.ipynb
Created March 22, 2021 10:16
Just incase you forgot i was insane
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.