Skip to content

Instantly share code, notes, and snippets.

Randy Allen randy-allen

  • Florida
Block or report user

Report or block randy-allen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View InlineSvg.js
class Svg {
constructor(name) {
let div = document.createElement('div');
div.innerHTML = require('../../../../public/img/svg/' + name + '.svg'); // change to wherever your svg files are
let fragment = document.createDocumentFragment();
fragment.appendChild(div);
this.svg = fragment.querySelector('svg');
}
@randy-allen
randy-allen / Geocoder.php
Created Jun 12, 2019
A version of spatie/geocoder that uses dev.virtualearth.net instead of Google Maps API
View Geocoder.php
<?php
namespace Spatie\Geocoder;
use GuzzleHttp\Client;
use Spatie\Geocoder\Exceptions\CouldNotGeocode;
class Geocoder
{
const RESULT_NOT_FOUND = 'result_not_found';
You can’t perform that action at this time.