Skip to content

Instantly share code, notes, and snippets.

View gist:7d80cf37115a52d8ca087d0dbaa80b29
### Keybase proof
I hereby claim:
* I am tiarebalbi on github.
* I am tiare (https://keybase.io/tiare) on keybase.
* I have a public key whose fingerprint is 7437 477E F52C EF9A 9B68 60B4 394B 17D7 6AAC ECFF
To claim this, I am signing this object:
View authenticationService.js
// @flow
import type { AuthConfig, AuthTokenType, Storage } from '../types';
import axios, { Axios, AxiosXHRConfigBase } from 'axios';
import { AuthenticationError } from './authenticationError';
import { decode } from '../helpers/htmlEntitiesEncoding';
import { LocalStorage } from '../helpers/storage';
import Authentication from './authentication';
import ErrorMapping from './errorMapping';
View gist:67fcd3cd6c3b5c001586c71107c33c8e
Verifying my Blockstack ID is secured with the address 19SaQMFx7DGwdhpteB4LFUfS87GDe21CR6 https://explorer.blockstack.org/address/19SaQMFx7DGwdhpteB4LFUfS87GDe21CR6
@tiarebalbi
tiarebalbi / Auth.js
Created Mar 22, 2018 — forked from du5rte/Auth.js
mobX Auth Store
View Auth.js
import mobx, { computed, observable, action } from "mobx"
import store from "store"
import autoStore from "./autoStore"
class Auth {
constructor() {
autoStore("authentication", this)
}
@tiarebalbi
tiarebalbi / doc.md
Created Dec 30, 2017 — forked from nijikokun/doc.md
Building Javascript Frontend / Backend Applications
View doc.md

Document for the best design choices you can make for your software.

Terminology

  • DDD - [Domain Driven Design][ddd-wikipedia]
  • FF or FTF - Function First Design, or File-type First Design is structuring your application by it's function before the files such as a directory named components containing all component files.

File Structure

Structuring applications is hard, here are a few resources to help.

@tiarebalbi
tiarebalbi / doc.md
Created Dec 30, 2017 — forked from nijikokun/doc.md
Building Javascript Frontend / Backend Applications
View doc.md

Document for the best design choices you can make for your software.

Terminology

  • DDD - [Domain Driven Design][ddd-wikipedia]
  • FF or FTF - Function First Design, or File-type First Design is structuring your application by it's function before the files such as a directory named components containing all component files.

File Structure

Structuring applications is hard, here are a few resources to help.

View keybase.md

Keybase proof

I hereby claim:

  • I am tiarebalbi on github.
  • I am tiare (https://keybase.io/tiare) on keybase.
  • I have a public key whose fingerprint is D323 0AAF EA1B F473 DCE8 FBF6 0356 C862 3C24 A867

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am tiarebalbi on github.
  • I am tiare (https://keybase.io/tiare) on keybase.
  • I have a public key ASAziFsbX18ld2JMKML6CrbZglErx7QrCpTwvLSumGEczwo

To claim this, I am signing this object:

View in-fino-veritas.zsh-theme
#!/usr/bin/env zsh
# in fino veritas
# Borrowing shamelessly from these oh-my-zsh themes:
# fino-time
# pure
# https://gist.github.com/smileart/3750104
# Set required options
View gist:e1e51b3d03b108c6a6811f51424fe112
protocol Carro {
var modelo: String {get}
var fabricante: String {get}
}
class Gol : Carro {
var fabricante: String = "Volksvagem"
var modelo: String = "Gol"