码迷,mamicode.com
首页 > 其他好文
git使用sshkey免密码登陆
最近在oschina上托管项目,oschina上的项目都是用git来管理。git有个很麻烦的地方就是每次提交代码,都要求输入oschina的用户名和密码进行验证,极大的影响效率。oschina提供了SSH Key访问的方法,该方法只要在oschina上添加公钥,在本地使用密钥就可以免密码连接, 参考教程。 首先用ssh-keygen生成sshkey ssh-keygen -t...
分类:其他好文   时间:2015-07-10 09:33:07    阅读次数:194
【Scala】使用Option、Either和Try处理数据交互
Scala数据交互Scala使用一种函数式的方式来处理数据交互,包括入参及返回值。 Option: 解决null(空指针)问题 Either: 解决返回值不确定(返回两个值的其中一个)问题 Try: 解决函数可能会抛出异常问题 Option/Some/None的使用Option实际上有3个类型:Option、Some和None,Some和None都是Option的子类型,So...
分类:其他好文   时间:2015-07-10 09:33:00    阅读次数:138
217 Contains Duplicate
217 Contains Duplicate链接:https://leetcode.com/problems/contains-duplicate/ 问题描述: Given an array of integers, find if the array contains any duplicates. Your function should return true if any valu...
分类:其他好文   时间:2015-07-10 09:34:14    阅读次数:118
maven 安装
maven windo 环境配置 必须在安装jdk 的前提下 jdk下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 第一步首先到网上下载maven包:http://maven.apache.org/download.cgi# 第二步:环境变...
分类:其他好文   时间:2015-07-10 09:31:35    阅读次数:185
【数字图像处理之四】图像的放大缩小旋转
数字图像处理之放大,缩小,旋转...
分类:其他好文   时间:2015-07-10 09:32:42    阅读次数:222
poj3253Fence Repair 解题题解
Fence Repair Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 30807   Accepted: 9947 Description Farmer John wants to repair a small length of the fence aroun...
分类:其他好文   时间:2015-07-10 09:31:20    阅读次数:119
Rust中文翻译17
4.2.4 文档测试 没有什么比带有示例的文档更好的了.也没有什么比不能工作的例子更糟的了,因为有可能文档中的代码已经修改了.为此,Rust支持自动测试我们示例代码.让我们看一个富有血肉的src/lib.rs的例子: //! The àdder` crate provides functions that add numbers to other numbers. //! //...
分类:其他好文   时间:2015-07-10 09:31:30    阅读次数:258
LeetCode || Two Sum
在解决本道题时,最先想到的思路是用两个指针,一个在前,一个紧随其后。然后后面的指针的不断向后移动直到找到匹配的元素或者到达数组的末端。再不断进行下次迭代。代码如下:#include #include using namespace std;class Solution { public: vector twoSum(vector& nu...
分类:其他好文   时间:2015-07-10 09:32:42    阅读次数:128
leetcode Reverse integer
题目: Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321Here are some good questions to ask before coding. Bonus points for you if you have already though...
分类:其他好文   时间:2015-07-10 09:30:30    阅读次数:107
【安全加密技术】--对称加密
转载请注明出处:http://blog.csdn.net/sk719887916/article/details/46822663       上篇了解了《非对称加密》后 今天我来继续了解下加密技术中对称加密。   对称加密       对称加密是最传统的加密方式,比上非对称加密,缺少安全性,但是它依旧是用的比较多的加密方法。       对称加密采用单密钥加密方式,不论是加密还是...
分类:其他好文   时间:2015-07-10 09:31:14    阅读次数:166
219 Contains Duplicate II
219 Contains Duplicate II链接:https://leetcode.com/problems/contains-duplicate-ii/ 问题描述: Given an array of integers and an integer k, find out whether there there are two distinct indices i and j in...
分类:其他好文   时间:2015-07-10 09:30:38    阅读次数:113
leetCode 39.Combination Sum(组合总和) 解题思路和方法
Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from...
分类:其他好文   时间:2015-07-10 09:29:59    阅读次数:424
NFA到DFA的转换
#include #include #include #include #include #include #define MAX 100 using namespace std; struct edge { char preNode; //节点表示只能用单个字符 char nex...
分类:其他好文   时间:2015-07-10 09:31:38    阅读次数:211
ZOJ 3864 Quiz for EXO-L
题目链接:Quiz for EXO-L 题面: B - Quiz for EXO-L Time Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Practice ZOJ 3864 Description Exo (Korea...
分类:其他好文   时间:2015-07-10 09:30:10    阅读次数:113
UVA 12293 Box Game(博弈入门)
题目链接:Box Game 题面:                                                                  12293 Box Game There are two identical boxes. One of them contains n balls, while the other box contains one...
分类:其他好文   时间:2015-07-10 09:31:24    阅读次数:157
qml 隐藏技——去掉让人烦恼的红色下划线
去掉qml恼人的红色下划线...
分类:其他好文   时间:2015-07-10 09:29:34    阅读次数:332
leetCode 40.Combination Sum II(组合总和II) 解题思路和方法
Combination Sum II Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used...
分类:其他好文   时间:2015-07-10 09:30:20    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!