Skip to content

Instantly share code, notes, and snippets.

View loiane's full-sized avatar

Loiane Groner loiane

View GitHub Profile
@loiane
loiane / firestore.service.ts
Created September 30, 2021 22:52 — forked from evlymn/firestore.service.ts
Firestore Basics, Modular Firebase 9
import { Injectable } from '@angular/core';
import { Firestore, collectionData, collection, QueryConstraint } from '@angular/fire/firestore';
import { addDoc, CollectionReference, deleteDoc, doc, getDoc, query, setDoc, updateDoc } from '@firebase/firestore';
@Injectable({
providedIn: 'root'
})
export class FirestoreService {
constructor(private firestore: Firestore) { }
@loiane
loiane / gde-post-contribution.js
Created September 16, 2021 21:22 — forked from ErickWendel/gde-post-contribution.js
Example of how to automate contribution submissions on GDE API
const axios = require('axios')
class GDEAPI {
constructor({ token }) {
this.token = token
}
async submitContributions(body) {
const headers = {
"accept": "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.9",
@loiane
loiane / mac.txt
Created October 2, 2020 23:47
delete git remote branches
REMOTE="origin"
git branch -r | grep "^ ${REMOTE}/" | sed "s|^ ${REMOTE}/|:|" | grep -v "^:HEAD" | grep -v "^:master$" | xargs git push ${REMOTE}
@loiane
loiane / linkedin.js
Created April 22, 2020 00:12 — forked from peas/linkedin.js
linkedin script da loiane pra aprovar amizades massivamente
const x = document.getElementsByClassName('artdeco-button--secondary'); for (let i=0 ; i<x.length; i++) x[i].click();
// falta paginacao e aceitar >100 numa tacada :P
@loiane
loiane / Ux.InputTextMask.js
Created April 8, 2011 01:10
Ux.InputTextMask for ExtJS4
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1:
@loiane
loiane / proposals.md
Created March 17, 2020 20:07
GDE Google NA

Data Structures and Algorithms

Data Structures define how to store the data, and the option we chose might impact on the performance of our algorithm. What should be the best data strucuture to handle records retrieved from a database? What if I want to work with file search? Or what if I want to create my own route for Google Maps, what structure whould I use? In this talk we'll learn the basics of some data strucutres, and will dive into details of some common data structures such as Arrays, Stacks, Queue and Linked Lists. Even tough some languages already provide these data structures, it's important to know how they work. We'll briefly cover trees and graphs as well.

@loiane
loiane / login.html
Created September 24, 2019 14:12
login
<div class="session">
<div class="session-content">
<div class="session-wrapper">
<mat-card>
<mat-card-title class="text-xs-center pb-1">Faça login para continuar</mat-card-title>
<mat-card-content>
<form [formGroup]="form">
<div fxLayout="column" fxLayoutAlign="space-around">
<div class="pb-1 mat-error">Migramos o portal para uma nova plataforma. Caso seja a primeira fez que esteja logando, por favor, <a [routerLink]="['/sessao/resetar-senha']" class="bold">redefina a sua senha</a>.</div>
<div class="pb-1 mat-error" *ngIf="error">{{ error }}</div>
@loiane
loiane / ReceitaBoloMousseMorango.md
Last active August 22, 2018 14:00
ReceitaBoloMousseMorango
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">