码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
重构第5天:提升字段(Pull Up Field)
理解:提升字段和前面讲解的方法提公很类似,可以说方式都是一样的。就是把继承类中经常用到的字段,提出来 放到基类中,达到通用的目的。提高代码重用性和可维护性。 详解:如下重构前的代码: 从代码乐意看出,Account类的继承类CheckingAccount和SavingsAccount都有一个相同的字
分类:其他好文   时间:2016-03-16 22:34:14    阅读次数:353
CentOS 7.1 Bridge启用STP报错"Master connection not found or invalid"
今天在公司测试Linux bridge搭建,为了使内部docker容器的网络能够不经过2层封装转发对外公布,顾试用一下bridge功能,结果碰到报错:"Bringing up interface eno16777736: Error: Connection activation failed: Ma
分类:其他好文   时间:2016-03-16 12:15:25    阅读次数:707
UGUI动态改变Grid大小
工作中经常需要用到Grid,动态添加物体时,就需要动态改变Grid大小。直接写好脚本,以后COPY。 using UnityEngine;using System.Collections;using UnityEngine.UI;using System; public class Colve_Up
分类:其他好文   时间:2016-03-16 07:04:05    阅读次数:583
运维安全
一、服务器配置1、软件包选择:全不选,安装最小化的系统,不安装图形界面2、root密码:必须超过8位,并且有符号和字母数字。3、精简服务:关掉以下服务项kudzucpuspeedisdnportmapnfslockrpcidmapdrpcgssdbluetoothnetfspcscdapmdhiddautofshplipcupsgpmxfsavahi-daemonyum-up..
分类:其他好文   时间:2016-03-16 01:41:18    阅读次数:171
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F
分类:其他好文   时间:2016-03-15 23:16:23    阅读次数:187
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex
分类:其他好文   时间:2016-03-15 20:34:17    阅读次数:169
Leet Code OJ 1. Two Sum [Difficulty: Easy]
题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example: Given nums = [2, 7...
分类:其他好文   时间:2016-03-15 14:57:51    阅读次数:172
lintcode-medium-Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). Give
分类:其他好文   时间:2016-03-14 18:34:10    阅读次数:147
jsp三种注释方法
HTML注释(输出注释):指在客户端查看源代码时能看见注释。例如, <!-- this is an html comment.it will show up int the response. --> JSP页注释(隐藏注释):指注释虽然写在JSP程序中,但不会发送给客户,因此在客户端查看源代码时不
分类:Web程序   时间:2016-03-14 09:28:35    阅读次数:154
Flappy Bird (Java实现)
 bg_day.png bird0_01.png land.png pipe_up.png pipe_down.png number_score_00.png~number_score_09.png    (数字均为白色,图片背景为透明。为能够在博客中显示出来,特设置为灰色背景)  
分类:移动开发   时间:2016-03-14 00:05:11    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!