This file contains 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
// https://gist.github.com/Be1zebub/8e525de39d81b7a2bdb672dd8b7df10d | |
// tampermonkey userscript | |
// https://www.tampermonkey.net/ | |
// ==UserScript== | |
// @name Ugly dark theme for flaticon.com | |
// @namespace https://www.flaticon.com/ | |
// @version 0.1 | |
// @description Ugly - but better than nothing, at least now i dont get flashbang. im too lazy to make better styles. | |
// @author https://t.me/be1zebub |
This file contains 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
local target_width = 180 | |
local aspect_ratio = 16 / 9 | |
local bounds = 32 | |
local function calc(w) | |
local h = w / aspect_ratio | |
if math.floor(h) == h then | |
print(w ..", ".. h) | |
return true |
This file contains 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
{ | |
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", | |
"meta": { | |
"version": "PTDL_v2", | |
"update_url": null | |
}, | |
"exported_at": "2024-08-30T14:11:19+00:00", | |
"name": "nodejs minimal", | |
"author": "[email protected]", | |
"description": "a generic egg for nodejs", |
This file contains 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
local ffi = require("ffi") | |
local terminalSize | |
if package.config:sub(1, 1) == "\\" then -- windows | |
local kernel32 = ffi.load("kernel32") | |
ffi.cdef([[ | |
typedef struct _CONSOLE_SCREEN_BUFFER_INFO { | |
uint16_t dwSizeX; | |
uint16_t dwSizeY; | |
uint16_t dwCursorPositionX; |
This file contains 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
local traceRainbowSpeed = 360 / 2 | |
local traceLength = 360 / 4 | |
local trace = {} | |
local prevX, prevY = input.GetCursorPos() | |
local function DrawTrace() | |
local x, y = input.GetCursorPos() | |
do | |
local dx = x - prevX |
This file contains 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
-- unfinished markdown parser & renderer | |
local markdown = {} | |
do | |
local markdown_rules = { | |
{ | |
"%*%*%*(.-)%*%*%*", "bolditalic", 3 | |
}, | |
{ |
This file contains 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
<?php | |
$HOST = "1.1.1.1"; | |
$DATABASE = "xxx"; | |
$USER = "xxx"; | |
$PASSWORD = "xxx"; | |
$TIMEOUT = 5; | |
$dsn = "mysql:host={$HOST};dbname={$DATABASE};charset=utf8"; | |
$opt = Array( |
This file contains 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
function debug.Trace() | |
local level = 1 | |
Msg( "\nTrace:\n" ) | |
while true do | |
local info = debug.getinfo( level, "Sln" ) | |
if ( !info ) then break end |
This file contains 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
-- parse markdown, its portable (can be used in any framework) | |
local markdown_data = markdown.parse("Hello **bold world!** I use *italic text*.") | |
-- returns: | |
{ | |
{ | |
body = "Hello ", | |
type = "raw" | |
}, | |
{ | |
body = "bold world!", |
This file contains 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
-- Deprecated version, see https://github.com/Facepunch/garrysmod/pull/2033 for more details | |
-- Published for the archive | |
--[[--------------------------------------------------------- | |
table.Print | |
A better version of PrintTable | |
-----------------------------------------------------------]] | |
local tostringGmodTypes |
NewerOlder