- Git is like a key-value store
- key = data
- value = hash of the data
- The key (SHA1)
Discover gists
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
| function trigger(el, eventType) { | |
| if (typeof eventType === 'string' && typeof el[eventType] === 'function') { | |
| el[eventType](); | |
| } else { | |
| const event = | |
| eventType === 'string' | |
| ? new Event(eventType, {bubbles: true}) | |
| : eventType; | |
| el.dispatchEvent(event); | |
| } |
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
| (() => { | |
| "use strict"; | |
| /* | |
| * Mixamo bulk animation downloader | |
| * | |
| * Supports: | |
| * - Individual animations | |
| * - Animation packs | |
| * - 96 results per page |
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 python3 | |
| """Decrypt an RXP account-locked import .txt into the RXPDecryptedGuides addon. | |
| Usage: | |
| python decrypt_guide.py <import.txt> --zip | |
| python decrypt_guide.py <import.txt> <wow_install | out_dir> [--zip] | |
| The key is derived from your BattleTag, taken from the text after the last "!" in the | |
| import filename. Translated imports are named ...!_deDE_YourBattleTag#1234.txt. Give a glob | |
| that matches them all and each language gets its own lua file, loaded only on a client of |
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
| globals: | |
| - id: total_pulses | |
| type: int | |
| restore_value: true | |
| initial_value: '0' # startet mit 0 | |
| - id: imp_ratio | |
| type: float | |
| restore_value: false | |
| initial_value: '0.01' # vom Gaszaehler | |
| - id: Zustandszahl |
from __future__ import annotations
from typing import List, Optional, Union
from math import nan
import json
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
| public String getIMEI(Context context) | |
| { | |
| TelephonyManager mngr = (TelephonyManager) context.getSystemService(context.TELEPHONY_SERVICE); | |
| String imei = mngr.getDeviceId(); | |
| return imei; | |
| } |
[Tuya][]'s IR blasters, like the [ZS08][], have the ability to both learn and blast generic IR codes. These IR codes are given to the user as an opaque string, like this:
A/IEiwFAAwbJAfIE8gSLIAUBiwFAC+ADAwuLAfIE8gSLAckBRx9AB0ADBskB8gTyBIsgBQGLAUALA4sB8gRAB8ADBfIEiwHJAeARLwHJAeAFAwHyBOC5LwGLAeA97wOLAfIE4RcfBYsB8gTyBEAFAYsB4AcrCYsB8gTyBIsByQHgPY8DyQHyBOAHAwHyBEAX4BVfBIsB8gTJoAMF8gSLAckB4BUvAckB4AEDBfIEiwHJAQ==
Not much is known about the format of these IR code strings, which makes it difficult to use codes obtained through other means (such as a
flowchart TD
A(["Release candidate ready"]) --> B["Notify Software team: repository, scope, version, and planned time"]
B --> C["Hold release for 12 or 24 hours"]
C --> D{"Any objection?"}
D -- Yes --> E["Resolve, revise, or postpone"]
E --> B
D -- No --> F["Create draft GitHub release using generated notes"]NewerOlder