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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>test</title> | |
<style type='text/css'> | |
td { | |
padding: 10px | |
} | |
pre.Syntax { | |
background-color: #FFFFAA; |
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
; requires latest AHK_L | |
#SingleInstance force | |
SetWorkingDir %A_ScriptDir% | |
; ============= config ============= | |
build_dir := A_ScriptDir "\build" | |
user := "maul-esel" | |
; ================================== |
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
#NoEnv | |
#SingleInstance ignore | |
#Include SaveHImage2File.ahk | |
hIcon := DllCall("LoadIcon", "UPtr", 0, "UInt", 32513, "UPtr") ; load a system icon | |
result := SaveHImage2File(hIcon, A_Desktop "\test.ico", "icon") ; save the icon to a file | |
MsgBox % "finished: " . (result ? "succeeded" : "failed") ; report to user | |
hbmp := DllCall("LoadBitmap", "UPtr", 0, "UInt", 32745, "UPtr") | |
result := SaveHImage2File(hbmp, A_Desktop "\test.bmp", "bitmap") ; save the bitmap to a file |
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: SHQueryRecycleBin | |
Retrieves the size of the Recycle Bin and the number of items in it, for a specified drive. | |
Parameters: | |
STR path - the path of the root drive on which the Recycle Bin is located. This parameter can contain a string formatted with the drive, folder, and subfolder names (C:\Windows\System...). | |
[byRef] INT64 outSize - receives the total size of all the objects in the specified Recycle Bin, in bytes. | |
[byRef] INT64 outNumber - receives the total number of items in the specified Recycle Bin. | |
Returns: |
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: Polygon | |
calculates the coordinates for a polygon | |
Parameters: | |
count - the number of corners the polygon should have | |
radius - the radius of the polygon | |
[opt, byRef] x - receives an array of the x-coordinates. Omit this if not needed. | |
[opt, byRef] y - receives an array of the y-coordinates. Omit this if not needed. | |
[opt] xoffset - an optional x-offset to add to the coordinates |
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
:: RUN THIS SCRIPT TO EXECUTE AHK SCRIPTS FROM THE COMMAND LINE WITHOUT COMPILING. | |
:: do not show the actions done here in the window | |
@echo off | |
:: ================================== Config section ================================== | |
:: adjust these values | |
:: the path to the AutoHotkey.exe to be used: | |
@set AHK_PATH=%PROGRAMFILES%\AutoHotkey\AutoHotkey.exe |
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
; this is part of the package | |
; ============== some random code ========================== | |
MsgBox | |
return | |
Labelc: | |
ExitApp | |
return | |
; ================ interesting part here ================== |
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
semver_validate(version) | |
{ | |
return !!RegExMatch(version, "^(\d+)\.(\d+)\.(\d+)(\-([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+)?(\+([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+)?$") | |
} | |
semver_parts(version, byRef out_major, byRef out_minor, byRef out_patch, byRef out_prerelease, byRef out_build) | |
{ | |
return !!RegExMatch(version, "^(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<prerelease>([0-9A-Za-z\-]+\.)*([0-9A-Za-z\-]+)))?(\+?(?P<build>([0-9A-Za-z\-]+\.)*([0-9A-Za-z\-]+)))?$", out_) | |
} | |
semver_compare(version1, version2) | |
{ |
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 | |
function semver_validate($version) | |
{ | |
return !!preg_match('/^(\d+)\.(\d+)\.(\d+)(\-([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+)?(\+([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+)?$/', $version); | |
} | |
function semver_parts($version, &$parts) | |
{ | |
return !!preg_match('/^(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<prerelease>([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+))?(\+(?P<build>([0-9A-Za-z\-]+\.)*[0-9A-Za-z\-]+))?$/', $version, $parts); | |
} | |
function semver_compare($version1, $version2) |
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
/* | |
Title: LVX Library | |
Row colouring and cell editing functions for ListView controls. | |
Remarks: | |
Cell editing code adapted from Michas <http://www.autohotkey.com/forum/viewtopic.php?t=19929>; | |
row colouring by evl <http://www.autohotkey.com/forum/viewtopic.php?t=9266>. | |
Many thanks to them for providing the code base of these functions! |
OlderNewer