Skip to content

Instantly share code, notes, and snippets.

View ParoTheParrot's full-sized avatar
🤠

Paro The Parrot ParoTheParrot

🤠
View GitHub Profile
@ParoTheParrot
ParoTheParrot / gist:919b81980b93e84d9eb817260e81b86c
Last active August 10, 2023 08:04
URL javascript fetcher #weather #html #javascript #test #chatgpt
<!DOCTYPE html>
<html>
<head>
<title>URL Intent Fetcher</title>
</head>
<body>
<div id="intentContent"></div>
<script>
// Get the div where we'll display the fetched content
@ParoTheParrot
ParoTheParrot / RegEx Examples
Last active February 4, 2022 09:35
RegEx examples #regex #phrasexpress
RegEx for E-Mail Adresses
[A-Za-z0-9\-\_\.\+]{1,64}@[A-Za-z0-9\-\_\.]+\.[a-zA-Z]+
Mit <>
\<[A-Za-z0-9\-\_\.\+]{1,64}@[A-Za-z0-9\-\_\.]+\.[a-zA-Z\>]+
https://www.regextester.com/
@ParoTheParrot
ParoTheParrot / translate linguee
Last active November 8, 2021 13:28
translate linguee #firefox #bookmarklet
javascript:(function(){var%20a=window.getSelection(),b='';if(a!=''){a=encodeURIComponent(a)}else{a='u='+encodeURIComponent(location.href);b='translate'};window.open('https://app.linguee.de/deutsch-englisch/search?source=auto&query='+b+a,'_blank','height=800,width=600,noreferrer,noopener')})();
@ParoTheParrot
ParoTheParrot / statusbar_color.css
Last active September 21, 2021 15:29
statusbar_color.css #firefox
/* Github: https://github.com/aris-t2/customcssforfx /statusbar_color.css **/
:root {
/* --statusbar_background_color: silver; */
--statusbar_font_color: navy;
}
:-moz-any(statuspanel,#statuspanel) {
-moz-appearance: none !important;
background: unset !important;
border: 0 !important;
}
@ParoTheParrot
ParoTheParrot / gist:7b2902916aa4333ecdef0428800d97cd
Created July 14, 2021 14:47
Hide address-bar AND Tabs unless mouse over #firefox
/* Hide address-bar AND Tabs unless mouse over https://www.reddit.com/r/FirefoxCSS/comments/hyqj5y/hide_addressbar_and_tabs_unless_mouse_over/ */
#nav-bar {
/* customize this value. */
--navbar-margin: -32px;
margin-top: 0;
margin-bottom: var(--navbar-margin);
z-index: -100;
}
#navigator-toolbox:focus-within > #nav-bar,
@ParoTheParrot
ParoTheParrot / dm-toilet-paper-wheat-flour.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper-wheat-flour.js
Scriptable iOS widget that shows the amount of both toilet paper and wheat flour which is available at your next dm drugstore #scriptable #corona
// Wheat flour icon made by Freepik from www.flaticon.com and modified by achisto
// Toilet paper icon made by boettges
let country = 'de' // replace with 'at' for shops in Austria
let storeId = 251
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
@ParoTheParrot
ParoTheParrot / dawn2dusk.js
Last active October 27, 2020 15:02 — forked from HendrikRunte/dawn2dusk.js
Scriptable.app widget displaying the exact time of today's sunrise and sunset. Which comes in handy in the wintertime … #scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: sun-2;
///////////////////////////////////////////////////////////////////////
// dawn2dusk.js
// Take it and have fun.
// Hendrik Runte, Oct 24, 2020.
///////////////////////////////////////////////////////////////////////
// Extending the JavaScritp Date object.
@ParoTheParrot
ParoTheParrot / CalenderReminder.js
Last active October 27, 2020 15:02
Calendar and reminder for scriptable #scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: calendar-alt;
// NOTE: this currently only works in beta because it takes advantage of the widgetStack and URL scheme for on-tap.
// TEST MODE: run the first time with it true to get access to your calendars; you can also run the sample Scriptable overdue Reminders script to get access to your reminders
const TEST_MODE = false
// CALENDAR/REMINDERS SETUP: calendar and reminder names should match what's shown in the Calendar and Reminder apps
@ParoTheParrot
ParoTheParrot / syntax.php
Last active October 27, 2020 17:00
Countdown for Dokuwiki. With corrections! #dokuwiki ( (https://www.dokuwiki.org/plugin:countdown))
<?php
/**
* Plugin Countdown: Displays countdown from a specific date
* Syntax: <COUNTDOWN:date|description>
* date has to be formatted as GNU date (see strtotime)
* e.g. <COUNTDOWN:yyyy-mm-dd|description>
* <COUNTDOWN:mm/dd/yyy|description>
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Ekkart Kleinod <ekkart [at] ekkart.de> (V 2.x)
@ParoTheParrot
ParoTheParrot / dm-toilet-paper.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of toilet paper which is available at your next dm drugstore #scriptable #archiv #corona
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
let storeId = 2612
// HH Steinstraße
let country
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}