This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> // std::cout | |
| #include <string> // std::string | |
| #include <vector> // std::vector | |
| #include <memory> // std::unique_ptr, std::make_unique | |
| class Animal { | |
| // Base Class - Eventually Abstract | |
| std::string name; | |
| protected: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| class Base { | |
| protected: | |
| int value; // Derived class will have access. | |
| public: | |
| Base(int value) : value{value} { | |
| std::cout << "Base Constructor\n"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofApp.h" | |
| //-------------------------------------------------------------- | |
| void ofApp::setup() { | |
| ofAddListener(ofGetWindowPtr()->events().keyPressed, this, | |
| &ofApp::keycodePressed); | |
| } | |
| //-------------------------------------------------------------- | |
| void ofApp::update(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| P1 | |
| # PBM Black & White Example | |
| 24 7 | |
| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
| 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 | |
| 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 | |
| 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0 | |
| 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 | |
| 0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0 | |
| 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <string> | |
| #include <vector> | |
| const std::vector<std::string> words{ | |
| "abominates", "abominating", "abomination", "abominations", "abominator", "abominators", "abomine", "abondance", | |
| "abongo", "abonne", "abonnement", "aboon", "aborad", "aboral", "aborally", "abord", "aboriginal", "aboriginality", | |
| "aboriginally", "aboriginals", "aboriginary", "aborigine", "aborigines", "aborning", "aborsement", "aborsive", | |
| "abort", "aborted", "aborter", "aborters", "aborticide", "abortient", "abortifacient", "abortin", "aborting", | |
| "abortion", "abortional", "abortionist", "abortionists", "abortions", "abortive", "abortively", "abortiveness", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Ignore Visual Studio temporary files, build results, and | |
| ## files generated by popular Visual Studio add-ons. | |
| ## | |
| ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | |
| # User-specific files | |
| *.rsuser | |
| *.suo | |
| *.user | |
| *.userosscache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "ofApp.h" | |
| //-------------------------------------------------------------- | |
| void ofApp::setup() { | |
| } | |
| //-------------------------------------------------------------- | |
| void ofApp::update() { | |
| a2.update({static_cast<float>(ofGetMouseX()), static_cast<float>(ofGetMouseY())}); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <limits> | |
| int main() | |
| { | |
| int number1 , number2; | |
| char sign; | |
| while (true) { | |
| std::cout << "Enter 2 numbers seperated by a + or - sign \n"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Visual Studio user specific files | |
| .vs/ | |
| # Compiled Object files | |
| *.slo | |
| *.lo | |
| *.o | |
| *.obj | |
| # Precompiled Headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| live_loop :bass_drum do | |
| ##| sample :bd_haus | |
| sample :bd_haus, cutoff: 70, amp: 4 | |
| sleep 0.5 | |
| end | |
| live_loop :amen_break do | |
| ##| sample :loop_amen, beat_stretch: 2 |