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
| 'use strict'; | |
| describe('Date Utils', function () { | |
| var DateUtils; | |
| beforeEach(module('providersApp')); | |
| beforeEach(inject(function (_DateUtils_) { | |
| DateUtils = _DateUtils_; |
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
| describe('Something', function () { | |
| var $controller, $scope; | |
| beforeEach(module('providersApp')); | |
| beforeEach(inject(function (_$controller_, _$filter_) { |
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
| // Znajdz link z klasą tag-link-77 | |
| // w czystym javascriptcie | |
| var links = document.getElementsByTagName('a'); | |
| for(var i in links){ | |
| if(links[i] && links[i].classList && links[i].classList.contains('tag-link-77')) | |
| console.log(links[i]); |
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
| // FORMATOWANIE | |
| function something(x, y, z){ | |
| return (x-20 + 2*y)%2*z; | |
| } | |
| // czytelniejsza wersja | |
| function something(x, y, z) | |
| { |
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
| // BEM | |
| .list{ | |
| // properties | |
| } | |
| .list__item{ | |
| // properties | |
| } |
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
| <!-- BEM --> | |
| <ul class="list"> | |
| <li class="list__item"></li> | |
| <li class="list__item"></li> | |
| <li class="list__item"></li> | |
| </ul> | |
| <!-- own | |
| wady: |
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
| @Entity | |
| @Table(name = "TestAspect") | |
| @JsonIgnoreProperties(ignoreUnknown = true) | |
| public class TestAspectEntity { | |
| @Id | |
| @Column(name = "id") | |
| @GeneratedValue | |
| private Long id; |
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
| TestAspectEntity | |
| @OneToOne(mappedBy="testAspect", cascade = CascadeType.ALL) | |
| private TestKnowledgeEntity knowledge = new TestKnowledgeEntity(); | |
| TestKnowledgeEntity | |
| @OneToOne |
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
| ... | |
| @ManyToMany(cascade = {CascadeType.ALL}, fetch = FetchType.LAZY) | |
| @JoinTable(name="TestAndTestAspect", | |
| joinColumns={@JoinColumn(name="testId")}, | |
| inverseJoinColumns={@JoinColumn(name="testAspectId")}) | |
| private Set<TestAspectEntity> testAspects = new HashSet<TestAspectEntity>(); | |
| public Set<TestAspectEntity> getTestAspects() { | |
| return testAspects; |
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
| 'use strict'; | |
| angular.module('govipAdminApp') | |
| .factory('Event', ['Model', 'Table', 'Form', | |
| function Events(Model, Table, Form) { | |
| var table = new Table({ | |
| name: null, |