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
| @font-face { | |
| font-family: Inter; | |
| src: url("_Inter.ttc"); | |
| } | |
| .card1, .card2 { | |
| text-align: left; | |
| } | |
| .card { |
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
| #!/usr/bin/env fish | |
| # Script to properly zip all epub directories into epub files | |
| # Uses the correct epub zipping method with uncompressed mimetype | |
| # https://www.mobileread.com/forums/showthread.php?t=55681 | |
| set downloads_dir (pwd) | |
| # Find all .epub directories | |
| for epub_dir in *.epub/ |
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
| local ha_token = "" -- Home Assistant API token | |
| local lg_display_name = "LG HDR 4K" -- External monitor name | |
| local internal_display_uuid = "" -- Internal display UUID | |
| local ha_url = "http://X:8123/api/services/light/turn_" -- Home Assistant API base URL | |
| local light_entity = "light.screen" -- Replace with your actual entity ID | |
| local last_state = false -- Track monitor connection | |
| local locked = false -- Track screen lock state | |
| local previous_brightness = 1 -- Default brightness before dimming | |
| local lid_closed = false -- Track if lid is closed |
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
| #!/usr/bin/env python3 | |
| # THIS SOFTWARE COMES "AS IS", WITH NO WARRANTIES. THIS MEANS NO LIABILITY OR GUARANTEES FOR FUNCTIONALITY OR SAFETY, NEITHER EXPLICIT NOR IMPLIED. USE AT YOUR OWN RISK. | |
| from pypdf import PdfWriter, PdfReader | |
| import os | |
| import argparse | |
| def get_outline(reader, base_page=0): | |
| """ | |
| Recursively extract outline entries with adjusted page numbers | |
| """ |
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
| instagram.com##div:has(> div > div > a:has(span:has-text(/^See All$/))) |
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
| adaptive_lighting: | |
| template: | |
| - sensor: | |
| - name: "Sun Position" | |
| unit_of_measurement: "°" | |
| state: "{{ state_attr('switch.adaptive_lighting', 'sun_position') }}" | |
| state_class: measurement | |
| - name: "Adaptive Color Temperature" |
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 | |
| ###################################################################### | |
| # @author : Vasileios Papadimas (papadimas@protonmail.com) | |
| # @file : tickets.sh | |
| # @created : Sunday Mar 24, 2024 20:23:31 EET | |
| ###################################################################### | |
| output=$(curl -s 'https://www.ticketservices.gr/event/gno-die-walkuere/?lang=el' | iconv -f "windows-1253" -t UTF-8) |
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
| .text | |
| .globl _start | |
| _start: | |
| lw $t0, newl | |
| li $t1, 0 | |
| main: | |
| li $v0, 12 |
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
| #include <cmath> | |
| #include <iostream> | |
| #include <ostream> | |
| using std::cout; | |
| using std::endl; | |
| int main(int argc, char *argv[]) { | |
| float x = 1; | |
| while (7 + x != 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
| .text | |
| .globl __start | |
| _start: | |
| la $a0, pn | |
| li $v0, 4 | |
| syscall # print prompt for n | |
| la $v0, 5 | |
| syscall # read n into $v0 |
NewerOlder