View Monaco.svelte
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
<script> | |
import { onMount } from "svelte"; | |
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker"; | |
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker"; | |
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker"; | |
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker"; | |
import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker"; | |
let subscriptions = []; | |
export let content; |
View fsr_overlay.js
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
// ==UserScript== | |
// @name for r/place | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the canvas! | |
// @author KTibow | |
// @match https://hot-potato.reddit.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// @run-at document-end |
View mc_font_pack_maker.py
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
import pygame | |
pygame.init() | |
width = 1024 | |
height = 1024 | |
screen = pygame.display.set_mode((width, height)) | |
bg = pygame.Surface((width, height), pygame.SRCALPHA) | |
font = pygame.font.SysFont("Ubuntu", 64) |
View index.html
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>Printer Notifier</title> | |
<style> | |
body { | |
background: #282233; | |
color: white; |
View hangman_guesser.py
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
# Simple hangman guesser by @KTibow | |
# Get the possible words from the file | |
import string | |
all_words = open("words_alpha.txt").read().splitlines() | |
# Get how long the word is | |
word_length = int(input("How long is the word? ")) | |
word_letters = [[] for i in range(word_length)] | |
possible_words = [] |
View app-zoom-in-5-lines.py
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 flask import Flask | |
app = Flask(__name__) | |
@app.route("/j/<meeting_id>") | |
def join(meeting_id): | |
return f"<iframe src='zoommtg://zoom.us/join?confno={meeting_id}' style='display: none;'></iframe>" |
View humidifier.yaml
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
cards: | |
- entities: | |
- entity: switch.kendell_s_humidifier | |
name: Direct control | |
- entity: humidifier.upstairs_bedroom | |
- entity: sensor.filtered_temperature | |
- entity: sensor.filtered_humidity | |
show_header_toggle: false | |
style: | | |
ha-card { |
View welcome.yaml
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
cards: | |
- content: > | |
# <center>{% if is_state('binary_sensor.evening', 'on') %} Good evening {% | |
elif is_state('binary_sensor.night', 'on') %} Have a good night {% elif | |
is_state('binary_sensor.morning', 'on') %} Good morning {% endif | |
%} {{user}}</center> | |
style: | |
.: | | |
ha-card { | |
--paper-card-background-color: none !important; |
View themes.yaml
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
# Thanks @JuanMTech! I've slightly modified their themes a little. | |
Google Light Theme: | |
# Header: | |
app-header-background-color: "#f3f5f7" | |
app-header-text-color: "#000" | |
# Main Interface Colors | |
primary-color: "#5F9BEA" | |
light-primary-color: var(--primary-color) | |
primary-background-color: "#f3f5f7" | |
secondary-background-color: var(--primary-background-color) |
View cipher.py
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
def cipher(inputstr, shift=4): | |
outputstr = '' | |
for char in inputstr: | |
charnum = ord(char) - shift | |
if charnum > 122: | |
charnum = ((charnum - 97) % 26) + 97 | |
elif charnum < 97: | |
charnum = ((charnum - 97) % 26) + 97 | |
outputstr += chr(charnum) | |
return outputstr |
NewerOlder