git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
É um design pattern que o Rails implementa a partir da gem ActiveRecord.
Serve para conectar a camada Model da aplicação com tabelas do database, para assim criar um modelo de domínio persistível, onde a lógica (Model) e dados (BD) são apresentados em uma única solução.
Já persiste no BD:
obj.create
| vi /etc/environment | |
| add these lines... | |
| LANG=en_US.utf-8 | |
| LC_ALL=en_US.utf-8 |
| // In response to https://twitter.com/housecor/status/930108010558640128 | |
| function doubleAfter2Seconds(x) { | |
| return new Promise(resolve => { | |
| resolve(x * 2); | |
| }, 2000); | |
| } | |
| async function addAsync(x) { | |
| const { a, b, c } = await Promise.all([ | |
| doubleAfter2Seconds(10), |
| FROM agners/archlinuxarm-arm32v7 | |
| # pacman -Sy --noconfirm base-devel awk m4 git unzip perl wget ocaml opam ocaml-compiler-libs | |
| RUN pacman -Sy --noconfirm base-devel awk m4 git unzip perl wget | |
| RUN curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh | sh | |
| RUN useradd -m esy-user | |
| USER esy-user |
Based on configuration provided in .config/nvim/init.vim
| package uuid4 | |
| import "core:crypto" | |
| import "core:io" | |
| import "core:mem" | |
| UUID_SIZE :: 16 | |
| UUID4 :: distinct [UUID_SIZE]byte | |
| generate :: proc() -> (u: UUID4) #no_bounds_check { |
| defmodule SimpleS3Upload do | |
| @moduledoc """ | |
| Dependency-free S3 Form Upload using HTTP POST sigv4 | |
| https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html | |
| """ | |
| @doc """ | |
| Signs a form upload. | |
| The configuration is a map which must contain the following keys: | |
| * `:region` - The AWS region, such as "us-east-1" |