Skip to content

Instantly share code, notes, and snippets.

@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@mbinna
mbinna / effective_modern_cmake.md
Last active July 6, 2024 03:59
Effective Modern CMake

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@smunaut
smunaut / gtkwave-sigrok-filter.py
Last active January 18, 2024 18:37
Transaction Filter Process for GTKWave to run SigRok protocol decoders
#!/usr/bin/env python3
"""
gtkwave-sigrok-filter.py
Use as a 'Transaction Filter Process' in gtkwave to apply signal
Usage:
- Group input signals in gtkwave with F4
- Apply this script as a 'Transaction Filter Process' (Right click / Data Format)
@gregdavill
gregdavill / luna_bom_r0.4_20210410.csv
Created April 10, 2021 03:02
Sources for the BOM for a Luna r0.4 board
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1. in line 1.
Sources for the BOM for a Luna r0.4 board. Ordered 2021-04-10, stock levels may change.
Learn more: https://github.com/greatscottgadgets/luna
DigiKey:
"Index","Quantity","Part Number","Manufacturer Part Number","Description","Customer Reference","Available","Backorder","Unit Price","Extended Price AUD"
"1","2","2073-USB1125-GF-B-ND","USB1125-GF-B","USB TYPE-A RECEPT HI-LIFE RA SHO","","2","0","0.70000","1.40"
"2","4","1727-7895-1-ND","74AUP2G126GS,115","IC BUFFER NON-INVERT 3.6V 8XSON","","4","0","0.84000","3.36"
"3","6","AP22804AW5-7DICT-ND","AP22804AW5-7","IC PWR SWITCH P-CHAN 1:1 SOT25","","6","0","0.73000","4.38"
"4","2","TCR2EF115LM(CTCT-ND","TCR2EF115,LM(CT","IC REG LINEAR 1.15V 200MA SMV","","2","0","0.43000","0.86"