Skip to content

Instantly share code, notes, and snippets.

View davidecampello's full-sized avatar

Davide Campello davidecampello

View GitHub Profile
@davidecampello
davidecampello / ionic-icon-extractor.ts
Created February 25, 2021 14:50
ionic-icon-extractor and directive
export async function http<T>(request: RequestInfo): Promise<T> {
const response = await fetch(request);
const body = await response.json();
return body;
}
async function get() {
console.log("get");
const icons = await http<{
icons: {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<work>
<work-number>Op. 98</work-number>
<work-title>An die ferne Geliebte (Page 1)</work-title>
</work>
<identification>
<creator type="composer">Ludwig van Beethoven</creator>
<creator type="lyricist">Aloys Jeitteles</creator>