Skip to content

Instantly share code, notes, and snippets.

View headwinds's full-sized avatar
📈

brandon flowers headwinds

📈
View GitHub Profile
@headwinds
headwinds / GsonService.java
Created November 28, 2021 15:47
Java: load json with Gson
package services;
import com.google.gson.Gson;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Map;
public class GsonService {
@headwinds
headwinds / serverless-postgres-config
Created June 16, 2021 12:54
serverless postgreSQL config
import { Dialect } from 'sequelize/types';
export const config = {
database: {
dialect: 'postgres' as Dialect,
host: 'ruby.db.elephantsql.com',
port: 5432,
username: 'your-username-here',
password: 'your-password-here',
database: 'your-database-here',
@headwinds
headwinds / .block
Created July 2, 2020 13:59
programmatic gradient
license: mit
@headwinds
headwinds / .block
Created June 23, 2020 00:28
animated dashed+solid path with gradient
license: gpl-3.0
{
"name": "porthole",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
{
"name": "porthole",
"version": "1.0.0",
"description": "the overlap of city and country",
"main": "index.js",
"repository": "https://github.com/headwinds/porthole",
"scripts": {
"dev": "babel-node index.js --presets es2015,stage-2",
"build": "next build",
"start": "NODE_ENV=production babel-node index.js --presets es2015,stage-2 --cors",
@headwinds
headwinds / SketchSystems.spec
Last active April 22, 2020 11:32
Solo Mode
Solo Mode
Select First Photo From Grid
some event -> Second State
@headwinds
headwinds / machine.js
Last active April 22, 2020 15:44
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@headwinds
headwinds / machine.js
Created April 20, 2020 12:34
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@headwinds
headwinds / machine.js
Created March 20, 2020 02:41
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions