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
rails assets:precompile -> This is the command you use to compress the assets . | |
- This command will generate assets via using the asset pipelining. And have them | |
in public/assets folder. | |
rails assets:clean -> This will clean the older assets you have . | |
- This command will clear older versions of the assets | |
rails assets:clobber -> Nuke public/assets . | |
- delete everything. |
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
Build a Collaborative Learning System where you can collaborate on educational contents . | |
Here are the user stories | |
1) User should be able to register using his username, email address and password | |
2) User should recieve confirmation email after registering | |
3) User should only be able to log in after confirmation. | |
4) User should be able to add any topic to discuss with his/her friends. | |
5) Users should be able to add comments into any discussion topics. | |
6) User should be able to view all the comments in any topic being discussed. | |
7) User should be notified whenever any discussion he is involved in has any changes via Email. | |
8) User should be notified whenever any new topic is added to be discussed via Email. |
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 @TimeMachine | |
constructor: (parameter) -> | |
that = @ | |
@element = $('grab from id or class') | |
@element.on 'click', (event) -> | |
the_function | |
the_function = -> | |
@element.toggleClass('.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
class @DateParameter | |
constructor: -> | |
that = @ | |
@date = $('.date') | |
@date.on 'click', (e) -> | |
@parent_date=this.parentNode; | |
unless @parent_date.classList.contains("notmonth") | |
reload_display this.innerHTML | |
$(".date").unbind("click"); | |
else |
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
# Place all the behaviors and hooks related to the matching controller here. | |
# All this logic will automatically be available in application.js. | |
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ | |
# \etrack | |
class @StopWatch | |
MAX_HOUR: 12 | |
MAX_MINUTE: 59 | |
constructor: -> | |
that = @ |
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 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'capybara/rspec' | |
require 'capybara/poltergeist' | |
require 'csv' | |
require 'pry' | |
include Capybara::DSL | |
Capybara.register_driver :poltergeist do |app| |
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
sudo aptitude -y install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev | |
sudo apt-get -y install libxslt-dev libxml2-dev | |
sudo apt-get -y install libmysqlclient-dev ruby-dev | |
sudo apt-get -y install libcurl4-openssl-dev | |
sudo apt-get -y install imagemagick libmagickcore-dev libmagickwand-dev | |
sudo apt-get -y install libsqlite3-dev | |
sudo apt-get -y install libreadline-dev | |
sudo apt-get -y install git | |
sudo apt-get -y install libicu48 | |
sudo apt-get -y install nodejs |
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
git log --author="nikesh" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' - |
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
find the file pg_hba.conf - it may be located, for example in /etc/postgresql-9.1/pg_hba.conf. | |
cd /etc/postgresql-9.1/ | |
Back it up | |
cp pg_hba.conf pg_hba.conf-backup | |
place the following line (as either the first uncommented line, or as the only one): |