- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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 |
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
# name: это строка которую транслитим | |
def transliterate(name): | |
""" | |
Автор: LarsKort | |
Дата: 16/07/2011; 1:05 GMT-4; | |
Не претендую на "хорошесть" словарика. В моем случае и такой пойдет, | |
вы всегда сможете добавить свои символы и даже слова. Только | |
это нужно делать в обоих списках, иначе будет ошибка. | |
""" | |
# Слоаврь с заменами |
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
""" | |
Мемоизация. Не зависит от аргументов. | |
""" | |
def _f(*args, **kwargs): | |
if not hasattr(_f, "_retval"): | |
_f._retval = f(*args, **kwargs) | |
return _f._retval | |
return _f |
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
git log --oneline filename | tail -1 |
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
git log --oneline filename | tail -1 |
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[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} |
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
% 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: | |
% |
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
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() |
OlderNewer