Skip to content

Instantly share code, notes, and snippets.

@Saidbek
Saidbek / gist:772cca7476de3fdd063193d2079bb9f5
Last active October 1, 2022 02:31
Author/Book Management System
Guideline
Create your team if you don't have already and fork this project.
Add all team members as collaborators to the forked project.
Every task should have it's own branch name.
You should create pull requests into your team's branch.
Each pull request suppose to have a deployed version of code.
Make sure that your code is reusable and maintainable.
Follow this code review checklist link.
You can deploy to these websites:
Netlify. Netflify , Blog Surge Github Tasks
body {
width: 100% !important;
min-height: 1000px;
color: #676767;
background: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
line-height: 1.4;
margin: 0;
}
@Saidbek
Saidbek / 0-readme.md
Created November 27, 2012 11:17 — forked from burke/0-readme.md
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@Saidbek
Saidbek / .vimrc
Created July 12, 2012 18:18 — forked from whitered/.vimrc
My vimrc for Ruby on Rails development
call pathogen#runtime_append_all_bundles()
" language messages en
set encoding=utf-8
if has('win32')
set guifont=Monaco:h10:cRUSSIAN
else
set guifont=Monaco\ 11
end
" base for vimrc file taken from http://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide/
@Saidbek
Saidbek / env rails
Created May 11, 2012 07:45
development.rb
SmsSender::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the webserver when you make code changes.
config.cache_classes = false
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
@Saidbek
Saidbek / log
Created May 10, 2012 11:03
logger error in rails 3.2.2
[2012-05-10 17:00:02] ERROR NoMethodError: undefined method `logger' for ActionController::Base:Class
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/actionpack-3.2.2/lib/action_view/log_subscriber.rb:17:in `logger'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/activesupport-3.2.2/lib/active_support/log_subscriber.rb:76:in `map'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/activesupport-3.2.2/lib/active_support/log_subscriber.rb:76:in `flushable_loggers'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/activesupport-3.2.2/lib/active_support/log_subscriber.rb:84:in `flush_all!'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/railties-3.2.2/lib/rails/rack/logger.rb:28:in `call_app'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/railties-3.2.2/lib/rails/rack/logger.rb:16:in `call'
/home/sudoman/.rvm/gems/ruby-1.9.2-p290@rails3.2/gems/actionpack-3.2.2/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/sudoman/.rv
@Saidbek
Saidbek / partner_web_api_step
Created April 29, 2012 18:26
api step to reverse transfer
When(/^#{capture_model} requests via the API a (reverse_transfer) for transaction_number "([^"]*)"$/) do |console_user_name, type, reverse_trans|
console_user = model(console_user_name)
params = {
:console_user_id => console_user.id,
:reverse_transaction_number => reverse_trans
}.to_json
post "#{resource(type)}.json", params, "CONTENT_TYPE" => "application/json"