首页
Diary
BrainStroming
ProJect
VLog
观影日记
LeetCode-刷题日志
关于
邻居们
归档
留言板
资源
推荐
百度一下
腾讯视频
用户登录
用户名
密码
登录
关键词搜索
搜索
标签搜索
MachineLearning
DataBase
王者死忠粉
B站精选
回忆录
VlogLover
观影日记
AI
热门文章
1
2020/10/04-Updated of my previous VLOG--Using Python codes to download pictures on specific website !
1.7k 阅读
2
Predicting the Rossmann Store Sales Using Different Models in R --- Kaggle IN class Project
1.6k 阅读
3
追光动漫三部曲-观后感
1.6k 阅读
4
矛盾的大三一年回忆录 - 2020/0901 ~ 2021/09/01
1.4k 阅读
5
Project_Create a Simple Website to Mimic an Airline Check Center
1.4k 阅读
6
VLog ----- 自我介绍 Self-Introduction-Chinese
1.3k 阅读
7
@-@ 说书先生 From B站
1.2k 阅读
8
从B站上面看到的一个很有道理的视频
1.2k 阅读
9
2021~王者诸葛亮击杀集锦---04/19--省标冲冲冲
1.2k 阅读
Knorth小柯北
首页
分类
Diary
BrainStroming
ProJect
VLog
观影日记
LeetCode-刷题日志
页面
关于
邻居们
归档
留言板
资源
推荐
百度一下
腾讯视频
用户登录
登录
“” 共(2)篇
Javascript链接Azure NoSql数据库 - 可以增删查改(简易版)
const { CosmosClient } = require("@azure/cosmos"); console.log('good') const endpoint = "https://ramuricosmosdbtesting.documents.azure.com:443/"; const key = "chuqphPGgUvyIYNGd09TrCEd3v3wEvXTheFiCMJVXAYCgN9NuqOnZY2xLS6iAFYn8aHExKFujWHRACDbRtNUkQ=="; const client = new CosmosClient({ endpoint, key }); // console.log(client) // async function main() { // // // The rest of the README samples are designed to be pasted into this function body // } async function main() { let counter = 1; const databaseId = "ramuricosmosdbtesting"; const { database } = await client.databases.createIfNotExists({ id: databaseId }); const { container: recommendationContainer } = await database.containers.createIfNotExists({ id: "RecommendationContainer" }); const { container: clickContainer } = await database.containers.createIfNotExists({ id: "ClickContainer" }); console.log(database.id); console.log(recommendationContainer.id); console.log(clickContainer.id); // await container.item("f222febd-d574-47bc-9770-8f0873760f4c").read(); console.log(`Connected to database: ${database.id}`); const { resources } = await recommendationContainer.items.query( "SELECT * from c " ).fetchAll(); for (const city of resources) { console.log(counter); console.log(`The product title is : ${city.product_title}, The Category is : ,${city.category}`); counter++; } // let time = Date.now(); const currentDate = new Date(); // Get the individual components const year = currentDate.getFullYear(); const month = currentDate.getMonth() + 1; // Months are zero-based, so add 1 const day = currentDate.getDate(); const hours = currentDate.getHours(); const minutes = currentDate.getMinutes(); const seconds = currentDate.getSeconds(); console.log(`Current date: ${year}-${month}-${day}`); console.log(`Current time: ${hours}:${minutes}:${seconds}`); let time = `${year}-${month}-${day}-${hours}:${minutes}:${seconds}` const newItem = { current_time : time, current_link : 'abc2fjlewjfdilwedjwasr844o8243oqruo4uro34', brand_name : 'B&K' }; // const { resource: createdItem } = await container.items.create(newItem); // console.log(`Successfully inserted item with brand: ${createdItem.brand_name}`); await clickContainer.items.create(newItem); console.log('Successfully inserted item with brand'); } main().catch((error) => { console.error(error); });
2023年08月11日
丨
567阅读
丨
0评论
BrainStroming
Project_Create a Simple Website to Mimic an Airline Check Center
因为切换了typecho主题模版且我懒的去重新设置视频了,所以这个project的视频介绍部分我就用我腾讯云数据库的链接吧!https://littleknorth.xyz/usr/uploads/2021/VideoMaker/ChenhaoZhu_CS332_FInalProject_Video.mp4
2021年04月08日
丨
1.4k阅读
丨
0评论
ProJect