Skip to content

Instantly share code, notes, and snippets.

View ca0v's full-sized avatar

Corey Alix ca0v

  • Greenville, SC
View GitHub Profile
@ca0v
ca0v / index.html
Created December 16, 2022 16:08
Consume the Google Photo API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Google API Playground</title>
</head>
<body>
@ca0v
ca0v / CV.md
Last active June 13, 2022 19:42
Resume 2022

Software Developer

Corey Alix

coreyalix@hotmail.com

Interests

I am comfortable working with Typescript and I have been enjoying building side-projects using HTML, CSS and Typescript with minimal tooling. I want to build efficient Progressive Web Applications (PWA) for browser devices.

@ca0v
ca0v / google-maps-data-parser.js
Created February 22, 2022 23:08 — forked from jeteon/google-maps-data-parser.js
NodeJS script to parse the Google Maps "data" URL attribute into an array.
'use strict';
/**
* Basic code to parse the values in the "data" attribute in a Google Maps URL to an Array.
* There will likely still be some work to do to interpret the resulting Array.
*
* Based on information from:
* http://stackoverflow.com/a/34275131/1852838
* http://stackoverflow.com/a/24662610/1852838
*/
@ca0v
ca0v / require.js
Last active January 19, 2022 14:06
AMD RequireJS for ESM
const modules = <Record<string, any>>{};
function asAppPath(mid: string): string {
// depends on app, workaround for not supporting requirejs.config
if (mid.startsWith("app")) return `../../${mid}.js`;
return mid;
}
if (!globalThis.require) {
function define(mid: string, mod: any) {
@ca0v
ca0v / templater.html
Last active January 29, 2022 05:04
Template Library Idea
<!DOCTYPE html>
<html>
<head>
<style data-template="{opacity}">
body.dark {
background-color: var(--dark-color);
color: purple;
opacity: var(--opacity);
--dark-color: black;
--opacity: {opacity};
@ca0v
ca0v / index.html
Created July 29, 2021 13:31
Esri Case #02854773
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Persisting Identity Manager Info</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.37/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.37/esri/css/esri.css">
<style>
@ca0v
ca0v / buffer_playground.cs
Created July 7, 2021 15:29
Buffer playground
namespace SpatialLab
{
static class Program
{
private const double metersPerFoot = (2.54 * 12) / 100d;
private static void DotSpatialTest1(int epsgCode, double x, double y, double radiusInMeters)
{
var sr1 = DotSpatial.Projections.ProjectionInfo.FromEpsgCode(epsgCode);
DotSpatial.Data.IFeatureSet inputFeatures = new DotSpatial.Data.FeatureSet(DotSpatial.Topology.FeatureType.Point)
@ca0v
ca0v / Kitsuma.gpx
Created July 4, 2021 00:24
Kitsuma.gpx
<?xml version="1.0" encoding="utf-8"?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" creator="https://www.mtbproject.com">
<metadata><name>Kitsuma / Heartbreak</name><author><name/><link href="https://www.mtbproject.com/user/7099255/rj-manoni"/></author><copyright author="MTB Project"><year>2019</year></copyright></metadata><trk><name>Kitsuma / Heartbreak</name><link href="https://www.mtbproject.com/trail/7020396/kitsuma-heartbreak"/><trkseg><trkpt lon="-82.218675" lat="35.635807"><ele>492.92</ele><time>2018-10-23T10:59:08-06:00</time></trkpt><trkpt lon="-82.219034" lat="35.635931"><ele>495.13</ele><time>2018-10-23T11:00:08-06:00</time></trkpt><trkpt lon="-82.219869" lat="35.635727"><ele>499.33</ele><time>2018-10-23T11:01:08-06:00</time></trkpt><trkpt lon="-82.220903" lat="35.635398"><ele>502.98</ele><time>2018-10-23T11:02:08-06:00</time></trkpt>
@ca0v
ca0v / App.svelte
Last active September 19, 2020 04:00
Svelte After Several Hours
<script>
const chars = "hello world".split("").map((v, i) => ({ v, i }));
$: src = chars.map((v) => v.v).join("");
function deleteHandler(e) {
switch (e.e.code) {
case "ArrowLeft": {
const targetIndex = (chars.length + e.i - 1) % chars.length;
chars[e.i].v = chars[targetIndex].v;
chars[targetIndex].v = e.v;
classDiagram
class baseContract
class instance1
class instance2
class instance3
class API
baseContract <|.. base
base <|-- instance1
base &lt;|-- instance2