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
! General | |
!urxvt*termName: rxvt-256color | |
urxvt*loginShell: true | |
urxvt*scrollBar: false | |
urxvt*secondaryScroll: true | |
urxvt*saveLines: 65535 | |
urxvt*cursorBlink: false | |
urxvt*urgentOnBell: true | |
!urxvt*override-redirect:false | |
!urxvt*borderLess: false |
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 <iostream> | |
using namespace std; | |
int main(){ | |
int a, b; | |
freopen("input.txt","r",stdin); | |
freopen("output.txt","w",stdout); | |
cin >> a; | |
b = a/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
1. Анализ технических требований и уточнение спецификаций | |
1.1. Анализ задания, выбор технологии, языка и среды программирования | |
Анализ требований показал, что наилучшим вариантом реализации программы будет веб-приложение, так как сайты способны прозрачно обеспечивать удобную совместную работу и не требуют установки специального программного обеспечения на компьютеры пользователей. Кроме того, доступ к веб-приложениям может быть осуществлен с широкого спектра устройств, как настольных (персональные компьютеры), так и портативных (портативные, планшетные и карманные компьютеры), единственным требованием является современный веб-браузер. | |
Основным языком разработки был выбран Ruby, в качестве программного каркаса использовался Ruby on Rails. Cообщество высококлассных разработчиков со всего мира за короткий срок сделали Ruby on Rails продуктом, используемым для создания широкого спектра сайтов: от небольших интернет-магазинов, до используемых миллионами людей ежедневно сайтов и веб-сервисов. На Ruby on Rails работ |
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
PROMPT='%{$fg_bold[gray]%}%~%{$fg_bold[blue]%}%{$fg_bold[blue]%}% %{$reset_color%} %{$fg[green]%}➞ %{$reset_color%'% |
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
module DigestMethods | |
def self.included(klass) | |
end | |
def generate_digest | |
require 'digest/sha2' | |
digest = Digest::SHA1.hexdigest(self.body) | |
self.update_attribute(:sha, digest) | |
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
class SessionsController < ApplicationController | |
def new | |
authorize! :login, User.new | |
end | |
def create | |
user = User.find_by_email(params[:email].downcase) | |
if user && user.authenticate(params[:password]) | |
session[:user_id] = user.id |
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
*** LOCAL GEMS *** | |
actionmailer (3.1.3, 3.1.1) | |
actionpack (3.1.3, 3.1.1) | |
activeadmin (0.3.4) | |
activemodel (3.1.3, 3.1.1) | |
activerecord (3.1.3, 3.1.1) | |
activeresource (3.1.3, 3.1.1) | |
activesupport (3.1.3, 3.1.1) | |
addressable (2.2.6) |
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
source 'http://rubygems.org' | |
gem 'rails', '3.1.3' | |
gem 'pg' | |
group :assets do | |
gem 'coffee-rails', '~> 3.1.1' | |
gem 'uglifier', '>= 1.0.3' | |
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
guard 'spork', cucumber_env: { 'RAILS_ENV' => 'test' }, rspec_env: { 'RAILS_ENV' => 'test' } do | |
watch('config/application.rb') | |
watch('config/environment.rb') | |
watch(%r{^config/environments/.+\.rb$}) | |
watch(%r{^config/initializers/.+\.rb$}) | |
watch('Gemfile') | |
watch('Gemfile.lock') | |
watch('spec/spec_helper.rb') { :rspec } | |
watch('test/test_helper.rb') { :test_unit } | |
watch(%r{features/support/}) { :cucumber } |
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
~/code/scpfoundation[master] ✗ ➞ guard --verbose | |
Guard could not detect any of the supported notification libraries. | |
Guard is now watching at '/Users/resure/code/scpfoundation' | |
DEBUG (22:11:03): Hook :start_begin executed for Guard::Spork | |
DEBUG (22:11:03): Command execution: ps aux | awk '/spork/&&!/awk/{print $2;}' | |
DEBUG (22:11:03): Killing Spork servers with PID: | |
Starting Spork for RSpec | |
Using RSpec | |
Preloading Rails environment | |
Loading Spork.prefork block... |