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
/* | |
# Only connect to this site and subdomains via HTTPS for the next one year | |
Strict-Transport-Security: max-age=31536000; includeSubDomains | |
# Block site from being framed with X-Frame-Options and CSP | |
Content-Security-Policy: frame-ancestors 'self' | |
# X-Frame-Options tells the browser whether you want to allow your site to be framed or not. By preventing a browser from framing your site you can defend against attacks like clickjacking. | |
X-Frame-Options: SAMEORIGIN |
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
protected ResponseEntity<Resource<List<Attachment>>> patchMultipartApiV1_Treatments_TID(final String aTID, | |
final Treatment aTreatment, | |
final boolean keepLock, | |
final MultipartFile... aMultipartFiles) throws IOException { | |
final MultiValueMap<String, Object> theMultipartRequest = new LinkedMultiValueMap<>(); | |
// creating an HttpEntity for the JSON part: | |
final HttpHeaders theJsonHeader = new HttpHeaders(); | |
theJsonHeader.setContentType(MediaType.APPLICATION_JSON); |
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
@Entity | |
public class Parent implements Serializable { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
@OneToMany(mappedBy = "parent", cascade = CascadeType.ALL, orphanRemoval = true) | |
private Set<Child> children = new HashSet<>(); | |
... |
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.directive 'mouseWheelScroll', ($timeout) -> | |
return { | |
restrict: 'A' | |
# require: '^$ionicScroll' | |
link: ($scope, $element, $attrs) -> | |
scrollCtrl = $element.controller('$ionicScroll') | |
console.log scrollCtrl | |
unless scrollCtrl | |
return console.error('mouseWheelScroll must be attached to a $ionicScroll controller.') |
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
This playbook has been removed as it is now very outdated. |