Skip to content

Instantly share code, notes, and snippets.

View EQuimper's full-sized avatar
🏠
Working from home

Emanuel Quimper EQuimper

🏠
Working from home
View GitHub Profile
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16
NECK
4-Way Neck
Neck PushUp
Manual Neck
CHEST
Bench Press
Bench Press (eccentric phase)
Bench Press Rebound
EDI Bench Press
@EQuimper
EQuimper / Flexible Dockerized Phoenix Deployments.md
Created January 2, 2019 15:14 — forked from jswny/Flexible Dockerized Phoenix Deployments.md
A guide to building and running zero-dependency Phoenix (Elixir) deployments with Docker. Works with Phoenix 1.2 and 1.3.

Prelude

I. Preface and Motivation

This guide was written because I don't particularly enjoy deploying Phoenix (or Elixir for that matter) applications. It's not easy. Primarily, I don't have a lot of money to spend on a nice, fancy VPS so compiling my Phoenix apps on my VPS often isn't an option. For that, we have Distillery releases. However, that requires me to either have a separate server for staging to use as a build server, or to keep a particular version of Erlang installed on my VPS, neither of which sound like great options to me and they all have the possibilities of version mismatches with ERTS. In addition to all this, theres a whole lot of configuration which needs to be done to setup a Phoenix app for deployment, and it's hard to remember.

For that reason, I wanted to use Docker so that all of my deployments would be automated and reproducable. In addition, Docker would allow me to have reproducable builds for my releases. I could build my releases on any machine that I wanted in a contai

@EQuimper
EQuimper / arc_resolver.ex
Created January 2, 2019 01:23 — forked from vahidabdi/arc_resolver.ex
Arc Uploader resolver for Absinthe Graphql
defmodule MyApp.Schema.ArcResolver do
defmacro __using__([uploader: uploader]) do
quote do
import unquote(__MODULE__), only: [
get_file: 2
]
@__arc_upload unquote(uploader)
end
end
@EQuimper
EQuimper / django_cheat_sheet.md
Created November 25, 2018 05:09 — forked from bradtraversy/django_cheat_sheet.md
Django command cheat sheet

Django 2.x Cheat Sheet

Creating a virtual environment

We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder

python -m venv ./venv
@EQuimper
EQuimper / gist:d74c986101b9d0598c80598cba034d90
Created November 21, 2018 16:59
Fix yarn.lock error on merging
git merge master
git checkout origin/master -- yarn.lock
git commit -m 'Fix conflicts'
@EQuimper
EQuimper / vimtmux.md
Last active November 18, 2018 17:12
Vim + Tmux Cheatsheet

Vim

Yank

:32y     Yank line 32
:32,45y  Yank line 32 to line 45

:+2y     Yank two lines after the current line
:-2y Yank two lines before the current line
@EQuimper
EQuimper / tsconfig.json
Created October 12, 2018 20:21
TSConfig rn with expo
{
"compilerOptions": {
"esModuleInterop": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"jsx": "react",
"lib": [
"esnext",
"dom"
@EQuimper
EQuimper / NotificationPublisher.swift
Created September 24, 2018 20:03
Sending local notification in swift
//
// NotificationPublisher.swift
// LocalNotificationTutorial
//
// Created by Emanuel Quimper on 2018-09-24.
// Copyright © 2018 Emanuel Quimper. All rights reserved.
//
import UserNotifications
import UIKit
777 Brockton Avenue, Abington MA 2351
30 Memorial Drive, Avon MA 2322
250 Hartford Avenue, Bellingham MA 2019
700 Oak Street, Brockton MA 2301
66-4 Parkhurst Rd, Chelmsford MA 1824
591 Memorial Dr, Chicopee MA 1020
55 Brooksby Village Way, Danvers MA 1923
137 Teaticket Hwy, East Falmouth MA 2536
42 Fairhaven Commons Way, Fairhaven MA 2719
374 William S Canning Blvd, Fall River MA 2721