CSS:
@media (prefers-color-scheme: dark) {
/* Dark mode style */
}
Javascript:
if(matchMedia('(prefers-color-scheme: dark)').matches) {
<?php | |
$n = 0; | |
$e = 0; | |
$A = []; | |
scan_all("/bin"); | |
scan_all("/sbin"); | |
scan_all("/usr/bin"); | |
scan_all("/usr/sbin"); | |
scan_all("/usr/local/bin"); |
1 -> Download and Write | |
Download latest "archlinux.iso" from "archlinux.org" | |
$ dd if={archlinux.iso} of=/dev/sd{x} bs=1M status=progress | |
"/dev/sd{x}" = USB drive | |
2 -> IF NOT ARCH FOR BUILDING OFFLINE REPOSITORY | |
Install "virtualbox" | |
Run until step 8 and then go back to step 3 | |
3 -> Partitioning |
CSS:
@media (prefers-color-scheme: dark) {
/* Dark mode style */
}
Javascript:
if(matchMedia('(prefers-color-scheme: dark)').matches) {
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<style> | |
body { | |
background: black; | |
} | |
#flower { | |
width: 80px; | |
height: 80px; |
import hashlib | |
blockchain = [] | |
difficulty = 3 | |
mine_pattern = '0' * difficulty | |
def add_block(data): | |
block = make_block(data) | |
block['prev'] = '' if blockchain == [] else blockchain[-1]['hash'] | |
mine_block(block) |