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 an example file. Process it with `./pygmentize -O full -f html -o /liquid-example.html example.liquid`. | |
{% raw %} | |
some {{raw}} liquid syntax | |
{% raw %} | |
{% endraw %} | |
Just regular text - what happens? |
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>Games</title> | |
<meta charset='utf-8'/> | |
<script type='text/javascript' src='coffee-script.js'></script> | |
<script type='text/coffeescript' src='lib.coffee'></script> | |
<link rel='stylesheet' type='text/css' href='style.css'/> | |
</head> | |
<body> |
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 | |
if (!empty($_POST)) { | |
$conn = curl_init(); | |
switch ($_POST['method']) { | |
case 'GET': $method = CURLOPT_HTTPGET; | |
break; | |
case 'POST': $method = CURLOPT_POST; | |
break; | |
case 'PUT': $method = CURLOPT_PUT; |
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 | |
class HttpException extends Exception | |
{ | |
private $headers; | |
public function __construct($code, $message = NULL, $headers = NULL) | |
{ | |
$this->code = $code; | |
$this->headers = $headers; | |
parent::__construct(self::getStatusMessage($code) . ($message ? '<p>' . $message . '</p>' : ''), $code); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 off ; sonst kriegen wir (zumindest bei kurzen Skripten) die AHK-Meldung | |
/* | |
registriere Nachrichten | |
=========================== | |
Wir könnten hier irgendwelche festen Zahlen verwenden, aber wenn wir Pech haben, führt das zu Konflikten mit anderen Programmen, | |
die dieselbe Zahl für was Anderes nutzen. | |
Also registrieren wir die Nachricht offiziell bei Windows und kriegen den Zahlenwert dafür geliefert. | |
*/ |
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
GetFont(hwnd, byRef font, byRef options) | |
{ | |
static WM_GETFONT := 0x0031 | |
, HWND_DESKTOP := 0 | |
, HDC_DESKTOP := 0 | |
, sizeof_LOGFONT := 28 + 32 * (A_IsUnicode ? 2 : 1) | |
, LOGPIXELSY := 90 | |
SendMessage WM_GETFONT, 0, 0,, ahk_id %hwnd% | |
if (!ErrorLevel || ErrorLevel = "FAIL") |
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
ClientToWindow(hwnd, byRef x, byRef y) | |
{ | |
VarSetCapacity(pt, 8, 0) | |
, NumPut(x, pt, 0, "UInt") | |
, NumPut(y, pt, 4, "UInt") | |
if (!DllCall("ClientToScreen", "Ptr", hwnd, "Ptr", &pt, "UInt")) | |
return false | |
VarSetCapacity(rc, 16, 0) |
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! |
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) |
NewerOlder