Skip to content

Instantly share code, notes, and snippets.

View alexesDev's full-sized avatar

Alexey Yurchenko alexesDev

  • Digital Nomad
View GitHub Profile
#include <stdio.h>
#include <math.h>
#include <float.h>
#define EPSILON 0.01
float func(float x)
{
return powf(x, 4) + 5 * x - 7;
}
#include <stdio.h>
void main(void)
{
FILE* file = fopen("table.txt", "w");
int i;
fprintf(file, "+-----+-----+\n");
fprintf(file, "+- 1 -+- 2 -+\n");
fprintf(file, "+-----+-----+\n");
#include <stdio.h>
float func(float x)
{
return x * 2 + 10;
}
void main(void)
{
FILE* file = fopen("table.txt", "w");
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
title: MyTitle
/*
author: [email protected]
date : 23/feb/2013
LICENSE: NO RESTRICTIONS, NO WARRANTIES
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <fstream>
#include <iostream>
#include <string>
int main()
{
std::ifstream in("input.txt", std::ios::in);
std::ofstream out("output.txt", std::ios::out);
if(in)
#include <fstream>
#include <iostream>
#include <locale>
#include <sstream>
class FileModifier
{
std::string mFilename;
public:
#include <iostream>
#include <boost/utility.hpp>
#include <boost/type_traits.hpp>
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#define ENTITY_MAX_COMPONENT_COUNT 10
#define ENTITY_TYPENAMES(z, n, text) BOOST_PP_COMMA_IF(n) text##n
#include <iostream>
#include <boost/function.hpp>
#include <boost/utility.hpp>
#include <boost/type_traits.hpp>
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
typedef float Real;
typedef std::string String;