Skip to content

Instantly share code, notes, and snippets.


Loiane Groner loiane

View GitHub Profile
loiane / mac.txt
Created Oct 2, 2020
delete git remote branches
View mac.txt
git branch -r | grep "^ ${REMOTE}/" | sed "s|^ ${REMOTE}/|:|" | grep -v "^:HEAD" | grep -v "^:master$" | xargs git push ${REMOTE}
loiane / linkedin.js
Created Apr 22, 2020 — forked from peas/linkedin.js
linkedin script da loiane pra aprovar amizades massivamente
View linkedin.js
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

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.

View login.html
<div class="session">
<div class="session-content">
<div class="session-wrapper">
<mat-card-title class="text-xs-center pb-1">Faça login para continuar</mat-card-title>
<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>
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script id="jsbin-javascript">


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 with over 500 posts published in Portuguese-Br and English (from previous blog 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 ( Was also awarded the title of MVB (Most Valuable Blogger) from DZone portal (

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);
View Simple File Upload Component
import { Component, Input, AfterViewInit } from '@angular/core';
import { NgModel, DefaultValueAccessor, NgControl } from '@angular/forms';
import { Http, Headers, RequestOptions } from '@angular/http';
selector: 'app-file-uploader',
template: '<input type="file" (change)="updated($event);">',
providers: [NgModel, DefaultValueAccessor]
export class FileUploaderComponent implements AfterViewInit {
loiane / gist:3588ce18b0fc2d0d390daa8fefe67842
Last active Sep 14, 2016
sencha extjs 6 - load locale dynamically
View gist:3588ce18b0fc2d0d390daa8fefe67842
function loadLocale(){
var query = Ext.Object.fromQueryString(,
lang = query.lang ? query.lang.toLowerCase() : 'en';
if (lang === 'pt'){
lang = 'pt_BR';
var extJsFile = Ext.util.Format.format("resources/locale/ext-locale-{0}.js", lang);