Skip to content

Instantly share code, notes, and snippets.

View xrubioj's full-sized avatar

Xavier Rubio Jansana xrubioj

View GitHub Profile
xrubioj / deepSleepDemo.ino
Created August 14, 2017 18:06 — forked from ItKindaWorks/deepSleepDemo.ino
A demo of the deep sleep functionality on ESP8266 devices.
Copyright (c) 2017 ItKindaWorks All right reserved.
This file is part of ESPHelper
ESPHelper is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
xrubioj / Alfred Dark alt.alfredappearance
Created September 29, 2017 10:00
Afred Dark theme variant with translucent border, to make it more visible with dark windows (e.g. code editors with dark themes)
"alfredtheme" : {
"result" : {
"textSpacing" : 5,
"subtext" : {
"size" : 12,
"colorSelected" : "#FFFFFFCB",
"font" : "System",
"color" : "#FFFFFF7E"
xrubioj / ProgressTimeLatch.kt
Last active November 8, 2017 13:34
ProgressTimeLatch: it's basically ContentLoadingProgressBar but works with any view
* Copyright 2017 Google, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
xrubioj /
Created November 23, 2017 11:37
Purge untagged Docker images
docker image list | grep "^<none>" | cut -c 48-59 | xargs docker image rm
xrubioj /
Last active March 28, 2018 16:19
Android Studio 3.0 to 3.1 resource size changes

The two APKs are generated with:

  • Android Studio 3.0 (Gradle Plugin 3.0.1, Gradle 4.1) and
  • Android Studio 3.1 (Gradle Plugin 3.1.0, Gradle 4.4)

Apparently, size difference in the resources comes from binary XMLs now including the namespace attributes and "xmlns:*" attributes, that were previously stripped.

See the attached image for the differences for activity_main.xml.

UIModalPresentationStyle iPhone iPad
.fullScreen YES YES
.pageSheet YES NO
.formSheet YES NO
.currentContext YES YES
.custom NO NO
.overFullScreen NO NO
.overCurrentContext NO NO
.blurOverFullScreen  only on tvOS - N/A N/A
.popover YES NO