github

vue之TodoMVC项目实战

人盡茶涼 提交于 2021-02-17 12:21:52
一、初始化项目 1、下载模板 进入github中 https://github.com/tastejs/todomvc-app-template ,并且在命令行将其clone下来 git clone https://github.com/tastejs/todomvc-app-template.git 2、安装依赖 进入项目目录中安装依赖 npm install 3、引入vue.js文件 首先在命令行中安装vue npm install vue 然后再index.html中引入 然后再app.js文件中写入相应的逻辑代码 二、实现功能 1、数据列表渲染功能 1.1 功能分析 有数据 每一个数据对象: { id: 1 , content: '' , complated: '' # 表示是否已经完成的任务true(false) } 并且每一个数据对象有三个状态:             未完成(没有样式)             已完成(.completed )             编辑中( .editing ) 无数据 输入框下面的部分应该隐藏起来 1.2 实现 创建一个数据源 items:[ {id: 1,content:'dddd',completed: false }, {id: 2,content:'aaaa',completed: false }, {id: 3

LSTPopView 简易的iOS万能弹框

ぐ巨炮叔叔 提交于 2021-02-17 10:49:01
LSTPopView 简易的iOS万能弹框 前言 在每个项目中,弹框的需求都有,而且各种各样,花里胡哨, 很是烦恼. LSTPopView的出现,可以让我们更专注弹框页面的布局.省心省力! 提高开发效率! 欢迎coder们发现问题或者提供更好的idea,一起努力完善 博客地址 github: https://github.com/LoSenTrad/LSTPopView CSDN: https://blog.csdn.net/u012400600/article/details/106279654 简书: https://www.jianshu.com/p/8023a85dc2a2 LSTPopView 属性接口介绍 特性 提供丰富的api,高度自定义弹框,简单入手使用 支持弹出动画,消失动画,主动动画等多重动画搭配 支持多弹框管理:编队,堆叠,优先级等 支持指定弹框父类,eg: UIWindow,self.view等 安全且内存占用小 自动规避键盘,防止被键盘遮挡 支持横竖屏切换 支持纯代码/xib页面 提供生命周期api,自定义动画控制 支持定时器,多定时器机制 支持多代理机制 支持二次封装,比如组件LSTHUD,LSTAlertView等 安装 CocoaPods安装: 在podfile文件中添加以下描述,然后 pod install 或者 pod update pod

Delete all Git Commit History

删除回忆录丶 提交于 2021-02-17 08:55:51
问题 I am trying to fetch a repo from Github, revert a tag in past, push it to another remote with deleting all history. I can do everything with below except deleting all commit logs. What I am missing? git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 git remote add stash ssh://git@myserver:7999/myproject/user-repo.git git push --force stash master 回答1: I thought what you want is a repo like a new one, so deleting the .git/ directory and re-initing it will

Does Git Add have a verbose switch

大憨熊 提交于 2021-02-17 08:29:05
问题 I am in the process of moving all my private an public repo's over to github. One of the decisions I have made is to only use the console as it means a smaller tooling footprint if I ever need to change PCs, etc. I would be a huge user of console applications and being new to git I decided to purchase Tekpub's Mastering Git series since it shows you how to intergrate git bash as a toolbar. Everything is working fine except for the add all command which is: git add . It seems to be working but

Put current changes in a new Git branch [duplicate]

落花浮王杯 提交于 2021-02-17 07:27:26
问题 This question already has answers here : Move existing, uncommitted work to a new branch in Git (9 answers) Closed 7 years ago . I've been editing some modules on the master branch but I haven't committed them. I'm now thinking that these changes should really be on an experimental branch and not the master branch. How can I get these edits into an experimental branch? Copy them to some temp location, create the branch, and then copy them back in? And how do I configure things so that when I

Google 是如何做 Code Review 的?

