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
// g++ -o parser main.cpp parser.h parser.cpp -O3 -Wall -fpie | |
#include <iomanip> | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include "parser.h" | |
using namespace std; |
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
/* while there are tokens to be read: | |
read a token. | |
if the token is a number, then push it to the output queue. | |
if the token is an operator, then: | |
while ((there is an operator at the top of the operator stack with | |
greater precedence) or (the operator at the top of the operator stack has | |
equal precedence and | |
the operator is left associative)) and | |
(the operator at the top of the stack is not a left bracket): | |
pop operators from the operator stack, onto the output queue. |
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
// g++ -o FFT FFT.cpp -Wall -O3 | |
#include <algorithm> | |
#include <cmath> | |
#include <complex> | |
#include <iostream> | |
#include <iterator> | |
#include <type_traits> | |
#include <vector> | |
using namespace std; |
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 <deque> | |
#include <iostream> | |
#include <iomanip> | |
#include <random> | |
#include <sstream> | |
#include <string> | |
#include <utility> | |
#include <vector> | |
struct Cell { //represents one cell in the minefield |
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 <iterator> | |
#include <random> | |
#include <set> | |
#include <sys/time.h> | |
#include <vector> | |
using namespace std; | |
static inline uint64_t startRDTSC (void) { |
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 SORTED_VECTOR_HPP | |
#define SORTED_VECTOR_HPP | |
#include <functional> | |
#include <memory> | |
#include <initializer_list> | |
#include <algorithm> | |
#include <iostream> | |
namespace homebrew { |
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
#!/usr/bin/env python | |
import subprocess | |
from flask import Flask, render_template | |
from flask_socketio import SocketIO, send, emit | |
HTML = ''' | |
<html> | |
<head> | |
<title>WEBSHELL</title> |
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
#!/usr/bin/env python3 | |
import re | |
import urllib.request | |
import urllib.parse | |
import http.cookiejar | |
import os | |
from lxml.html import fragment_fromstring | |
from collections import OrderedDict |
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
#!/usr/bin/env python3 | |
import re | |
import urllib.request | |
import urllib.parse | |
import http.cookiejar | |
from lxml.html import fragment_fromstring | |
from collections import OrderedDict |
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
#!/usr/bin/env python3 | |
import ctypes | |
import os | |
import sys | |
import tempfile | |
from ctypes.util import find_library | |
from time import sleep |