This file contains hidden or 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
javascript:(function(){ | |
const vdo = document.getElementsByTagName("video")[0]; | |
vdo.pause(); | |
const vdoUrl = vdo.src | |
const link = document.createElement('a'); | |
link.href = vdoUrl; | |
link.target= '_blank'; | |
const paths = location.pathname.split('/'); | |
const e = document.createEvent('MouseEvents'); |
This file contains hidden or 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
// This isn't comprehensive and is a pretty dirty hack piece of code, | |
// but it gets you close when you have a ton of fields in mongo | |
// collection documents that you need to create interfaces for | |
function makeTypes(obj: { [key: string]: any }, depth: number = 0) { | |
if (obj) { | |
let types: string = ''; | |
Object.keys(obj).forEach((key) => { | |
const value = obj[key]; | |
if (value) { |
This file contains hidden or 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 { useState, useEffect, useRef } from 'react'; | |
import { useTracker } from 'meteor/react-meteor-data'; | |
import { Grapher } from 'meteor/cultofcoders:grapher'; | |
import { Meteor } from 'meteor/meteor'; | |
interface QueryInfo<T> { | |
loading: boolean | |
ready: boolean | |
data: T[] | |
error: Meteor.Error | null |
OlderNewer