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
kjk / tree
Created Nov 14, 2019
Sumatra TreeModel (made with
View tree
/* Copyright 2019 the SumatraPDF project authors (see AUTHORS file).
License: Simplified BSD (see COPYING.BSD) */
typedef std::function<void()> EventHandler;
struct Event {
std::vector<EventHandler> handlers;
int Attach(const EventHandler& handler);
View sumatra short term.txt
1. Port easy changes from one-exe (ButtonCtrl, CheckboxCtrl)
One exe:
restructure project for one exe
can skip
fixing appveyor build, can skip
kjk / main.go
Last active Nov 10, 2019
trimEmptyLinesFromEnd (made with
View main.go
package main
import (
func trimEmptyLinesFromEnd(a []string) []string {
for len(a) > 0 {
lastIdx := len(a) - 1
View index.js
let v;
v = 5;
v = "str";
View index.js
const logMe = function(s) {
const logMe2 = logMe;
View index.js
// :glot
const person = {
firstName: "John",
lastName: "Doe",
log: () => console.log("hello from log()")
console.log("firstName:", person.firstName);
console.log("lastName:", person["lastName"]);
View index.js
// :glot
const cars = ["Model 3", "Leaf", "Bolt"];
console.log("first car:", cars[0]);
const mixedTypes = ["string"];
console.log("array with mixed types:", mixedTypes);
View index.js
// :glot
let s = "my";
s = s + " message";
console.log(s); // -> my message
View index.js
// :glot
const i = 16;
const j = 38.53;
const z = i + j;
console.log(z); // -> 54.53
kjk / sumatra.txt
Last active Nov 13, 2019
sumatra notes on link handling (made with
View sumatra.txt
Custom draw tree view notes:
In old:
You can’t perform that action at this time.