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> | |
void edit_line(char* buffer, int current_line) { | |
for (int i = 0; i < current_line; i++) { | |
buffer = strchr(buffer, '\n') + 1; | |
} | |
char* line_end = strchr(buffer, '\n'); | |
char saved[1024] = { 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
#include <sys/socket.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/sendfile.h> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
void main() { | |
int s = socket(AF_INET, SOCK_STREAM, 0); | |
struct sockaddr_in addr = { |
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 <cstdint> | |
#include <Windows.h> | |
struct Beep | |
{ | |
uint32_t freq; | |
uint32_t duration; | |
}; |
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 socket | |
import datetime | |
""" | |
Instead of header+stuff | |
just make a function that adds that | |
""" | |
def list_to_html(l): | |
html = "" |
NewerOlder