Skip to content

Instantly share code, notes, and snippets.

View nodomw's full-sized avatar
💭
🦁🎤

slop king nodomw

💭
🦁🎤
  • Hungary
  • 12:08 (UTC +01:00)
View GitHub Profile
import { useState } from "react";
import "./App.css";
function Counter() {
const [count, setCount] = useState(0);
return (
<button
className="BOMTON"
onClick={() =>
import { useState, useEffect } from "react";
import "./App.css";
function Store() {
const [form, setForm] = useState(
window.localStorage.getItem("form"),
);
useEffect(() => {
window.localStorage.setItem(
import { useState } from "react";
type SearchResult = {
index: number;
content: string;
};
const data: SearchResult[] = [
{ index: 1, content: "apple" },
{ index: 2, content: "banana" },
import { useState, useEffect } from "react";
function Indicator() {
const [online, setOnline] = useState(
navigator.onLine,
);
useEffect(() => {
const timer = setTimeout(
setOnline,
@nodomw
nodomw / helloroblox.js
Last active August 28, 2024 00:15
Hello, Roblox! Userscript edition
// ==UserScript==
// @name Hello, Roblox! Userscript edition
// @version 0.2
// @description Adds back the greeting text on the home page that was present up until around 2021.
// @connect roblox.com
// @author infinite health
// @run-at document-start
// @match https://www.roblox.com/home
// @icon https://www.google.com/s2/favicons?sz=64&domain=roblox.com
// @downloadURL https://gist.githubusercontent.com/nodomw/339efcd67005f6bb7a1d0147e50adbd8/raw/helloroblox.js
@nodomw
nodomw / xampp.ps1
Last active November 29, 2023 11:52
xampp telepítő
# -- HASZNÁLAT --
# 1. Nyiss meg egy PowerShell-t (rendes felhasználóként, nem admin-ként)
# 2. Futtasd le a következőt: Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
# 3. Futtasd le a következőt: irm 'https://gist.githubusercontent.com/nodomw/d879234883acc61c2a6405873fd4a851/raw/xampp.ps1' | iex
# Ha 'mysqli' hibát kapsz akkor a php.ini-ben keresd meg a 'extension=php_mysqli.dll' sort és vedd ki a ';' karaktert a sor elejéről
function WriteToLine ([int]$lineNumber, [string]$filePath, [string]$replacementText) {
$lines = Get-Content $filePath
$lines[$lineNumber - 1] = $replacementText
@nodomw
nodomw / error.txt
Created February 26, 2023 18:29
rofl
Error: Request failed with status code 429
at evalmachine.<anonymous>:1:7730970
at evalmachine.<anonymous>:1:7731154
at XMLHttpRequest.k (evalmachine.<anonymous>:1:7734626) {
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
local Timer = tick()
local CharBytes = {
["a"] = "1",
["b"] = "2",
["c"] = "3",
["d"] = "4",
["e"] = "5",
["f"] = "6",
["g"] = "7",
["h"] = "8",
game:WaitForChild("MarketplaceService")
setwindowtitle("Roblox - " .. (game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)).Name)
Drawing.WaitForRenderer()
TextFont = DrawFont.Register(
game:HttpGet'https://github.com/bluescan/proggyfonts/raw/master/ProggyVector/ProggyVector%20Regular.ttf',
{ PixelSize = 32, UseStb = false, Scale = true, Bold = false }
)
local stats = game:GetService("Stats"):WaitForChild("Network"):WaitForChild("ServerStatsItem")
local camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")