This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ol = require("ol2"); | |
| export type GeoJsonGeometry = { | |
| type: "point"; | |
| coordinates: number[]; | |
| } | { | |
| type: "multipoint"; | |
| coordinates: number[][]; | |
| } | { | |
| type: "linestring"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class MyApp { | |
| execute() { | |
| return true; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Defines the component lifecycle-ish? (maybe HtmlTag in dom.ts is a parital implementation?) | |
| * Relates to chunks in Block.ts | |
| */ | |
| interface Fragment { | |
| key: string|null; | |
| first: null; | |
| /* create */ c: () => void; | |
| /* claim */ l: (nodes: any) => void; | |
| /* hydrate */ h: () => void; |
classDiagram
class baseContract
class instance1
class instance2
class instance3
class API
baseContract <|.. base
base <|-- instance1
base <|-- instance2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!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}; |