github

防止再被卡脖子,中国构建代码托管平台Gitee取代GitHub

柔情痞子 提交于 2021-02-10 22:58:28
7 月 14 日,工业和信息化部技术发展司公布了 “2020 年开源托管平台项目”的招标结果,工业和信息化部选择 Gitee 来构建 “ 面向中国的独立,开放源代码托管平台 ”。 该项目将由开源中国(Open Source China)牵头开发,该联盟总部在深圳。 托管服务得到政府支持,同时得到多个大学的支持和私营企业的参与,包括华为在内的 10 个组织的组织。 作为持续投身国内开源建设的码云 Gitee ,成立七年来,为超过 500 万名开发者和 10 万家企业提供了服务。平台上托管的开源项目超过了 1000 万,其中汇聚了众多国内知名的优秀开源项目,是国内首屈一指的代码托管平台,同时也是世界范围内规模第二大的代码托管平台。 但是其相对于全球著名开源社区 GitHub 还有很大的差距 ,GitHub 去年 11 月报告称 GitHub 在全球拥有 1 亿个存储库和大约 3100 万开发人员。 Gitee表示,发展开源是中国提高信息化产业水平的唯一途径。他们指出,码云Gitee是7年努力的结果,他们不认为自己是Github的替代品,而是认为“世界应该是百花齐放,灿烂无比”、“这么多年的不懈努力得到了认可,我们整个公司都为之兴奋,同时也深感肩上的使命重大,我们也必将更加勇敢地前行。” 据了解,去年 7 月,微软拥有的 GitHub 切断了美国认可的国家(包括伊朗,叙利亚和克里米亚

Spring Boot Quartz 分布式集群任务调度实现

不打扰是莪最后的温柔 提交于 2021-02-10 22:48:39
Spring Boot Quartz 主要内容 Spring Scheduler 框架 Quartz 框架,功能强大,配置灵活 Quartz 集群 mysql 持久化定时任务脚本(tables_mysql.sql) 介绍 在工程中时常会遇到一些需求,例如定时刷新一下配置、隔一段时间检查下网络状态并发送邮件等诸如此类的定时任务。 定时任务本质就是一个异步的线程,线程可以查询或修改并执行一系列的操作。由于本质是线程,在 Java 中可以自行编写一个线程池对定时任务进行控制,但这样效率太低了,且功能有限,属于重复造轮子。 分布式任务调度应用场景 Quartz的集群功能通过故障转移和负载平衡功能为您的调度程序带来高可用性和可扩展性。 调度程序中会有很多定时任务需要执行,一台服务器已经不能满足使用,需要解决定时任务单机单点故障问题。 用Quartz框架,在集群环境下,通过数据库锁机制来实现定时任务的执行;独立的 Quartz 节点并不与另一其的节点或是管理节点通信。 Spring Scheduler 实现定时任务 1.定义 Task 类 /** * Spring Scheduled示例 */ @Component public class ScheduledTask { private static final SimpleDateFormat dateFormat = new

Merging GitHub accounts - contributions and stats

。_饼干妹妹 提交于 2021-02-10 20:21:07
问题 I want to merge my two GitHub accounts (meaning transferring repositories ownership to one account, and deleting the other, according to https://help.github.com/articles/transferring-a-repository/). Do my other account will inherit the contributions number (and therefore contribution graph and activity overview) from my old account? In other words, what determines the number of contributions in a GitHub account: is it when the email address of the commit correspond to one of the email

Merging GitHub accounts - contributions and stats

≡放荡痞女 提交于 2021-02-10 20:19:07
问题 I want to merge my two GitHub accounts (meaning transferring repositories ownership to one account, and deleting the other, according to https://help.github.com/articles/transferring-a-repository/). Do my other account will inherit the contributions number (and therefore contribution graph and activity overview) from my old account? In other words, what determines the number of contributions in a GitHub account: is it when the email address of the commit correspond to one of the email

Run GitHub Action on multiple environments

和自甴很熟 提交于 2021-02-10 19:59:24
问题 Currently what I want to do is to run the GitHub Actions on more than one environment, let's say on windows and linux. I managed to do it with the Travis CI, but I could not find information about how to do it with GitHub Actions. Has anyone tried it? Currently, this is my nodejs.yml. name: Node CI on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x] steps: - uses: actions/checkout@v1 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1

Can a git submodule be created retroactively?

試著忘記壹切 提交于 2021-02-10 19:44:11
问题 I've seen a lot of tutorials on using submodules, but they both seem to have one of two common use cases. A) I've got some code in a subdirectory, I want to begin to track it separately, so I turn it into a submodule using filter-branch B) I want to pull a git repo into a subdirectory of my project and have it tracked separately But lets say you didn't know about git submodules and had a copy of a repo dropped into a subdirectory of your own repo, and had to make some modifications, but

Install Tensorflow object detection API in Anaconda (Windows)

百般思念 提交于 2021-02-10 18:32:25
This blog is to explain how to install Tensorflow object detection API in Anaconda in Windows 10 as well as how to train train a convolution neural network to do object detection on your own data set. Steps: 1. Installation and Configuration Install Anaconda First we need to install Anaconda on Windows 10. For specific introduction see this link https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444 After we have installed Anaconda in windows, lets start to install tensorflow Install Tensorflow open an Anaconda Prompt and run the following code C:\>conda create -

华为天才少年——稚晖君!

不打扰是莪最后的温柔 提交于 2021-02-10 18:26:18
摘要 :不管是做嵌入式的还是计算机的,稚晖君大家肯定都知道,如果你还不知道,那就去百度一下吧!稚晖君应该是每一个电子爱好者所向往但是又渴望而不可及的大佬。稚晖君2018年毕业于电子科技大学,之后进入OPPO算法岗工作,目前已经是华为AI架构师的稚晖君,本硕就读于电子科技大学。一位对作品追求极致的UP主。他热爱硬件开发,在期间一直更新着硬件DIY视频,受到众多网友追捧。今天就介绍一下"B站硬核UP主、“栈溢出”工程师稚晖君。 现在的稚晖君,已经加入了“ 华为天才少年计划 ”。 任正非在提出这项计划时说: “ 今年我们将从全世界招进20-30名天才少年,明年我们还想从世界范围招进200-300名。这些天才少年就像‘泥鳅’一样,钻活我们的组织,激活我们的队伍。 ” 华为天才计划对申请者具有很高的要求:国际顶刊论文发表数量及引用量丰富者;研究方向有出色及丰富的商业化成果;有知名赛事名次者优先。天才少年”的招聘流程非常严格,一般需要经历7轮左右流程,最终还要通过华为总裁的面试。通过该计划招入华为的“天才”们,年薪100万起步。能够加入“华为天才少年计划”,也是他自身实力的一种证明。 下面就来看看稚晖君的几个非常硬核的作品吧!以下就从B站播放量最高的几个作品开始说起。 B站最强小电视 全网最mini的Linux电脑 所涉及到的知识:电子基础,电子元器件选型,电路原理图设计,高速电路PCB设计

冰河公开了这份4万字的SpringCloud与SpringCloudAlibaba学习笔记!!

扶醉桌前 提交于 2021-02-10 18:24:57
点击上方蓝色“ 冰河技术 ”,关注并 选择“设为星标” 持之以恒,贵在坚持,每天进步一点点! 作者个人研发的在高并发场景下,提供的简单、稳定、可扩展的延迟消息队列框架,具有精准的定时任务和延迟队列处理功能。 自开源半年多以来,已成功为十几家中小型企业提供了精准定时调度方案,经受住了生产环境的考验。 为使更多童鞋受益,现给出开源框架地址: https://github.com/sunshinelyz/mykit-delay PS: 欢迎各位Star源码,也可以pr你牛逼哄哄的代码 。 写在前面 不少小伙伴让我整理下有关SpringCloud和SpringCloudAlibaba的知识点,经过3天的收集和整理,冰河整理出这份4万字的SpringCloud与SpringCloudAlibaba学习笔记!! 文章已收录到: https://github.com/sunshinelyz/technology-binghe https://gitee.com/binghe001/technology-binghe SpringCloud 服务注册中心 eureka ap 高可用 分布式容错 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix

iOS 14下面图片无法加载,包括weex、YYAnimateView、SDAnimatedImageView

≡放荡痞女 提交于 2021-02-10 17:53:57
升级xcode12后,编译运行App发现大片大片的图片加载不出来,包括weex的图片和YYAnimateView的图片都有问题。 经过一番研究之后,发现是iOS 14下UIKit对 `displayLayer:`的处理机制有所变化。 `displayLayer:`是`CALayerDelegate`的代理方法。在iOS 14之前,UIKit在调用这个方法之前就会去渲染`UIImageView.image`。 而在iOS 14,UIKit则是先去调用代理方法,如果你实现了`displayLayer:`这个方法,那么UIKit就不会再去渲染了。 如果改成下面这样就可以正常加载了: ``` - (void)displayLayer:(CALayer *)layer { UIImage *currentFrame = _curFrame; if (currentFrame) { layer.contentsScale = currentFrame.scale; layer.contents = (__bridge id)currentFrame.CGImage; } else { // If we have no animation frames, call super implementation. iOS 14+ UIImageView use this delegate method