Skip to content

Instantly share code, notes, and snippets.

import androidx.compose.animation.core.AnimationSpec
import androidx.compose.animation.core.animate
import androidx.compose.animation.core.tween
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.saveable.Saver
@neno-tech
neno-tech / code.gs
Last active March 7, 2025 02:27
ตอนที่ 2 ระบบค้นหาข้อมูลใน Google Sheet
var SCRIPT_PROP = PropertiesService.getScriptProperties();
var sheetID= 'xxx'
function setup() {
var doc = SpreadsheetApp.getActiveSpreadsheet();
SCRIPT_PROP.setProperty(sheetID, doc.getId());
}
function uploadFile(data, file,id,stdCode,firstname,lastname,address,tel,email) {
try {
var folder=DriveApp.getFolderById('xxx');
@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@endrsmar
endrsmar / index.ts
Created January 9, 2024 12:11
Raydium new pool listener
import { LiquidityPoolKeysV4, MARKET_STATE_LAYOUT_V3, Market, TOKEN_PROGRAM_ID } from "@raydium-io/raydium-sdk";
import { Connection, Logs, ParsedInnerInstruction, ParsedInstruction, ParsedTransactionWithMeta, PartiallyDecodedInstruction, PublicKey } from "@solana/web3.js";
const RPC_ENDPOINT = 'https://api.mainnet-beta.solana.com';
const RAYDIUM_POOL_V4_PROGRAM_ID = '675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8';
const SERUM_OPENBOOK_PROGRAM_ID = 'srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX';
const SOL_MINT = 'So11111111111111111111111111111111111111112';
const SOL_DECIMALS = 9;
const connection = new Connection(RPC_ENDPOINT);
@banvantioo2
banvantioo2 / FF Beta Testing APK.md
Created March 6, 2025 15:52
FF Beta Testing APK 18.6 [Free Fire] Free Download for Android 2025

What is FF Beta Testing APK?

FF Beta Testing APK is a beta version of the popular battle royale game Free Fire, developed by Garena. This APK allows players to access experimental features, test new updates, and explore upcoming content before it is officially released to the public. It serves as a testing ground for developers to gather feedback, identify bugs, and refine gameplay mechanics, ensuring the final version of the game is polished and optimized for all players.

image

Unlike the standard version of Free Fire, the beta version includes unreleased features such as new weapons, maps, characters, and gameplay adjustments. Players who participate in beta testing play a crucial role in shaping the future of the game by providing valuable insights and suggestions.

@lukasnellen
lukasnellen / 00-docker-shorewall.md
Last active March 7, 2025 02:21
setup shorewall for docker networking beyond the default bridge network, e.g., for docker-compose

Docker(-compose) with shorewall

The shorewall documentation explains in http://shorewall.org/Docker.html how to configure shorewall for use with docker. The problem with the configuration is that it only allows connections from the host to the main bridge docker0. Connections to other networks on dynamically created bridges, with names starting by default with br-, is blocked. Instead of the recommended contents of /etc/shorewall/interfaces, use wild-card interface names as follows:

#ZONE	INTERFACE	OPTIONS
#dock	docker0		bridge     # disabled default recommendation
dock 	docker0		physical=docker+,routeback=1
dock 	br		physical=br-+,routeback=1
@ljm42
ljm42 / bleeding_edge_toolkit.php
Last active March 7, 2025 02:19
The Bleeding Edge Toolkit for Unraid. Allows you update your system with the latest unreleased webui code.
#!/usr/bin/php
<?PHP
error_reporting(E_STRICT | E_ALL);
ini_set('display_errors', '1');
/*
bleeding_edge_toolkit Copyright 2018-2023, ljm42
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2,
as published by the Free Software Foundation.
@neno-tech
neno-tech / code.gs
Created November 5, 2021 06:59
เว็บแอป Login ลงชื่อเข้าใช้ด้วย Username และ Password ใช้ฐานข้อมูลผู้ใช้จาก Google Sheet เมื่อล็อกอินสำเร็จ..ให้ลิงค์ไปหน้าเว็บที่ต้องการ
function doGet(e) {
return HtmlService.createTemplateFromFile("index").evaluate()
.addMetaTag('viewport', 'width=device-width, initial-scale=1')
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
function checkLogin(username, password) {
var url = 'xxx';
var ss= SpreadsheetApp.openByUrl(url);
var webAppSheet = ss.getSheetByName("xxx");
@luismts
luismts / GitCommitBestPractices.md
Last active March 7, 2025 02:16
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@NijeboerFrank
NijeboerFrank / todo.sh.fish
Last active March 7, 2025 02:15
Fish completions for todo.txt-cli
#!/bin/fish
# Place this file into ~/.config/fish/completions or another completions directory
# https://fishshell.com/docs/current/completions.html#where-to-put-completions
# List the help page
set __todo_txt_help_output (todo.sh help)
# Commands
set -l todo_commands (string match -r '^\s{4}([[:lower:]]+).*$' -g $__todo_txt_help_output)
set -l commands_descriptions (string match -r '^\s{4}(\w+[[:ascii:]]+).*$' -g $__todo_txt_help_output)