Skip to content

Instantly share code, notes, and snippets.

protocol Carro {
var modelo: String {get}
var fabricante: String {get}
}
class Gol : Carro {
var fabricante: String = "Volksvagem"
var modelo: String = "Gol"
#!/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

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:

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:

@tiarebalbi
tiarebalbi / doc.md
Created December 30, 2017 12:22 — forked from nijikokun/doc.md
Building Javascript Frontend / Backend Applications

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 / Auth.js
Created March 22, 2018 07:48 — forked from du5rte/Auth.js
mobX Auth Store
import mobx, { computed, observable, action } from "mobx"
import store from "store"
import autoStore from "./autoStore"
class Auth {
constructor() {
autoStore("authentication", this)
}
Verifying my Blockstack ID is secured with the address 19SaQMFx7DGwdhpteB4LFUfS87GDe21CR6 https://explorer.blockstack.org/address/19SaQMFx7DGwdhpteB4LFUfS87GDe21CR6
// @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';
### 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:
<div id="smart-button-container">
<div style="text-align: center;">
<div id="paypal-button-container"></div>
</div>
</div>
<script src="https://www.paypal.com/sdk/js?client-id=AQWLz3vKbMe_IgBuGxCM6oJeQ40-n9nzBL5M47ITCEjY3oMtWqqaGuCIUU5XJj-piDPXvuZXOAi0awWg&currency=BRL" data-sdk-integration-source="button-factory"></script>
<script>
function initPayPalButton() {
paypal.Buttons({
style: {