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
export type EventsDictionary = Record< | |
string, | |
(event: CustomEvent<any>) => void | |
> | |
// Polyfill of CustomEvent for Node Environments | |
export class CustomEvent<T> extends Event { |
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
/** | |
* | |
* 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 is a SCRIPT-8 cassette.
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
<!-- 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 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 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 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
<?php | |
/* | |
Project Name: PHPConsole | |
Usage: Upload this file to FTP space, and run it from browser. | |
Description: PHPConsole is a simple and compact browser-based AJAX PHP console, that | |
allows direct acces to the PHP erver-side interpreter, recieving via AJAX all your | |
code output. | |
WARNING! ENSURE YOU CHANGE THE DEFAULT PASSWORD BEFORE UPLOADING! | |
Version: 1.5 | |
Author: c0lx1 |
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
const fps = { | |
sampleSize : 60, | |
value : 0, | |
_sample_ : [], | |
_index_ : 0, | |
_lastTick_: false, | |
tick : function(){ | |
// if is first tick, just set tick timestamp and return | |
if( !this._lastTick_ ){ |
NewerOlder