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
Küsimus 1 | |
Õige | |
Hindamata | |
Flag question |
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
Küsimus 1 | |
Õige | |
Hindamata | |
Flag question |
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
import java.util.*; | |
import java.util.regex.*; | |
/** Quaternions. Basic operations. */ | |
public class Quaternion { | |
public double realPart; | |
public double i; | |
public double j; | |
public double k; |
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
import java.util.*; | |
public class Answer { | |
public String name; | |
public Answer firstChild; | |
public Answer nextSibling; | |
public static <T extends Object> void p(T s){ |
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
import static org.junit.Assert.*; | |
import org.junit.*; | |
public class AnswerTest { | |
Answer.Graph g; | |
Answer.Vertex v1; |
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
Show hidden characters
{ | |
"font_face": "Bitstream Vera Sans Mono", | |
"font_size": 12, | |
"trim_trailing_white_space_on_save": true, | |
"draw_white_space": "selection", | |
"font_options": [ "gray_antialias" ], | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true |
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 FormModel | |
extend ActiveModel::Naming | |
include ActiveModel::Conversion | |
include ActiveModel::Validations | |
def self.form_fields | |
@form_fields ||= [] | |
end |
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
var Yo = function(){} | |
Yo.Application = function(){ | |
this.Router = null; | |
this.Controllers = {}; | |
this.Views = {}; | |
this.Repositories = {}; | |
this.Models = {}; | |
} |
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.HashTransform = DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return serialized || {} | |
}, | |
serialize: function(deserialized) { | |
return deserialized || {} | |
} | |
}); |
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
// you have to have assocations defined and in view you can check isDirty | |
// it is automatically pushed to your assocation (in our case order) | |
actions: { | |
addOrderProduct: function() { | |
var order = this.get("controllers.order.model"); | |
var orderProduct = this.store.createRecord("orderProduct", {order: order}); | |
return orderProduct; | |
} | |
} |