- "Introduction to Bluetooth Low Energy" by Adafruit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Printable GitHub issues | |
// @namespace https://github.com/gaute | |
// @include https://github.com/*/issues/* | |
// ==/UserScript== | |
if (typeof($) === "undefined") { | |
$ = unsafeWindow.$; | |
} |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
- A Russian translation of this article can be found here, contributed by Timur Demin.
- A Turkish translation can be found here, contributed by agyild.
- There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Create Custom TextView. | |
public class TextViewDrawable extends android.support.v7.widget.AppCompatTextView { | |
public TextViewDrawable(Context context, @Nullable AttributeSet attrs) { | |
super(context, attrs); | |
} | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private fun isInternetAvailable(): Boolean { | |
return try { | |
val timeoutMs = 1500 | |
val sock = Socket() | |
val sockaddr = InetSocketAddress("8.8.8.8", 53) | |
sock.connect(sockaddr, timeoutMs) | |
sock.close() | |
true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git switch --orphan <new branch> | |
git commit --allow-empty -m "Initial commit on orphan branch" | |
git push -u origin <new branch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following allows you to very easily flip between languages and country on Android. | |
This will IMMEDIATELY cause the change without even needing to shut down the target testing app. | |
(That is, the currently displayed page will reloaded.) | |
You first need to install this APP on the phone: | |
https://play.google.com/store/apps/details?id=net.sanapeli.adbchangelanguage&hl=en | |
Then to flip copy and paste one of the lines below in a terminal. |
Run this command at the root of your project
grep -rwl . -e 'kotlinx.android.synthetic'
- -r = Recursive
- -w = Match the whole word
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
rm -rf ~/Library/Caches/JetBrains/IdeaIC202* | |
echo Done! |
NewerOlder