type Color =
| Red
| Green
| Blue
type BinaryTree =
This file contains 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
import argparse | |
import re | |
import json | |
import os | |
import shutil | |
import requests | |
import datetime | |
from urllib.parse import urljoin | |
from urllib.request import urlopen | |
from bs4 import BeautifulSoup |
This file contains 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
cmake_minimum_required(VERSION 3.0) | |
project(MyProject) | |
set(Sources | |
... | |
) | |
set(Headers | |
... | |
) |
This file contains 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
import sys | |
import subprocess | |
# http://dicom.nema.org/medical/dicom/current/output/chtml/part15/chapter_E.html | |
confidential_tags = [ | |
((0x0008, 0x0050), 'Z'), | |
((0x0018, 0x4000), 'X'), | |
((0x0040, 0x0555), 'X'), | |
((0x0008, 0x0022), 'X/Z'), | |
((0x0008, 0x002A), 'X/D'), |
This file contains 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
// depending on the stylesheet: | |
const int defaultPadding = 10; | |
const int border = 3; | |
const int iconSize = lineedit->fontMetrics().xHeight()*4; // or whatever size looks good | |
auto lineedit = QLineEdit(); | |
lineedit->setStyleSheet(QString(R"CSS( | |
QLineEdit { | |
padding-left: %1px; | |
} |
Search files in current directory for "string" recursively:
grep -r "string" .
This file contains 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
[Desktop Entry] | |
Type=Application | |
Exec=/usr/bin/chromium-browser --app=https://web.skype.com | |
Name=Skype | |
GenericName=Skype | |
Icon=Skype | |
Terminal=false | |
StartupWMClass=web.skype.com | |
Categories=Audio;Video; |
This file contains 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
[Desktop Entry] | |
Type=Application | |
Exec=/usr/bin/chromium --app=https://www.deezer.com | |
Name=Deezer | |
GenericName=Deezer | |
Icon=Deezer | |
Terminal=false | |
StartupWMClass=www.deezer.com | |
Categories=Audio; |