Skip to content

Instantly share code, notes, and snippets.

@oceanEcho
oceanEcho / EllipsisText.tsx
Last active March 13, 2025 14:49
useEllipsisDetector hook for React
import React from 'react';
import useEllipsisDetector from './useEllipsisDetector';
interface EllipsisTextProps {
children: React.ReactNode;
}
const EllipsisText: React.FC<EllipsisTextProps> = ({ children }) => {
const { ref, isEllipsisActive } = useEllipsisDetector();
@paulvictor
paulvictor / merge.hs
Created March 13, 2025 14:45
Merge conduits
#!/usr/bin/env magix
#!magix haskell
#!haskellPackages bytestring conduit conduit-merge
#!ghcFlags -threaded
-- #!/usr/bin/env nix-shell
-- #! nix-shell -p "haskell.packages.ghc96.ghcWithPackages (pkgs: with pkgs; [ conduit bytestring conduit-extra conduit-merge ]) " ghcid
-- #! nix-shell -I nixpkgs=/etc/nix/inputs/nixpkgs
-- #! nix-shell -i ghcid
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: rolling
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: rolling
ament/ament_lint:
@choco-bot
choco-bot / FilesSnapshot.xml
Created March 13, 2025 14:44
vpb-banking v5.6.1 - Failed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\vpb-banking\vpb-banking.nupkg" checksum="CDB4880DE679EE0FD247025329D403C0" />
<file path="C:\ProgramData\chocolatey\lib\vpb-banking\vpb-banking.nuspec" checksum="98B4619C9B296E5F734B14C195CBC65D" />
<file path="C:\ProgramData\chocolatey\lib\vpb-banking\tools\chocolateyinstall.ps1" checksum="8A5C0024E4D066EC37E8FF5394689139" />
<file path="C:\ProgramData\chocolatey\lib\vpb-banking\tools\chocolateyuninstall.ps1" checksum="477B963B2960B041BBD8DF352F8D9E8D" />
</files>
</fileSnapshot>
@filipeandre
filipeandre / revet_secret.sh
Created March 13, 2025 14:44
Revert aws secret to previous version
#!/bin/bash
set -euo pipefail
# Check for required commands: aws and jq.
command -v aws >/dev/null 2>&1 || { echo "aws CLI is required but not installed. Exiting." >&2; exit 1; }
command -v jq >/dev/null 2>&1 || { echo "jq is required but not installed. Exiting." >&2; exit 1; }
usage() {
cat <<EOF
Usage: $0 [secret_name]
import {
BlurMask,
Canvas,
RoundedRect,
SweepGradient,
vec,
} from "@shopify/react-native-skia";
import React, { useEffect } from "react";
import {
useSharedValue,
@stigtufiowb569
stigtufiowb569 / IC Markets Free
Created March 13, 2025 14:44
IC Markets Free
IC Markets Free
@Tech999-coder
Tech999-coder / .md
Created March 13, 2025 14:43
Hunt Royale Mod Apk

Hunt Royale Mod APK (Latest Version) – Premium & All Unlocked

Introduction

Hunt Royale mod apk is an action-packed battle royale game where players fight against enemies in various arenas. With the Hunt Royale Mod APK, you get access to premium features, unlimited resources, and all characters unlocked.

Features of Hunt Royale Mod APK

  • 🔥 Unlimited Coins & Gems – Upgrade your characters without limits.
  • 🎮 All Characters Unlocked – Play with any hero from the start.
  • 🛡 God Mode & High Damage – Defeat enemies effortlessly.
  • 🚀 No Ads – Enjoy an uninterrupted gaming experience.

Keybase proof

I hereby claim:

  • I am benjaminbascary on github.
  • I am benjamona97 (https://keybase.io/benjamona97) on keybase.
  • I have a public key ASCoR2-JBxBEXcGIci_t0sTxTh2yfzdzwZOyYYGTtFIBfQo

To claim this, I am signing this object:

#!/bin/bash
# Function to check if a package is installed
check_package() {
if ! dpkg -l | grep -q "$1"; then
echo "$1 is not installed. Installing..."
sudo apt update
sudo apt install -y "$1"
else
echo "$1 is already installed."