Skip to content

Instantly share code, notes, and snippets.

View magnobiet's full-sized avatar
🏠

Magno F. B. Biét magnobiet

🏠
View GitHub Profile
@use '~@angular/material' as mat;
// Be sure that you only ever include this mixin once!
@include mat.core();
// Define your theme with color palettes, typography and density
$mat-theme-primary-palette: map-merge(mat.$blue-palette, ( 501: #223ad2,201: #edeffc,701: #192a9a,601: #ffffff,));
$mat-theme-primary: mat.define-palette(
export enum HttpStatusCode {
// Info
Continue = 100,
SwitchingProtocols = 101,
Processing = 102,
// Success
OK = 200,
Created = 201,
Accepted = 202,
import { iif, Observable, throwError, timer } from 'rxjs';
import { mergeMap, retryWhen, take } from 'rxjs/operators';
export function retryOnError<T>(
maximumRetries = 3,
delayInMilliseconds = 1000,
): (source$: Observable<T>) => Observable<T> {
return (source$) => {
return source$.pipe(
retryWhen((errors) => {
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:root {
font-size: 62.5%;
@magnobiet
magnobiet / bovespa_intraday.py
Created July 18, 2019 13:58 — forked from maurobaraldi/bovespa_intraday.py
Cotações da Bovespa Intraday
#!/usr/bin/env python
from datetime import datetime
from json import loads
from time import gmtime, mktime, strptime
# LevelDict é um wrapper usando dicionário para LevelDB
# https://github.com/maurobaraldi/leveldict
from leveldict import LevelJsonDict
from requests import get
eterm##$:BKUW300PS345671: astu -ls ./root/fsociety/ -a
eterm##$:BKUW300PS345671: fsociety00.dat readme.txt
eterm##$:BKUW300PS345671: more readme.txt
--------- readme.txt----------
LEAVE ME HERE
------------------------------
@magnobiet
magnobiet / ComponentTemplate.vue
Last active July 11, 2018 12:26
A Vue.js templates
<template lang="html">
<section class="cool-component-wrapper">
<p>TODO</p>
</section>
</template>