Add badges to your Profile and Projects.
Discover gists
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear! | |
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy. | |
* Off the top of my head * | |
1. Fork their repo on Github | |
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it | |
git remote add my-fork [email protected] |
This is a small guide to set up Unifi AP LED Control using Home Assistant.
These scripts have been tested as working on the following hardware:
- U7 Pro FW version 8.0.19
- U6 Lite FW version 6.6.77
- UAP AC Mesh FW version 6.6.78
There is a well known issue where GPU drivers are crashing with multi-monitor setups due to an interaction with Windows MPO and both Nvidia and AMD GPUs.
Until this bug is fixed, the only solution is to disable MPO via the Windows Registry.
To apply the fix, simply run mpo_disable.reg
and reboot your computer.
#include <math.h> | |
// connected to 'D+' pin on mini USB | |
const int input_pin = 11; | |
// connected to 'D-' pin on mini USB | |
const int output_pin = 12; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
,elem.offsetTop
,elem.offsetWidth
,elem.offsetHeight
,elem.offsetParent
Yes, I know—yet another attempt at bringing a ternary-like experience to Go. But hey, Go doesn’t have one, and I wasn’t around when the last million were written.
Because Go doesn't have a ternary operator, and according to the official FAQ, it likely never will. The reasoning? To prevent developers from writing "impenetrably complex expressions." But let's be real—poor coding practices exist in all forms. Instead of outright banning a useful construct, wouldn’t compiler warnings for overly complicated ternary expressions have been a more reasonable approach?
Since that's not happening, here’s go-ternary
—because sometimes, a one-liner is just nicer than an if-else
.
- Pourquoi?
- Suggestions détaillées
- Navigateurs
- Moteurs de recherche
- DNS
- Gestionnaire de mots de passe (todo)
- Authentification multifacteur (todo)
- Courriels
- Messagerie instantanée
Using netcat and ssh tunnels, create a shared clipboard allowing client and server clipboards to be fused
NOTE: That we are making the assumption that the clipboards are sending and receiving UTF-8 encoded bytes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
{ | |
"aa": "Afar", | |
"ab": "Abkhazian", | |
"ae": "Avestan", | |
"af": "Afrikaans", | |
"ak": "Akan", | |
"am": "Amharic", | |
"an": "Aragonese", | |
"ar-ae": "Arabic (U.A.E.)", | |
"ar-bh": "Arabic (Bahrain)", |