Skip to content

Instantly share code, notes, and snippets.

View alexTitakoff's full-sized avatar
🏠
Working from home

Alex Titakoff alexTitakoff

🏠
Working from home
View GitHub Profile
@Shutik
Shutik / gist:908b8ce4ce432540e14bd8927e2edeb1
Created October 26, 2016 03:34
Cумма прописью, js
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();
@fortunto2
fortunto2 / DeepTelegram.md
Last active December 14, 2023 10:26
Чатики и каналы по Deep Learning в telegram

Чатики и каналы по Deep Learning в telegram

Каналы

Чаты

@inerba
inerba / laravel.stpl
Created May 9, 2016 08:53
Laravel template VESTACP
# /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/
@zetrider
zetrider / TimeWeb - SSH RSA Key
Created November 19, 2015 12:29
Авторизация SSH по RSA ключу - TimeWeb
user - имя пользователя
server.timeweb.ru - сервер
1. На машине ssh-keygen -t rsa
2. Копируем, можно по FTP или одной из команд
2.1. ssh-copy-id -i ~/.ssh/id_rsa user@server.timeweb.ru
2.2. scp ~/.ssh/id_rsa.pub user@server.timeweb.ru:~
3. На сервере
[ -d ~/.ssh ] || (mkdir ~/.ssh; chmod 711 ~/.ssh) # создание директории и изменение прав
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys # добавление открытого ключа
@tomkinsc
tomkinsc / invert-trackpad.md
Created August 25, 2015 15:58
invert Apple Magic Trackpad
  • 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º.

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>