- 博客(28)
- 收藏
- 关注
原创 MySQL 安装时没有developer default 选项
在安装mysql没有developer default选项很有可能是之前装过mysql但是卸载没卸干净,导致path重合,不能二次安装MySQL。按照下面步骤即可重新安装。
2023-11-14 23:58:41
16002
4
原创 第六届字节跳动青训营 - 暑假专场 前端、后端基础班笔试
1.【单选】页面中有10个逐层嵌套的div元素,最底层的div元素有个名为 'div' 的class,对最底层div应用以下两条css规则,问最底层div的颜色?如果规则顺序前后对调呢,底层div颜色?。B. red,redD. red,red2.【单选】下面哪个事件处理程序会阻止事件冒泡?3. 【单选】以下哪个方法可以用于将一个字符串转换为整数4.【单选】["1", "2", "3"].map(parseInt)D. other5.【单选】下列定义的 css 中,哪个权重是最低的?
2023-07-23 01:00:00
332
原创 session in node.js
注意: 现在的express-session module do not need cookie-parser anymore. 在这个文章中的cookie-parser可省略。
2023-07-05 07:48:47
76
原创 flash in node.js / express
app.use()是不管传递什么页面都要经历的一个东西,所以在这里可以使得message平等的传递给每一个页面。所以,我们可以在boilerplate里加上对于message的传递。Flash messages are stored in the session. 所以设置flash的第一步是设置session middleware.Then, use。以及session存储在node.js里及其简单,几乎自动,具体案例:udemy sec48 express session.所以此处无需考虑具体储存。
2023-07-05 07:01:37
105
原创 Mongoose 相关联 数据 创立与其他相关操作
基于 Udemy The Web Development Bootcamp 2023 Section 44 Data Relationship With Mongo , Section 45 Mongo Relationships with Express, Section 46: YelpCamp: Adding the Reviews Model 的coding小总结。
2023-07-04 23:16:13
202
原创 Javscript require 小解
这里代表的是require 同一文件夹下的review.js文件 .记录Javascript 中遇到过的require。
2023-07-04 23:08:57
72
原创 Leetcode 167. Two Sum II - Input Array Is Sorted
因为是sorted 通过引入双指针 space complexity O(1) 不额外获得空间。
2023-05-24 21:48:47
53
原创 HTML 大纲
shift+ctrl+p 查找 format document 就可以啦 => shift+alt+f in my computer。在我的电脑上是 ctrl + / 快捷comment一整行。 a+tab 更好用。+ tab 自动生成。
2023-05-24 13:31:30
66
原创 Map + Set + unordered_map + unordered_set
前言: 把哈希表放在前端是因为由于本身搜索Time complexity = O(1)哈希表是leetcode几乎是最常用的一种map.例题: 242/ 1002/394/202/1* /454/383/15/18。
2023-05-21 23:18:46
72
原创 Leetcode ToolBox
看了Harvard cs50 有关interview 的视频有感,决定分类写下自己对于leetcode刷题技巧总结,提高自己从思路到coding的速度。
2023-05-21 22:31:59
58
原创 QT calculator step by step
edit the main display area. change the stylesheet as above and change the font to aria bond 36 sth. like this. change alignment to align to the right. =》见上图。以及要把计算的数字展现到lineEdit是需要转化为string再放入ui->lineEdit->setText(string);注意:LineEdit里的数字 其实是string!
2023-04-11 23:59:58
81
原创 Create your own NotePad
在action中右键点击Edit icon-> choose resources (没有出现save all一下) icon 后面的选项要选择normal on。完成后双击.qrc文件,add prefix 将prefix改为/imgs. add 改为 add file后添加文件。- 加一行Qstring (此处Qstring无需include)mainwindow.h。在文件名邮件add, add resource file,点击okey。-New file 槽的更改。-将文本放大为整个软件。
2023-04-08 23:20:46
58
原创 Qt learning Path
3/23fixed size 会让push bottom跟着整个窗口大小随之一起变化 //右键 布局Buddy mode: 拖拽 编辑Tab:tab highlight 的部分。
2023-03-23 20:06:09
61
原创 \t tab键不能让竖行对齐?一招解决
在c++入门coding 中,我们常常需要用到‘\t’来将竖行对齐。但是'\t'往往很难如我们所愿的整齐对齐,经常随意跑偏。一招解决这个问题,coding如下。用这个方法就很好解决啦。相信这个解决方法聪明的你直接看代码就能明白,不再赘述。
2023-03-20 01:10:09
528
原创 Small Tricks Learned from Professor Tri Pham‘s CS2B Class at Foothill College
Small cs tricks
2023-02-12 22:36:48
79
原创 Sorting 总结
/ Merge: 对数字进行合并void Merge(int *arr,int begin,int mid,int end){ int i=begin,j=mid+1,k=0;while(i
2022-10-19 14:30:38
138
2
FootHill College CS2B Assignments
2023-04-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人