Skip to content

Instantly share code, notes, and snippets.

View raloliver's full-sized avatar

Israel Oliveira raloliver

View GitHub Profile
@raloliver
raloliver / dart.exceptions.dart
Created April 12, 2019 00:41
Samples Dart Exceptions
// IntegerDivisionByZeroException
// FormatException
// DeferredLoadException
// IOException
// TimeoutException
main() {
int x = 12;
int y = 2;
@raloliver
raloliver / .vscode
Last active November 20, 2020 17:46
.vscode
// Place your settings in this file to overwrite the default settings
{
// Controls the font family.
"editor.fontFamily": "'Fira Code', Hack, 'Courier New', monospace",
// Controls the font size.
"editor.fontSize": 16,
// Controls the font weight.
"editor.fontWeight": "500",
// Controls auto save of dirty files. Accepted values: "off", "afterDelay", "onFocusChange". If set to "afterDelay" you can configure the delay in "files.autoSaveDelay".
"files.autoSave": "afterDelay",
[
{
"windows": {
"148": {
"42": {
"id": 42,
"index": 0,
"windowId": 148,
"highlighted": false,
"active": false,
@raloliver
raloliver / vscode.json
Created October 2, 2018 18:49
.vscode (linux)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.mouseWheelZoom": true,
"workbench.colorTheme": "Solarized Dark",
"breadcrumbs.enabled": true,
"editor.minimap.enabled": false,
"terminal.external.linuxExec": "/usr/bin/gnome-terminal",
"terminal.explorerKind": "external",
"typescript.updateImportsOnFileMove.enabled": "always"
@raloliver
raloliver / ContextCmder-Disable.reg
Last active September 30, 2018 07:56 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7/8
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
<!--<div class="gatefy-checkbox d-flex justify-content-end">-->
<!--<label>-->
<!--<input type="checkbox" (change)="onToggle()" cli>-->
<!--<span [ngClass]="isEnabled ? color : false"></span>-->
<!--</label>-->
<!--</div>-->
<!-- <ng-container [ngSwitch]="Quarentine">
<div *ngSwitchCase="'checkbox'" class="gatefy-checkbox {{component.stage == 3 ? 'gatefy-stage' : '' }}">
@raloliver
raloliver / array_iteration_thoughts_pt-BR.md
Created September 7, 2018 20:59 — forked from felisio/array_iteration_thoughts_pt-BR.md
Métodos de iteração de Array

Métodos de iteração de Array

Adaptação do fork: (https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff)

Ao tentar explicar como o Javascript usa seu métodos para arrays, acabei reunindo esses conceitos. Espero que Seja util. Ficarei feliz com qualquer sugestão.

Introdução

O Objet Array no Javascript tem muitos métodos construidos no seu prototype. Alguns deles modificam o proprio array passado. Felizmente, a maioria não, eles retonar um novo array inteiramente distinto. Uma vez que arrays são conceitualmente uma lista de itens, ajuda na clareza do código e sua manutenção a ponto de ser capas de operar de uma forma mais "funcional" . (Eu insisto em refrenciar um array como uma "Lista" - embora em algumas linguaguens de programação, Lista é um tipo de dado nativo, mais em JS e nesse POST, estou me referindo ao conceito. Em todos os lugares que eu usar a palavra "lista" você pode assumir que eu estou falando de JS Array) Isso siginifica, para a execução de uma simples operação na Lista como um

@raloliver
raloliver / README-Template.md
Created September 5, 2018 08:30 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites