# change mirror to ubuntu.osuosl.org first
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
| /* Requirements install git and curl */ | |
| /* installing rbenv */ | |
| curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash | |
| /* add this instead of generated stuff "PREPEND" the echo wordings to ~/.profile */ | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile | |
| echo 'eval "$(rbenv init -)"' >> ~/.profile |
| $(document).ready(function(){ | |
| if(location.pathname != "/"){ | |
| $('.nav li a[href^="/' + location.pathname.split("/")[1] + '"]').parent().addClass('active'); | |
| } | |
| else | |
| $('.nav li a:eq(0)').parent().addClass('active'); | |
| }); |
| # To use ActiveModel has_secure_password | |
| gem 'bcrypt-ruby', '~> 3.0.0' |
| public interface IRepository<T> | |
| { | |
| IEnumerable<T> GetAll(); | |
| T GetByID(int id); | |
| T GetByID(Guid key); | |
| void Save(T entity); | |
| void Delete(T entity); | |
| } | |
| public class Repository<T> : IRepository<T> |