Skip to content

Instantly share code, notes, and snippets.

Being a Nerd...

Uilque Messias uqmessias

Being a Nerd...
View GitHub Profile
akitaonrails /
Created Nov 6, 2019
Links de referência pro Episódio 66 do Canal Akitando
fjcaetano / codecov.rb
Last active Feb 8, 2021
Codecov Fastlane action
View codecov.rb
module Fastlane
module Actions
class CodecovAction < Action
ci_only = params[:ci_only]
cmd = ['curl -s | bash']
cmd << "-s --" if params.all_keys.inject(false) { |p, k| p or params[k] }
cmd << "-X xcodeplist" if params[:use_xcodeplist]
cmd << "-J '#{params[:project_name]}'" if params[:project_name]
joyrexus /
Last active Sep 20, 2021
collapsible markdown

collapsible markdown?


yes, even hidden code blocks!

print("hello world!")
flyingluscas /
Last active Oct 21, 2020
Installing Popcorn Time on Ubuntu 16.x

1. Downloading

32 bits version

$ wget -O popcorntime.tar.xz

64 bits version

View json-estados-brasileiros
"UF": [
{"nome": "Acre", "sigla": "AC"},
{"nome": "Alagoas", "sigla": "AL"},
{"nome": "Amapá", "sigla": "AP"},
{"nome": "Amazonas", "sigla": "AM"},
{"nome": "Bahia", "sigla": "BA"},
{"nome": "Ceará", "sigla": "CE"},
{"nome": "Distrito Federal", "sigla": "DF"},
{"nome": "Espírito Santo", "sigla": "ES"},
Ider /
Last active Sep 11, 2018
Capture or record android screen, pull file to Mac when it's completed
# Demo:
# capture screen of android device
andrdroidScreenCapture() {
curTime=`date +%Y-%m-%d-%H-%M-%S`
[[ -n $1 ]] && fileName=$1 || fileName=$tmpeName
adb shell screencap -p $devicePath
adb pull $devicePath $fileName
View harlem_shake.js
javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}funct
View gist:8acf304408393ae17ed3
import android.util.Log;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
MichaelRocks / MathExtensions.kt
Last active Jun 22, 2021
Math extension functions and float-math functions for Kotlin
View MathExtensions.kt
* Copyright 2015 Michael Rozumyanskiy
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
cmelchior /
Last active Mar 5, 2021
Serialize Realm objects to JSON using GSON
// GSON can parse the data.
// Deserialization:
// Note there is a bug in GSON 2.3.1 that can cause it to StackOverflow when working with RealmObjects.
// To work around this, use the ExclusionStrategy below or downgrade to 1.7.1
// See more here:
// Serialization:
// <Type>RealmProxy objects are created by the Realm annotation processor. They are used to control
// access to the actual data instead of storing them in fields and it is therefore them we need to register a