纵饮孤独 提交于 2021-02-17 07:21:18
作者 | 帅昕 xindoo 责编 | 屠敏 来源 | CSDN 博客 我和几个小伙伴一起翻译了Google前一段时间放出来的Google’s Engineering Practices documentation(https://github.com/google/eng-practices),翻译后的GitHub仓库:https://github.com/xindoo/eng-practices-cn,欢迎加star。目前只是翻译完了,因为译者水平有限,还需要审校。另外后续Google肯定还会有新内容放出来,欢迎想参与贡献的小伙伴加入,也欢迎在GitHub上加star。 这篇文章是Google’s Engineering Practices documentation的第一章Code Review实践指南:https://xindoo.github.io/eng-practices-cn/review/。 谷歌Code Review指南, 包含两个子章节: 评审者指南:https://xindoo.github.io/eng-practices-cn/review/reviewer/ 开发者指南:https://xindoo.github.io/eng-practices-cn/review/developer/ 术语 部分文档中会用到一些谷歌内部的术语,特在此说明: CL:

Kubernetes 1.15版本正式发布,kubeadm喜提新logo

╄→尐↘猪︶ㄣ 提交于 2021-02-17 07:12:23
导读: 美国时间 2019 年 6 月 19 日,Kubernetes发布了今年第二大版本 Kubernetes 1.15 ,此次版本共更新加强了 25 个相关功能,其中 2 个升级到 GA 版本, 13 个升级到 beta 版, 10 个 alpha 版。 1.15 版本的发布主题是:持续改进和可扩展性。 持续改进: 项目可持续性不仅仅与功能有关。许多SIG一直致力于提高测试覆盖率,确保基础功能持续可靠,核心功能持续稳定。 可扩展性: Kubernetes 社区一直致力于支持可扩展性。 1.15 版本发布周期中包含更多关于CRD和 API Machinery 的工作。此次周期中的大多数增强功能来自SIG API Machinery及相关领域。 更深入了解此次版本主要功能: 围绕核心 Kubernetes API的可扩展性 在 CRD 新开发的主题是围绕者数据一致性和原生性。用户考虑重点不会放在是CustomResource还是使用 Golang 原生资源。在下个版本或后续版本中,将会升级 CRD 和 admissio webhooks 到 GA 版本。 在这个方向上,社区重新考虑了CRD中基于 OpenAPI 的验证模式,并且从 1.15 开始,我们根据称为“ structural schema ”的限制检查每个资源

第二次作业

拟墨画扇 提交于 2021-02-17 06:58:14
软工第二次作业 1. Github地址 2. Personal Software Process PSP2.1 Personal Software Process Stages 预估耗时(分钟) 实际耗时(分钟) Planning 计划 680 1285 · Estimate · 估计这个任务需要多少时间 680 1285 Development 开发 550 1135 · Analysis · 需求分析 (包括学习新技术) 120 270 · Design Spec · 生成设计文档 20 8 · Design Review · 设计复审 10 0 · Coding Standard · 代码规范 (为目前的开发制定合适的规范) 20 0 · Design · 具体设计 60 7 · Coding · 具体编码 270 600 · Code Review · 代码复审 30 40 · Test · 测试(自我测试,修改代码,提交修改) 20 210 Reporting 报告 130 150 · Test Repor · 测试报告 60 40 · Size Measurement · 计算工作量 10 20 · Postmortem & Process Improvement Plan · 事后总结, 并提出过程改进计划 60 90 合计 680 1285 3.程序的分析实现  

[通达OA] RCE + Getshell

て烟熏妆下的殇ゞ 提交于 2021-02-17 06:56:00
跟着大佬轻松复现: https://github.com/jas502n/OA-tongda-RCE 通达OA下载: https://www.tongda2000.com/download/2019.php 傻瓜式安装,不作多介绍。 漏洞原因:未授权文件上传 + 文件包含(利用nginx日志也可以getshell) 版本不同路径不同 2013: 文件上传路径:/ispirit/im/upload.php 文件包含路径:/ispirit/interface/gateway.php 2017: 文件上传路径:/ispirit/im/upload.php 文件包含路径:/mac/gateway.php 复现过程 文件上传 抓取数据包使用Burp改成POST,再改成 from-data 就好了 Request: POST /ispirit/im/upload.php HTTP/1.1 Host: 192.168.95.129 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 Accept:

Jenkins高级用法

天大地大妈咪最大 提交于 2021-02-17 06:54:51
##系列目录 1.Jenkins 安装 2.Jenkins 集群 3.Jenkins 持续集成 - ASP.NET Core 持续集成(Docker&自由风格&Jenkinsfile) 4.Jenkins 高级用法 - Pipeline 安装 5.Jenkins 高级用法 - Jenkinsfile 介绍及实战经验 6.Jenkins 高级用法 - Blue Ocean 使用 7.Jenkins 高级用法 - 根据 git commit 控制构建过程 8.Jenkins 高级用法 - 微服务DevOps实战(ASP.NET Core) 常见问题: 1.Jenkins 时区设置 2.Jenkins 无法捕获构建脚本错误问题 一.什么是 Jenkinsfile Jenkinsfile 是 Jenkins 2.x 核心特性 Pipeline 的脚本,由Groovy语言实现。Jenkinsfile一般是放在项目根目录,随项目一起受源代码管理软件控制,无需像创建“自由风格"(Jenkins FreeStyle)项目一样,每次可能需要拷贝很多设置到新项目,提供了一些直接的好处: Pipeline上的代码审查/迭代 Pipeline的审计跟踪 Pipeline的唯一真实来源,可以由项目的多个成员查看和编辑。 Pipeline支持:Declarative(在Pipeline 2.5中引入