Skip to content

Instantly share code, notes, and snippets.

@szmeku
szmeku / config
Last active August 29, 2015 13:56
git repository config outside of worktree (~.git/config)
[core]
repositoryformatversion = 0
filemode = true
bare = false
symlinks = false
worktree = /path/to/repository
[receive]
denyCurrentBranch = ignore
@szmeku
szmeku / post-receive
Created February 25, 2014 01:03
git hook script ( ~.git/hooks/post-receive )
#!/bin/sh
git checkout -f
'use strict';
describe('RouteConfig', function ()
{
// load the service's module
beforeEach(module('govipAdminApp'));
// instantiate service
var RouteConfig;
Feature: Venues actions
Background:
Given the following venues exist:
| id | name | email | description | city | street | telephone |
| 555 | Hi Five Venue | [email protected] | bla bla bla | Somewhercity | bla | 32423 |
| 666 | Satan Venue | [email protected] | bla bla bla | Somewhercity | bla | 32423 |
Scenario: Get one venue
When I visit venues/555
@szmeku
szmeku / event.js
Last active August 29, 2015 14:00
'use strict';
angular.module('govipAdminApp')
.factory('Event', ['Model', 'Table', 'Form',
function Events(Model, Table, Form) {
var table = new Table({
name: null,
...
@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;
TestAspectEntity
@OneToOne(mappedBy="testAspect", cascade = CascadeType.ALL)
private TestKnowledgeEntity knowledge = new TestKnowledgeEntity();
TestKnowledgeEntity
@OneToOne
@Entity
@Table(name = "TestAspect")
@JsonIgnoreProperties(ignoreUnknown = true)
public class TestAspectEntity {
@Id
@Column(name = "id")
@GeneratedValue
private Long id;
<!-- BEM -->
<ul class="list">
<li class="list__item"></li>
<li class="list__item"></li>
<li class="list__item"></li>
</ul>
<!-- own
wady:
// BEM
.list{
// properties
}
.list__item{
// properties
}