Skip to content

Instantly share code, notes, and snippets.

Detailed Rubric

Subjective evaluation will be made on your work/process according to the following criteria:

1. Satisfactory Progress

  • 4: Developer completes iterations 1 through 6 as well as an additional supporting feature
  • 3: Developer completes iterations 1 through 6 (this includes one supporting feature) with few bugs and no missing functionality.
  • 2: Developer completes iterations 1 through 5 with some bugs or missing functionality.
  • 1: Developer fails to complete iterations 1 through 4, or there are significant issues with delivered functionality.
class Person < ApplicationRecord
belongs_to :personable, polymorphic: true
end
class User < ApplicationRecord
has_one :person, as: :personable
end
$(document).on 'turbolinks:load', ->
$('#export_from').datepicker('update', moment().format('DD-MM-Y'))
$('#export_until').datepicker('update', moment().format('DD-MM-Y'))
$('[data-behavior~=back_30_days]').on 'change', (e) ->
$('.back-in-time').hide('slow')
$("#{$(e.target).data('target')}").datepicker('update', moment().subtract(30, 'days').format('DD-MM-Y'))
class ImportsController < ApplicationController
#...
def create
read_csv.each do |row|
attributes = row.to_h.map { |k, v| [attributes_map[k], v] }.to_h
attributes[:address] = "#{row['ulice']}, #{row['okres']}, #{row['misto']} #{row['psc']}"
attributes = attributes.reject { |k, v| k == nil }
Student.create_with(attributes).find_or_create_by(rodne_cislo: attributes[:rodne_cislo])
create_table :students do |t|
t.string :first_name
t.string :last_name
t.string :citizenship
t.string :rodne_cislo
t.string :group
t.date :date_of_birth
t.string :studies_state
t.string :primary_specialty
t.string :secondary_specialty
[Story](https://www.pivotaltracker.com/...)
<description of work>
### Dependencies
- [ ] <other PR and tasks>
### Reviews
- [ ] @<users you think should review this PR>
@import "variables.less";
@import "mixins.less";
@import "responsive-utilities.less";
@import "responsive-1200px-min.less";
// The responsive.less is being loaded either way with "twitter/bootstrap/boostrap".
// So the solution is to import each component separately ignoring the ones we don't require.
@import "twitter/bootstrap/reset.less";
@import "twitter/bootstrap/variables.less";
@import "twitter/bootstrap/mixins.less";
@import "twitter/bootstrap/scaffolding.less";
@import "twitter/bootstrap/grid.less";
@import "twitter/bootstrap/layouts.less";
@import "twitter/bootstrap/type.less";
@adammiribyan
adammiribyan / hiw_section.html.haml
Created April 13, 2013 00:41
Lawdingo HIW section description.
= render layout: 'section', locals: { image: 'image_path.png', position: :right | :left }
%h2 Title of the section
%p text
Images are supposed to be stored in app/assets/images/help/{clients | lawyers}/.
The :position option for the section is :left by default.