Skip to content

Instantly share code, notes, and snippets.

View zapplebee's full-sized avatar
⁉️
At home

Zachary Skalko zapplebee

⁉️
At home
View GitHub Profile
@zapplebee
zapplebee / app.tsx
Last active May 19, 2023 14:38
an express app with react
import React from "react";
import ReactDOMServer from "react-dom/server";
import express from "express";
import type { RequestHandler } from "express";
import session from "express-session";
import { json, urlencoded } from "body-parser";
import passport from "passport";
import { Strategy as GitHubStrategy } from "passport-github2";
import { Octokit } from "@octokit/rest";
https://docs.google.com/document/d/1LwQwx3pPUR9_hwPgxsNfanpiJlXRzselgPRL2787i38/edit?usp=sharing
@zapplebee
zapplebee / NYE_Requests.md
Created December 29, 2022 21:15
NYE Requests

Am also taking requests this year. It will be a half digital playlist.

Just comment to make the request.

function createCtx() {
const ctx = {};
return {
useCtx: () => ctx["ctx"] ?? null,
defineCtx: (val, callback) => {
ctx["ctx"] = val;
return callback();
},
};
}
@zapplebee
zapplebee / mood.js
Created April 13, 2021 15:47
Track my mood
#!/usr/bin/env node
const child_process = require("child_process");
const path = require("path");
const os = require("os");
let mood = process.argv[2];
switch (mood) {
case "1":
mood = 1;
#!/usr/bin/env node
const child_process = require("child_process");
const NOTES = {
A: 440.0,
As: 466.1638,
Bf: 466.1638,
B: 493.8833,
C: 523.2511,
Cs: 554.3653,
// ==UserScript==
// @name Show Github Path
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==

What is CanopyJS?

Canopy is a JS package that makes it easy to build applications that:

  • interop with Splinter
  • look and feel like they are part of suite.

What is a Sapling?

A Sapling is a web application using Canopy. It will be served from a Canopy Daemon (or Splinter Daemon itself, this is still not set in stone).

Isolation and trust

@zapplebee
zapplebee / .keep
Last active October 25, 2019 15:58
SCSS Variables
.keeps

Keybase proof

I hereby claim:

  • I am zapplebee on github.
  • I am zapplebee (https://keybase.io/zapplebee) on keybase.
  • I have a public key ASD3uLsazsOPde7307OV5MsaTixX7MOJFUT5KdLXM981nAo

To claim this, I am signing this object: