Skip to content

Instantly share code, notes, and snippets.

View alezhu's full-sized avatar
🏠
Working from home

Alexandr Zhuravlev alezhu

🏠
Working from home
View GitHub Profile
@alezhu
alezhu / 0002-Adapt-to-CMake-3.18.patch
Last active November 30, 2020 16:22 — forked from nickoe/FindwxWidgets.cmake
FindwxWidgets.cmake needed to make findwx work on windows with vcpkg and msvc
From 7fe225eddb0c63e7f3a191b2f9b71f5e829e819a Mon Sep 17 00:00:00 2001
From: Alexandr Zhuravlev <alexandr.zhuravlev@gmail.com>
Date: Mon, 30 Nov 2020 19:15:39 +0300
Subject: [PATCH 2/2] Adapt to CMake 3.18
---
FindwxWidgets.cmake | 475 +++++++++++++++++++++++---------------------
1 file changed, 246 insertions(+), 229 deletions(-)
diff --git a/FindwxWidgets.cmake b/FindwxWidgets.cmake
@alezhu
alezhu / class_decorator.ts
Last active July 9, 2018 08:18 — forked from remojansen/class_decorator.ts
TypeScript Decorators Examples
function logClass(target: any) {
// save a reference to the original constructor
var original = target;
// a utility function to generate instances of a class
function construct(constructor, args) {
var c : any = function () {
return constructor.apply(this, args);
}
@alezhu
alezhu / 0_reuse_code.js
Created September 29, 2015 10:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console