Skip to content

Instantly share code, notes, and snippets.

View cjdenio's full-sized avatar
🐢
look a turtle

Caleb Denio cjdenio

🐢
look a turtle
View GitHub Profile
:root {
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Fira Sans', Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
--muted: #8492a6;
--slate: #3c4858;
--darkless: #252429;
--dark: #17171d;
}
body {
background-color: var(--dark);
From 7e9a3cb87ce887942dc1871c9af87c39cf40ba90 Mon Sep 17 00:00:00 2001
From: Max Wofford <[email protected]>
Date: Mon, 14 Sep 2020 20:03:55 +0000
Subject: [PATCH] Project balance includes stripe auth charges
---
app/models/event.rb | 6 +++++-
app/models/stripe_authorization.rb | 7 +++++--
2 files changed, 10 insertions(+), 3 deletions(-)
* {
font-family: Papyrus, serif !important;
}
h1.primary::before {
content: "Not ";
}
.app__content > h1:first-of-type {
text-transform: lowercase;
@cjdenio
cjdenio / mjpeg.py
Last active March 30, 2021 15:40
Tiny MJPEG implementation for Python + OpenCV
from http.server import BaseHTTPRequestHandler, HTTPServer
from socketserver import ThreadingMixIn
import numpy as np
import cv2
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
"""Handle requests in a separate thread."""

Caleb Denio's Website

This file quickly explains the architecture of my website (calebden.io): the technologies behind it, and the reason I chose them!

Repositories

Frontend

@cjdenio
cjdenio / config-backup.sh
Last active December 3, 2020 16:15
Bash script for peroidically backing up my dotfiles to https://github.com/cjdenio/config
#!/bin/bash
cd /home/cjdenio/Documents/github/config
if ! git diff --exit-code --quiet;
then
git add .
git commit -m "Update config files"
git push
else
main {
perspective: 60em;
}
.post::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
@cjdenio
cjdenio / scrapbook-summer.css
Last active April 1, 2022 05:22
Custom CSS for my Hack Club Summer of Making Scrapbook profile. https://scrapbook.calebdenio.me
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');
.header-title-name {
font-family: "Fira Sans", sans-serif;
text-transform: capitalize;
margin-bottom: 10px;
background: rgba(0, 0, 0, 0.2);
padding: 10px 5px 10px 20px;
display: inline-block;
border-radius: 20px;
const CONFIG = {
sendPort: 8181,
receivePort: 1234
}
var dgram = require('dgram')
var sendSocket = dgram.createSocket('udp4')
var receiveSocket = dgram.createSocket('udp4')
@cjdenio
cjdenio / intro.md
Created January 22, 2020 18:17
Node.js - generate JSON Web Token for Google Cloud APIs

In order to authorize a Google Cloud Platform API with a service account, you'll need an OAuth token. Service accounts don't follow the regular OAuth flow, though. To use this script, you'll need request. Run npm install request to install it. Learn more about Google's OAuth flow for service accounts here.