Skip to content

Instantly share code, notes, and snippets.

Piasy Piasy

Block or report user

Report or block Piasy

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
Piasy /
Last active Jul 7, 2019
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
Piasy /
Last active Oct 25, 2016
Demonstrate ValueRequestOperator
import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import org.junit.Test;
import rx.Emitter;
import rx.Observable;
import rx.Producer;
import rx.Subscriber;
import rx.Subscription;
Piasy / AndroidManifest.xml
Created Oct 21, 2016
mockito connected Android test bug repro
View AndroidManifest.xml
<manifest xmlns:android=""
<activity android:name=".MyActivity"/>
View Mac OSX NTFS Writable
echo "Checking if already existing device on file..."
while read fileLine; do
if [ "$line" = "$fileLine" ]; then
echo "[WARNING] Device already initialized on this system. Nothing to do here"
Piasy / build1.gradle
Created Mar 10, 2016
View build1.gradle
buildscript {
dependencies {
classpath "com.github.piasy:okbuck-gradle-plugin:1.0.0-beta8"
apply plugin: 'com.github.piasy.okbuck-gradle-plugin'
Piasy / .gitignore
Created Mar 10, 2016
View .gitignore
# buck & OkBuck
Piasy /
Created Feb 24, 2016
RxAndroidAudio blog code snippet
public synchronized int getMaxAmplitude();
Piasy / AndroidManifest.xml
Created Feb 20, 2016
Android Runtime Permission test
View AndroidManifest.xml
<uses-permission android:name="android.permission.READ_CONTACTS"/>
Piasy /
Created Feb 20, 2016
Java Immutable Blog
List<Integer> list1 = new ArrayList<>();
List<Integer> list2 = new ArrayList<>(list1);
View GetGradleDeps1.groovy
for (ResolvedDependency dependency :
project.configurations.getByName("compile").resolvedConfiguration.firstLevelModuleDependencies) {
// dependency是gradle api定义的依赖,可以获取moduleGroup,moduleName,moduleVersion信息,
// 包括maven依赖、本地子module依赖,间接依赖在dependency.children中,
// 而这个依赖的本地文件则在dependency.moduleArtifacts中
You can’t perform that action at this time.