This file contains hidden or 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
// Copyright (C) 2017, Aleksander A. Popov. | |
// | |
// Функции прореживания сетки пикселей и сетки тайлов | |
// | |
#include <QRect> | |
QRect subsample_erosion_twice(const QRect& rc) { | |
return rc.isValid() ? QRect(QPoint(rc.left() / 2, rc.top() / 2), |
This file contains hidden or 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
// Copyright (C) 2017, Aleksander A. Popov. | |
// | |
// Вычисление габаритов корректных пикселей | |
// одновременно с расчётом этих пикселей | |
// | |
#include <QRect> | |
std::pair<int, int> find_nonzero_range(const std::vector<int>& v) { |
This file contains hidden or 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
// Copyright (C) 2017, Aleksander A. Popov. | |
// | |
// Создание копии константного объекта при необходимости использования | |
// ссылки или указателя на мутабельный объект | |
// | |
template <typename T> | |
class CreateMutCopy { | |
T copy_; |
This file contains hidden or 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
class Icu4c < Formula | |
desc "C/C++ and Java libraries for Unicode and globalization" | |
homepage "http://site.icu-project.org/home" | |
url "https://github.com/unicode-org/icu/releases/download/release-67-1/icu4c-67_1-src.tgz" | |
version "67.1" | |
sha256 "94a80cd6f251a53bd2a997f6f1b5ac6653fe791dfab66e1eb0227740fb86d5dc" | |
license "ICU" | |
livecheck do | |
url "https://github.com/unicode-org/icu/releases/latest" |
This file contains hidden or 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
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -173,7 +173,7 @@ | |
ADD_CUSTOM_COMMAND( | |
TARGET ${target} | |
POST_BUILD | |
- COMMAND codesign --force --deep --options runtime --sign "${MAC_CODESIGN_ID}" $<TARGET_FILE:${target}> | |
+ COMMAND codesign --force --deep --sign "${MAC_CODESIGN_ID}" $<TARGET_FILE:${target}> | |
VERBATIM | |
) |
This file contains hidden or 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
--- a/cmake/MacApp.cmake | |
+++ b/cmake/MacApp.cmake | |
@@ -67,7 +67,6 @@ | |
ADD_CUSTOM_TARGET(signed_fish_macapp | |
DEPENDS fish_macapp "${MACAPP_ENTITLEMENTS}" | |
COMMAND codesign --force --deep | |
- --options runtime | |
--entitlements "${MACAPP_ENTITLEMENTS}" | |
--sign "${MAC_CODESIGN_ID}" | |
$<TARGET_BUNDLE_DIR:fish_macapp> |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# Zettelkasten identifiers uniqueness check | |
import os, pathlib, re | |
""" | |
Find and print non-unique Zettelkasten identifiers | |
""" | |
def find_and_print_nnuqzkid(workdir): |
OlderNewer