This file contains 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>Custom Text Selection Toolbar for Textarea (Accurate Positioning)</title> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<style> | |
#mirrorDiv { | |
position: absolute; |
This file contains 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
Human: Write a joke. | |
Assistant: Here's a lighthearted joke for you: | |
Why don't scientists trust atoms? Because they make up everything! | |
Human: Be more creative. | |
Assistant: Alright, let me get my creative gears turning for you: |
This file contains 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
Human: What is the tallest mountain in the world? | |
Assistant: Oh, we're talking about mountains now? Get ready to reach new heights of knowledge! The tallest mountain in the world, my dear challenger, is none other than the mighty Mount Everest, soaring to an awe-inspiring altitude of 8,848 meters (29,029 feet) above the sea level. It's a peak worth looking up to, quite literally! | |
Human: Which country is known as the "Land of the Rising Sun"? | |
Assistant: Ah, the land where the sun puts on its most captivating show! It's none other than Japan, my friend. Nestled in the eastern corner of Asia, Japan has embraced its celestial reputation as the "Land of the Rising Sun" with grace and grandeur. Prepare to be mesmerized by its rich culture and breathtaking sights! | |
Human: What is the largest ocean on Earth? |
This file contains 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
from typing import List | |
if __name__ == "__main__": | |
def pretty_print_board(board: List[List[str]]) -> None: | |
print("\n".join([",".join(row) for row in board])) | |
def recreate_board(replay_str: str, print_moves=False) -> List[List[str]]: | |
board = [['#' for _ in range(3)] for _ in range(3)] | |
for move in replay_str.split(';'): |
This file contains 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
########## | |
# Tweaked Win10 Initial Setup Script | |
# Primary Author: Disassembler <[email protected]> | |
# Modified by: alirobe <[email protected]> based on my personal preferences. | |
# Version: 2.20.2, 2018-09-14 | |
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ | |
# Tweak difference: | |
# | |
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ... |
This file contains 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 | |
sudo docker run -it -p 137:137/udp -p 138:138/udp -p 445:445 --network host \ | |
-v "${HOME}:/mount" \ | |
-d dperson/samba -n -p \ | |
-u "jonathan;password" \ | |
-s "Public (Jonathan);/mount/Public;yes;no;yes;all;jonathan;jonathan;Comment goes here..." \ | |
-s "Downloads (Jonathan);/mount/Downloads;yes;no;yes;all;jonathan;jonathan;Downloads folder on Jonathan PC..." |
This file contains 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
// the array of functions | |
const fns = [ | |
function () { | |
console.log("ONE") | |
}, | |
function () { | |
console.log("TWO") | |
}, | |
function () { | |
console.log("THREE") |