Skip to content

Instantly share code, notes, and snippets.

Being a Nerd...

Uilque Messias uqmessias

Being a Nerd...
Block or report user

Report or block uqmessias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
fjcaetano / codecov.rb
Last active Nov 4, 2019
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 Nov 14, 2019
collapsible markdown

collapsible markdown?


yes, even hidden code blocks!

print("hello world!")
flyingluscas /
Last active Jul 25, 2019
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 Aug 8, 2019
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 Oct 13, 2019
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
a-m-s /
Last active Jun 25, 2019
Android code to extract raw audio from arbitrary media files.
/* MediaDecoder
Author: Andrew Stubbs (based on some examples from the docs)
This class opens a file, reads the first audio channel it finds, and returns raw audio data.
MediaDecoder decoder = new MediaDecoder("myfile.m4a");
short[] data;
while ((data = decoder.readShortData()) != null) {
You can’t perform that action at this time.