- 博客(27)
- 收藏
- 关注
原创 C# 类笔记3 (ArrayList, HashTable, List, Dictionary, Path, File, FileStream, StreamReader, StreamWrite )
C# 类笔记3 (ArrayList, HashTable, List, Dictionary, Path, File, FileStream, StreamReader, StreamWrite )
2022-07-07 19:45:31 320
原创 C learning (1)
1. function declarationø need to keep the variable type, the variable name is not neccessary.2. function as a parameter to another functionø passing the address of the function to another function// g( func(), a)int g(float (* func)(int), int a){
2022-01-24 17:14:59 429
原创 Leetcode 69. Sqrt(x)
Given a non-negative integerx,compute and returnthe square root ofx.Since the return typeis an integer, the decimal digits aretruncated, and onlythe integer partof the resultis returned.Note:You are not allowed to use any built-in exponent fu...
2022-01-12 06:18:59 203
原创 leetcode 01. 两数之和
给定一个整数数组 nums和一个整数目标值 target,请你在该数组中找出 和为目标值 target的那两个整数,并返回它们的数组下标。你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。你可以按任意顺序返回答案。来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/two-sum著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。// 暴力解法int* twoSum(int* ...
2022-01-11 13:41:34 69
原创 SQL 50题
select * from fiftysql.student;select * from fiftysql.sc;select * from fiftysql.teacher;select * from fiftysql.course;//Question 1 查询" 01 "课程比" 02 "课程成绩高的学生的信息及课程分数select sc.sid, sc.score, sc.cid, course.cname from fiftysql.scinner join fiftysql...
2022-01-11 06:48:51 64
原创 Leedcode 35. Search Insert Position
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You mustwrite an algorithm withO(log n)runtime complexity.// C 语言循环解法in...
2022-01-10 17:38:43 220
原创 NRF52832 学习笔记 (AMG8833)
#include <stdio.h>#include "boards.h"#include "app_util_platform.h"#include "app_error.h"#include "nrf_drv_twi.h"#include "nrf_delay.h"#include "nrf_log.h"#include "nrf_log_ctrl.h"#include "nrf_log_default_backends.h"/* TWI instance ID..
2021-11-29 04:44:21 4293
原创 NRF52832学习笔记 (uart communication)
// Make sure to include all these headers otherwise you might receive some compilation errors#include <stdint.h>#include <stdbool.h>#include <stddef.h>#include "nrf.h"#include "nrf_drv_clock.h"#include "nrf_gpio.h"#include "nrf...
2021-11-29 04:07:25 557
原创 NRF52832学习笔记 (uart communication)
// Make sure to include all these headers otherwise you might receive some compilation errors#include <stdint.h>#include <stdbool.h>#include <stddef.h>#include "nrf.h"#include "nrf_drv_clock.h"#include "nrf_gpio.h"#include "nrf...
2021-11-28 21:53:39 372
原创 NRF52832 学习笔记 (3. introduction to hardware timers)
#include <stdbool.h>#include <stdint.h>#include "nrf.h"#include "nrf_drv_timer.h"#include "bsp.h"#include "app_error.h"//nrfx_timer_enabled 1//timer_enabled 1const nrfx_timer_t TIMER_LED = NRFX_TIMER_INSTANCE(0); //Timer 0 Enabled#.
2021-11-28 07:54:16 2701
原创 NRF52832 学习笔记 (2. GPIOTE (Interrupt & Event))
#include <stdbool.h>#include "nrf.h"#include "nrf_drv_gpiote.h"#include "app_error.h"#include "boards.h"#define LED 17#define Btn 13void input_pin_handle(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action){ nrf_gpio_pin_toggle(LE...
2021-11-28 05:08:26 3055
原创 NRF52832 学习笔记 (1. UART Serial Communication)
/* Use flow control in loopback test. */#define UART_HWFC APP_UART_FLOW_CONTROL_ENABLEDvoid uart_err_handle(app_uart_evt_type_t * p){}int main(void){ uint32_t err_code; bsp_board_init(BSP_INIT_LEDS); const app_uart_comm_params_t comm.
2021-11-28 04:28:49 309
原创 Web 前端学习
HTML 5<!DOCTYPE html> % 声明,html5 标准解析<html> <head> % head 网页的头部,信息都是对网页的整体说明 <meta charset="utf-8" /> <title> 这是网页的标题 </title> </head> <body> % body 网页的身体,主要内容 <p&
2021-03-31 20:38:30 46
原创 Shell 笔记 2
Shell 学习笔记,详细教程 linkShell 内置命令:truefalseexit breakcontinueshift #left shift...正则表达式元字符shell 中 * 为多字符正则表达式匹配如:vi, grep, sed, awk, pythongrep ‘c*’ 星号为正则符基本元字符grep '^root' # ^ 行首定位符grep 'boot$' # $ 行尾定位符. # 匹配单个字符*
2021-03-30 18:10:11 59
原创 Shell 笔记_1
Shell 管道FD Expect ?? 交互Spawn ?? 开启会话Shell 数组普通数组:只能使用整数作为数组索引关联数组:可以使用字符串作为数组索引访问数组元素echo ${array1[0]} #访问数组中第一个元数echo ${array1[@]} #访问数组中所有元数echo ${#array1[@]} #统计数组元数个数echo ${!array2[@]} #获取数组元数的索引echo ${array1[@]:1} #从数组下标1开始
2021-03-21 17:14:51 40
原创 Git and GitHub 学习笔记 1
Git and GitHub 学习笔记1Git InstallationGit configurationInitializing a RepositoryStaging filesCommitting changesRemoving FilesRename or Moving FilesIgnoring FilesViewing the Staged and Unstaged Changes“Git Tutorial for beginner” 学习笔记(link)Git Installations
2021-03-14 19:36:22 148
原创 raspberry pi M3 安装 opencv 3.4.0 (Ubuntu mate 16.4.2)
在树莓派安装配置opencv, 参考了不少论坛大神的文章,但是其中会遇到一些问题。http://blog.csdn.net/pengz0807/article/details/49915997http://blog.csdn.net/xukai871105/article/details/40988101成功安装的步骤:1. Update the list of package:...
2018-02-12 08:19:59 559
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人