Use new Audio() to beep.
| # MIT License | |
| # | |
| # Copyright (c) 2016 Marco Montalbano | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| # usage: ./dump.sh | |
| HOST=127.0.0.1 | |
| USER=root | |
| DATABASE=database | |
| OUTPUT=dump.sql.zip | |
| EXCLUDED_TABLES=( | |
| table1 | |
| table2 | |
| tableN |
| function getCommits(includeMerge = false) { | |
| return Array.from(document.querySelectorAll(`.commits-table tbody tr${ includeMerge ? '' : ':not(.merge)' }`)).map(e => ({ | |
| ...(JSON.parse(e.dataset.commitJson)), | |
| isMerge: e.classList.contains('merge') | |
| })) | |
| } | |
| function getBranches() { | |
| return Array.from(document.querySelectorAll('#branch-list tbody tr:not(.base-branch)')).map(e => ({ | |
| name: e.querySelector('.branch-name-column').innerText, |
example here: https://jsfiddle.net/gh/gist/library/pure/ad353132ce5f013c84be7c30565f8980
CSS variables are entities defined by CSS authors that contain specific values to be reused throughout a document. They are set using custom property notation (e.g.
--main-color: black;) and are accessed using thevar()function (e.g.,color: var(--main-color);) .https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables
example here: https://jsfiddle.net/gh/gist/library/pure/03b4395edb4fdc76407c6ab83edcfbe8
To pre-fill a Pen with code and options you choose, you can POST to https://codepen.io/pen/define/ with data, where the value of data is JSON containing all the bits you want pre-filled. Here is a simple example:
<form action="https://codepen.io/pen/define" method="POST" target="_blank">
| ['💻', '📺', '💻', '💻'].filter(value => value === '💻'); // => ['💻', '💻', '💻'] | |
| ['💻', '💻', '📺', '💻'].every(value => value === '💻'); // => false | |
| ['💻', '💻', '💻', '💻'].every(value => value === '💻'); // => true | |
| ['💻', '📺', '💻', '💻'].some(value => value === '💻'); // => true | |
| ['💻', '📺', '📺', '💻'].fill('📱', 1); // => ['💻', '📱', '📱', '📱'] |
Log all incoming http requests.
This is useful when you want to test webhooks locally!
Run this deno command first:
Here's a simple Node JS script that automates the process of detecting phantom notifications and then walking these "ghost notifications" through the read, done, unsubscribe states.
https://github.com/orgs/community/discussions/6874?sort=new#discussioncomment-14481926
Thanks a lot @benjamincburns for this super helpful script! Really appreciated 🙏