Skip to content

Instantly share code, notes, and snippets.

Patrick Jung PDDStudio

Block or report user

Report or block PDDStudio

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
PDDStudio /
Created Jul 24, 2019 — forked from lopspower/
Hexadecimal color code for transparency

Hexadecimal color code for transparency


How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

PDDStudio /
Last active Aug 21, 2018
Alpha channel values (100%-0%) in hexadecimal.

Transparency Table

All possible values for AA in AARRGGBB.

Listed in their hexadecimal representation below:

100% — FF
99% — FC
98% — FA

Keybase proof

I hereby claim:

  • I am pddstudio on github.
  • I am pddstudio ( on keybase.
  • I have a public key ASARy10fPDz7ObirOC2liYfbcclouuCcjKTEDKBa3-W6ZQo

To claim this, I am signing this object:

View index.html
<!DOCTYPE html>
<title>A Minimalist App</title>
<script defer src="main.dart.js"></script>
<p id="RipVanWinkle">
RipVanWinkle paragraph.
PDDStudio /
Created Mar 29, 2017 — forked from nddrylliog/
Cross-compile autotools library for Android / arm-linux-androideabi I stick that in ~/bin/, chmod +x, and then run it in place of "./configure" in my project. Then a make and make install later, the prefix contains libraries built for android. Neato eh?
# I put all my dev stuff in here
export DEV_PREFIX=$HOME/Dev/
# Don't forget to adjust this to your NDK path
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/
export CROSS_COMPILE=arm-linux-androideabi
* Copyright (c) 2015 Rüdiger Herrmann
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at
* Contributors:
* Rüdiger Herrmann - initial API and implementation
package com.codeaffine.jgit.example;
PDDStudio /
Created Jan 9, 2017 — forked from tasomaniac/
Screen Record for Android
set -e
if [ -z "$1" ]; then
shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4
PDDStudio /
Created Jan 20, 2016
Viewpager with possibillity to disable swiping
public class CustomViewPager extends ViewPager {
private boolean isPagingEnabled = true;
public CustomViewPager(Context context) {
public CustomViewPager(Context context, AttributeSet attrs) {
super(context, attrs);
PDDStudio /
Created Jan 20, 2016
Take a screenshot programatically in Android
public static Bitmap takeScreenshot(Activity activity) {
ViewGroup decor = (ViewGroup) activity.getWindow().getDecorView();
ViewGroup decorChild = (ViewGroup) decor.getChildAt(0);
Bitmap drawingCache = decorChild.getDrawingCache(true);
Bitmap bitmap = Bitmap.createBitmap(drawingCache);
return bitmap;
You can’t perform that action at this time.