Skip to content

Instantly share code, notes, and snippets.

#NoEnv
SetBatchLines, -1
Input := "13 743"
Start := A_TickCount
for each, Link in FindChain([2, 1], StrSplit(Input, " ")*)
Out .= ", " Link
Elapsed := A_TickCount - Start
MsgBox, % SubStr(Out, 3) "`n" Elapsed "ms"
@G33kDude
G33kDude / BinClock.ahk
Created March 13, 2015 02:22
Binary clock
On := "●"
Off := "○"
Blank := " "
Gui, Color, Black
Gui, font, s12 cRed, Courier New
Gui, Add, Text, vDisplay, % MakeDisplay(On, Off, Blank)
Gui, +ToolWindow +E0x40000 +AlwaysOnTop
Gui, Show,, BinClock
SetTimer, UpdateDisplay, 1000
// ==UserScript==
// @name Code box to CodeQuickTester
// @namespace https://github.com/G33kDude
// @version 0.6
// @description Adds a button to open AHKScript code boxes in CodeQuickTester
// @author GeekDude
// @match *://autohotkey.com/boards/viewtopic.php*
// @grant none
// @updateURL https://gist.github.com/G33kDude/d3d9e4fd7c739dab3527/raw/CodeBox2QuickTest.user.js
// ==/UserScript==
Input =
(LTrim0 C
60 30
'"^+$
linear 30 30 0 0
)
Gui, Font,, Courier New
Gui, Add, Edit, w640 h480, % GenerateGradient(Input)
Gui, Show
#SingleInstance, Force
#NoEnv
SetBatchLines, -1
SetMouseDelay, 2
CoordMode, Mouse, Screen
; Start gdi+
If !pToken := Gdip_Startup()
{
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
Input =
(
$.O...O...
...O......
..........
O..O..O...
..........
O..O..O...
..........
......OO..
#Persistent
Small := 32
Medium := 48
Large := 96
IconSize := Small
hDesktop := GetDesktop()
HalfW := A_ScreenWidth/2
#NoEnv
SetBatchLines, -1
Input := Clipboard
Input := StrSplit(Input, "`n", "`r")
Size := StrSplit(Input.Remove(1), " ")
Scale := 5
Gui, +hWndhWnd
@G33kDude
G33kDude / vm.py
Last active April 15, 2018 22:30
import os
import struct
import sys
INTRANGE = 2 ** 15
REGCOUNT = 8
class Arch:
def __init__(self):
self.registers = [0] * REGCOUNT
#! /usr/bin/env python3
import socket
import threading
import tkinter as tk
import re
import sys
import time
from datetime import datetime