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
/* CSS as a HTTP Server */ | |
:root { | |
port: 8080; | |
} | |
* { | |
/* Apply global CORS settings */ | |
access-control-allow-origin: *; | |
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS; |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
const MAPPINGS = { | |
title: [1, 2, 0, 0], | |
// description: [1, 2, 72, 0, 1], | |
// descriptionHTML: [1, 2, 72, 0, 1], | |
summary: [1, 2, 73, 0, 1], | |
installs: [1, 2, 13, 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
macro_rules! run { | |
($a:expr) => {{ | |
println!("{:?}", $a); | |
}}; | |
} | |
#[derive(Debug)] | |
enum UiNode<'a> { | |
Window { content: &'a UiNode<'a> }, | |
Column { content: Vec<UiNode<'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
import pandas as pd | |
import matplotlib.pyplot as plt | |
import itertools | |
from datetime import datetime, timedelta | |
from matplotlib.patches import Patch | |
plt.figure(figsize=(30, 10), constrained_layout=True) | |
xscale = 3 | |
sleep_start, sleep_end = 0.75, 1.375 |
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
package me.pavi2410.ui.theme | |
import androidx.compose.ui.graphics.Color | |
object TailwindColors { | |
val slate50 = Color(0xfff8fafc) | |
val slate100 = Color(0xfff1f5f9) | |
val slate200 = Color(0xffe2e8f0) | |
val slate300 = Color(0xffcbd5e1) | |
val slate400 = Color(0xff94a3b8) |
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
// just call auto() in console for each problem in programming track. | |
// Use this extension to load this script | |
// https://microsoftedge.microsoft.com/addons/detail/koccodmekleicmjpnelamemnhkpbkibc | |
function solve(code) { | |
var editor_id = $(".ace_editor.ace_dark")[0].id; | |
var editor = ace.edit(editor_id); | |
editor.$blockScrolling = Infinity; |
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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/ioctl.h> | |
#include <net/if.h> | |
#include <net/if_arp.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> |
NewerOlder