You can make your own HD animated GIF generator.
Follow along with these commands to get started.
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg| #!/bin/sh | |
| fps=$3 | |
| res=$4 | |
| palette="/tmp/palette.png" | |
| filters="fps=$fps,scale=$res:-1:flags=bicubic" | |
| palettegenops="stats_mode=diff" | |
| paletteuseops="dither=none" |
| packer build packer.json 2>&1 | sudo tee output.txt | |
| tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt |
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView
In the library folder(module) I have the lib code abovementioned. And applying in the build.gradle of this folder apply plugin: 'com.android.library' I got as output an .aar in the build/outputs/aar/ directory of the module's directory
| // status bar height | |
| int statusBarHeight = 0; | |
| int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); | |
| if (resourceId > 0) { | |
| statusBarHeight = getResources().getDimensionPixelSize(resourceId); | |
| } | |
| // action bar height | |
| int actionBarHeight = 0; | |
| final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes( |
| import android.text.SpannableStringBuilder; | |
| import java.util.ArrayDeque; | |
| import java.util.Deque; | |
| import static android.text.Spanned.SPAN_INCLUSIVE_EXCLUSIVE; | |
| /** A {@link SpannableStringBuilder} wrapper whose API doesn't make me want to stab my eyes out. */ | |
| public class Truss { | |
| private final SpannableStringBuilder builder; | |
| private final Deque<Span> stack; |
| # Modified from https://paul.kinlan.me/android-screen-recording-and-device-framing/ | |
| # Original gist: https://gist.github.com/PaulKinlan/2fdb0c8a6b6f6a646f87 | |
| # n6-background.png: https://imgur.com/a/r83EX (it is actually Nexus 5X) | |
| if [ -z "$1" ]; then | |
| shot_path=$(date +%Y-%m-%d-%H-%M-%S).mp4 | |
| else | |
| shot_path="$*" | |
| fi | |
| ffmpeg="ffmpeg" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:id="@+id/drawer_layout" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true" | |
| tools:openDrawer="start" | |
| > |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed