I hereby claim:
- I am aslrousta on github.
- I am aslrousta (https://keybase.io/aslrousta) on keybase.
- I have a public key ASAqAudCM1mbROTXnMAJGNHNqDAjIy2IA8ydOmFiZFrROAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <sys/types.h> | |
#include <unistd.h> | |
/* Holds the path to the process's executable file. | |
Copied from `argv[0]` in the `main` function. */ | |
extern const char* prog_path; | |
/* Replicates the current process. */ | |
int replicate(void) | |
{ |
FROM golang:alpine AS builder | |
RUN apk --no-cache --update add git | |
RUN go get ... \ | |
&& go get ... \ | |
&& go get github.com/ddollar/forego | |
COPY . src/gitlab.com/example.com/auth | |
RUN cd src/gitlab.com/example.com/auth \ | |
&& go build \ |
<?php | |
function transfer($fromAccountId, $toAccountId, $balance) | |
{ | |
$fromQuery = Account::whereId($fromAccountId); | |
if (! $fromQuery->exists()) { | |
throw new InvalidAccountException(); | |
} | |
$toQuery = Account::whereId($toAccountId); |
<?php | |
function transfer($fromAccountId, $toAccountId, $amount) | |
{ | |
DB::beginTransaction(); | |
try { | |
$fromQuery = Account::whereId($fromAccountId); | |
if (! $fromQuery->exists()) { | |
throw new InvalidAccountException(); |