- Proposal: SE-NNNN
- Author: Karoy Lorentey, Alejandro Alonso
- Review Manager: TBD
- Bug: SR-9144
- Implementation: apple/swift#68857
- Version: 2023-09-18
- Status: Awaiting review
Discover gists
This file contains 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
import 'package:flutter/foundation.dart'; | |
Future<void> main() async { | |
String? output; | |
final myFuture = getData('myKey'); | |
myFuture.then((data) => output = data); | |
if (output != null) | |
print(output); |
This file contains 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
// A collection of JS snippets that can be used in SimHub: https://github.com/SHWotever/SimHub |
- UEFI
- Systemd-boot (gummiboot)
- Encrypted root partition
- mkinitcpio
- Unified Kernel Image (UKI)
- Intel CPU
- NVIDIA GPU
- Wayland (sway)
- Secure Boot (optional)
This file contains 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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
Author: Chris Lattner
The following is capturing instructions on how to add custom naming for an Arduino Leonardo (or generic pro-micro) for my Arcade Controller device. I wanted to have a simple record so that when I inevitably come back to this someday I can recall how I accomplished this. Reference was taken from the following YouTube video (https://youtu.be/hoCOq9Ngp44?t=1156) at approximately 19m16s.
Create a new set of folders:
~\Documents\Arduino\hardware\daemonbite\avr
Copy everything from C:\Program Files (x86)\Arduino\hardware\arduino\avr
to this new folder.
This file contains 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
# List all possible power config GUIDs in Windows | |
# Run: this-script.ps1 | Out-File powercfg.ps1 | |
# Then edit and run powercfg.ps1 | |
# (c) Pekka "raspi" Järvinen 2017 | |
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting | |
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup | |
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object { | |
$tmp = $_.ManagedElement |
NewerOlder