Skip to content

Instantly share code, notes, and snippets.

View woodymendoza's full-sized avatar
:octocat:
Coding

Woody woodymendoza

:octocat:
Coding
View GitHub Profile
let searchButton = document.querySelector(".search-button");
searchButton.addEventListener("click", getLatLon);
function getLatLon() {
let searchInput = document.querySelector(".search-bar").value;
fetch(
"http://api.openweathermap.org/geo/1.0/direct?q="+searchInput+"&limit=1&appid=b222be32564b5a976119b9aed1c84a8d"
)
.then(response => {
{"canvas":{"version":"3.6.3","objects":[]},"editor":{"fonts":[]},"canvasWidth":400,"canvasHeight":400}
[
{
"price": 120,
"product_id": "FV6125",
"product_name": "YEEZY POWERPHASE",
"product_model_id": "KXY11",
"orderable": true,
"image": {
"alt": "YEEZY POWERPHASE",
"link": "https://assets.yeezysupply.com/images/w_600,f_auto,q_auto/8453c34c94ae490cb790aad10125695b_ce49/YEEZY_POWERPHASE_FV6125_FV6125_04_standard.png",

Keybase proof

I hereby claim:

  • I am woodymendoza on github.
  • I am intricateweb (https://keybase.io/intricateweb) on keybase.
  • I have a public key ASCl7AjV-c9uO8pMKzdnPLNjE5fUhjYqPSFGduMqMIp-iQo

To claim this, I am signing this object:

@woodymendoza
woodymendoza / OpenCartValetDriver.php
Last active June 27, 2017 19:38
OpenCart Laravel Valet Driver
<?php
/**
* Driver for Laravel Valet
* https://github.com/laravel/valet
*/
class OpenCartValetDriver extends ValetDriver
{
/**