View google-play-scraper.js
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], |
View playground.rs
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>> }, |
View dense_timeline_plot.py
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 |
View TailwindColors.kt
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) |
View skillhack.js
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; |
View arp.c
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> |
View __udp_echo_server_client__.md
UDP Echo Server-Client in C
View __tcp_echo_server_client__.md
TCP Echo Server-Client in C
- Works on Linux
- Only single client can connect at a time
View compose.py
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 contextlib import contextmanager | |
# Helper methods | |
def pprint_dict(d): | |
return '[' + ', '.join([f'{k} = {d[k]}' for k in d]) + ']' | |
def composable_tree(): |
NewerOlder