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
{ | |
"yahoo-weather-codes": { | |
"code": [ | |
{ | |
"number": "0", | |
"description": "龍捲風" | |
}, | |
{ | |
"number": "1", | |
"description": "熱帶風暴" |
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 <BLEDevice.h> | |
#include <BLEUtils.h> | |
#include <BLEServer.h> | |
#include <M5Stack.h> | |
#define SERVICE_UUID "0000fff0-0000-1000-8000-00805f9b34fb" | |
#define CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" | |
String Message = "DMESSAGE"; | |
BLEService *pService; | |
BLEAdvertising *pAdvertising; | |
BLECharacteristic *pCharacteristic; |
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
/** | |
* A BLE client example that is rich in capabilities. | |
*/ | |
#include "BLEDevice.h" | |
#include <M5Stack.h> | |
//#include "BLEScan.h" | |
// The remote service we wish to connect to. | |
static BLEUUID serviceUUID("0000fff0-0000-1000-8000-00805f9b34fb"); |
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
using System; | |
using System.Collections.Specialized; | |
using System.Net; | |
using System.Text; | |
namespace TestLineNotify | |
{ | |
public partial class index : System.Web.UI.Page | |
{ |
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
WebClient wc4 = new WebClient(); | |
string targetAddress4 = "https://rest.nexmo.com/sms/json"; | |
wc4.Encoding = Encoding.UTF8; | |
wc4.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; | |
NameValueCollection nc4 = new NameValueCollection(); | |
nc4["api_key"] = YOUR_API_KEY; | |
nc4["api_secret"] = YOUR_API_SECRET; | |
nc4["to"] = mobile; | |
//必填 | |
nc4["from"] = "no2studio"; |
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
using System; | |
using System.IO; | |
using System.Web; | |
using System.Web.Script.Serialization; | |
namespace MDEditorUploadImage | |
{ | |
public class uploadimage : IHttpHandler | |
{ |
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
<!DOCTYPE html> | |
<html lang="zh"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>图片上传示例 - Editor.md examples</title> | |
<link rel="stylesheet" href="style.css" /> | |
<link rel="stylesheet" href="css/editormd.css" /> | |
<link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" /> | |
</head> | |
<body> |
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
// 關於滑過後的 顯示 | |
tooltips: { | |
callbacks: { | |
label: function (tooltipItem, data) { | |
var dataset = data.datasets[tooltipItem.datasetIndex]; | |
//計算總和 | |
var sum = dataset.data.reduce(function (previousValue, currentValue, currentIndex, array) { | |
return previousValue + currentValue; | |
}); | |
var currentValue = dataset.data[tooltipItem.index]; |
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
//提示項目的處理 | |
legend: { | |
display: true, | |
position: 'left', | |
labels: { | |
generateLabels: function (chart) { | |
var data = chart.data; | |
if (data.labels.length && data.datasets.length) { | |
return data.labels.map(function (label, i) { | |
var ds = data.datasets[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
using System.Linq; | |
public static class StarSignsUtil | |
{ | |
/// <summary> | |
/// 紀錄星座資料的模型 | |
/// </summary> | |
public class StarSignInfo |
OlderNewer