- Иметь установленный ruby >= 2.3.1
sudo gem install rails
rails new blog
,blog
- имя приложенияcd blog
- Раскомментировать строку
gem therubyracer
bundle install
bin/rails server
- сервер Puma запущен- Чтобы создать контроллер, нужно запустить генератор контроллеров и передать ему название "Welcome" с action "index"
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
/* | |
* Derived from einaros's Sons of Obsidian theme at | |
* http://studiostyl.es/schemes/son-of-obsidian by | |
* Alex Ford of CodeTunnel: | |
* http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme | |
*/ | |
.str | |
{ | |
color: #EC7600; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WonderTab</title> | |
<meta charset="utf-8"/> | |
<style type="text/css"> | |
p, ul{margin:0; padding:0;} | |
/*start tabs */ |
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
/* | |
Если минимальные элементы столбцов находятся на побочной диагонали и образуют неубывающую последовательность, | |
то транспонировать матрицу. В противном случае матрицу оставить без изменения. | |
*/ | |
#include <stdio.h> | |
void matrix(void); | |
// Global variables declaration |
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> | |
<head> | |
<style> | |
div { | |
position:relative; | |
} | |
</style> | |
<title>Animating block</title> |
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
// Найти максимальный элемент среди элементов, меньших t. | |
#include <stdio.h> | |
#include <stdlib.h> | |
int matrix(void); | |
// Global variables declaration |
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
require 'greek_abc' | |
abc = GreekABC::Alphabet | |
# Define method :Σ | |
define_method(abc.sigma.upper.to_sym) do |**args| | |
"#{args.keys.join(' + ')} = #{args.values.sum}" | |
end | |
Σ(x: 10, y: 20) # => "x + y = 30" |
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
// My trigger Button | |
const SettingsButton = () => { | |
return ( | |
// <Button> component here | |
) | |
} | |
// My popover | |
const SettingsPopover = () => { | |
return ( |
Проект: CRM/ERP-система управления автомойками
Компонент: мониторинг статуса заказов для клиентов
Технологический стек проекта: Postgres, ElasticSearch; Rails, Grape; AngularJS (v1)
OlderNewer