Skip to content

Instantly share code, notes, and snippets.

View spencercap's full-sized avatar
💾
robot.humanize()

spencer cap spencercap

💾
robot.humanize()
View GitHub Profile
@JamieCurnow
JamieCurnow / firestore.ts
Created December 8, 2020 13:33
Using Firestore with Typescript - no examples
/**
* This Gist is part of a medium article - read here:
* https://jamiecurnow.medium.com/using-firestore-with-typescript-65bd2a602945
*/
// import firstore (obviously)
import { firestore } from "firebase-admin"
// Import or define your types
// import { YourType } from '~/@types'
@JamieCurnow
JamieCurnow / firestore.ts
Last active April 26, 2024 21:20
Using Firestore with Typescript
/**
* This Gist is part of a medium article - read here:
* https://jamiecurnow.medium.com/using-firestore-with-typescript-65bd2a602945
*/
// import firstore (obviously)
import { firestore } from "firebase-admin"
// Import or define your types
// import { YourType } from '~/@types'
@Westbrook
Westbrook / lit-use-effect-element.js
Last active September 3, 2023 23:18
useEffect() for `LitElement`... because everyone's doing it?
import {LitElement, html} from '@polymer/lit-element';
import {UseEffectMixin} from './use-effect.js';
class MyElement extends UseEffectMixin(LitElement) {
static get properties() {
return {
mood: {type: String},
expression: {type: String}
}
}
@tsbits
tsbits / [ThreeJS] Don't clear the canvas
Last active August 14, 2021 12:28
[ThreeJS] Don't clear the canvas
renderer = new THREE.WebGLRenderer({preserveDrawingBuffer: true});
renderer.autoClearColor = false;
@andreibosco
andreibosco / creative-cloud-disable.md
Last active January 3, 2024 02:37
disable creative cloud startup on mac
volatile int state = HIGH;
volatile int flag = HIGH;
volatile int Aold = 0;
volatile int Anew = 0;
volatile int Bold = 0;
volatile int Bnew = 0;
static boolean rotating=false; // debounce management
@defunctzombie
defunctzombie / browser.md
Last active April 10, 2024 17:45
browser field spec for package.json