Skip to content

Instantly share code, notes, and snippets.

Avatar

Xavier Rubio Jansana xrubioj

View GitHub Profile
@xrubioj
xrubioj / deepSleepDemo.ino
Created Aug 14, 2017 — forked from ItKindaWorks/deepSleepDemo.ino
A demo of the deep sleep functionality on ESP8266 devices.
View deepSleepDemo.ino
/*
deepSleepDemo.ino
Copyright (c) 2017 ItKindaWorks All right reserved.
github.com/ItKindaWorks
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
xrubioj / Alfred Dark alt.alfredappearance
Created Sep 29, 2017
Afred Dark theme variant with translucent border, to make it more visible with dark windows (e.g. code editors with dark themes)
View Alfred Dark alt.alfredappearance
{
"alfredtheme" : {
"result" : {
"textSpacing" : 5,
"subtext" : {
"size" : 12,
"colorSelected" : "#FFFFFFCB",
"font" : "System",
"color" : "#FFFFFF7E"
},
@xrubioj
xrubioj / ProgressTimeLatch.kt
Last active Nov 8, 2017
ProgressTimeLatch: it's basically ContentLoadingProgressBar but works with any view
View ProgressTimeLatch.kt
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@xrubioj
xrubioj / purge.sh
Created Nov 23, 2017
Purge untagged Docker images
View purge.sh
docker image list | grep "^<none>" | cut -c 48-59 | xargs docker image rm
@xrubioj
xrubioj / ResourceChanges.md
Last active Mar 28, 2018
Android Studio 3.0 to 3.1 resource size changes
View ResourceChanges.md

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.

View modalPresentationStyles.csv
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