Skip to content

Instantly share code, notes, and snippets.

View justinramel's full-sized avatar

Justin Ramel justinramel

View GitHub Profile
@justinramel
justinramel / docker-compose.yml
Last active January 30, 2023 11:35
next-13-beta-wire-up-db
version: '3.8'
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
@justinramel
justinramel / next-13-beta-create-app.zsh
Last active January 24, 2023 23:08
Next.js 13 Beta Blog Post
npx create-next-app@latest --experimental-app
❯ npx create-next-app@latest --experimental-app
✔ What is your project named? … next-13-beta
✔ Would you like to use TypeScript with this project? … No / Yes
✔ Would you like to use ESLint with this project? … No / Yes
✔ Would you like to use `src/` directory with this project? … No / Yes
✔ What import alias would you like configured? … @/*
Creating a new Next.js app in /Users/justin/source/linkedin/next-13-beta.
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justinramel
justinramel / machine.js
Last active March 31, 2020 21:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justinramel
justinramel / machine.js
Last active March 31, 2020 21:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justinramel
justinramel / machine.js
Last active January 21, 2020 18:47
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justinramel
justinramel / machine.js
Last active December 3, 2019 13:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@justinramel
justinramel / cloudSettings
Created November 3, 2017 21:42
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-11-03T21:42:19.051Z","extensionVersion":"v2.8.4"}
import moment from 'moment';
export class Dates {
createDate(date) {
let now = date ? new Date(date) : new Date();
now.setHours(0,0,0,0);
return now;
}
import {Dates} from './dates';
import {RatesService} from '../pages/rates/rates.service';
import {TransactionsService} from '../pages/transactions/transactions.service';
import * as _ from 'lodash';
export class Calculate {
constructor() {
this.dates = new Dates();
this.ratesService = new RatesService();
this.transactionsService = new TransactionsService();