I hereby claim:
- I am MiniCodeMonkey on github.
- I am codemonkey (https://keybase.io/codemonkey) on keybase.
- I have a public key whose fingerprint is 0A47 EC1B 192E 0C3D D8F9 F664 662E C10B A1F5 A3A9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"name": "Geocodio", | |
"description": "Ridiculously cheap bulk geocoding", | |
"image": "http://geocod.io/img/logo_inv_original.png", | |
"url": "https://geocod.io", | |
"type": "default", | |
"version": "1.0", | |
"apis": [ | |
{ |
<?php | |
$query = trim($query, " \t\n\r\0\x0B,.:|?!+=()[]{}@#$%^&_-"); |
<?php | |
if ( !function_exists('wp_rand') ) : | |
/** | |
* Generates a random number | |
* | |
* @since 2.6.2 | |
* | |
* @param int $min Lower limit for the generated number | |
* @param int $max Upper limit for the generated number | |
* @return int A random number between min and max |
curl -X POST \ | |
-H "Content-Type: application/json" \ | |
-d '{"KeyA": "42370 Bob Hope Drive, Rancho Mirage CA", "KeyB": "1290 Northbrook Court Mall, Northbrook IL", "KeyC": "4410 S Highway 17 92, Casselberry FL", "KeyD": "15000 NE 24th Street, Redmond WA", "KeyE": "17015 Walnut Grove Drive, Morgan Hill CA"}' \ | |
https://api.geocod.io/v1/geocode?api_key=YOUR_API_KEY |
/* | |
This query returns the id's of stores which are open right now. | |
The date field for an opening hour can be either an explicit date or a weekday, an explicit date has higher priority than a weekday, and thus overrides a weekday. | |
A store is considered closed the whole day if there is an explicit date set (not a weekday) and closed=1 - or - no opening_hour is registered for the store on the day | |
Example data: | |
store_id date open_time close_time closed dayandnight closes_after_midnight | |
---------- -------- ---------- ---------- ------- ------------ ---------------------- |
/* | |
* Instructions: | |
* Paste one of the following snippets in your browsers Javascript console | |
*/ | |
// Remove all others than yourself | |
var n = "Mathias Hansen"; $("li.todo").each(function () { if ($.trim($(this).find("span .pill").find("span span").html()) != n) { $(this).remove(); } }); | |
// Mark your name with a color | |
var n = "Mathias Hansen"; $("li.todo").each(function () { var o = $(this).find("span .pill").find("span span"); if ($.trim(o.html()) == n) { o.css('color', '#000'); o.parent().css('background-color', 'yellow'); } }); |
/* | |
* Instructions: | |
* Paste one of the following snippets in your browsers Javascript console | |
*/ | |
// Remove all others than yourself | |
var n = "Mathias Hansen"; $("li .todo").each(function () { if ($.trim($(this).find("span .pill").find("span").html()) != n) { $(this).remove(); } }); | |
// Mark your name with a color | |
var n = "Mathias Hansen"; $("li .todo").each(function () { var o = $(this).find("span .pill").find("span"); if ($.trim(o.html()) == n) { o.css('color', '#000'); o.parent().css('background-color', 'yellow'); } }); |
<?php | |
public function getOpenStoresCount() | |
{ | |
$textualDateCondition = OpeningHour::getTextualDateQuery(); // Use the helper function from OpeningHour | |
$query = "SELECT | |
COUNT(*) | |
FROM `stores` | |
WHERE id IN ( | |
SELECT store_id FROM opening_hours WHERE date = CURDATE() | |
AND |
[ | |
{ | |
"start_station": "14th & Rhode Island Ave NW", | |
"start_date": "01-09-2013 8:28 am", | |
"end_station": "8th & Eye St SE / Barracks Row", | |
"end_date": "01-09-2013 8:54 am", | |
"duration_seconds": 1547, | |
"duration": "25 minutes, 47 seconds", | |
"cost": 0 | |
}, |