flowchart TD
A[choose shape];
B{Is the shape valid?};
C[call the function for that shape];
D[Display shape not valid];
A ----> B;
B --Yes--> C;
B --No--> D;
D ----> A;
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
[ | |
{ | |
"start": "2024-03-03T07:00:00.000Z", | |
"name": "A Sproson (@asproson)", | |
"level": 105, | |
"lessonsSolved": 1212, | |
"certificates": [ | |
"Learn Shells and Terminals", | |
"Learn Python", | |
"Learn Object Oriented Programming", |
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>Document</title> | |
<link rel="preconnect" href="https://fonts.googleapis.com" /> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
<link | |
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap" |
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>Document</title> | |
<link rel="preconnect" href="https://fonts.googleapis.com" /> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
<link | |
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap" |
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> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>S W A V E</title> | |
<link rel="preconnect" href="https://fonts.googleapis.com" /> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
<link | |
href="https://fonts.googleapis.com/css2?family=Danfo&family=Jacquard+12&family=Poetsen+One&display=swap" |
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> | |
<head> | |
<title>S W A V E</title> | |
<style> | |
body { | |
overflow: hidden; | |
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
function calculateSpecificity(selector) { | |
// Remove :is(), :not(), and :has() pseudo-classes and retain their parameters | |
const cleanedSelector = selector.replace(/:(is|not|has)\(([^)]*)\)/g, ' $2 '); | |
const attributeRegExp = /\[[^\]]*\]/g; | |
const attributeCount = cleanedSelector.match(attributeRegExp)?.length || 0; | |
const noAttributes = cleanedSelector.replace(attributeRegExp, ''); | |
const pseudoElementRegExp = /::[^.:#>~+\s]+/g; | |
const pseudoElementCount = noAttributes.match(pseudoElementRegExp)?.length || 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
from numpy import random | |
a = ["AAPL", | |
"MSFT", | |
"AMZN", | |
"NVDA", | |
"GOOGL", | |
"TSLA", | |
"GOOG", | |
"META", |
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
// ==UserScript== | |
// @name Sketchify Page! | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description use a simple sketch effect on any page | |
// @author Josh Parker | |
// @match *://*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org | |
// @grant none | |
// ==/UserScript== |
NewerOlder