(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
/* | |
In Gitbox (gitboxapp.com) there is a stage view on the right where you can see | |
a list of all the changes in the working directory: untracked, modified, | |
added, deleted, renamed files. Each change has a checkbox which you can click | |
to stage or unstage the change ("git add", "git reset"). | |
When the change staging finishes, we run another task to load all the changes | |
("git status"). | |
When the loading task is completed we notify the UI to update the list of changes. | |
All tasks are asynchronous. |
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
# name: clearance | |
# --------------- | |
# Based on idan. Display the following bits on the left: | |
# - Virtualenv name (if applicable, see https://github.com/adambrenecki/virtualfish) | |
# - Current directory name | |
# - Git branch and dirty state (if inside a git repo) | |
function _git_branch_name | |
echo (command git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
end |
Для начала настроим и запустим. У меня рабочая директория WWPass/journal2/chroot/static/
и файл tinymce.html
— ты подставь свои, но в общем вот так. Далее приведу полную процедуру установки и настройки простого проекта.
# устанавливаем Node.js и вместе с ним установится npm
~ > brew update ; brew upgrade ; brew install nodejs
# устанавливаем Browsersync с помощью npm
~ > npm install -g browser-sync
# from mongohelp import Connection | |
# db = Connection().database_name | |
# print repr(db.collection.find_one()) | |
# db = Connection('example.com:37017').database_name | |
# print repr(db.collection.find_one()) | |
# db = Connection( | |
# ('s1.example.com, s2.example.com'), |
<html> | |
<body> | |
<script type='text/javascript'> | |
if (parent.document.location.href == document.location.href) | |
document.location.href = 'https://yandex.ru'; | |
} | |
</script> | |
</body> | |
</html> |
В проекте «Угадай мелодию» закрался баг. В стили в адресах для картинок затесались абсолютные пути, поэтому локально все будет работать хорошо, а на gh-pages (при публикации) непременно потеряются картинки.
const mainContainer = document.querySelector(`div.app section.main`); | |
const template = document.querySelector(`#templates`); | |
const screens = [ | |
template.content.querySelector(`.main--welcome`), | |
template.content.querySelector(`.main--level-genre`), | |
template.content.querySelector(`.main--level-artist`), | |
template.content.querySelectorAll(`.main--result`)[0], | |
template.content.querySelectorAll(`.main--result`)[1] | |
]; |
[ | |
{ | |
"type":"guess-artist", | |
"src":"https://freemusicarchive.org/music/listen/97489d0e37ce1c46d89a4df577a08a1ba7a864f4", | |
"options":[ | |
{ | |
"img":"https://freemusicarchive.org/file/images/artists/Quantum_Jazz_-_20120509113401114.jpg?width=300&height=300", | |
"name":"Quantum Jazz", | |
"isRight":false | |
}, |