Skip to content

Instantly share code, notes, and snippets.

@dtoki
dtoki / PostData.js
Last active November 15, 2022 16:44
Sending data to a web hook using javascript XMLHttpRequest #clientside
function postDataToWebhook(data){
//get the values needed from the passed in json object
var userName=data.name;
var userPlatform=data.platform;
var userEmail=data.email;
//url to your webhook
var webHookUrl="webhook_url";
//https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
var oReq = new XMLHttpRequest();
@dtoki
dtoki / License_MIT
Last active November 24, 2016 18:02
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

Integrating google maps into your application

The goal of this tutorial is to learn how to integrate google maps into your application.

Requirements

  • android studio project
  • google cloud platform account

Create a new empty project you can give it any name make sure that the lowest api level is >= 14. now we're going to include the necessary libraries.

Getting stared

@dtoki
dtoki / imageNetNestFiles.txt
Last active April 2, 2017 01:13
Image net nest files
http://farm1.static.flickr.com/115/280692595_d7c8c72005.jpg
http://farm1.static.flickr.com/224/502821460_4ad80c8aca.jpg
http://www.rbagwell.com:83/Bird%20Nest/egg%20nest%202.jpg
http://farm4.static.flickr.com/3050/2707768966_00e94d193c.jpg
http://farm4.static.flickr.com/3062/2462163451_dcf5819ae9.jpg
http://farm3.static.flickr.com/2414/2502972617_f2b6db9c12.jpg
http://farm4.static.flickr.com/3202/2726770848_e32fbcf69d.jpg
http://farm4.static.flickr.com/3226/3008017056_026389a1fd.jpg
http://klamathbirdingtrails.com/images/ed-eggs.jpg
http://farm3.static.flickr.com/2198/2514765557_28ff7d92bf.jpg
@dtoki
dtoki / imageNet.json
Created November 11, 2017 21:29
Files to test using json for image tagger
{
"url1": "http://farm1.static.flickr.com/115/280692595_d7c8c72005.jpg",
"url2": "http://farm1.static.flickr.com/224/502821460_4ad80c8aca.jpg",
"url3": "http://farm4.static.flickr.com/3050/2707768966_00e94d193c.jpg",
"url4": "http://farm4.static.flickr.com/3062/2462163451_dcf5819ae9.jpg",
"url5": "http://farm3.static.flickr.com/2229/2509179080_77dc80079e.jpg",
"url6": "http://farm1.static.flickr.com/109/294776373_7f84f5818b.jpg",
"url7": "http://farm3.static.flickr.com/2402/2431443338_216e1e5ac3.jpg",
}
@dtoki
dtoki / context.js
Last active June 21, 2018 18:42
Local this debug scope undefined in vs code
class Automobile {
constructor(type, year, mph) {
this.type = type;
this.year = year;
this.mph = mph;
Automobile.staticMethod(() => {
console.log(this);
this.nonStaticMethod();
});
}

Keybase proof

I hereby claim:

  • I am dtoki on github.
  • I am dtoki (https://keybase.io/dtoki) on keybase.
  • I have a public key ASCmmrJBNY6USrPpipatNUT3xj-WzhG9X5sL9Bs2qCkvKwo

To claim this, I am signing this object: