Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
look a turtle

Caleb Denio cjdenio

🐢
look a turtle
View GitHub Profile
@cjdenio
cjdenio / config-backup.sh
Last active Dec 3, 2020
Bash script for peroidically backing up my dotfiles to https://github.com/cjdenio/config
View config-backup.sh
#!/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
View zachday-2020.css
main {
perspective: 60em;
}
.post::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
@cjdenio
cjdenio / scrapbook-summer.css
Last active Oct 14, 2020
Custom CSS for my Hack Club Summer of Making Scrapbook profile. https://scrapbook.calebdenio.me
View scrapbook-summer.css
@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;
View udp-forwarder.js
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 Jan 22, 2020
Node.js - generate JSON Web Token for Google Cloud APIs
View intro.md

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.

View Fusion.java
// _____________ _ _ ___________ ______________ _________ _
// | _________| | | | | / _______ \ |______________| / _______ \ | \ \ | |
// | | | | | | | / \ / | | / / \ \ | |\ \ | |
// | |______ | | | | | | | | | | | | | | \ \ | |
// | _____| | | | | \ \________ | | | | | | | | \ \ | |
// | | | | | | \ _______ \ | | | | | | | | \ \ | |
// | | | | | | \ | | | | | | | | | \ \ | |
// | | \ \ ______ / / | | | | | | | | | | \ \ | |
// |_| \__________/ ________/ / _____| |_____ \ \________/ / | | \ \| |
You can’t perform that action at this time.