Skip to content

Instantly share code, notes, and snippets.

View essejose's full-sized avatar
🎮
Focusing

José Freire Pereira essejose

🎮
Focusing
View GitHub Profile
@essejose
essejose / AdbCommands
Created July 14, 2019 01:16 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@essejose
essejose / server.js
Created February 8, 2018 11:19
Server Admin SDK do Firebase,
/*
Snippet
Admin SDK do Firebase
Firebase features such as Database, Storage, and Auth by the unified Admin SDK.
Go https://console.firebase.google.com/project/meu-instalador-teste/settings/serviceaccounts/adminsdk
Download your private key
npm install --save firebase-admin
function liga() {
this.ligado = true;
}
Ventilador.prototype.ligar = liga;
function Ventilador(velMax) {
this.velocidadeMaxima = velMax;
this.ligado = false;
this.ligar = liga;
// REQUIRED
function getRandom(x, y) {
return Math.floor(Math.random() * (y - x + 1)) + x
}
// Print
//
var print = function (val) {
var cartas = ['carta1','carta2','carta3','carta4','carta5', 'carta6']
alert(cartas[val])
@essejose
essejose / Create the dropdown
Created February 3, 2014 12:34
Create the dropdown in jQuery
$(function() {
// Create the dropdown base
$("<select class='drop' />").appendTo("#menu2");
// Create default option "Go to..."
$("<option />", {
"selected": "selected",
"value" : "",