Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
#include <stdio.h> | |
#include <stdarg.h> | |
#include <stdlib.h> | |
/** | |
* This sample is about how to implement a queue in c | |
* | |
* Type of item is int | |
* Add item to head, tail or any position | |
* Get item from head, tail or any position | |
* Get and remove item from head, tail or any position |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
import cv2 | |
import numpy as np | |
fourcc = cv2.VideoWriter_fourcc(*'XVID') | |
out = cv2.VideoWriter('/home/sm/Desktop/nodcontrol.avi',fourcc, 20.0, (640,480)) | |
#dinstance function | |
def distance(x,y): | |
import math | |
return math.sqrt((x[0]-y[0])**2+(x[1]-y[1])**2) |
// ==UserScript== | |
// @name Steam Key Quick Activator | |
// @namespace http://pedrofracassi.me/ | |
// @version 1.2 | |
// @description Activates Steam Keys Quickly! | |
// @author Pedro Fracassi (http://pedrofracassi.me) | |
// @match https://store.steampowered.com/account/registerkey?key=* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
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
python CI/updateVersion.py %NEW_VERSION%
pyinstaller testApp.py --version-file "CI/version.py"
""" | |
Access windows credentials | |
Credentials must be stored in the Windows Credentials Manager in the Control | |
Panel. This helper will search for "generic credentials" under the section | |
"Windows Credentials" | |
Example usage:: | |
result = get_generic_credential('foobar') |
import ctypes as ct | |
def dark_title_bar(window): | |
""" | |
MORE INFO: | |
https://docs.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute | |
""" | |
window.update() | |
DWMWA_USE_IMMERSIVE_DARK_MODE = 20 | |
set_window_attribute = ct.windll.dwmapi.DwmSetWindowAttribute | |
get_parent = ct.windll.user32.GetParent |