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 / 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>
<!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">

Bio

Loiane Groner has over 10 years of experience working with software development based on Java and JavaScript/HTML5 (and related frameworks). Worked for multinational companies such as IBM and currently works at Citibank as fullStack developer. Loiane is also engaged with technology user groups such as Java (Sou Java, Campinas JUG), Sencha, JavaScript and Angular.

Blog and articles

Loiane maintains the blog http://loiane.com with over 500 posts published in Portuguese-Br and English (from previous blog loianegroner.com). She published posts about Java, Java EE (Spring, Hibernate), JavaScript/Ajax/JSON and tutorials. The blog is hosted on Github with all its content under MIT License (https://github.com/loiane/loiane.github.io). Was also awarded the title of MVB (Most Valuable Blogger) from DZone portal (https://dzone.com/users/286409/Loiane.html)

public class TesteStringInteger {
public static void main(String[] args) {
String numeroDoArquivo = "99 ";
//numeroDoArquivo = numeroDoArquivo.trim(); //remove espaços das extremidades
numeroDoArquivo = numeroDoArquivo.replaceAll(" ", ""); //remove todos os espaços
long numero = Long.parseLong(numeroDoArquivo);