Skip to content

Instantly share code, notes, and snippets.

//*****************************GLOBAL*****************************//
/**
* @NotOnlyCurrentDoc
*/
const ind_data_sheet = SpreadsheetApp.openById(
"REDACTED"
).getActiveSheet();
const fam_data_sheet = SpreadsheetApp.openById(
"REDACTED"
).getActiveSheet();
@wise-introvert
wise-introvert / steps.md
Last active December 19, 2020 08:25
React Typescript library
  1. Create an empty directory and cd into it
  • $ mkdir your-component-library && cd your-component-library
  1. Initialize yarn
  • $ yarn init
  1. Initialize eslint
  • $ eslint --init # OR "npx eslint --init" if eslint isn't installed globally on your machine
  1. Initialize typescript: create tsconfig.json file with the following content:
  {                                             
    "compilerOptions": {
@wise-introvert
wise-introvert / tsconfig.json
Created December 19, 2020 08:57
Config I use to setup typescript in my component libraries for React
{
"compilerOptions": {
"declaration": true,
"declarationDir": "./dist",
"forceConsistentCasingInFileNames": true,
"noImplicitAny": true,
"jsx": "react-jsx",
"lib": ["es5", "dom"],
"module": "esnext",
"moduleResolution": "node",
@wise-introvert
wise-introvert / rollup.config.js
Created December 19, 2020 08:59
Config I use to setup rollup in my component libraries for React
import typescript from "rollup-plugin-typescript2";
import { terser } from "rollup-plugin-terser";
import pkg from "./package.json";
export default {
input: "src/index.tsx",
output: [
{
file: pkg.main,
@wise-introvert
wise-introvert / package.js
Last active December 20, 2020 05:24
Must have properties in package.json for react-based component libraries (marked it as js for comments)
{
"name": "stardust",
"version": "1.0.0",
"main": "dist/index.js", // Main file
"module": "dist/index.es.js", // Main file (ES)
"jsnext:main": "dist/index.es.js", // Main file (ES)
"author": "Wise Introvert",
"license": "MIT",
"types": "dist/index.d.js", // Specify file/folder that'll hold generated types
"files": [ // ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
@wise-introvert
wise-introvert / the_100_best_movies_of_the_decade.md
Last active June 29, 2021 18:11
"The 100 Best Movies of the Decade (2010-20)" by IndieWire
  • “Inherent Vice” (Paul Thomas Anderson, 2014)
  • “The Loneliest Planet” (Julia Loktev, 2011)
  • “The Great Gatsby” (Baz Luhrmann, 2013)
  • “All These Sleepless Nights” (Michal Marczak, 2016)
  • “Girl Walk // All Day” (Jacob Krupnick, 2011)
  • “The Arbor” (Clio Barnard, 2010)
  • “Happy Hour” (Hamaguchi Ryūsuke, 2015)
  • “Mother of George” (Andrew Dosunmu, 2013)
  • “Spider-Man: Into the Spider-Verse” (Bob Persichetti, Peter Ramsey & Rodney Rothman, 2018)
  • “Fire at Sea” (Gianfranco Rosi, 2016)
@wise-introvert
wise-introvert / w2p1.c
Last active September 24, 2021 01:31
Week 2 Part 1
/*
* AUTHOR <your name>
* EMAIL <your seneca email id>
* SENECA ID <your seneca id>
* DESCRIPTION Print message to the screen
*/
#include<stdio.h>
#include<math.h>
@wise-introvert
wise-introvert / w2p2.c
Last active September 24, 2021 23:22
Week 2 Part 2
/*
* AUTHOR <your name>
* EMAIL <your seneca email id>
* SENECA ID <your seneca id>
* DESCRIPTION Print message to the screen
*/
#include<stdio.h>
#include<math.h>
/*
* AUTHOR <your name>
* EMAIL <your seneca email id>
* SENECA ID <your seneca id>
* DESCRIPTION <description>
*/
#include<stdio.h>
#include<math.h>