Git Product home page Git Product logo

haifeng2170 / senecaoop345-attic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from captgreg/senecaoop345-attic

0.0 1.0 0.0 299.56 MB

This folder, attic, contains code fragments. Like most attics, this attic needs a good cleaning. Some fragments are from the usual places on the web, cplusplus.com, stackoverflow, etc. Some fragments are DIY code written in class. Some fragments are as-is as found on the web while others are heavily modified to make work or add functionality. Some fragments are useful, some are not. Most fragments work, some don't. Notable Useful Fragments ======================== fastforward.cpp - a summary of OOP345. funcptr.cpp - examples of the many ways of passing function names to other functions: direct call, c-style function pointer, c++-style function pointer, function object (functor), lambda, bind examples of intersting functions to pass function to: thread, async, packaged_task sp?.cpp - smart pointer resources mi-*.cpp - multiple inheritance resources, clone+diamond problem theading?01?.cpp - threading101?.cpp - basic threading, mutexes - threading201?.cpp - futires and promises - threading301?.cpp - async, packaged_task - threading401?.cpp - how things were done before async + packaged task thread-*.cpp - cool thread code, such as thread pools ll*.cpp - linked list code moveSimple.cpp - move semantics stl-calc-*.cpp - postfix calculator using stl stack, list, vector, deque containers vectorchar*.cpp - how to make a string class mased on std::vector<char> dp-composite*.cpp - composite (tree) design pattern code alarmsetjmp.cpp + setjmp*.cpp - use alarm and setjmp to do interesting things swap.cpp - swapping data in place (without using a temporary) using xor and add operators. asmlist.cpp - how to generate an in-line assembler listing of the code generated by the compiler popen.cpp - how to start up a pipe to a program and read the output from the program folder threading-concurrency_in_action - pdf and sample code from Concurancy in Action book

C++ 58.25% Makefile 0.89% Objective-C 0.04% GLSL 0.03% C 13.34% Python 0.14% Shell 0.66% HTML 18.90% CSS 3.64% JavaScript 3.59% CMake 0.52%

senecaoop345-attic's Introduction

This folder, attic, contains code fragments.

Like most attics, this attic needs a good cleaning.

Some fragments are from the usual places on the web, cplusplus.com, stackoverflow, etc.

Some fragments are DIY code written in class.

Some fragments are as-is as found on the web while others are heavily modified to make work or add functionality.

Some fragments are useful, some are not.

Most fragments work, some don't.

Notable Useful Fragments

fastforward.cpp - a summary of OOP345.

funcptr.cpp - examples of the many ways of passing function names to other functions: direct call, c-style function pointer, c++-style function pointer, function object (functor), lambda, bind examples of interesting functions to pass function to: thread, async, packaged_task

sp?.cpp - smart pointer resources

mi-*.cpp - multiple inheritance resources, clone+diamond problem

template-simple.cpp - simple example of class and tfuntion templet

theading?01?.cpp - threading101?.cpp - basic threading, mutexes - threading201?.cpp - futures and promises - threading301?.cpp - async, packaged_task - threading401?.cpp - how things were done before async + packaged task

thread-*.cpp - cool thread code, such as thread pools

ll*.cpp - linked list code

cirq.cpp - circular linked list or q

moveSimple.cpp - move semantics

stl-calc-*.cpp - postfix calculator using stl stack, list, vector, deque containers

vectorchar*.cpp - how to make a string class based on std::vector

dp-composite*.cpp - composite (tree) design pattern code

alarmsetjmp.cpp + setjmp*.cpp - use alarm and setjmp to do interesting things

swap.cpp - swapping data in place (without using a temporary) using xor and add operators.

asmlist.cpp - how to generate an in-line assembler listing of the code generated by the compiler

popen.cpp - how to start up a pipe to a program and read the output from the program

ocl_c++11.cpp - how to run a minimal OpenCL program on a GPU using C++11 features

folder threading-concurrency_in_action - pdf and sample code from Concurancy in Action book

senecaoop345-attic's People

Contributors

captgreg avatar sarout avatar

Watchers

James Cloos 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.