This file contains 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
[ | |
{ | |
"id": 105142, | |
"avatar": "test", | |
"commenter": "Test", | |
"text": "test", | |
"parent": null, | |
"created": "2015-03-20T17:21:33.013+01:00" | |
}, | |
{ |
This file contains 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
angular.module('starter') | |
.controller('NewsCtrl', function($scope, content, $cordovaSocialSharing, $sce, $ionicModal){ | |
$scope.news = content; | |
content.getList('comments').then(function (comments) { | |
$scope.comments = comments; | |
}); | |
$ionicModal.fromTemplateUrl('templates/comments.html', { | |
scope: $scope, |
This file contains 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
angular.module('app.config',[]) | |
.constant('DB_CONFIG', { | |
name: 'nautica', | |
tables: [ | |
{ | |
name: 'Questions', | |
columns: [ | |
{name: 'id', type: 'INTEGER PRIMARY KEY NOT NULL'}, | |
{name: 'text', type: 'TEXT'}, | |
{name: 'exam_type', type: 'TEXT'}, |
This file contains 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
app/ | |
app.js | |
Home/ | |
_home.haml | |
HomeController.coffee | |
HomeEntryDirective.coffee | |
HomeService.coffee | |
Login/ | |
_login.haml | |
LoginController.coffee |
This file contains 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
/* global window, document, $ */ | |
;(function (window, document, undefined) { | |
'use strict'; | |
window.headerManager = (function () { | |
var script, |
This file contains 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
%tr.odd.gradeX | |
%td= product.id | |
%td= product.brand | |
%td= product.name | |
%td= product.published_at | |
%td | |
%span.label.label-primary= product.category.try(:name) | |
%td | |
- if product.product_review.present? | |
%span.label.label-primary Prova |
This file contains 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
$(document).on "ajax:success", ".img_action_remove", (e) -> | |
$(e.currentTarget).closest("li").remove() |
This file contains 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
Name all the 7 (or 8) routes exposed by the resources keyword in the routes.rb file. Also name the 4 named routes, and how the request is routed to the controller/action. | |
What is REST and how does it relate to the resources routes? | |
What's the major difference between model backed and non-model backed form helpers? | |
How does form_for know how to build the <form> element? | |
What's the general pattern we use in the actions that handle submission of model-backed forms (ie, the create and udpate actions)? | |
How exactly do Rails validations get triggered? Where are the errors saved? How do we show the validation messages on the user interface? | |
What are Rails helpers? | |
What are Rails partials? | |
When do we use partials vs helpers? | |
When do we use non-model backed forms? |
This file contains 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 Hand | |
attr_reader :owner, :hand, :value | |
def initialize(owner, hand = []) | |
@hand = hand | |
@owner = owner | |
@value = 0 | |
end |
NewerOlder