Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
/* Nintendo sysmodules */ | |
0100000000000000 fs | |
0100000000000001 ldr | |
0100000000000002 ncm | |
0100000000000003 pm | |
0100000000000004 sm | |
0100000000000005 boot | |
0100000000000006 usb | |
0100000000000007 tma.stub/htc.stub | |
0100000000000008 boot2 |
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
import SwiftUI | |
extension CollectionView { | |
typealias UIKitCollectionView = CollectionViewWithDataSource<SectionIdentifierType, ItemIdentifierType> | |
typealias DataSource = UICollectionViewDiffableDataSource<SectionIdentifierType, ItemIdentifierType> | |
typealias Snapshot = NSDiffableDataSourceSnapshot<SectionIdentifierType, ItemIdentifierType> | |
typealias UpdateCompletion = () -> Void | |
} | |
struct CollectionView<SectionIdentifierType, ItemIdentifierType> |
Picking the right architecture = Picking the right battles + Managing trade-offs
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
#!/usr/bin/env bash | |
# see https://carstenwindler.de/php/enable-xdebug-on-demand-in-your-local-docker-environment/ | |
if [ "$#" -ne 1 ]; then | |
SCRIPT_PATH=`basename "$0"` | |
echo "Usage: $SCRIPT_PATH enable|disable" | |
exit 1; | |
fi | |
# Expects service to be called app in docker-compose.yml |
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
# User-specific files | |
*.suo | |
*.user | |
*.sln.docstates | |
# Build results |
Add-Type -AssemblyName System.Windows.Forms | |
while ($true) | |
{ | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
$x = ($pos.X % 500) + 1 | |
$y = ($pos.Y % 500) + 1 | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
Start-Sleep -Seconds 10 | |
} |