Skip to content

Instantly share code, notes, and snippets.

View loiane's full-sized avatar

Loiane Groner loiane

View GitHub Profile
@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 / 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 / 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 / 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 / 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) { }