Skip to content

Instantly share code, notes, and snippets.

@Zhuinden
Zhuinden / BasicTextFieldWithCursorAtEnd.kt
Last active May 7, 2024 20:37
A Compose TextField that initializes the cursor position at the end of the text, rather than the start, when focused without tapping the TextField manually.
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@nullmastermind
nullmastermind / how_to_use.rs
Last active May 7, 2024 20:34
Rust Valorant color aimbot - Yellow (Protanopia) (recommend fov < 128)
fn get_move_value(&mut self, is_trigger_bot: bool) -> Point {
if !is_trigger_bot {
let current_frame_id = self.latest_frame_id.lock().unwrap().clone();
if current_frame_id == self.current_frame_id {
return Point::new(0, 0);
}
self.current_frame_id = current_frame_id;
}
let current_frame = self.latest_frame.lock().unwrap().clone();
if current_frame.is_none() {
Alpine.directive('typed', (el, { expression, modifiers }, { evaluateLater, effect, cleanup }) => {
const getStrings = evaluateLater(expression);
const modifierValue = (key, fallback) => {
if (-1 === modifiers.indexOf(key)) {
return fallback;
}
const value = modifiers[modifiers.indexOf(key) + 1];
@mndambuki
mndambuki / officeActivator.bat
Created June 7, 2020 03:41
Activate Microsoft Office 2019
@echo off
title Activate Microsoft Office 2019 !
cls
echo ============================================================================
echo #Project: Activating Microsoft software products
echo ============================================================================
echo.
echo #Supported products:
echo - Microsoft Office Standard 2019
echo - Microsoft Office Professional Plus 2019
@zcroll
zcroll / JetBrains products Activation code until december 13 2024
Last active May 7, 2024 20:31
JetBrains products Activation code until december 13 2024
I2A0QUY8VU-eyJsaWNlbnNlSWQiOiJJMkEwUVVZOFZVIiwibGljZW5zZWVOYW1lIjoiVU5JVkVSU0lEQURFIEVTVEFEVUFMIERFIENBTVBJTkFTIiwiYXNzaWduZWVOYW1lIjoiVGFvYmFv77yaSkVU5YWo5a625qG25r+AIOa0u+W3peS9nOWupCAgcmVuIHpodW4gZGlhbiBtaW5n77yBIiwiYXNzaWduZWVFbWFpbCI6IlJvYmJ5X1dlbmlnZXJAb3V0bG9vay5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMTAtMTQiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNDIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyNC0xMC0xNCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNGIiwicGFpZFVwVG8iOiIyMDI0LTEwLTE0IiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkRTIiwicGFpZFVwVG8iOiIyMDI0LTEwL
@TheSoundDefense
TheSoundDefense / README.md
Last active May 7, 2024 20:31
Tutorial - how to create a LiveSplit component

Creating a LiveSplit component

Since LiveSplit's official documentation is a work in progress, and I couldn't find another guide for this anywhere else, I decided I would write my own. This will hopefully act as a good reference for getting started and making simple components, de-mystifying the process.

Things you will learn:

  • How to set up your Visual Studio project
  • How to set up the code structure of your component
  • How to create a simple InfoTextComponent (which displays a label on the left, and some text on the right)
@mertskaplan
mertskaplan / francais-a1.md
Last active May 7, 2024 20:31
Notes de cours Français - A1 / Fransızca ders notları - A1

Not kılavuzu:

"()" - Parantez içi Türkçe telafuzu verir.
"/" - Slaş benzer kullanımı ya da Türkçe çevirisini verir.
"[]" - Köşeli parantez birlikte kullanımı verir.
">" - Büyüktür işareti ya da "|" işareti konuyla ilgili ipucu verir.
"•" - Madde işareti örnek kullanımı verir.
"(?)" - Bilginin doğruluğunun teyit edilemediği durumlarda kullanılır.
"_" - Alt tire felaffuzlarda ulama yapılması gerektiği durumlarda kullanılır.

@amtal
amtal / Hybrids.md
Created January 17, 2017 08:28
Walkthrough of two dupes and an item corruption exploit for Diablo 2 in layman's terms

This is a common-jargon walkthrough of an interesting Diablo 2 exploit. It provides the necessary background information (network protocol and game mechanics) to gain some understanding of the primitives from which it's constructed. Since the exploit is against a black-box network service with no available code, exact details and subtleties remain a mystery. :)

Exploit effects

Diablo 2 items can have a list of properties with various effects. The most common items (normal or "white" ones) have very few possible effects; however, all items can have sockets. Rune and gem-type items can be inserted into sockets. Some sequences of runes are special - inserting them into a white item makes a runeword item with predictable special properties.

Here's an example runeword "Peace" created by inserting Shael, Thul, and Amn runes into a 3-socket Light Plate:

Peace + Enigma hybrid

@devlzcode
devlzcode / descsum.ts
Created May 13, 2023 21:05
javascript descriptor checksum
const INPUT_CHARSET: string =
"0123456789()[],'/*abcdefgh@:$%{}IJKLMNOPQRSTUVWXYZ&+-.;<=>?!^_|~ijklmnopqrstuvwxyzABCDEFGH`#\"\\ ";
const CHECKSUM_CHARSET: string = "qpzry9x8gf2tvdw0s3jn54khce6mua7l";
const GENERATOR = [
0xf5dee51989n,
0xa9fdca3312n,
0x1bab10e32dn,
0x3706b1677an,
0x644d626ffdn,
];
@Tamal
Tamal / git-ssh-error-fix.sh
Last active May 7, 2024 20:23
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work