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
| import requests | |
| URL = "https://raw.githubusercontent.com/sys-bio/cesium/main/model_db/cesiumDB.json" | |
| def filter(data, criteria): | |
| return [item for item in data if all(item.get(k) == v for k, v in criteria.items())] | |
| def filter_antimony_string(data, criteria): | |
| return [item["antString"] for item in data if all(item.get(k) == v for k, v in criteria.items())] |
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 <rmsutils.h> //utils! | |
| #include <jsmn.h> //json | |
| #define INT_A 1306858826 | |
| #define INT_B 1130263739 | |
| #define INT_LE 2147483647 | |
| /* | |
| stuff to do: |
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
| /** | |
| * @file webserver.c | |
| * @author Matthew Epshtein (epshteinmatthew@gmail.com) | |
| * @brief The server program for SHtack, the russian roulette for nerds | |
| * @version 1.2 | |
| * @date 2022-08-07 | |
| * | |
| * @copyright Copyright (c) 2022 | |
| * | |
| * |
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
| FILE *fp; | |
| fp = fopen("ykraina.jpeg", "r"); | |
| if(fseek(fp, 0L, SEEK_END) != 0){perror("seeking");return 1;}; | |
| int sz = ftell(fp); | |
| char ch[sz]; | |
| rewind(fp); | |
| fread(ch, 1,sz, (FILE *)fp); | |
| ulfius_add_header_to_response(response, "Content-Type", "image/jpeg"); | |
| ulfius_set_binary_body_response(response,200,ch,sz); |
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/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <stdio.h> | |
| #include <poll.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| #include <sys/sendfile.h> |
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/types.h> | |
| #include <sys/socket.h> | |
| #include <netdb.h> | |
| #include <stdio.h> | |
| #include <poll.h> | |
| #include <string.h> | |
| #define BACKLOG 10 | |
| #define BUFFER 1024 |
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 <arpa/inet.h> | |
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| //gcc -Wall hello.c -o webserver | |
| //./webserver |
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 main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "os" |
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
| git clone https://github.com/vinceliuice/Graphite-kde-theme.git | |
| cd Graphite-kde-theme | |
| ./install.sh | |
| cd | |
| git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git | |
| cd papirus-icon-theme | |
| ./install.sh |
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
| function captcha() { | |
| let thing = navigator.oscpu | |
| if (thing == undefined){ | |
| captchafail(); | |
| } | |
| } | |
| captcha() | |
| function captchafail(){ | |
| //redirect or send to actual captcha | |
| alert("in the video game") |
NewerOlder