^(([A-Fa-f\d]){3}){1,2}$
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
<script context="module"> | |
const allPlayers = new Set(); | |
</script> | |
<script> | |
import Player from "@vimeo/player"; | |
import Progress from "./Progress.svelte"; | |
import { onDestroy } from "svelte"; | |
import { renderTime, renderPercent, errorHandler } from "./helpers.js"; |
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
<script src="//widget.mixcloud.com/media/js/widgetApi.js" type="text/javascript"></script> | |
<iframe width="100%" height="60" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&mini=1&light=1&hide_artwork=1&autoplay=1&feed=%2Fradioraheem_milano%2Fblack-sugar-puntata-01%2F" frameborder="0" allow="autoplay"></iframe> | |
<div class="controls"> | |
<button id="play">Play</button> | |
<button id="pause">Pause</button> | |
<button id="next">Next</button> | |
<button id="load0">Load Track 1</button> | |
<button id="load1">Load Track 2</button> |
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
## Year validation YYYY 1800 until now | |
^(18|19|20)\d{2}$ | |
## Pseudo URL validation | |
^https?:\/\/ |
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
function randomPoint() { | |
return { | |
x: round(random(0, width / 20)) * 20, | |
y: round(random(0, height / 20)) * 20 | |
}; | |
} | |
let rule = { | |
lines: [], | |
reinvent: function() { |
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
function random255(){ | |
return round(random(0,16)) * 16; | |
} | |
function randomColor() { | |
return { | |
r: random255(), | |
g: random255(), | |
b: random255() | |
}; |
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
let board = { | |
x: 10, | |
y: 10, | |
w: 10, | |
h: 10, | |
min: {x: 60, y: 40}, | |
max: 30, | |
area: function( x , y ){ | |
this.x = max( this.max, min( (width/2) -(this.min.x/2), min( x, width-x ) ) ); |
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
class Cell { | |
constructor( x, y, on = true ){ | |
this.x = x; | |
this.y = y; | |
this.on = on; | |
if( this.on === false ){ | |
this.radius = 0; | |
} else { | |
this.radius = maxRadius; |
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
/** | |
* requires p5.js | |
* try out at https://editor.p5js.org | |
*/ | |
let ball = { | |
x: 300, | |
y: 150, | |
radius: 10, | |
speed: { |
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
### charset | |
AddDefaultCharset UTF-8 | |
### directory index | |
DirectoryIndex index.html | |
### avoid directory listing | |
Options -Indexes | |
### default language |
NewerOlder