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
> CREATE USER 'edu37'@'localhost' IDENTIFIED BY '***'; | |
> GRANT USAGE ON * . * TO 'edu37'@'localhost' IDENTIFIED BY '***' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; | |
> GRANT ALL PRIVILEGES ON `edu37_production` . * TO 'edu37'@'localhost'; |
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
Using /home/the_teacher/.rvm/gems/ruby-1.8.7-p352-rubygems162 with gemset art_electronics | |
the_teacher@work:~/rails/work/art_electronics$ gem list | |
*** LOCAL GEMS *** | |
actionmailer (2.3.10) | |
actionpack (2.3.10) | |
activerecord (2.3.10) | |
activeresource (2.3.10) | |
activesupport (2.3.10) |
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
/* Base */ | |
html, body { | |
width: 100%; | |
height:100%; | |
} | |
.body{ | |
height: auto !important; | |
min-height: 100%; | |
height: 100%; |
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
categories.each do |category| | |
root_hub = create_new_hub(category) | |
children = sub_categories_for(category) | |
children.each do |subcategory| | |
sub_hub = create_new_hub(subcategory) | |
sub_hub.move_to_child(root_hub) | |
end | |
end |
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
UBUNTU BUTTONS | |
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close' | |
GNOME COMMANDER | |
sudo apt-get install gnome-commander -y | |
COMMON | |
sudo apt-get update | |
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxslt1.1 libxslt1-dev libxml2 libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y |
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
def professional? | |
type == 'professional' | |
end | |
def professionalism_check | |
if professional? | |
true | |
else | |
false | |
end |
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
> brew install tmux | |
Example configurations have been installed to: | |
/usr/local/Cellar/tmux/1.8/share/tmux/examples | |
Bash completion has been installed to: | |
/usr/local/etc/bash_completion.d | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) |
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
ActionView::TestCase::TestController.instance_eval do | |
helper MyEngine.routes.url_helpers | |
helper ApplicationHelper | |
include Devise::TestHelpers | |
end |
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
Сделать систему публичных сообщений | |
- Любой незарегистрированный пользователь может оставит сообщение на публичной доске. | |
- title, content не могут быть пустыми | |
- Регистрация пользователей не предполагается | |
- В системе существует только один пользователь - администратор ([email protected] | qwerty), который войдя в систему при просмотре списка оставленных сообщений имеет доступ кнопке редактировать и удалить и может выполнить эти действия | |
- В системе есть только 1 страница (index) - главная (со списком оставленных сообщений) | |
- На одной странице может быть не более 25 сообщений | |
Обеспечить быструю развертку приложения для тестирования (Readme, seed data) |
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
Задача | |
Рельс | |
Создать рельсовое приложение | |
В приложении должна быть только одна страница - главная | |
На главной странице есть инпут для загрузки фотографии размером 600*200 | |
Если фото не соответствует размеру - выдается ошибка валидации | |
На главной странице отображается список уже загруженных файлов и ссылка удаления для каждой фотки |