Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
# Add to .bash_profile to get instructions from .bashrc | |
[[ -r ~/.bashrc ]] && . ~/.bashrc | |
# Change shell | |
chsh -s /bin/bash | |
# ssh tunel | |
ssh zoo -L 8001:localhost:8001 -N |
def download_image(url, filename): | |
img = urllib.urlopen(url).read() | |
if img: | |
f = open('images/%s.jpg' % filename, 'wb') | |
f.write(urllib.urlopen(url).read()) | |
f.close() |
% plotnow - function to plot real time signals | |
% (e.g. from COM-port) using matlab | |
% | |
% arr - array of data. | |
% fs - sampling frequency | |
% t_width - time range to be shown | |
% ymin and ymax - range in y-axe | |
% | |
% Example usage: | |
% |
\documentclass[12pt]{article} | |
\usepackage{mathtext} % Для букв в формулах | |
\usepackage[T2A]{fontenc} | |
\usepackage{pslatex} % Times New Roman | |
\usepackage[utf8]{inputenc}%включаем свою кодировку: koi8-r или utf8 в UNIX, cp1251 в Windows | |
\usepackage[english,russian]{babel}%используем русский и английский языки с переносами | |
\usepackage{indentfirst} | |
%Поля страницы | |
\usepackage{geometry} |
git log --oneline filename | tail -1 |
git log --oneline filename | tail -1 |
""" | |
Мемоизация. Не зависит от аргументов. | |
""" | |
def _f(*args, **kwargs): | |
if not hasattr(_f, "_retval"): | |
_f._retval = f(*args, **kwargs) | |
return _f._retval | |
return _f |
# name: это строка которую транслитим | |
def transliterate(name): | |
""" | |
Автор: LarsKort | |
Дата: 16/07/2011; 1:05 GMT-4; | |
Не претендую на "хорошесть" словарика. В моем случае и такой пойдет, | |
вы всегда сможете добавить свои символы и даже слова. Только | |
это нужно делать в обоих списках, иначе будет ошибка. | |
""" | |
# Слоаврь с заменами |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.