This is a SCRIPT-8 cassette.
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
/* | |
Method Name: Array.prototype.sortnum() | |
Usage: yourArray.sortnum('merge'|'bubble'|'insertion'|'selection' , [true|false]); | |
Description: Expansion for Array.prototype, with a sorting algoritms set | |
focused on numeric one-dimensional array operations. This method will modify the original array. | |
NOT SUITABLE FOR NON NUMERICAL ARRAYS! | |
Implemented sorting methods: Merge sort, Bubble sort, Selection sort and Insertion sort | |
Version: 1.0.2 | |
Author: c0lx1 | |
Author URI: / |
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
var results = Array.from( document.querySelectorAll('.masonry_box.small_pin_box > .image_wrapper') ); | |
var div = document.createElement('div'); | |
div.style =` | |
position: fixed; | |
width:100%; | |
height: 100%; | |
background:black; | |
top :0px; |
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
<!-- behaviour example (gif) :https://cdn-images-1.medium.com/max/800/1%2A1FOrkyNbaabo3_LJxcdDbg.gif --> | |
<style> | |
.container { | |
display: grid; | |
grid-gap: 5px; | |
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); | |
grid-template-rows: repeat(2, 100px); | |
} | |
</style> | |
<div class="container"> |
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
/** | |
* | |
* Notes : | |
* Classic Piano keys range : 'A0' (MIDI 21) - 'C8' (MIDI 109) | |
* MIDI supported keys range : 'C-1' (MIDI 0) - 'G9' (MIDI 127) | |
* | |
*/ | |
// prettier-ignore |
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
export type EventsDictionary = Record< | |
string, | |
(event: CustomEvent<any>) => void | |
> | |
// Polyfill of CustomEvent for Node Environments | |
export class CustomEvent<T> extends Event { |
OlderNewer