-
In terminal, enter this:
sudo defaults write com.apple.MultitouchSupport ForceAutoOrientation YES
-
Then turn off the trackpad by holding the power button until the indicator light turns off.
-
Physically invert the trackpad.
-
Turn on the trackpad.
-
Place five five fingers on the trackpad as if you were playing a piano.
-
Now the orientation should be changed, and the cursor movements should reflect the new orientation of the trackpad.
-
Note: This (seemingly) does not work for 90º rotations of the trackpad, only 180º.
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
HTML: | |
<div class="wrapper"> | |
<div class="tabs"> | |
<span class="tab">Вкладка 1</span> | |
<span class="tab">Вкладка 2</span> | |
<span class="tab">Вкладка 3</span> | |
</div> | |
<div class="tab_content"> | |
<div class="tab_item">Содержимое 1</div> | |
<div class="tab_item">Содержимое 2</div> |
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
user - имя пользователя | |
server.timeweb.ru - сервер | |
1. На машине ssh-keygen -t rsa | |
2. Копируем, можно по FTP или одной из команд | |
2.1. ssh-copy-id -i ~/.ssh/id_rsa [email protected] | |
2.2. scp ~/.ssh/id_rsa.pub [email protected]:~ | |
3. На сервере | |
[ -d ~/.ssh ] || (mkdir ~/.ssh; chmod 711 ~/.ssh) # создание директории и изменение прав | |
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys # добавление открытого ключа |
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/vesta/data/templates/web/apache2/laravel.stpl | |
<VirtualHost %ip%:%web_ssl_port%> | |
ServerName %domain_idn% | |
%alias_string% | |
ServerAdmin %email% | |
DocumentRoot %sdocroot%/public/ | |
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/ | |
Alias /vstats/ %home%/%user%/web/%domain%/stats/ |
Чатики и каналы по Deep Learning в telegram
- https://telegram.me/opendatascience - сообщество http://opendatascience.ru (923 члена)
- https://telegram.me/modeloverfit - новости из сообщества vk.com/modeloverfit (65 членов)
- https://telegram.me/ru_deep - Глубинное обучение (58 членов)
- https://telegram.me/deeplearning_ru - Канал нашего сообщества vk.com/deeplearning_ru
- https://telegram.me/DeepLearning (40 членов, eng)
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
Number.prototype.toPhrase=function(c) | |
// сумма прописью для чисел от 0 до 999 триллионов | |
// можно передать параметр "валюта": RUB,USD,EUR (по умолчанию RUB) | |
{ | |
var x=this.roundTo(2); | |
if (x<0 || x>999999999999999.99) return false; | |
var currency='RUB'; | |
if (typeof(c)=='string') | |
currency=c.trimAll().toUpperCase(); |