Skip to content

Instantly share code, notes, and snippets.

Krzysztof Kowalczyk kjk

Block or report user

Report or block kjk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View main.html
<!doctype html>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="pdf, epub, mobi, chm, cbr, cbz, xps, djvu, reader, viewer" />
<meta name="description" content="Sumatra PDF reader and viewer for Windows" />
<title>Sumatra PDF Documentation</title>
<link rel="stylesheet" href="/sumatra.css" type="text/css" />
kjk / main.diff
Created Feb 20, 2020
sumatra tab handling (made with
View main.diff
+++ b/src/SumatraStartup.cpp
@@ -488,7 +488,9 @@ static int RunMessageLoop() {
if (TranslateAccelerator(accHwnd, accTable, &msg)) {
+ if (IsDialogMessage(msg.hwnd, &msg)) {
+ continue;
+ }
kjk / main.html
Created Feb 11, 2020
sumatra crash preview with alpine.js (made with
View main.html
<!doctype html>
html, body {
font-family: monospace;
font-size: 10pt;
kjk / main.go
Created Feb 1, 2020
extract translations with regexp (made with
View main.go
package main
import (
var (
TRANSLATION_PATTERN = regexp.MustCompile(`\b_TRN?\("(.*?)"\)`)
kjk / c_cpp_properties.json
Created Jan 21, 2020
vscode cpp intellisense settings (made with
View c_cpp_properties.json
"configurations": [
"name": "Win32",
"includePath": [
"defines": [
kjk / main.go
Last active Jan 20, 2020
Value vs. pointer receiver (made with
View main.go
// :collection Essential Go
package main
import (
// :show start
type Foo struct {
Str string
kjk / sumatra checkbox tree.txt
Created Dec 31, 2019
Sumatra checkbox in tree view (made with
View sumatra checkbox tree.txt
typedef struct tagTVITEMCHANGE {
NMHDR hdr;
UINT uChanged;
UINT uStateNew;
View main.txt
#if(WINVER >= 0x0601)
#define WM_GESTURE 0x0119
#endif /* WINVER >= 0x0601 */
#if (_WIN32_WINNT >= 0x0600)
#define WM_MOUSEHWHEEL 0x020E
#include <cstdio>
void foo(int); // Prototype declaration of foo, seen by main
// Must specify return type, name, and argument list types
int main()
foo(2); // OK: foo is known, called even though its body is not yet defined
// Must match the prototype
// declare 'foo' function first
void foo(int x) {}
int main()
// OK: 'foo' has been defined, so it can be called here.
You can’t perform that action at this time.