π―
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 getText (node) { | |
if (node.hasChildNodes()) { | |
node.childNodes.forEach(getText); | |
} else if (node.nodeType === Node.TEXT_NODE) { | |
if (node.textContent.includes("Apple")) { | |
node.textContent = node.textContent.replaceAll("Apple", "π"); | |
} | |
} | |
} |
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
{ | |
"manifest_version": 2, | |
"default_locale": "en", | |
"name": "__MSG_extension_name__", | |
"description": "__MSG_extension_description__", | |
"version": "1.0", | |
"icons": { | |
"48": "images/icon-48.png", |
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
// VAPID - Voluntary Application Server Identification for Web Push | |
// Step-by-Step Verification example | |
/* | |
[[ Web Push Archtecture with VAPID verification ]] | |
@author leegeunhyeok <[email protected]> | |
[0]Has VAPID Key Pair | |
| [7] |
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/bash | |
# DOCS: https://docs.docker.com/engine/api/v1.40 | |
# docker ps | |
curl --unix-socket /var/run/docker.sock http://localhost/v1.40/containers/json | |
#[ | |
# { | |
# "Id": "d925cbb5c64aa03c3daf8492a75bdee9876725a3d3073abb8eb8b9316c90f392", |
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
π Morning 849 commits βββββββββββββββββββββ 41.1% | |
π Daytime 600 commits βββββββββββββββββββββ 29.1% | |
π Evening 17 commits βββββββββββββββββββββ 0.8% | |
π Night 598 commits βββββββββββββββββββββ 29.0% |
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 Vue from 'vue' | |
import VueCompositionApi from '@vue/composition-api' | |
import App from './App.vue' | |
Vue.use(VueCompositionApi) | |
new Vue({ | |
render: h => h(App) | |
}).$mount('#app') |
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
// var myVariable = 10; | |
window.myVariable = 10; | |
function myFunc () { | |
console.log(myVariable); | |
} | |
// 10 | |
myFunc(); |
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
// ... | |
// 1 | |
function myFunc () { | |
var self = this; | |
$('#button').click(function () { | |
self.doSomething // this of myFunc | |
}); | |
} |
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
// In worker context | |
// 1. without self | |
addEventListener('message', event => { | |
// ... | |
}); | |
// 2. with self | |
self.addEventListener('message', event => { |
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 charset="utf-8"> | |
<title>self</title> | |
</head> | |
<body> | |
</body> | |
<script> |