笔记
tuszhangs
这个作者很懒,什么都没留下…
展开
-
如何清除linux (ubuntu)下的缓存?
Emptying the buffers cache转载 2017-10-30 19:44:45 · 3531 阅读 · 0 评论 -
Latex(katex)csdn 希腊字母表示,数学符号,集合符号,特殊标记
双击放大显示原创 2019-07-02 09:23:24 · 9696 阅读 · 0 评论 -
安装Atom编辑器 ubuntu 16.04 ,14.04 (both 32&64bit)
Atom 是一款可以让用户根据自己的喜好定制的开源文本编辑器,当然用户也可以使用Atom默认的配置。官方只给出针对ubuntu的Atom 64-bit package(.deb),这里给出如何在ubuntu 16.04和ubuntu 14.04的apt安装,另外用户也可以通过 Software Updater 管理器更新到最新版的atom。Atom text editor feature...翻译 2018-09-01 11:11:33 · 433 阅读 · 0 评论 -
crt+c 后继续执行后面的代码(c++ SIGINT)
这里介绍使用c++ SIGNT的用法,即ctr+c后由操作系统发送一个中断信号给正在运行的进程,由中断函数选择其行为。这里仅仅给出SIGINT的例子,具体可参考这里。#include <iostream>#include <csignal>bool flag = true;void exit_while(int sig){ flag = false;}...原创 2018-09-01 01:08:28 · 876 阅读 · 0 评论 -
ubuntu/linux修改本地时间
date命令查看当前时间,例如我的ubuntu机器上。$ date样例输出Tue May 8 09:52:11 CST 2018 具体点击这里原创 2018-05-08 09:56:03 · 944 阅读 · 0 评论 -
如何在ubuntu中增加swap交换空间)space
How To Add Swap Space on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04原创 2018-04-28 16:44:28 · 1505 阅读 · 0 评论 -
cuda 9.0 ubuntu install
http://www.rendoumi.com/ru-he-zai-ubuntu-16-04-ltsxia-yong-nvidia-g760-cuda9-1wa-men-luo-bi/原创 2018-03-22 18:18:33 · 201 阅读 · 0 评论 -
latex解决中文乱码问题
latex中文模板 \documentclass[a4paper]{article} \usepackage[a4paper,margin=0.75in]{geometry} \usepackage{CJKutf8} \usepackage[unicode={true}]{hyperref} \usepackage{amsmath} \usepackage{c原创 2018-01-17 16:18:34 · 16917 阅读 · 1 评论 -
c++实现字符串的深拷贝
/* * 实现字符串的深拷贝 */#include <cstdio>#include <cstring>#include <iostream>using namespace std;class CString{ friend std::ostream& operator<<(std::ostream& os, const CString& str); public:原创 2017-11-08 22:46:41 · 1139 阅读 · 1 评论 -
c++11中线程安全单例模式( Meyers Singleton)
class Singleton {public:static Singleton& Instance() { static Singleton theSingleton; return theSingleton;}/* more (non-static) functions here */private:Singleton(); // ctor hiddenSingleton(转载 2017-11-08 22:06:23 · 1818 阅读 · 1 评论 -
gdb ulimit 生成core文件
ulimit:系统在信号中断造成的错误时产生core文件, 需要我们在shell做如下设置:#设置core大小为无限ulimit -c unlimited#设置文件大小为无限ulimit unlimited原创 2017-11-08 18:58:27 · 1170 阅读 · 0 评论 -
ubunt 下 latex 文件转word(.docx)文件
安装pandocsudo apt install pandoc转tex文件到word(.docx)文件pandoc input_file_name.tex -o output_file.docx原创 2019-07-05 17:47:25 · 210 阅读 · 0 评论