Skip to content

Instantly share code, notes, and snippets.

View zxmarcos's full-sized avatar

Marcos Medeiros zxmarcos

View GitHub Profile
#include <iostream>
#include <string>
#include <functional>
#include <tuple>
#include <utility>
#include <regex>
#include <vector>
#include <iostream>
#include <string>
#include <functional>
#include <tuple>
#include <utility>
#include <regex>
#include <vector>
using namespace std;
// generator.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <experimental\generator>
#include <string>
#include <numeric>
#include <vector>
#include <cstdint>
#include <sstream>
@zxmarcos
zxmarcos / DasmView.cpp
Created February 17, 2018 17:05
DasmView Widget
#include <QtWidgets>
#include <limits>
#include <cstdint>
#include <algorithm>
#include "DasmView.h"
static inline qint64 map_value(qint64 input, qint64 is, qint64 ie, qint64 os, qint64 oe)
{
double slope = 1.0 * (oe - os) / (ie - is);
__kernel void teste2(__global __read_only uchar * srcptr, int src_step, int src_offset,
__global uchar * dstptr, int dst_step, int dst_offset, int rows, int cols,
float focal)
{
int du = get_global_id(0);
int dv = get_global_id(1);
if (du < cols && dv < rows) {
du = du - (0.5 * cols) + 1;
dv = dv - (0.5 * rows) + 1;
#include <map>
#include <regex>
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
std::ifstream input(argv[1]);
<!DOCTYPE html>
<html>
<head>
<title>Teste</title>
</head>
<body>
<form method="post">
Nome:<input type="text" name="nome">
Idade:<input type="number" name="idade">
#include <boost/asio/spawn.hpp>
#include <boost/http/buffered_socket.hpp>
#include <boost/http/algorithm/query.hpp>
#include <boost/http/file_server.hpp>
#include <spdlog/spdlog.h>
namespace http_server
{
namespace asio = boost::asio;
#include <boost/asio/spawn.hpp>
#include <boost/http/buffered_socket.hpp>
#include <boost/http/algorithm/query.hpp>
#include <boost/http/file_server.hpp>
#include <spdlog/spdlog.h>
namespace http_server
{
namespace asio = boost::asio;
// ============================================================================
// Simulador de gramáticas LL(1)
// Marcos Medeiros, 2015
// ============================================================================
#include <iostream>
#include <vector>
#include <map>
#include <list>
#include <string>
#include <set>