# ~/.gitconfig
[init]
defaultBranch = main
[user]
name =
email =
[core]
excludesfile = ~/.gitignore
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
function parseRSS(xmlString) { | |
const parser = new DOMParser(); | |
const xmlDoc = parser.parseFromString(xmlString, "application/xml"); | |
const channel = xmlDoc.querySelector("channel"); | |
const items = channel?.querySelectorAll("item"); | |
if (!items) return; | |
const rssArr = []; |
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
/* | |
@title File Safe Date String | |
@desc Returns a date time string that is safe to use for filenames | |
@output 2023-11-01_14-30-39 | |
*/ | |
const getFileSafeDateString = () => { | |
const event = new Date() | |
const time = event.toLocaleTimeString('it-IT') |
Download mysql: https://dev.mysql.com/downloads/mysql/
and shell: https://dev.mysql.com/downloads/shell/
echo 'alias mysql=/usr/local/mysql/bin/mysql' >> ~/.zprofile
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>Slider Demo</title> | |
<style> | |
* { | |
margin: 0; |
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
/* | |
* @title Custom scrollbar | |
* @note For vertical switch overflow-x and scroll-snap-type to 'y'. | |
* @html <div class='scrollbar-horizontal'> | |
* <div class='child'>...</div> | |
* </div> | |
*/ | |
.scrollbar-horizontal { | |
overflow-x: auto; |
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
<!-- | |
* @title Video background blur | |
* @desc Shows a background of the video on the sides if screen is larger than 1200px | |
--> | |
<!-- CSS --> | |
<style> | |
.video-container { | |
display: flex; | |
justify-content: center; |
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
<!-- | |
* @title Filter times | |
* @desc Shows times available based on date | |
--> | |
<div> | |
<label for="interviewDate">Interview Dates/Times</label> | |
<select name="interviewDate" id="interviewDate" tabindex="-1"> | |
<option value="" disabled="disabled" selected="selected">Select One</option> | |
<option value="Thursday, March 17">Thursday, March 17</option> |
NewerOlder