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
@uqmessias
uqmessias / android_screen_capture.sh
Created Sep 11, 2018 — forked from Ider/android_screen_capture.sh
Capture or record android screen, pull file to Mac when it's completed
View android_screen_capture.sh
# Demo: https://www.youtube.com/watch?v=4GsUf5OQAlI
# capture screen of android device
andrdroidScreenCapture() {
curTime=`date +%Y-%m-%d-%H-%M-%S`
tmpeName="$curTime.png"
[[ -n $1 ]] && fileName=$1 || fileName=$tmpeName
devicePath="/sdcard/$tmpeName"
adb shell screencap -p $devicePath
adb pull $devicePath $fileName
@uqmessias
uqmessias / DatePickerDialogFixedNougatSpinner.java
Last active Oct 4, 2018 — forked from jeffdgr8/TimePickerDialogFixedNougatSpinner.java
TimePickerDialog with fixed android:timePickerMode spinner in Nougat
View DatePickerDialogFixedNougatSpinner.java
package my.packagename;
import android.app.DatePickerDialog;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.DatePicker;
import java.lang.reflect.Field;
@uqmessias
uqmessias / ogl_osx.md
Created Jun 19, 2018 — forked from v3n/ogl_osx.md
GLFW on OS X starting guide
View ogl_osx.md

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

@uqmessias
uqmessias / easing.js
Created Jun 14, 2018 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
@uqmessias
uqmessias / easing.js
Created Jun 14, 2018 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
View easing.js
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity
You can’t perform that action at this time.