Giter VIP home page Giter VIP logo

advanced-cpp's Introduction

Getting Started

Requirements

  1. Node.js at least v0.12.0
  2. bower - npm install -g bower
  3. Hexo 2.8.3 - either globally or locally installed

Set up

  1. Clone the repository
  2. npm install
  3. bower install
  4. add node_modules/.bin to PATH to use the locally installed Hexo

Creating new slides

To create new slides, create a [Jade][http://jade-lang.com] file in source/slides using the following front-matter:

layout: slides
title: Overview of C++
path: /slides/01_overview
date: 2015-02-27 01:29:34
tags: slides
---
  • section element denotes a single slide

  • :cxx filter allows in-line inclusion of C++ sample

  • +snippet mixing allows inclusion of a snippet from a file. To include the lifetime snippet from 03_resources/lifetime.cxx in the current slide use:

    +snippet('03_resources/lifetime.cxx', 'lifetime')

    And the lifetime snippet is defined like:

    //@{ lifetime
    void print(const void* instance, const char* type, const char* msg)
    {
        std::cout << type << ":\t" << instance << ":\t"
            << msg << std::endl;
    }
    
    struct Lifetime
    {
        Lifetime()
        {
            print(this, "Lifetime", "lives");
        }
    
        ~Lifetime()
        {
            print(this, "Lifetime", "dies");
        }
    };
    //@} lifetime

Hexo Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

advanced-cpp's People

Contributors

dimitarcl avatar dtrendafilov avatar mitko0003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.