Skip to content

Instantly share code, notes, and snippets.

View russiann's full-sized avatar
🎧
Focusing

Russian Rebouças russiann

🎧
Focusing
  • Digibee
  • Fortaleza, CE
View GitHub Profile
@russiann
russiann / currying.md
Created August 25, 2022 01:54 — forked from donnut/currying.md
TypeScript and currying

TypeScript and currying

In functional programming you often want to apply a function partly. A simple example is a function add. It would be nice if we could use add like:

var res2 = add(1, 3); // => 4

var add10To = add(10);
var res = add10To(5); // => 15
@russiann
russiann / app.js
Created August 17, 2018 18:53 — forked from mnsmarcelo/app.js
//referencia do prompt
var bannerInstall;
if ('serviceWorker' in navigator){
navigator.serviceWorker
.register('sw.js')
.then(function () {
console.log('Service worker está registrado!');
});
}
@russiann
russiann / comoSerChatoNowhatsapp.js
Created October 18, 2017 17:34 — forked from callmeloureiro/comoSerChatoNoWhatsapp.js
Como fazer alguém te responder no whatsapp
var counter = 0;
var i = setInterval(function() {
window.InputEvent = window.Event || window.InputEvent;
var d = new Date();
var event = new InputEvent('input', {
bubbles: true
});
var textbox = document.querySelector('#main > footer > div.block-compose > div.input-container > div.pluggable-input.pluggable-input-compose > div.pluggable-input-body.copyable-text.selectable-text');
var textToSend = "Me responde!";
@russiann
russiann / android_instructions.md
Created August 26, 2017 22:26 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

var dddGeo = [];
dddGeo[11] = {
latitude: -23.547778,
longitude: -46.635833
}; // | São Paulo | Região Metropolitana de São Paulo.
dddGeo[12] = {
latitude: -23.203416,
longitude: -45.890627
}; // | São Paulo | São José dos Campos e Região.
@russiann
russiann / README.md
Last active August 29, 2015 14:21 — forked from zenorocha/README.md

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage