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
^!Space::Media_Play_Pause ;"Ctrl + Alt + Space" to play/pause/resume media | |
^!Shift::Volume_Mute ;"Ctrl + Alt + Shift" to toggle mute/unmute | |
^!Left::Media_Prev ;"Ctrl + Alt + ⭠" to play previous clip | |
^!Right::Media_Next ;"Ctrl + Alt + ⭢" to play next clip | |
^!Up::Volume_Up ;"Ctrl + Alt + ⭡" to increase volume | |
^!Down::Volume_Down ;"Ctrl + Alt + ⭣" to reduce volume |
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
\documentclass[a4paper,12pt]{article} | |
\usepackage[acronym,automake]{glossaries-extra} | |
\makeatletter | |
\newrobustcmd*{\myGls}{\@gls@hyp@opt\@myGls} | |
\newcommand*{\@myGls}[2][]{% | |
\new@ifnextchar[{\@myGls@{#1}{#2}}{\@myGls@{#1}{#2}[]}% | |
} | |
\def\@myGls@#1#2[#3]{% |
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
\documentclass{article} | |
\usepackage{mwe} | |
\usepackage{graphicx} % Or: \usepackage[draft]{graphicx} | |
\usepackage{lipsum} | |
\usepackage[english]{babel} | |
\usepackage{blindtext} | |
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
[ | |
{ | |
"key": "ctrl+shift+B", | |
"command": "editor.action.insertSnippet", | |
"when": "editorHasSelection && resourceExtname == .tex", | |
"args": { | |
"snippet": "\\textbf{${TM_SELECTED_TEXT}}$0" | |
} | |
}, | |
{ |
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 | |
# | |
# 1. Install ghostscript | |
# sudo apt-get update | |
# sudo apt-get install ghostscript | |
# 2. Use this shell script to optimize the given pdf | |
# sh optpdf.sh <filename>.pdf | |
file="$1" | |
filebase="$(basename "$file" .pdf)" |
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
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs | |
# editorconfig.org | |
# Use top-most EditorConfig file | |
root = true | |
[*] | |
# Unix-style newlines at the bottom of every file |
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
# Ignore everything | |
* | |
# Unignore all files with extensions | |
!*.* | |
# Unignore all directories | |
!*/ | |
### Above combination will ignore all files without extension (e.g., Linux Executable Files) ### |
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
/* | |
* Evaluation of Postfix & Prefix Expressions in C++. | |
* Input Postfix expression must be in a desired format: | |
* Operands must be single-digit integers (i.e., 0-9) and there should be space/comma in between two characters. | |
* (If we start considering integers > 9 then 2 single-digit integer might get interpreted as 1 two-digit integer and we will get segmentaion error because PerformOperation function is expecting two integers in stack whereas only 1 is found.) | |
* Only '+', '-', '*' and '/' operators are expected. | |
* | |
* Test case for Postfix expression: 23*54*+9+ -> 35 | |
* Test case for Prefix expression: ++*23*549 -> 35 | |
*/ |
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
[user] | |
name = Hua-Ming Huang | |
email = huaming.huang.tw@gmai.com | |
[github] | |
user = huaminghuangtw | |
tokentype = ssh | |
[include] | |
path = ~/.git-sendemail |
NewerOlder