This file contains hidden or 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 <iostream> | |
| #include <cstring> | |
| #include <ranges> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <unistd.h> | |
| #include <vector> | |
| struct DNSHeaderFlags | 
  
    
      This file contains hidden or 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 <iostream> | |
| #include <cstdlib> | |
| #include <string> | |
| #include <cstring> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> | |
| #include <arpa/inet.h> | |
| #include <netdb.h> | |
| #include <stdexcept> | 
  
    
      This file contains hidden or 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
    
  
  
    
  | { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "palette": { | |
| "background": "#212121", | |
| "surface": "#303030", | |
| "primary": "#BB86FC", | |
| "secondary": "#03DAC6", | |
| "accent": "#CF6679", | |
| "text": "#FFFFFF", | |
| "text_secondary": "#B3B3B3", | 
  
    
      This file contains hidden or 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> | |
| char* red = "\033[1;31m"; | |
| char* blue = "\033[1;32m"; | |
| char* green = "\033[1;34m"; | |
| char* reset = "\033[0m"; | |
| typedef enum{ | |
| MALE, | |
| FEMALE | 
  
    
      This file contains hidden or 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> | |
| #define MUNIT_ENABLE_ASSERT_ALIASES | |
| #include "munit.h" | |
| static MunitResult | |
| test_int_equal(const MunitParameter params[], void* data) { | |
| int a = 5; | |
| int b = 5; | |
| assert_int(a, ==, b); | |
| return MUNIT_OK; | 
  
    
      This file contains hidden or 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 <stdlib.h> | |
| #include <string.h> | |
| typedef struct person | |
| { | |
| const char* name; | |
| int age; | |
| void (*print)(struct person*); | |
| } person_t; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | # Makefile | |
| # '@' added to suppress printing commands on shell | |
| # Variables | |
| CXX = g++ | |
| CXXFLAGS = -O3 | |
| TARGET = main | |
| SRC = main.cpp | 
  
    
      This file contains hidden or 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 <sys/epoll.h> | |
| #include <sys/socket.h> | |
| #include <netinet/in.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <cstring> | |
| #include <iostream> | |
| #include <thread> | |
| #include <vector> | 
  
    
      This file contains hidden or 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.py | |
| import asyncio | |
| from fastapi import FastAPI, WebSocket, WebSocketDisconnect | |
| app = FastAPI() | |
| async def stream_shell_output(command: str, websocket: WebSocket) -> None: | |
| """ | 
  
    
      This file contains hidden or 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 org.example | |
| import io.jsonwebtoken.Jwts | |
| import io.jsonwebtoken.security.Keys | |
| import java.time.Duration | |
| import java.util.* | |
| fun main() { | |
| // val secretKey = SIG.HS512.key().build().encoded | |
| val secretKey = "JNu4i@rL����&�#�k\"�\u000Bv0��hn����xH)�\u007FZ�]�&\u0013�]\u0011>8�qB~M�bA�1\u0017Y�U�K" | 
NewerOlder