Parallax scrolling with only backgrounds https://jsfiddle.net/940aqooq/
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
| @function svg-url($svg) { | |
| @if not str-index($svg,xmlns) { | |
| $svg: str-replace($svg, '<svg','<svg xmlns="http://www.w3.org/2000/svg"'); | |
| } | |
| $encoded:''; | |
| $slice: 2000; | |
| $index: 0; | |
| $loops: ceil(str-length($svg)/$slice); |
- Model everything as value objects first eg. even customers if that was part your domain. When you realise they need an identity (lifecycle), then turn them into entities.
https://skillsmatter.com/skillscasts/1981-simple-is-better
http://stackoverflow.com/questions/12584966/where-to-bind-dto-into-domain-model
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
| <?php | |
| class Route | |
| { | |
| private $server; | |
| private $get; | |
| private $post; | |
| public static function init(array $server, array $get, array $post) |
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
| <?php namespace Example\Model; | |
| use App\Utility\Escape; | |
| /** | |
| * Post promo view model. | |
| */ | |
| class ArticlePromoView | |
| { | |
| const numberOfWords = 18; |