linux入门
yum源12345678sudo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupsudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum clean allyum makecache# 安装第三方源并且更新yum -y install epel-releaseyum -y update 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick...
python
环境搭建安装python,安装pycharm,配置环境变量,检测是否配置成功,控制台输入python 内置模块 os模块:系统相关,文件夹和文件相关 sys模块:python解释器相关 time模块:处理时间的函数 datetime模块:高级日期和时间处理 random模块:生成随机数的模块 math模块:数学函数模块 re模块:正则表达式的模块 json模块:Json格式的模块 urllib模块:网页和url的模块 包管理工具pip 12pip --versionpip list 入门 12345678910111213141516171819import requestsurl = "https://movie.douban.com/j/chart/top_list"param = { "type": "24", "interval_id": "100:90", "action":"", ...
设计模式
创建型模式对象的创建 单例模式一个类只有一个实例,并提供一个全局访问点来访问这个实例,分为饿汉和懒汉,饿汉是类加载时候创建实例,懒汉是类第一次调用创建实例。 饿汉模式 123456789101112public class Singleton { // 在静态初始化器中创建实例,保证了线程安全 private static final Singleton instance = new Singleton(); // 私有化构造函数,防止外部实例化 private Singleton() {} // 提供全局访问点 public static Singleton getInstance() { return instance; }} 懒汉模式 123456789101112public class Singleton { private static Singleton instance; private Singleton()...
装修
装修基础知识墙体拆改刷墙固,挂钢丝网,拆墙皮,拆墙,新建墙体 强电箱,弱电箱,强电箱里面有总的开关,漏电开关,照明控制开关,厨房插座开关,卫生间插座开关,普通插座开关,空调开关,冰箱开关,插座应该选用漏电保护开关,2.5以下成九,往上减一顺号走,网线选择六类,电管有16管和二零管,16管穿线数量不超过三根,20管穿线数量不超过四根 冷热水管管用ppr水管,管壁厚25毫米 冷热水管中间的间距必须大于15厘米 安装的时候遵循左热右冷, 水管交叉处死于过桥弯,过桥弯在下,水管在上 水管打压测试 同层排水,异层排水,看卫生间排水管在不在楼下,邻居的顶上 水管选择 盆下水阳台下水用五零管 洗衣机用70管 排污用110管 水管配件,尽量用协商通代替三通,用45度弯代替直角弯 Dpr进水PVC排水 水电改造 确定插座位置 确定线管,水管位置 弹线,开槽,拉线 安装插座底盒 穿线 回填线坑,插座坑(混泥土,石膏) ...
甜柚docker部署
项目描述:甜柚项目是一个博客类型项目,分为前端和后端,前端是用vue3+ts。前端有3个台。前台,后台管理系统,H5。前台3个系统组成,博客,音乐,商城。后端用springboot。部署方式为docker+mysql 页面效果 准备工作前提: centos系统 准备docker环境 docker部署数据库==> 端口8001 docker部署后端==>端口8002 docker部署网易云node==>端口3000 docker部署网页器前台==> 端口8003 docker部署后台管理系统==> 端口8004 docker部署h5==> 端口8005 docker环境首先要安装一个yum工具 1yum install -y yum-utils 安装成功后,执行命令,配置Docker的yum源: 1yum-config-manager --add-repo...
原理篇
...
tailwind
vue3下载安装 1234//安装npm install -D tailwindcss postcss autoprefixer//生成配置文件npx tailwindcss init -p 在tailwind.config.js指定作用目录,并增加对 vue 文件的识别 1234567891011/** @type {import('tailwindcss').Config} */export default { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx,vue}", ], theme: { extend: {}, }, plugins: [],} 在项目的公共 css 文件(src/style.css)中添加以下内容,用 @tailwind 指令添加 Tailwind 功能模块。 123@tailwind...
egg学习
项目初始化123npm init egg --type=simplenpm inpm run dev 项目预览 12345678egg-example├── app│ ├── controller│ │ └── home.js│ └── router.js├── config│ └── config.default.js└── package.json 更改端口 在config.default .js下面添加下面的代码 1234567config.cluster = { listen: { path: '', port: 8000, hostname: '127.0.0.1', } }; 跨域出现post请求会报错 1npm i -S egg-cors 在 config/plugin.js 文件中添加以下代码 12345678910111213'use...
四大名著-三国演义
...
butterfly主题美化
音乐播放器吸底播放器 安装播放插件 1npm i hexo-tag-aplayer 在hexo配置文件新增 123aplayer: meting: true asset_inject: false 主题配置文件 1234# Inject the css and script (aplayer/meting)aplayerInject: enable: true per_page: true 修改bottom 1234567# 音乐播放插入页脚inject: head: # - <link rel="stylesheet" href="/xxx.css"> bottom: # - <script src="xxxx"></script> - <div class="aplayer no-destroy" data-id="2740999019"...