- 博客(13)
- 收藏
- 关注
原创 emacs dired 拷贝文件的全路径名
(defun my/dired-copy-path-at-point () (interactive) (dired-copy-filename-as-kill 0))
2021-09-07 11:32:08
236
原创 在windows下启用emacs 快捷键
1.https://www.autohotkey.com/2. 下载ahk3. 修改脚本,Return 0是在该应用启用,如chrome中启用is_target(){ IfWinActive,ahk_exe chrome.exe Return 0 IfWinActive,ahk_class emacs Return 0 IfWinActive,ahk_class runemacs Return 0 IfWinActive,ahk_exe Explore...
2021-09-03 18:13:41
365
原创 神经网络 python 代码
# -*- coding: utf-8 -*-#import initfrom sklearn.model_selection import train_test_splitimport numpy as npimport tensorflow.compat.v1 as tftf.disable_v2_behavior()import matplotlib.pyplot as plt...
2020-04-21 11:39:40
270
原创 在linux环境下开发c++代码
重新搭建gcc开发环境1. 修改PS1export PS1="\[\e[32;1m\][\[\e[33;1m\]\u\[\e[31;1m\]@\[\e[33;1m\]83 \[\e[36;1m\]\w\[\e[32;1m\]]\[\e[34;1m\]\$ \[\e[0m\]"2.安装新版gccyum install -y centos-release-sclyum inst...
2020-04-15 15:36:59
167
原创 能用的emacs C++ 配置
; start package.el with emacs(require 'package); add MELPA to repository list(add-to-list 'package-archives '("melpa" . "http://elpa.emacs-china.org/melpa/")); initialize package.el(package-initi...
2020-03-25 16:20:33
328
原创 emacs配置
获取linux include路径gcc -xc++ -E -v -/usr/local/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../include/c++/6.3.0/usr/local/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../include/c++/6.3.0/x86_64-p...
2020-03-25 08:43:02
252
原创 合并两个有序数组
合并两个有序数组void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) { vector<int> nums3(m + n); int i=0; int j=0; // m=1, n=1 for(int k=0; k<m + ...
2020-03-20 12:18:11
150
原创 插入排序
void insertsort(vector<int> & nums){ int exchange; for(int i=1; i<nums.size(); i++){ for(int j=i; j>=1; j--){ // printf("nums[i] = %d , nums[j]...
2020-03-19 16:04:56
106
原创 快速排序
void quicksort(vector<int> & nums, int start, int end){ if(start > end){ return; } int pivot = nums[end]; int left = start; int right = end - 1; int exchange_num...
2020-03-19 09:17:36
118
原创 冒泡排序
void maopao(int nums[], int len){ int max = nums[0]; int j=0; for(int x=0; x<len; x++){ printf("%d\t", nums[x]); } printf("\n"); bool isChange = false; for(int i...
2020-03-19 08:48:23
116
原创 网络思考
1.tcp中两端的状态变换是什么时候产生的,是整条连接的状态,还是一端的状态?如三次握手,接收端收到sync后,发送ack后,server此时是sync_recv还是establish?client端收到ack会变成establish,是否是客户端发送消息服务端收到消息以后,服务器端才变成establish?否则,处在sync_recv状态的一端能否给客户端发信息?水平触发和边沿触发,是epo...
2020-03-19 03:19:09
152
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人