Skip to content

Instantly share code, notes, and snippets.

@mugifly
mugifly / adb-android-disable-animation.sh
Last active December 8, 2022 22:40
Disable the animation of Android Virtual Device using adb command
# For Android JellyBean and newer device
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="window_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="transition_animation_scale"'
adb shell content update --uri content://settings/system --bind value:s:0.0 --where 'name="animator_duration_scale"'
# For Android ICS and older device
adb shell "echo \"update system set value=0.0 where name='window_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
adb shell "echo \"update system set value=0.0 where name='transition_animation_scale';\" | sqlite3 /data/data/com.android.providers.settings/databases/settings.db"
@JanDeDobbeleer
JanDeDobbeleer / crashlytrics.rb
Last active July 15, 2018 20:54
Dashing - Crashlytics & Xaramin Insights crash free users rate widget + jobs
require 'net/https'
require 'json'
#--------------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------------
configuration = {
:uri => 'https://fabric.io',
:credentials => {
:username => '',
public class CSSLinkHandler extends TagNodeHandler {
private static final Logger LOG = LoggerFactory.getLogger("CSSLinkHandler");
public void handleTagNode(TagNode node, SpannableStringBuilder builder, int start, int end, SpanStack spanStack) {
String type = node.getAttributeByName("type");
String href = node.getAttributeByName("href");
LOG.debug("Found link tag: type=" + type + " and href=" + href );
if ( type == null || ! type.equals("text/css") ) {