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)

Table of Contents

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

@JackYang-hellobobo
JackYang-hellobobo / vmwk17key.txt
Created January 14, 2024 11:51 — forked from PurpleVibe32/vmwk17key.txt
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@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;