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
| <?php namespace Listener; | |
| use PaypalIPN; | |
| require('PaypalIPN.php'); | |
| function write_log($str,$status,$data_array) //傳入資料夾名 想寫近的狀態 資料 | |
| { | |
| $textname = $str.date("Ymd").".txt"; //檔名 filename | |
| $URL = "./log/".$str."/"; //路徑 Path | |
| if(!is_dir($URL)) // 路徑中的$str 資料夾是否存在 Folder exists in the path |
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 <opencv2/opencv.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| using namespace cv; | |
| cv::Mat quantizeImage(const Mat& inImage, int numBits) | |
| { | |
| Mat retImage = inImage.clone(); | |
| uchar maskBit = 0xFF; |
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 <opencv2/opencv.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| using namespace cv; | |
| int main() | |
| { | |
| Size size(281, 369);//the dst image size,e.g.100x100 | |
| Size size2(2810, 3690);//the dst image size,e.g.100x100 | |
| Mat dst;//dst image |
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 <opencv2/opencv.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| using namespace cv; | |
| int main() | |
| { | |
| Size size(281, 369);//the dst image size,e.g.100x100 | |
| Size size2(2810, 3690);//the dst image size,e.g.100x100 | |
| Mat dst;//dst image |
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
| <?php | |
| echo "hello world!"; |
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
| "scripts": { | |
| "start": "node scripts/start.js", | |
| "build": "set PUBLIC_URL=https://你的帳號.github.io/儲藏庫/index所在資料夾&& node scripts/build.js", | |
| "test": "node scripts/test.js" | |
| }, |
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
| { | |
| "name": "my-website", | |
| "version": "0.1.0", | |
| "private": true, | |
| "homepage": "https://p208p2002.github.io/me/build", | |
| "dependencies": { | |
| ... | |
| }, | |
| "scripts": { | |
| "start": "node scripts/start.js", |
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
| curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
| --header 'Accept: application/vnd.github.v3.raw' \ | |
| --remote-name \ | |
| --location https://api.github.com/repos/owner/repo/contents/path | |
| # Example... | |
| TOKEN="INSERTACCESSTOKENHERE" | |
| OWNER="BBC-News" | |
| REPO="responsive-news" |
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 <opencv2/opencv.hpp> | |
| #include <opencv2/highgui/highgui.hpp> | |
| using namespace cv; | |
| int convertToWebSafe(int color) { | |
| //0 51 102 153 204 255 | |
| // 25 76 127 178 229 | |
| if (color >= 229) | |
| return 255; |