Skip to content

Instantly share code, notes, and snippets.

View JackYang-hellobobo's full-sized avatar
Keep Going !

Jack Yang JackYang-hellobobo

Keep Going !
View GitHub Profile
@JackYang-hellobobo
JackYang-hellobobo / README.md
Created January 17, 2024 19:35
C 语言 函数指针 回调函数

C语言 函数指针 回调函数

#include<stdio.h>

int max(int a,int b){
    return a>b?a:b;
}

int main(void){
@JackYang-hellobobo
JackYang-hellobobo / README.md
Last active January 16, 2024 19:09
C++ 预处理器

C++ 预处理器

#define PI 3.1415926 //普通宏定义
#define Max(a,b) ((a>b)?(a):(b)) //带参宏定义

条件编译

#ifdef NULL
   #define NULL 0
#endif
@JackYang-hellobobo
JackYang-hellobobo / README.md
Created January 15, 2024 09:43
C语言关系运算符

C语言 预算符号优先级

### !> 算术运算符 > 关系运算符 > &|~ >赋值运算符 
@JackYang-hellobobo
JackYang-hellobobo / Ubuntu-install-Debians.rst
Last active January 14, 2024 17:05
ROS2-Ubuntu-install-tutorials

Ubuntu (Debian)

Debian packages for ROS 2 {DISTRO_TITLE_FULL} are currently available for Ubuntu Focal.

@JackYang-hellobobo
JackYang-hellobobo / README.md
Created January 13, 2024 19:17
ESP-IDF Introduces

Espressif 乐鑫IDF idf.py flash log

Log details

idf.py -p /dev/ttyUSB0 flash
Executing action: flash
Running make in directory /home/jacky/esp32/hello_world/build
Executing "make -j 14 flash"...
[  0%] Built target memory_ld
[  0%] Built target partition_table_bin
[  0%] Built target custom_bundle
@JackYang-hellobobo
JackYang-hellobobo / README.md
Last active January 13, 2024 19:13
ESP-IDF 使用简述

Espressif 乐鑫IDF 使用简述

Requirements

  • git clone the IDF.git
  • ./install.sh
  • source export.sh

Get-starts

  • cp the Template projects
  • idf.dy set-target [esp32|esp32s3|...]
  • idf.dy menuconfig
  • idf.dy build
@JackYang-hellobobo
JackYang-hellobobo / README.md
Created January 12, 2024 08:22
标准头文件结构

C语言 标准头文件书写 里面放置的是函数声明

#ifndef _LIST_HEAD_  
#def _LIST_HEAD_

...

#endif
@JackYang-hellobobo
JackYang-hellobobo / README.md
Last active January 11, 2024 16:25
C语言 带参数宏 预编译器

C语言 带参数宏 预编译器

#include<stdio.h>

#define PRETYY_PRINT(msg) printf(msg);

int main(void){
	PRETYY_PRINT("doi with lucky");
	return 0;
}
@JackYang-hellobobo
JackYang-hellobobo / README.md
Last active January 10, 2024 17:11
Resizeable Array

C语言 可变数组

#include<stdio.h>
#include<stdlib.h>
#include<string.h>

typedef struct{
	int* array;
	int size;
}Array;
@JackYang-hellobobo
JackYang-hellobobo / my-first-gist.md
Created December 27, 2023 03:13
My First Github Gist

Summary

正如 Github Gist 宣传所言 Instantly share code,notes,and snippets