Skip to content

Instantly share code, notes, and snippets.

View Biseamon's full-sized avatar
💥
What's up?

MarKa Biseamon

💥
What's up?
  • Globe
View GitHub Profile
I am attesting that this GitHub handle Biseamon is linked to the Tezos account tz1Ti8f6mPN6LTibN7vRaZp6AAhh5jECTqn9 for tzprofiles
sig:edsigtakDyV935MA4C1YUZWvUi7PuQ1kaeuivvMMiBXrTvUvoa5yGtAHErp1BdsjqezuZwjUCiKi8Jazc33LVqw3Vvj24oc1r9s
@Biseamon
Biseamon / distanceMatrix.json
Last active February 25, 2020 18:41
Distance Matrix JSON taken from nearbyPlaces
{
"destination_addresses" : [
"537 Moseley Rd, Balsall Heath, Birmingham B12 9BU, UK",
"2a Church Rd, Balsall Heath, Birmingham B13 9AG, UK",
"45 Alcester Rd, Birmingham B13 8AA, UK",
"176 Brighton Rd, Balsall Heath, Birmingham B12 8QN, UK",
"170 Ladypool Rd, Balsall Heath, Birmingham B12 8JS, UK",
"27 High St, King's Heath, Birmingham B14 7BB, UK",
"449 Stratford Rd, Birmingham B11 4LD, UK",
"38 High St, King's Heath, Birmingham B14 7LB, UK",
@Biseamon
Biseamon / nearbyPlaces.json
Created February 20, 2020 22:20
nearby places api
{
"html_attributions" : [],
"next_page_token" : "CrQCIQEAABhKA74qByfvY89fBEhmyX0DQ6IeoI5tQI-NDzi_LTRVtJZ6aqqAeiA8dffqE-aocScM5soMAzm-T_e0-cowjHcYDtViTeIrU9USuEqF4VUC1LXzdQkERCKBnGsoJQx1t7gDD-PN1_xRBQ1dxy-cntoUPNjSgGOrQCDv_idRGy1K7CyJR5M_7XLJJs34XTQck6oxQV2FdXStqb4STnlPV88Y0il8V_n-uCvnLRRB5dhIdCXL2GdR41A2qoac7aQPtsh5uHRuEg6sWnUaIU5QwlNr8O53ZkOyboA9KIB9iWe6trbflVtyOm9Q0zFIxU-YhnXlpt7Z7CtTZLSBeeE3q9wWdBcDrXCySg5ES6mQ0zQ5ZevH98e0aBz-sm3fJgOLtMLHKOzN0p-3TuFCfekMccESEL1SM3V0CizgPcygEJoCS_oaFKoVx2vS7ltCTCJE0c4U-TIpbdQO",
"results" : [
{
"formatted_address" : "537 Moseley Rd, Balsall Heath, Birmingham B12 9BU, United Kingdom",
"geometry" : {
"location" : {
"lat" : 52.4564794,
"lng" : -1.8861257
@Biseamon
Biseamon / polyparser.java
Created February 19, 2020 15:15
Polyline parser
public void prs(String s){
PolylineOptions polylineOptions = new PolylineOptions();
List<LatLng> movements = new ArrayList<>();
// List<String> points = new ArrayList<>();
String point = "";
try {
JSONObject json = new JSONObject(s);
JSONArray jsonRoute = json.getJSONArray("routes");
@Biseamon
Biseamon / directions.json
Created February 19, 2020 11:22
DirectionsJSON
{
"geocoded_waypoints" : [
{
"geocoder_status" : "OK",
"place_id" : "ChIJRyztkXO8cEgRaO_-EaZwzm0",
"types" : [ "atm", "establishment", "finance", "point_of_interest" ]
},
{
"geocoder_status" : "OK",
"place_id" : "ChIJRyztkXO8cEgRaO_-EaZwzm0",
@Biseamon
Biseamon / Parser.java
Created February 18, 2020 23:27
JSON polyline points parser
public void prs(String s){
PolylineOptions polylineOptions = new PolylineOptions();
List<LatLng> movements = new ArrayList<>();
List<String> points = new ArrayList<>();
String point = "";
try {
JSONObject json = new JSONObject(s);
JSONArray jsonRoute = json.getJSONArray("routes");
@Biseamon
Biseamon / example_parser.php
Created May 6, 2017 10:23
How to include radio's value in the messages that are sent through my contact form?
<?php
if( isset($_POST['n']) && isset($_POST['e'])&& isset($_POST['p'])&& isset($_POST['plans'])&& isset($_POST['m']) ){
$n = $_POST['n']; // HINT: use preg_replace() to filter the data
$e = $_POST['e'];
$p = $_POST['p'];
$plans = $_POST['plans'];
$m = nl2br($_POST['m']);
$to = "ask@web-artist.co.uk";
$from = $e;
$subject = 'Contact Form Message';