cd && mkdir -p dev/repositories &&
cd && mkdir Downloads &&
cd && mkdir Shares;
cd && mkdir -p dev/binaries;
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
$CapsLock:: | |
if winc_presses > 0 ; SetTimer already started, so log keypress instead | |
{ | |
winc_presses += 1 | |
Return | |
} | |
; Else, this is first press of a new series. Set count to 1 and start timer | |
winc_presses = 1 | |
SetTimer, CapsLock, 600 ; Wait for more presses. 400 ms is too short | |
Return |
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
export LATEX_STY_INSTALL_PATH="/usr/share/texmf/tex/latex/" | |
function install_sty_wget_ctan_latex() { | |
mkdir -p /tmp/sty/ && | |
cd /tmp/sty/ && | |
wget "$1" && | |
unzip $(basename "$1") && | |
folder_name="$(ls -t | tail -1)" | |
echo "mv $folder_name $LATEX_STY_INSTALL_PATH" && | |
sudo mv $folder_name $LATEX_STY_INSTALL_PATH && |
I. Clean Python setup from scratch. (~1h) Skip if you already have a python environment setup or want to use your own python virtualenv setup
sudo apt-get install python3-pip python-dev
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
.nparray : To np.array | |
ANY → np.array($expr$) | |
.list : To list | |
ANY → list($expr$) |
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
.type : Type value | |
ANY → type($expr$) |
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
topic_map_xml_grammar = r""" | |
start: topic_map_xml | |
topic_map_xml: XML_DEF topic_map | |
XML_DEF: "<?xml version="1.0" encoding="UTF-8"?>" | |
topic_map: OPENTOPICMAPTAG PREDEFINEDTOPIC topic* PREDEFINEDASSOCIATION association* CLOSETOPICMAPTAG | |
OPENTOPICMAPTAG: "{{opentopicmaptag}}" | |
PREDEFINEDTOPIC: "{{predefinedtopic}}" | |
topic: open_topic_tag subject_locator_tag subject_identifier_tag instance_of_tag name_tag occurrence_tag* CLOSETOPICTAG | |
open_topic_tag: TOPICTAG id_attrib ">" | |
TOPICTAG: "<topic " |
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
# Dependencies : apt-fast to speed up. | |
# Install | |
# via http://askubuntu.com/questions/510056/how-to-install-google-chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' | |
sudo apt-fast update -y | |
sudo apt-fast install google-chrome-stable -y |
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
# Install package to make windows always on top : | |
sudo apt-fast install -y wmctrl | |
# Set this command in shortcut settings to ctrl+space | |
wmctrl -r :ACTIVE: -b toggle,above |
NewerOlder