A beautiful analytics widget made of a line chart, built with Tailwind and Chart.js 3.
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
""" | |
pip3 install uvicorn pydantic fastapi | |
[the path to the current fastapi project]>uvicorn main:app --host=127.0.0.1 --port=8888 --reload --workers 4 | |
get swagger: | |
http://127.0.0.1:8888/docs | |
http://127.0.0.1:8888/redoc | |
get API: | |
http://127.0.0.1:8888/ |
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
<!-- | |
Include Tailwind JIT CDN compiler | |
More info: https://beyondco.de/blog/tailwind-jit-compiler-via-cdn | |
--> | |
<script src="https://unpkg.com/tailwindcss-jit-cdn"></script> | |
<!-- Specify a custom Tailwind configuration --> | |
<script type="tailwind-config"> | |
{ | |
theme: { |
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
<!-- | |
Include Tailwind JIT CDN compiler | |
More info: https://beyondco.de/blog/tailwind-jit-compiler-via-cdn | |
--> | |
<script src="https://unpkg.com/tailwindcss-jit-cdn"></script> | |
<!-- Specify a custom Tailwind configuration --> | |
<script type="tailwind-config"> | |
{ | |
theme: { |
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 OpenSSL import crypto, SSL | |
def generate_certificate( | |
organization="PrivacyFilter", | |
common_name="https://www.url.com", | |
country="NL", | |
duration=(365 * 24 * 60 * 60), | |
keyfilename="key.pem", | |
certfilename="cert.pem"): |
Download and install RyuJIT now.
RyuJIT only works on 64-bit editions of Windows 8.1 or Windows Server 2012 R2. It will support a larger set of Windows OSes at release
After installation, there are two ways to turn on RyuJIT. If you just want to enable RyuJIT for one application, set an environment variable:
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
<svg id="svg1" style="width:510px; height:200px;" version="1.1" xmlns="http://www.w3.org/2000/svg"> | |
<g x="0" y="0" width="100%" height="100%"> | |
<rect x="0" y="0" width="100%" height="100%" fill="green" /> | |
<g id="svgBack"> | |
</g> | |
</g> | |
</svg> | |
<button onclick="generateBack('svgBack');">Fill it</button> |
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
<main class="overflow-hidden vh-100 flex items-stretch overflow-hidden"> | |
<svg class="w-100 h-100" viewBox="0 0 1200 1200" preserveAspectRatio="xMidYMid slice"> | |
<defs> | |
<pattern id="meatball" patternUnits="userSpaceOnUse" width="400" height="400"> | |
<image xlink:href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/149125/meatball.jpg" x="0" y="0" width="766" height="748" /> | |
</pattern> | |
</defs> | |
<g stroke-width="6" fill="url(#meatball)"> | |
<circle id="js-circle1" cx="400" cy="600" r="96" /> |
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
<!-- Pasang di bawah <body> --> | |
<div id='arlinaoverlay'/> | |
<div id='arlinafitri'> | |
<p>Saya, selaku admin Arlina Design mengucapkan<br/> | |
"Selamat Hari Raya Idul Fitri 1 Syawal 1436 H, Minal Aidin Wal Faidzin Taqabalallahu minnaa wa minkum"</p> | |
<div class='arlinaclick' onclick='document.getElementById("arlinafitri").style.display="none";arlinaoverlay.style.display="none";'>Close</div> | |
</div> | |
<!-- Source : http://www.kompiajaib.com/2014/06/membuat-pesan-pembuka-ketika-masuk-blog.html --> |
NewerOlder