Open vimrc:
vim ~/.vim/vimrcAdd Vundle plugin to vimrc:
Plugin 'prettier/vim-prettier'| Some possible implementations of the Bresenham Algorithms in C. | |
| The Bresenham line algorithm is an algorithm which determines which points in an | |
| n-dimensional raster should be plotted in order to form a close approximation | |
| to a straight line between two given points. | |
| It is commonly used to draw lines on a computer screen, as it uses only integer | |
| addition, subtraction and bit shifting, all of which are very cheap operations | |
| in standard computer architectures. | |
| It is one of the earliest algorithms developed in the field of computer graphics. | |
| A minor extension to the original algorithm also deals with drawing circles. |
| #!/bin/sh | |
| ### Desktop & Screen Saver | |
| # Desktopを黒に | |
| echo "Change Desctop Pictures" | |
| osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Black.png"' | |
| # ScreenSaver Kill | |
| echo "Disable screensaver" |
| from datetime import datetime | |
| from sqlalchemy import Column, Integer, DateTime, ForeignKey | |
| from sqlalchemy.orm import relationship | |
| from sqlalchemy.ext.declarative import declared_attr | |
| from flask_security import current_user | |
| class AuditMixin(object): | |
| created_at = Column(DateTime, default=datetime.now) | |
| updated_at = Column(DateTime, default=datetime.now, onupdate=datetime.now) |
Open vimrc:
vim ~/.vim/vimrcAdd Vundle plugin to vimrc:
Plugin 'prettier/vim-prettier'| deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse | |
| deb-src http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse | |
| deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse |
| http://ftp.tu-chemnitz.de/pub/linux/ubuntu-ports | |
| http://ports.ubuntu.com/ubuntu-ports | |
| https://mirror.kumi.systems/ubuntu-ports | |
| https://mirrors.aliyun.com/ubuntu-ports/ | |
| http://mirrors.mit.edu/ubuntu-ports/ | |
| https://ftp.ubuntu-tw.org/mirror/ubuntu-ports/ | |
| https://mirror.yandex.ru/ubuntu-ports/ | |
| https://mirror.scaleuptech.com/ubuntu-ports/ | |
| https://mirrors.ustc.edu.cn/ubuntu-ports/ | |
| https://mirror.csclub.uwaterloo.ca/ubuntu-ports/ |
| Git commands Cheat Sheet | |
| Initialize a new git repository: | |
| git init | |
| Set configuration values for your username and email: | |
| git config --global user.name <your-name> | |
| git config | |
| --global user. email <your-email> | |
| Clone a repository: |