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> | |
| using namespace std; | |
| template<class T> | |
| class MySuperSmartPtr | |
| { | |
| public: | |
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 <memory> | |
| #include <vector> | |
| using namespace std; | |
| template<class T> | |
| class MyVector | |
| { | |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| markovify kütüphanesi deneme | |
| """ | |
| !pip install markovify | |
| from google.colab import files | |
| uploaded = files.upload() |
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
| #!/usr/bin/env bash | |
| set -ex | |
| # Make it "0" if you have already OpenCV | |
| INSTALL_OPENCV=0 | |
| # Make it "0" if you have already Dlib | |
| INSTALL_DLIB=0 | |
| # Make it "0" if you have already Torch, but you need to install | |
| # Torch packages manually | |
| INSTALL_TORCH=0 |
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
| # This script is taken from http://stackoverflow.com/a/31396229/3244341 | |
| # This script installs Caffe and pycaffe on Ubuntu 14.04 x64 or 14.10 x64. CPU only, multi-threaded Caffe. | |
| # Usage: | |
| # 0. Set up here how many cores you want to use during the installation: | |
| # By default Caffe will use all these cores. | |
| NUMBER_OF_CORES=8 | |
| # 1. Execute this script, e.g. "bash compile_caffe_ubuntu_14.04.sh" (~30 to 60 minutes on a new Ubuntu). | |
| # 2. Open a new shell (or run "source ~/.bash_profile"). You're done. You can try | |
| # running "import caffe" from the Python interpreter to test. |
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
| // Go to additional drivers | |
| // Install tested version of NVIDIA Driver | |
| // Reboot PC | |
| // http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu | |
| // Download https://developer.nvidia.com/cuda-downloads | |
| sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb | |
| sudo apt-get update | |
| sudo apt-get install cuda |
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
| """Utility functions""" | |
| import os | |
| import pandas as pd | |
| def symbol_to_path(symbol, base_dir="data"): | |
| """Return CSV file path given ticker symbol.""" | |
| return os.path.join(base_dir, "{}.csv".format(str(symbol))) | |
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
| while(1) // sonsuz döngü açıyoruz | |
| { | |
| digitalOutput(Pin0,Pin1,Pin2,Pin3,Pin4,Pin5,Pin6,Pin7); // Pinlerin hepsini output yapıyoruz. | |
| digitalHIGH(Pin0,Pin1,Pin2,Pin3,Pin4,Pin5,Pin6,Pin7); // Bütün pinleri HIGH yapıyoruz. | |
| Delay_us(10); // 10 mikro saniye sensörün kapasitörünün dolmasını bekliyoruz. |
NewerOlder