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
javascript: (function() { | |
var root = angular.element(document.getElementsByTagName('html')); | |
var watchers = []; | |
var attributes = []; | |
var attributes_with_values = []; | |
var elements = []; | |
var elements_per_attr = []; | |
var scopes = []; |
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
// Copyright 2004-present Facebook. All Rights Reserved. | |
/** | |
* Immutable data encourages pure functions (data-in, data-out) and lends itself | |
* to much simpler application development and enabling techniques from | |
* functional programming such as lazy evaluation. | |
* | |
* While designed to bring these powerful functional concepts to JavaScript, it | |
* presents an Object-Oriented API familiar to JavaScript engineers and closely | |
* mirroring that of Array, Map, and Set. It is easy and efficient to convert to |
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
<?php | |
// You can run this like so: | |
// cd path/to/your/omeka/installation | |
// php -S localhost:5000 routing.php | |
// Stackoverflow: http://stackoverflow.com/questions/834303/startswith-and-endswith-functions-in-php | |
function endsWith($haystack, $needle) { | |
// search forward starting from end minus needle length characters | |
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE); |