docker stop $(docker ps -aq)
docker system prune --all
docker volume rm -f $(docker volume ls -q)
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
# GET leetcode.com/graphql | |
query getDailyChallenge { | |
activeDailyCodingChallengeQuestion { | |
date | |
link | |
question { | |
questionId | |
title | |
titleSlug |
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 sys, math | |
creature_count = int(input()) | |
for i in range(creature_count): | |
creature_id, color, _type = [int(j) for j in input().split()] | |
while True: | |
my_score, foe_score, my_scan_count = int(input()), int(input()), int(input()) | |
print('my pts:', my_score, 'foe pts:', foe_score, '\nscan count:', my_scan_count, file=sys.stderr, flush=True) |
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 sys, math | |
C, R = [int(i) for i in input().split()] # boiler | |
# game loop | |
while True: | |
### boiler begins | |
my_matter, opp_matter = [int(i) for i in input().split()] | |
for i in range(height): | |
for j in range(width): |
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
party : | |
@printf "\033c" | |
@echo "\n\033[35m♪┏(・o・)┛♪" | |
@sleep 1 | |
@printf "\033c" | |
@echo "\033[1;33m♪┗(・o・)┓♪" | |
@sleep 1 | |
@printf "\033c" | |
@echo "\n\033[36m♪┏(・o・)┛♪" | |
@sleep 1 |
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 "stdlib.h" | |
#include "string.h" | |
#include "unistd.h" // time | |
#include "pthread.h" | |
#include "stdio.h" | |
typedef struct s_philo | |
{ | |
int how_many_people; | |
int id; /* The philosopher's id: 0 to 5 */ |
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
#ifndef DEQUE_H | |
# define DEQUE_H | |
# include "stdlib.h" | |
# include "stdio.h" | |
typedef struct s_deque | |
{ | |
struct s_deque_node *head; | |
struct s_deque_node *tail; | |
int len; |
_ _ _ _ _ _
| |__ ___| | | ___ __ _____ _ __| | __| | |
| '_ \ / _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` | |
| | | | __/ | | (_) | \ V V / (_) | | | | (_| |_|
|_| |_|\___|_|_|\___/ \_/\_/ \___/|_| |_|\__,_(_)
NewerOlder