\usepackage{tkz-euclide} % checked for version 3.02c
This file contains hidden or 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
| meaning cmp A, B sign flags | |
| ------------------------------- ------- --------------- --------------- ------------------- | |
| equal eq A == B - Z == 1 | |
| not equal ne A != B - Z == 0 | |
| carry set cs,hs A >= B unsigned C == 1 | |
| carry clear cc,lo A < B unsigned C == 0 | |
| higher hi A > B unsigned C == 1 && Z == 0 | |
| lower or same ls A <= B unsigned !(C == 1 && Z == 0) |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| read -p "Function return type: " val | |
| if [ "$1" != "mini" ]; then | |
| read -p "Function name: " name | |
| fi | |
| read -p "Function argument list: " list | |
| echo "$val $name($list) {" >f.c | |
| echo "Enter code:" |
Let's say the plugin is at a GitHub URL https://github.com/manasthakur/foo.
First get the plugin by either cloning it (git clone https://github.com/manasthakur.foo.git) or simply downloading it as a zip (from its GitHub page).
Adding a plugin in Vim is equivalent to adding the plugin's code properly into its runtimepath (includes the $HOME/.vim directory by default).
For example, if the layout of a plugin foo is as follows:
foo/autoload/foo.vim
foo/plugin/foo.vim
This file contains hidden or 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
| def matprint(mat, fmt="g"): | |
| col_maxes = [max([len(("{:"+fmt+"}").format(x)) for x in col]) for col in mat.T] | |
| for x in mat: | |
| for i, y in enumerate(x): | |
| print(("{:"+str(col_maxes[i])+fmt+"}").format(y), end=" ") | |
| print("") | |
| # Try it! | |
| import numpy as np |
This file contains hidden or 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
| #!/usr/local/bin/python3.2 | |
| """ | |
| Python interpreter for the esoteric language ><> (pronounced /ˈfɪʃ/). | |
| Usage: ./fish.py --help | |
| More information: http://esolangs.org/wiki/Fish | |
| Requires python 2.7/3.2 or higher. |
NewerOlder