Skip to content

Instantly share code, notes, and snippets.

View beck03076's full-sized avatar

senthil kumar muthamizhan beck03076

View GitHub Profile
@beck03076
beck03076 / sample_note.rb
Created February 11, 2015 13:26
note.last
=> #<Note id: 2673, content: "kjaslkdjf;lksadjf<br>slakdfj;sadlkfj;sadlkjfsad<br>...", created_at: "2015-01-12 16:01:45", updated_at: "2015-01-12 16:01:45", created_by: 5, updated_by: nil, auto: nil, noteable_type: "Registration", noteable_id: 8, assigned_to: nil, created_type: "User">
[beck@localhost organizor]$ mina deploy --verbose
-----> Using RVM environment 'ruby-2.1.2'
$ rvm use "ruby-2.1.2" --create
Using /home/deployer/.rvm/gems/ruby-2.1.2
-----> Creating a temporary build path
$ touch "deploy.lock"
$ mkdir -p "$build_path"
$ cd "$build_path"
-----> Fetching new git commits
$ (cd "/home/deployer/apps/organizor/scm" && git fetch "https://github.com/beck03076/organizor.git" "redesign-new:redesign-new" --force)
Truth Or Crazy
--------------
The rest of my whole life,
Will be an expression of pain,
From the end of our love.
Will be an manifestation of honor,
From the act of knowing you.
Will be a gesture of gratitude,
From the memory of your days.
You, Nature
-----------
Scent of your scalp
Just blossomed lily's
First ounce of breath.
Shape of your mouth
That of a woodpecker's
While forgiving a rosebud.
Winter has come
---------------
Sky has blackened,
Peacocks are ready.
Evening has plateaued,
It's drizzling already.
Peeped, the rainbow,
Home are the ants.
Inguilty Catastrophe
--------------------
Retirement, cried the roses,
to the adjustance,
of your soft lips wrinkle.
Holocaust of doves reported,
to the happenstance,
of your naive eyes twinkle.
20141220084207_add_subject_and_institution_and_grade_to_qualifications.rb
20141220084231_add_exam_and_score_and_graduated_out_to_qualifications.rb
20141220085213_add_registration_id_to_qualifications.rb
20141220085831_remove_qua_subject_and_qua_institution_and_qua_grade_from_registrations.rb
20141220085958_remove_qua_exam_and_qua_score_and_qualification_id_from_registrations.rb
20141220090441_create_qualification_names.rb
20141220093813_add_qualification_name_id_to_qualifications.rb
20141220095238_remove_graduaded_out_from_qualifications.rb
20141220095309_add_graduated_out_to_qualifications.rb
20141220110553_remove_graduated_out_from_qualification.rb
# migrate branch names --
INSERT INTO branches(name)
SELECT DISCTINCT(BranchName)
FROM 527433_iec.iec_branch;
# map country ids --
UPDATE branches b
INNER JOIN 527433_iec.iec_branch ob
ON ob.BranchName = b.name
INNER JOIN 527433_iec.iec_country oc
# migrate branch names
INSERT INTO branches(name)
SELECT DISCTINCT(BranchName)
FROM 527433_iec.iec_branch;
# map country ids
UPDATE branches b
INNER JOIN 527433_iec.iec_branch ob
ON ob.BranchName = b.name
INNER JOIN 527433_iec.iec_country oc
Mothi
------
1. Dropdown for Countries/cities, qualifications, courselevels, examtypes, englishlevels
2. UI of student login landing page
3. Approval_requests complete implementation, handle all
4. Document Upload Error - Path of file is being uploaded. Test with doc, pdf, img, txt
Sample Json
------------
[{'field' : 'first_name',