Skip to content

Instantly share code, notes, and snippets.

View jlcarvalho's full-sized avatar

Jean Lucas de Carvalho jlcarvalho

View GitHub Profile
Verifying that +jlcarvalho is my blockchain ID. https://onename.com/jlcarvalho
/**
* Created by JeanLucas on 26/07/2015.
*/
function run ($rootScope, $location, $window) {
var parentDomain = 'http://localhost:3000';
// A function to process messages received by the window.
function receiveMessage(e) {
// Check to make sure that this message came from the correct domain.
if (e.origin !== parentDomain) return;

Algum tempo atrás eu publiquei um artigo que ensinava como desempacotar aplicativos da Google Play para auxiliar no aprendizado através de engenharia reversa. No artigo eu busquei deixar claro que o objetivo era fazer com que "mais pessoas sejam capazes de otimizar seus aplicativos através das descobertas proporcionadas pela técnica".

E muita gente entendeu isso, mas ainda assim rolou bastante polêmica. Muita gente acredita que esse tipo de conhecimento não pode ser propagado. Talvez por medo ou algo do tipo. A questão é que eu acredito que só através do conhecimento nós seremos capazes de melhorar nossos aplicativos. Inclusive a engenharia reversa pode nos ajudar em diversas áreas, como segurança, performance, tooling, usabilidade, etc.

Enfim, eu poderia me estender mais, falando das questões éticas e morais do tema, mas já fiz isso no meu artigo anterior então vamos ao que interessa.

Espiando os aplicativos

É importante ressaltar que para realizar os passos a seguir é necessário possuir um Mac e um d

@jlcarvalho
jlcarvalho / SCSS.md
Created August 11, 2017 00:36 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@jlcarvalho
jlcarvalho / README.md
Created August 17, 2017 20:03
React Native Icon Automation
@jlcarvalho
jlcarvalho / ProofOfExistence.sol
Created October 19, 2017 02:45 — forked from ageyev/ProofOfExistence.sol
This smartcontract is used to store documents text on the Ethereum blockchain and to get the document by document's hash (sha256).
/*
This smartcontract is used to store documents text on the Ethereum blockchain
and to get the document by document's hash (sha256).
*/
contract ProofOfExistence{
/* ---- Public variables: */
string public created;
@jlcarvalho
jlcarvalho / combinations.js
Created November 29, 2017 17:32 — forked from axelpale/combinations.js
JavaScript functions to calculate combinations of elements in Array.
/**
* Copyright 2012 Akseli Palén.
* Created 2012-07-15.
* Licensed under the MIT license.
*
* <license>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
{
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/68.0.3440.106 Safari/537.36",
"lighthouseVersion": "3.0.3",
"fetchTime": "2018-08-29T02:00:07.144Z",
"requestedUrl": "https://futuring.com.br/",
"finalUrl": "https://futuring.com.br/",
"runWarnings": [],
"audits": {
"is-on-https": {
"id": "is-on-https",