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
# .github/workflows/test.yaml | |
name: test | |
on: push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
postgres: |
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"> | |
<title>Document</title> | |
<style> | |
.card { | |
padding: 1rem; |
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 EventEmitter from 'events' | |
declare class JitsiMeetExternalAPI extends EventEmitter { | |
constructor( | |
domain: string, | |
options: { | |
/**The name of the room to join. */ | |
roomName: string | |
/**Width of the iframe. Check parseSizeParam for format details*/ | |
width?: string | number |
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 reverse(/**@type {string}*/ word, index = word.length) { | |
let newPos = word.length - index; | |
let letters = word.split(""); | |
let tempLetter = word[newPos]; | |
letters[newPos] = word[index - 1]; | |
letters[index - 1] = tempLetter; | |
if (Math.round(word.length / 2) === index) return word; | |
return reverse(letters.join(""), index - 1); | |
} |
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
package main | |
import ( | |
reg "golang.org/x/sys/windows/registry" | |
) | |
func createWindowsShellFolder(GUID, folderTitle, folderPath, folderIconPath string) (err error) { | |
var ( | |
localKey, rootKey, tempKey reg.Key | |
exists bool |
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
/** | |
* @param {number[]} digits | |
*/ | |
function luhn(digits) { | |
digits = digits.reverse() | |
for (const index in digits) { | |
if (index % 2) { | |
const doubled = digits[index] * 2 | |
digits[index] = doubled > 9 ? doubled - 9 : doubled | |
} |
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> | |
<div class="hello"> | |
<h1>{{ msg }}</h1> | |
<h2>Essential Links</h2> | |
<p>right-click on any link</p> | |
<ul> | |
<li><a href="https://vuejs.org" target="_blank"> Core Docs </a></li> | |
<li><a href="https://forum.vuejs.org" target="_blank"> Forum </a></li> | |
<li> | |
<a href="https://chat.vuejs.org" target="_blank"> Community Chat </a> |
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> | |
<div id="app"> | |
<img width="25%" src="./assets/logo.png" /> <HelloWorld /> | |
<!-- Add the component at your app root component --> | |
<ContextMenu /> | |
</div> | |
</template> | |
<script> | |
import HelloWorld from "./components/HelloWorld"; |