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
<h1>Warp Drive</h1> | |
<p>A warp drive or a drive enabling space warp is a fictional superluminal (faster than the speed of light) spacecraft propulsion system in many science fiction works, most notably Star Trek, and a subject of ongoing real-life physics research. The general concept of "warp drive" was introduced by John W. Campbell in his 1957 novel Islands of Space and was popularized by the Star Trek series. Its closest real-life equivalent is the Alcubierre drive, a theoretical solution of the field equations of general relativity.</p> | |
<section class="tabs"> | |
<details name="group" open> | |
<summary>History and characteristics</summary> | |
<p>Warp drive, or a drive enabling space warp, is one of several ways of travelling through space found in science fiction. It has been often discussed as being conceptually similar to hyperspace. A warp drive is a device that distorts the shape of the space-time continuum. A spacecraft equipped with a warp drive may travel at speeds greater than that of light by |
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
window.addEventListener("load", solve); | |
function solve() { | |
const inputElements = ['gem-name', 'color', 'carats', 'price', 'type']; | |
const previewEl = document.querySelector('#preview-list'); | |
const collectionEl = document.querySelector('#collection'); | |
function getFormInputsAndValues() { |
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 $ = document.querySelector.bind(document); | |
var $$ = document.querySelectorAll.bind(document); | |
Element.prototype.$ = function() { | |
return this.querySelector.apply(this, arguments); | |
}; | |
Element.prototype.$$ = function() { | |
return this.querySelectorAll.apply(this, arguments); | |
}; |
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 solve(s, o) { | |
Object | |
.entries([...s, ...o].reduce((s, p, i, a) => ( i % 2 === 0 ? { ...s, [p]: (s[p] || 0) + Number(a[i + 1]) } : s), {})) | |
.forEach(([p, q]) => console.log(`${p} -> ${q}`)); | |
} |
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 solve(num) { | |
if ( num > 0 && num < 13 ) { | |
console.log(new Date(2000, num-1).toLocaleString('default', { month: 'long' })); | |
} else { | |
console.log('Error!'); | |
} | |
} |
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 type { Loader } from 'astro/loaders'; | |
import { z } from 'astro:content' | |
import type { YouTubeLoaderOptions } from "./types/youtube-loader-options.type.ts"; | |
export function youtubeLoader(options: YouTubeLoaderOptions): Loader { | |
const url = new URL('https://www.googleapis.com/youtube/v3/search'); | |
url.searchParams.append('key', options.apiKey); | |
url.searchParams.append('channelId', options.channelId); |
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
ytd-grid-video-renderer:has(*[overlay-style="SHORTS"]) { | |
display: none; | |
} |
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"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xml:lang="{{ site.lang }}"> | |
<channel> | |
<atom:link href="{{ site.url }}/podcast.rss" rel="self" type="application/rss+xml" /> | |
<title>{{ site.title }}</title> | |
<link>{{ site.url }}{{ site.baseurl }}</link> |
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
# Nerd Fonts for your IDE | |
# https://www.nerdfonts.com/font-downloads | |
brew tap homebrew/cask-fonts | |
brew install --cask font-3270-nerd-font | |
brew install --cask font-fira-mono-nerd-font | |
brew install --cask font-inconsolata-go-nerd-font | |
brew install --cask font-inconsolata-lgc-nerd-font | |
brew install --cask font-inconsolata-nerd-font | |
brew install --cask font-monofur-nerd-font |
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> | |
<title>My First HTML Document</title> | |
</head> | |
<body> | |
<h1>My First HTML Document</h1> | |
<p>It is really cool, isn't it?</p> | |
</body> | |
</html> |
NewerOlder