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
python packaging guide | |
after update, increment version number then | |
python3 -m pip install --upgrade build twine | |
python3 -m build | |
python3 -m twine upload dist/* |
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
function code = bmatrix(X) | |
code = "\\begin{bmatrix}" + newline; | |
rows = size(X, 1); | |
cols = size(X, 2); | |
for i=1:rows | |
for j=1:cols | |
if j == cols | |
code = code + X(i, j) + " \\\\"; | |
else | |
code = code + X(i, j) + " & "; |
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 time | |
import logging | |
from watchdog.observers import Observer | |
from watchdog.events import RegexMatchingEventHandler | |
from subprocess import call | |
import argparse | |
class RsyncHandler(RegexMatchingEventHandler): | |
def __init__(self, path, target): |
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
repeated too often as to lose meaning | |
- banal | |
- trite | |
- platitude (a trite remark) | |
- hackneyed (lacking significance from overuse) | |
- bromide (a trite or obvious remark) | |
dull | |
- insipid (lacking flavour or interest) | |
- prosaic (dull and lacking imagination) |
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
# For a complete list of available commands, see http://bit.ly/jLtj | |
# Message to display in the status line when activity is detected in a | |
# monitored window. | |
activity "activity in %n (%t) [%w:%s]~" | |
# Detach session on hangup instead of terminating screen completely. | |
autodetach on # default: on | |
# When a bell character is sent to a background window, screen displays a |
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
#!/bin/bash | |
# | |
# Check that all source files follow a fixed format. | |
# Called by "git commit" with no arguments. | |
# Commit is blocked if any file does not follow format and outputs | |
# command to format them. | |
# Enable this by copying this file into .git/hooks/pre-commit | |
ROOT=$(git rev-parse --show-toplevel) | |
FORMATTER="clang-format" |
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
# put in project root | |
--- | |
# We'll use defaults from the LLVM style, but with 4 columns indentation. | |
BasedOnStyle: LLVM | |
IndentWidth: 4 | |
--- | |
Language: Cpp | |
# Force pointers to the type for C++. | |
DerivePointerAlignment: false |
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
#!/bin/bash | |
grep -rn --color=always --include=\*.{cpp,hpp,c,h} $@ |
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
printf "\033c" |
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
=query(index(if({1,1},upper(D3:D24)&"")),"select Col1,count(Col2) where Col1<>'' group by Col1 order by count(Col2) desc",0) |
NewerOlder