Build "Sources for Android 29" so you can comfortably browse the Android API source in Android Studio.
- Collect source files
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/baseBuild "Sources for Android 29" so you can comfortably browse the Android API source in Android Studio.
mkdir android-sdk-source-build
cd android-sdk-source-build
mkdir -p frameworks/basehttps://api.burgerking.de/api/o2uvrPdUY57J5WwYs6NtzZ2Knk7TnAUY/v4/de/de/coupons/
https://api.burgerking.de/api/o2uvrPdUY57J5WwYs6NtzZ2Knk7TnAUY/v2/de/de/meta
https://api.burgerking.de/api/o2uvrPdUY57J5WwYs6NtzZ2Knk7TnAUY/v2/de/de/flags/
https://api.burgerking.de/api/o2uvrPdUY57J5WwYs6NtzZ2Knk7TnAUY/v2/de/de/contents/
https://api.burgerking.de/api/o2uvrPdUY57J5WwYs6NtzZ2Knk7TnAUY/v2/de/de/products/
| Description | V3 | V4 |
|---|---|---|
| Entry point - optional unless you have a custom GlideModule | Glide | GlideApp |
| Bitmap transformations | bitmapTransform() |
transform() |
| Release bitmap | Glide.clear() | GlideApp.with(context).clear() |
| Custom animations | animate(android.R.anim.fade_in) | transition(GenericTransitionOptions.with(android.R.anim.fade_in)) |
| Request builder | DrawableRequestBuilder<CustomModel> |
RequestBuilder<Drawable> |
| Request builder | DrawableRequestBuilder<String> |
RequestBuilder<Drawable> |
| package net.aquadc.recycler; | |
| import android.content.Context; | |
| import android.graphics.Rect; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| /** |
| /* | |
| * Copyright (C) 2018 Square, 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 |
This is a simple guide on how to automate UK lights with a Shelly 1 by installing the shelly 1 relay into the ceiling pendant which has both permanent live, neutral and a switched live back from the wall switch.
These steps are from my own experience making my lighting "smart" but also user friendly (it works via a wall switch!). This simple guide will go through replacing an a normal ceiling pendant with one with room for a Shelly 1. If you have a ceiling light with a bigger base it's even easier.
Warning Electrical regulations must be followed by law. If you are not a competent person under the regulations do not attempt electrical work. https://www.diydoctor.org.uk/projects/electrical_safety.htm
This diagram has been taken from here and modified to include the Shelly 1.
| #!/usr/bin/env bash | |
| # I've found that the "Migrate to AndroidX" converter in Android Studio doesn't work very | |
| # well, so I wrote my own script to do the simple job of converting package names. | |
| # | |
| # You can download a CSV of package names here: https://developer.android.com/topic/libraries/support-library/downloads/androidx-class-mapping.csv | |
| # | |
| # It'll run faster on a clean build because then there are fewer files to scan over. | |
| # | |
| # Uses `gsed` because I'm on a Mac. Can easily replace with `sed` if you don't have `gsed`. |
| version: "3" | |
| services: | |
| elasticsearch: | |
| image: elasticsearch:7.16.3 | |
| container_name: elasticsearch | |
| restart: unless-stopped | |
| environment: | |
| - node.name=elasticsearch | |
| - discovery.seed_hosts=elasticsearch | |
| - cluster.initial_master_nodes=elasticsearch |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| ''' | |
| This is a little script to download every song from every playlist | |
| if your Google Play Music account. Songs are organized as follows: | |
| <playlist>/<artist>/<album>/<song>.mp3 | |
| I Highly recomend putting this file in your %USER%\Music folder | |
| before running. |
| #!/bin/bash | |
| # Clean up on exit | |
| function finish { | |
| rm -f expected found | |
| } | |
| trap finish EXIT | |
| # How to parse JSON | |
| JQ="jq --sort-keys" |