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.
This file contains 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 file contains 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
const CONFIG = { | |
sendPort: 8181, | |
receivePort: 1234 | |
} | |
var dgram = require('dgram') | |
var sendSocket = dgram.createSocket('udp4') | |
var receiveSocket = dgram.createSocket('udp4') |
This file contains 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 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; |
This file contains 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
main { | |
perspective: 60em; | |
} | |
.post::before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
left: 0; | |
right: 0; |
This file contains 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
#!/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 |
This file quickly explains the architecture of my website (calebden.io): the technologies behind it, and the reason I chose them!
- cjdenio/site-frontend - The site's frontend, built with Nuxt.js and hosted on Vercel.
- cjdenio/site-backend - The site's backend, based on Strapi with some heavy customization.
This file contains 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
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.""" |
This file contains 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
* { | |
font-family: Papyrus, serif !important; | |
} | |
h1.primary::before { | |
content: "Not "; | |
} | |
.app__content > h1:first-of-type { | |
text-transform: lowercase; |
This file contains 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
From 7e9a3cb87ce887942dc1871c9af87c39cf40ba90 Mon Sep 17 00:00:00 2001 | |
From: Max Wofford <max@maxwofford.com> | |
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(-) |
OlderNewer