Skip to content

Instantly share code, notes, and snippets.

View mysy00's full-sized avatar

Mikołaj Szczepański mysy00

View GitHub Profile
@mysy00
mysy00 / WindowsTerminalProperQuake.ahk
Created July 2, 2023 19:44
Proper Quake mode for Windows Terminal, works with virtual desktops
#SingleInstance force
!+t::
DetectHiddenWindows, On
if WinExist("ahk_exe WindowsTerminal.exe")
{
WinGet, terminalWindow, ID, ahk_exe WindowsTerminal.exe
WinGet, terminalVisible, MinMax, ahk_id %terminalWindow%
query AllPosts {
posts(first: 9, after: "${cursor}", where: {orderby: { field: DATE, order: DESC } language: PL }) {
pageInfo {
hasNextPage
endCursor
}
edges {
cursor
node {
title
script_name('No black screen on a HS')
local sampev = require 'samp.events'
function main()
while not isSampAvailable() do
wait(100)
end
if not isSampfuncsLoaded() or not isSampLoaded() then
script_name('Toggle Radio')
local sampev = require 'samp.events'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("toggleradio", toggleRadio)
wait(-1)
end
script_name('Toggle Textdraws')
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("tds", toggleTd)
wait(-1)
end
function toggleTd()
---------------------------------------------------------------------------
script_name("Players and vehicles in stream")
script_version("1.0")
script_author("Divir")
---------------------------------------------------------------------------
local mad = require 'MoonAdditions'
---------------------------------------------------------------------------
font_name = "Lucida Console"
font_size = 18
font_flags = 12
#include <iostream>
#include <chrono>
// spaghetti code but who cares, eh? ᶘᵒᴥᵒᶅ
using namespace std;
using namespace std::chrono;
unsigned int fibIt(unsigned int n)
{
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Menu, Tray, Icon, C:\Users\Mikolaj\OneDrive\Documents\AHK\icons\typing.png,, 0
; Global
<^q::Send !{f4}
#If WinActive("ahk_exe discord.exe")

Keybase proof

I hereby claim:

  • I am mysy00 on github.
  • I am divosky (https://keybase.io/divosky) on keybase.
  • I have a public key ASCQJc3ldEHSS-lC0kFbGDBCN9s60Xv76dQ_oLo8_Gcykgo

To claim this, I am signing this object:

/*
Add hide tag to SCEditor (hide plugin required)
*/
sceditor.command.set('hide', {
tooltip: 'Umiesc tag [hide]',
exec(caller) {
if ($.trim(this.getRangeHelper().selectedRange())) {
this.insert('[hide]', '[/hide]');
return;