I hereby claim:
- I am gregorlove on github.
- I am gregorlove (https://keybase.io/gregorlove) on keybase.
- I have a public key whose fingerprint is D7B6 075E 7537 F40A B327 F810 2E57 4552 635B 26CB
To claim this, I am signing this object:
| { | |
| "items": [], | |
| "rels": { | |
| "alternate": [ | |
| "http://example.com/fr" | |
| ], | |
| "author": [ | |
| "http://example.com/a", | |
| "http://example.com/b" | |
| ], |
| <?php | |
| if ( !function_exists('indieweb_check_webmention') ) { | |
| /** | |
| * Using the webmention_source_url, approve webmentions that have been received from previously- | |
| * approved domains. For example, once you approve a webmention from http://example.com/post, | |
| * future webmentions from http://example.com will be automatically approved. | |
| * Recommend placing in your theme's functions.php | |
| * |
I hereby claim:
To claim this, I am signing this object:
| // This function is defined as part of the window.dao object | |
| loadProduct: function(product_id) { | |
| var output = ''; | |
| // async db transaction | |
| this.db.readTransaction( | |
| function(tx) { | |
| var sql = 'SELECT * FROM products WHERE id = ? AND deleted IS NULL'; |
| <?php | |
| /** | |
| * Validates a date string and converts it to a DateTime object | |
| * Returns DateTime object on success, bool false on failure | |
| * @param string $date | |
| * @return DateTime|bool | |
| */ | |
| function validate_date($date) | |
| { |
| // usage: onblur="absoluteURL(this);" on HTML5 'url' input | |
| function absoluteURL(url) { | |
| var string = url.value; | |
| if ( string != '' && !(string.match(/^https?:/)) ) { | |
| string = 'http://' + string; | |
| } | |
| else if (string == 'http://' || string == 'https://' ) | |
| { | |
| string = ''; |