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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script type="module" src="https://unpkg.com/@ion-phaser/[email protected]/dist/ionphaser/ionphaser.esm.js"></script> | |
<script nomodule="" src="https://unpkg.com/@ion-phaser/[email protected]/dist/ionphaser/ionphaser.js"></script> | |
</head> |
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
<!-- based on https://twitter.com/ebidel/status/933496242272747520 --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title><responsive-element></title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> |
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
function $(selector) { | |
return document.querySelectorAll(selector); | |
} |
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
Just when I thought I was out, they pull me back in. |
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
<template> | |
<table class='table is-fullwidth is-striped is-hoverable is-narrow'> | |
<sorted :songs="songs" @sortedSongs='sort_songs' /> | |
<paginated :items='sortedSongs' /> | |
</table> | |
</template> | |
<script> | |
import MusicData from '@/assets/list.json' |
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
[{ | |
"url": "/public/music/az_is_the_new_a_town/Track_01.mp3", | |
"modified": "2013-02-23T04:07:40Z", | |
"title": "Track_01.mp3", | |
"created": "2013-02-23T04:07:40Z", | |
"artist": "AZLegend Golden", | |
"genre": "Hip-Hop", | |
"album": "AZ is the New A Town" | |
}, { | |
"url": "/public/music/az_is_the_new_a_town/Track_02.mp3", |
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
<template> | |
<li v-for='n in 99'>{{ n }} bottles of beer on the wall..</li> | |
</template> |
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
Array(42).fill().map((i, idx) => arr[i] = idx+1) | |
//(42) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42] |
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
#!/bin/sh | |
echo "Detecting architecture..."; | |
MACHINE_MTYPE="$(uname -m)"; | |
ARCH="${MACHINE_MTYPE}"; | |
REPO_VENDOR="headmelted"; | |
echo "Ensuring curl is installed"; | |
apt-get install -y curl; |
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
# get $PATH | |
[Environment]::GetEnvironmentVariable('path', 'machine') | |
# get process by port | |
Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess | |
# grep like functionality | |
$vueWarns = $cmdOutput | Out-String -Stream | Select-String "^(?!.*rootGetters).*(Vue warn).*$" | |
if ($vueWarns.Length -gt 0) { | |
} |