Sample C++ code, let's call it test.cpp.
#include <iostream>
#include <string>
typedef struct goo {
int gooInt;
std::string gooString;
}GOO;
cmake_minimum_required(VERSION 3.2) | |
project(lua C) | |
if (WIN32) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /O2 /DLUA_COMPAT_5_2") | |
else() | |
set(CMAKE_C_FLAGS "-O2 -Wall -Wextra -DLUA_COMPAT_5_2") | |
endif() | |
set(LUA_CORE_SOURCE_FILES |
// ==UserScript== | |
// @name Wikifix | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://duckduckgo.com/* | |
// @grant none | |
// ==/UserScript== |
#pragma once | |
#include <inttypes.h> | |
#include "types.h" | |
/* JUST CONVINIENCE DON'T JUDGE ME */ | |
typedef int64_t i64; | |
typedef int32_t i32; | |
typedef int16_t i16; | |
typedef int8_t i8; | |
typedef uint64_t u64; |
set clipboard=unnamed | |
set nu | |
set relativenumber | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set incsearch | |
set wrap |
def FlagsForFile(filename, **kwargs) : | |
return { | |
'flags' : [ | |
'-std=c++14', '-lrt', '-lSDL2', '-lGLU', '-lGL', '-lm', '-lglut', | |
'-lGLEW', '-lX11', '-lXxf86vm', '-lXrandr', '-lpthread', '-lXi', '-ldl', | |
'-lXinerama', '-lXcursor' | |
] | |
} |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
call vundle#begin('~/.vim/bundle/') | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
// ==UserScript== | |
// @name Wikifix | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.google.com.tr/* | |
// @grant none | |
// ==/UserScript== |