Skip to content

Instantly share code, notes, and snippets.

View loiane's full-sized avatar

Loiane Groner loiane

View GitHub Profile
@alegomes
@fmeyer
@lacerdaph
@celsoavmartins
@jeveaux
@glbenz
@leohackin
@lucastex
@loiane
@blpsilva
@loiane
loiane / gist:1351834
Created November 9, 2011 15:42 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
import { Component, Input, AfterViewInit } from '@angular/core';
import { NgModel, DefaultValueAccessor, NgControl } from '@angular/forms';
import { Http, Headers, RequestOptions } from '@angular/http';
@Component({
selector: 'app-file-uploader',
template: '<input type="file" (change)="updated($event);">',
providers: [NgModel, DefaultValueAccessor]
})
export class FileUploaderComponent implements AfterViewInit {
@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 / 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) { }