Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harryzhurov
harryzhurov / gist:1e2c2497ce3cfac0f1711fe0ba999913
Created November 3, 2022 02:41
Couple constraints to HDL module usage
"...файл констрейна "привязываются" к соответствующему модулю устанавливая property SCOPED_TO_REF именем нужного модуля.
Тогда такой констрейн будут применятся ко всем включениям этого модуля в дизайне, без учета иерархии."
https://electronix.ru/forum/index.php?app=forums&module=forums&controller=topic&id=168674&do=findComment&comment=1831970
Clone with nested submodules
1. Single command
git clone --branch <branch-name> --recursive <url>
2. Step by step
git clone <url>
git co <branch-name>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harryzhurov
harryzhurov / BricsCAD-fixes.txt
Last active June 22, 2020 05:09
BricsCAD. Fix graphic artefacts on Linux (Ubuntu)
Set 'GL Swap Mode' to [0] (default is [2])
"Я открыл было рот, но тут представил себе, в какие дебри нам придется забираться, как трудно будет объяснить, что такое метафоры, иносказания, гиперболы и просто ругань.И зачем все это нужно. И какую роль здесь играют воспитание, привычки, степень развитости языка, эмоции, вкус к слову, начитанность и общий культурный уровень, чувство юмора, и что такое юмор, и что такое такт. И, представив себе все это, я ужаснулся и горячо сказал: "Вы совершенно правы!"
@harryzhurov
harryzhurov / slon.ipynb
Last active December 12, 2017 09:50
pysdcam frame examine
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@harryzhurov
harryzhurov / boost.txt
Created October 12, 2017 12:02
boost (with python3) build and install
./bootstrap.sh --prefix=/opt/cad/boost/1_65_1 --with-python=/usr/bin/python3
./b2
./b2 install
ENTRY(Reset_Handler)
_Minimum_Stack_Size = 0x100 ;
MEMORY
{
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 112K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
}
PROVIDE ( __top_of_stack = ALIGN(ORIGIN(RAM) + LENGTH(RAM) - 8 ,8) );
SECTIONS
{
@harryzhurov
harryzhurov / README.md
Created November 24, 2016 11:39 — forked from hanya/README.md

KiCAD macro to add macros executor window to PyShell of Pcbnew

This macro works on Python Shell provided by KiCAD 4.1 or later. 4.0.X can not be supported.

Python Shell is pretty good to execute your line of code provided by Pcbnew. But it is hard to execute long macro many times in the interactive mode. This macro provides way to execute your macros from files stored on your specified directory.

Prepare macros in selected directory and specify it in _KIMACROS variable on Preferences - Configure Paths dialog. Copy content of pyshell_hack.py file into your PyShell_pcbnew_startup.py file which can be found through