🌲 Invert a binary tree! 🌲
Except with 3 catches:
- It must invert the keys ("bit-reversal permutation")
- It must be a dependency-free, pure recursive function
- It must have type
Bit -> Tree -> Tree
(i.e., a direct recursion with max 1 bit state)
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.
# Apple Silicon laptops with firmware > 13.0 have a native charge threshold that does not required any userspace daemon running. | |
# This native limit works even when the laptop is sleeping or powered off therefore it is preferable to the userspace daemon. | |
# Nonetheless, it only works with fixed thresholds (80% as upper limit and 70% as lower limit). | |
# CHWA key is the one used to enable/disable the native limit. 01 = 80% limit, 00 = no limit | |
## | |
typeset -g smc_command="/usr/local/bin/smc" | |
typeset -g smc_charge_limit_key="CHWA" | |
typeset -g smc_charge_limit_status_on="01" | |
typeset -g smc_charge_limit_status_off="00" |
Important
Working on the latest supported Windows versions. Run Windows Update before following this guide.
1. Open Powershell > RUN AS ADMIN
2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex
and press enter
3. Microsoft Edge will be completely uninstalled.
Python script to convert the Json containing all the chat of Twitch, to the Youtube Timed Text subtitle format (YTT).
Instructions for enabling dark theme (almost) everywhere on ElementaryOS
/usr/share/dbus-1/interfaces/io.elementary.pantheon.AccountsService.xml
with this file.<annotation name="org.freedesktop.Accounts.DefaultValue" value="0"/>
with <annotation name="org.freedesktop.Accounts.DefaultValue" value="1"/>
under PreferColorScheme section.We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
Consumer key: iAtYJ4HpUVfIUoNnif1DA
Encoder h264_nvenc [NVIDIA NVENC H.264 encoder]: | |
General capabilities: dr1 delay hardware | |
Threading capabilities: none | |
Supported hardware devices: cuda cuda d3d11va d3d11va | |
Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11 | |
h264_nvenc AVOptions: | |
-preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4) | |
default 0 E..V....... | |
slow 1 E..V....... hq 2 passes | |
medium 2 E..V....... hq 1 pass |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |