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
| #!/bin/bash | |
| # Delete all containers | |
| sudo docker rm $(sudo docker ps -a -q) | |
| # Delete all images | |
| sudo docker rmi $(sudo docker images -q) |
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
| https://itsfoss.com/download-youtube-videos-ubuntu/ | |
| //install | |
| sudo add-apt-repository ppa:clipgrab-team/ppa | |
| sudo apt-get update | |
| sudo apt-get install clipgrab | |
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
| // Caffe | |
| find_package(Caffe PATHS /opt/caffe/share/Caffe) | |
| include_directories(${Caffe_INCLUDE_DIRS}) | |
| // OpenCV | |
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
| - change archive server , to kr.archive.ubuntu --> ftp.daumkakao | |
| - nameserver change - did but no effect | |
| http://let-me-know.tistory.com/6 | |
| 해결 방법은 | |
| $ sudo vim /etc/resolvconf/resolv.conf.d/base | |
| Then put your nameserver list in like so: |
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
| //main.cpp:32:13: error: reference to ‘x’ is ambiguous | |
| // cout << x << '\n'; | |
| // namespace namespace collision, confilict, | |
| #include <iostream> | |
| using namespace std; |
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
| // conditional operator | |
| #include <iostream> | |
| #include <bitset> | |
| using namespace std; | |
| int main () | |
| { | |
| int a=1; | |
| int b=3; | |
| int c=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
| /*Student Playground*/ | |
| #include "main.hpp" | |
| #include <iostream> | |
| int add(int a, int b) | |
| { | |
| return a+b; | |
| } |
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
| /*Goal: understand the break and conitnue statements*/ | |
| #include<iostream> | |
| int main() | |
| { | |
| int a = 0; | |
| while(a < 5) | |
| { |
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 <time.h> //added for the random number generator seed | |
| #include <cstdlib>//added to use the rand function | |
| int main() | |
| { | |
| int target; | |
| std::string userString; | |
| int guess = -1; | |
| srand(time(NULL)); //set the seed for the random number generator |
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
| /*Goal: understand the do..while loop*/ | |
| #include <iostream> | |
| int main() | |
| { | |
| int count = 0; | |
| //This do..while loop will execute until count =5 |
NewerOlder