I hereby claim:
- I am roman-mazur on github.
- I am roma (https://keybase.io/roma) on keybase.
- I have a public key whose fingerprint is 7AF4 4011 6A8F CA62 78CB 9558 38B9 51FD 76A7 0DAD
To claim this, I am signing this object:
| package com.example.testtest; | |
| import android.app.Activity; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.Paint; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.os.Bundle; |
| package com.example.testtest; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.ColorFilter; | |
| import android.graphics.LinearGradient; | |
| import android.graphics.Paint; | |
| import android.graphics.Path; | |
| import android.graphics.Rect; | |
| import android.graphics.Shader; |
| package com.chuze.ui.activity.test; | |
| import android.support.v7.app.ActionBar; | |
| import android.support.v7.app.ActionBarActivity; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.robolectric.Robolectric; | |
| import org.robolectric.RobolectricTestRunner; |
| # do not forget to "adb root" | |
| adb shell mount -o rw,remount /system |
| # Usage: gcm-push.sh <api-key> <json-file> | |
| curl -H "Authorization:key=$1" -H "Content-Type:application/json" --data @$2 -X POST https://android.googleapis.com/gcm/send |
| /** | |
| * Adds code generated by annotation processors to source folders. | |
| */ | |
| def aptOutputDir = project.file(new File(project.buildDir, "generated/source/apt")) | |
| android.applicationVariants.all { def v -> | |
| def aptOutput = new File(aptOutputDir, v.dirName) | |
| v.addJavaSourceFoldersToModel(aptOutput) | |
| v.javaCompile.options.compilerArgs += [ | |
| '-s', aptOutput.absolutePath |
| brew install exiftool | |
| find . -path '*src/main/res/*' -name '*.png' -exec exiftool -overwrite_original -all= {} \; |
I hereby claim:
To claim this, I am signing this object:
| FROM gmacario/build-yocto | |
| # Install extra tools for balena build. | |
| RUN sudo apt-get update && sudo apt-get -y install \ | |
| nodejs \ | |
| npm \ | |
| jq \ | |
| iptables |
| #define RED 4 | |
| #define GREEN 3 | |
| #define BLUE 2 | |
| #define COUNT (RED-BLUE+1) | |
| #define BUTTON 7 | |
| int state[] = {LOW, LOW, LOW}; | |
| int toStateIndex(int pin) { |