This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * ============================================================================ | |
| * CS 1.6 Weapon Skin System v1.0 | |
| * ============================================================================ | |
| * Version : 1.0.0 | |
| * Description : Full-featured per-weapon, per-player skin system. | |
| * | |
| * FEATURES | |
| * ──────── | |
| * • Named skin folders (e.g. "frontside_misty" → "Frontside Misty") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| chcp 65001 > nul | |
| title Borderlands 2 FPS Optimization | |
| color 0A | |
| echo. | |
| echo ╔═══════════════════════════════════════════════════╗ | |
| echo ║ Borderlands 2 FPS Optimization Script ║ | |
| echo ╚═══════════════════════════════════════════════════╝ | |
| echo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { readdir, stat, rename } from 'fs/promises'; | |
| import { dirname, extname, basename, join } from 'path'; | |
| const config = { | |
| sourceDirectory: './', | |
| foldersToSkip: ['node_modules'], | |
| extensionMappings: { | |
| '.ts': '.js', // TypeScript -> JavaScript | |
| '.tsx': '.jsx' // TypeScript React -> JavaScript React | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import axios from 'axios'; | |
| const username = 'YOUR_USERNAME'; | |
| const token = 'YOUR_TOKEN'; | |
| const getAllPages = async (url) => { | |
| let page = 1; | |
| let allData = []; | |
| let hasNextPage = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use anchor_lang::prelude::*; | |
| use anchor_spl::token::{self, MintTo, Transfer}; | |
| use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface}; | |
| declare_id!("7MHr6ZPGTWZkRk6m52GfEWoMxSV7EoDjYyoXAYf3MBwS"); | |
| #[program] | |
| pub mod solana_staking_blog { | |
| use super::*; | |
| pub fn initialize(ctx: Context<Initialize>, start_slot: u64, end_slot: u64) -> Result<()> { | |
| msg!("Instruction: Initialize"); | |
| let pool_info = &mut ctx.accounts.pool_info; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const cluster = require('node:cluster'); | |
| const express = require('express'); | |
| const { availableParallelism } = require('node:os'); | |
| // Get the number of available CPU cores | |
| const numCPUs = availableParallelism(); | |
| // Function to start the server | |
| const startServer = () => { | |
| const app = express(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content= | |
| "width=device-width, initial-scale=1.0"> | |
| <style> | |
| * { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createSignal, createResource } from "solid-js"; | |
| function Component () { | |
| const fetchUser = async (id) => | |
| (await fetch(`https://swapi.dev/api/people/${id}/`)).json(); | |
| const [userId, setUserId] = createSignal(); | |
| const [user] = createResource(userId, fetchUser); | |
| return ( | |
| <> | |
| <input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {createResource} from 'solid-js'; | |
| function Component () { | |
| const fetchJokes = async (id) => | |
| (await fetch(`https://official-joke-api.appspot.com/jokes/programming/ten`)).json(); | |
| const [jokes] = createResource(fetchJokes); | |
| return <> | |
| <span>{jokes.loading && "Loading..."}</span> | |
| <ul> | |
| <For each={jokes()}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {createSignal, createMemo} from 'solid-js'; | |
| function Component () { | |
| const [count, setCount] = createSignal(10); | |
| const double = createMemo(() => count() * 2); | |
| const half = createMemo(() => count() / 2); | |
| const quarter = createMemo(() => count() / 4); | |
| return <> | |
| <button onClick={() => setCount(count() + 1)}>Increment</button> | |
| <div>Count: {count()}</div> |
NewerOlder