[ONE LINE DESCRIPTION OF PROJECT]
[A PARAGRAPH DESCRIBING WHY YOU BUILT THIS]
[ANOTHER PARAGRAPH DESCRIBING YOUR IMPETUS FOR RELEASING THIS]
| <?php | |
| /** | |
| * imageColor | |
| * | |
| * Shows three methods to find the 'average' image color. | |
| * | |
| * Each function expects a gd image object. | |
| * | |
| * imageColor::averageResize($image) resizing to 1px, and checking the color. | |
| * imageColor::averageBorder($image) find the average color of all border pixels. |
| /* | |
| * An example of how to use a Google Map overlay to display a label on top of marker. | |
| * This is a slight re-work of http://www.tdmarketing.co.nz/blog/2011/03/09/create-marker-with-custom-labels-in-google-maps-api-v3/ | |
| * I suggest you rather view that blog post, this code is pasted here purely for my own personal reference. | |
| */ | |
| var | |
| point = { | |
| lat: 37.8478115, | |
| long: 15.2934327 |
| <?php | |
| $null = null; | |
| $notNull = 123; | |
| $is_null = function($value) { | |
| for($i = 0; $i < 1000000; $i++) { | |
| $result = is_null($value); | |
| } | |
| return "is_null"; | |
| }; |
| <?php | |
| namespace App\Model\Table; | |
| trait saveAllTrait { | |
| public function saveAll($entities = [], $options = null) { | |
| if($options === null) { | |
| return array_map([$this, 'save'], $entities); | |
| } | |
| $saved_entities = []; |
| Vue.filter('limit', function(array, length) { | |
| var limitCount = parseInt(length, 10); | |
| if (limitCount <= 0) { | |
| ("development") !== 'production' && _.warn( | |
| 'The limit filter requires an argument defining the limit count.' | |
| ); | |
| return array; | |
| } | |
| return array.slice(0, limitCount); | |
| }); |
| Name | Bank Holiday | Date | |
|---|---|---|---|
| New Year's Day | 1 | 2009-01-01 | |
| Robert Burns Night (Burns Night) | 0 | 2009-01-25 | |
| Holocaust Memorial Day | 0 | 2009-01-27 | |
| Valentines Day | 0 | 2009-02-14 | |
| Shrove Tuesday (Pancake Day) | 0 | 2009-02-24 | |
| Ash Wednesday | 0 | 2009-02-25 | |
| St David's Day | 0 | 2009-03-01 | |
| St Patricks Day | 0 | 2009-03-17 | |
| Mothering Sunday (Mothers Day) | 0 | 2009-03-22 |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>HTML5 Test Page</title> | |
| </head> | |
| <body> | |
| <div id="top" class="page" role="document"> | |
| <header role="banner"> |