Skip to content

Instantly share code, notes, and snippets.

View doug7410's full-sized avatar

Doug Steinberg doug7410

  • Agile Element
  • Coral Springs, FL
View GitHub Profile
6058 POMPANO ST , JUPITER,FL 33458 668bfd7585d388f9c552a505
{
"property_lat": 26.89557,
"property_lng": -80.128834,
"lat": 26.89557,
"lng": -80.128834,
"lng_match": true,
"lat_match": true
}
Updated coordinates for property 668bfd7585d388f9c552a505 to [-80.128834, 26.89557]
{
"results": [
{
"query": "18651 limestone creek rd, unincorporated, fl 33458",
"response": {
"input": {
"address_components": {
"number": "18651",
"street": "Limestone Creek",
"suffix": "Rd",
<div align="center">
<button onclick="runTests();">Run Tests</button>
&nbsp;&nbsp;&nbsp;
<button onclick="runBenchmark();">Run Benchmark</button>
</div>
<script src="testData.js"></script>
<script>
/**
array:213 [
0 => array:3 [
"query" => "select count(*) as aggregate from `order_items` where `status` = ? and `order_items`.`deleted_at` is null"
"bindings" => array:1 [
0 => "new"
]
"time" => 27.15
]
1 => array:3 [
"query" => "select * from `order_items` where `status` = ? and `order_items`.`deleted_at` is null order by `id` asc limit 40 offset 0"
@doug7410
doug7410 / miva_example.html
Created February 17, 2015 20:23
category page for duskyonline.com
<mvt:item name="html_profile" /><head>
<title>&mvt:category:name; - DuskyOnline.com</title>
<base href="&mvt:global:baseurl;">
<mvt:item name="head" param="head_tag" />
</head>
<mvt:item name="body">
<mvt:item name="toolkit" param="ctgyproduct_list|1000|brand.desc|1" />
<mvt:item name="toolkit" param="trim" />
<mvt:item name="toolkit" param="lasturl|url|http://www.duskyonline.com/mm5/merchant.mvc" />
require "rspec/autorun"
class MyHash < Hash
undef_method :fetch
# Implement the method fetch without using `super`
# HINT: replace star with the argument(s) you want
def fetch(key, value=NameError, &block)
(has_key?(key))? self[key] : return_value_or_raise_exception(value, &block)
end
require "rspec/autorun"
class MyHash < Hash
undef_method :fetch
# Implement the method fetch without using `super`
# HINT: replace star with the argument(s) you want
def fetch(key, set_value=NameError, &block)
if has_key?(key)
self[key]
@doug7410
doug7410 / MyHash.rb
Created January 14, 2015 02:59
code challenge from Miacah Woods - extra credit :)
require "rspec/autorun"
class MyHash < Hash
undef_method :fetch
# Implement the method fetch without using `super`
# HINT: replace star with the argument(s) you want
def fetch(key, set_value='', &block)
if self.has_key?(key)
self[key]
@doug7410
doug7410 / MyHash_2.rb
Last active August 29, 2015 14:13
code challenge from Miacah Woods - 1.5 hours
require "rspec/autorun"
class MyHash < Hash
undef_method :fetch
# Implement the method fetch without using `super`
# HINT: replace star with the argument(s) you want
def fetch(key, set_value='')
if self.has_key?(key)
self[key]
@doug7410
doug7410 / MyHash_1.rb
Last active August 29, 2015 14:13
code challenge from Miacah Woods - 30 minutes
require "rspec/autorun"
class MyHash < Hash
undef_method :fetch
# Implement the method fetch without using `super`
# HINT: replace star with the argument(s) you want
def fetch(key, set_value=nil)
if key && self[key]
self[key]