自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

小人物的草稿本

自己的草稿笔记本,随便摘摘记记而已。

  • 博客(1032)
  • 资源 (7)
  • 问答 (1)
  • 收藏
  • 关注

原创 spring初学 摘记

spring简介        Spring的核心是个轻量级容器(container),实现了IoC(Inversion of Control)模式的容器,Spring的目标是实现一个全方位的整合框架,在Spring框架下实现多个子框架的组合,这些子框架之间彼此可以独立,也可以使用其它的框架方案加以替代,Spring希望提供one-stop shop的框架整合方案 Spring是一个轻量级

2016-10-16 21:13:48 4963

原创 重构总结 - 代码的坏味道

第3章代码的坏味道,总结了需要重构的因素1 Duplicated Code重复代码同一个类的两个函数还有相同的表达式;提炼代码; 两个互为兄弟的子类内含有相同的表达式;可以提炼相同代码,并放到父类中; 如果只是代码间相似,并非完全相同;那么可以将相似部分和差异部分拆开,构成单独的函数,然后你可以使用模板方法的设计模式。 如果两个毫不相关的类中出现重复代码;则可以将重复代码提炼...

2016-10-15 19:50:05 735

原创 springboot初学 摘记

最近搞了点后端 摘记下1. 什么是spring boot?     Spring boot基于spring,为了解决使用spring框架时配置繁多、部署流程复杂、开发效率低等问题,可以创建独立的应用程序,嵌入了tomcat、jetty等,可以直接启动应用程序而不需要外部的容器。    同时,spring boot可以自动配置spring应用,并且将一些框架的依赖包整合起来。比如

2016-09-30 16:17:40 865

原创 servlet初学 摘记

最近搞了一点后端 随便看了点 记录下。servlet 的作用    当使用交互式 Web 站点时,您所看到的所有内容都是在浏览器中显示的。在这些场景背后,有一个 Web 服务器接收会话中来自于您的请求,可能要切换到其他代码(可能位于其他服务器上)来处理该请求和访问数据,并生成在浏览器中显示的结果。     servlet 就是用于该过程的网守(gatekeeper)。它驻留在

2016-09-30 15:48:35 582

原创 ios pushViewController 无效果

当我们第一次实现页面跳转时,发现使用-(void)pushButtonPressed:(UIButton*)sender{ NSLog(@"dsfas"); SecondViewController *secondVC = [[SecondViewController alloc]init]; secondVC.labelString = _textLabel.text

2016-08-04 20:25:46 4563

原创 Java Web学习笔记 3 深入Servlet技术

第3章 深入Servlet技术请求-响应模式就是典型的Web应用程序访问过程,Java Web应用程序中,处理请求并发送响应的过程是由一种叫做Servlet的程序来完成的。请求request,响应response,与HTTP协议Telnet演示HTTP协议默认telnet关闭的,控制面板中,program and feathers

2015-11-15 20:24:43 2170

原创 Java Web学习笔记 1 Java Web开发概述/2 搭建Java Web开发环境

第一章 Java Web开发概述桌面程序也叫胖客户端程序RCP,需要安装使用。瘦客户端程序TCP,一般表现为Web程序,流行的“软件即服务”SAAS。网络程序分为B/S和C/S结构,C/S指客户端/服务器,需要安装RCP,与服务器进行数据交互,一般的网络程序都是。B/S指的是浏览器/服务器模式,一般网站都是。浏览器和Web服务器之间交互的桥梁:HTTP

2015-11-15 19:58:37 967

原创 JAVA异常处理机制

JAVA异常处理机制public class OnOffexception1 extends Exception {}public class OnOffexception2 extends Exception{}public class SwitchP265 { private boolean state =false; public boolean read(){

2015-11-10 10:03:46 505

原创 JAVA内部类是完全独立的实体,各自在自己的命名空间内

JAVA内部类是完全独立的实体,各自在自己的命名空间内package cm.java.Practic10;class Egg2 { protected class Yolk { public Yolk() { System.out.println("Egg2.Yolk()"); } public void f() { System.out.println(

2015-11-09 22:08:53 697

原创 Java内部类提供的闭包功能,比指针更灵活更安全

Java内部类提供的闭包功能,比指针更灵活更安全 package cm.java.Practic10;interface Incrementable { void increment();}class Callee1 implements Incrementable { private int i = 0; public void increment() { i++

2015-11-09 21:55:50 562

原创 Java普通方法与static方法的多态

Java普通方法与static方法的多态package cm.java.Practic8;class Super { public int field = 0; public int getField() { return field; } public static String staticGet() { return "Base staticGet()"; }

2015-11-09 21:26:31 748

原创 Bulls and Cows

Bulls and CowsYou are playing the following Bulls and Cows game with your friend: You write a 4-digit secret number and ask your friend to guess it. Each time your friend guesses a number,

2015-11-06 15:55:38 616

原创 Java类中继承与初始化

Java类中继承与初始化(包含static)package cm.java.Practic7;class Insect { private int i = 9; protected int j; Insect() { System.out.println("i = " + i + ",j = " + j); j = 39; } private static int x

2015-11-03 17:18:14 450

原创 Java类中字段和方法的初始化顺序(包含static)

Java类中字段和方法的初始化顺序(包含static)package cm.java.Practic5;class Bowl { Bowl(int marker) { System.out.println("Bowl(" + marker + ")"); } void f1(int marker) { System.out.println("f1(" + marker +

2015-10-30 16:32:59 818

原创 斯坦福大学公开课 iOS应用开发教程学习笔记(第九课)Table Views

斯坦福大学公开课 iOS应用开发教程学习笔记(第九课)Table Views1 Table ViewDisplay a dynamic list of  data.Or display a fixed table of data.subclass of UIScrollViewdatasource 负责提供表中数据 / delegate protocol 负责显

2015-10-27 21:04:01 553

原创 斯坦福大学公开课 iOS应用开发教程学习笔记(第八课)viewController生命周期/Image/Scroll/WebViews

斯坦福大学公开课 iOS应用开发教程学习笔记(第八课)viewController生命周期/Image/Scroll/WebViews1、View Controller Lifecycle  创建、存活、消亡creation 通过 一个segue创建VC或 故事版的instantiateViewControllerWithIdentifer:实例化。

2015-10-27 21:00:37 808

原创 斯坦福大学公开课 iOS应用开发教程学习笔记(第七课)UIToolbar、iPad 和iPhone的通用程序

第七课的主要内容:UIToolbar、iPad 和iPhone的通用程序1、UIToolbar上面放的都是UIBarButtonItem他们通常在屏幕的顶部或底部,一个工具栏九四UIBarBUttonItem的集合,行为像button,不是按钮。他们有target action。可以设置文字,图片等。flexible,fixed。这节课的Demo是把UITool

2015-10-27 16:41:22 714

原创 给Mac安装Win7,安装时在选择语言和最后一部输入用户名时鼠标键盘失灵的方法

1:问题错误信息:最近的硬件或软件更改了可能安装了未正确签名或损坏的文件,或者可能是来自未知源的恶意软件状态:0x0000428信息:Windows无法验证此文件的数字签名给Mac安装Win7,安装时在选择语言和最后一部输入用户名时鼠标键盘失灵。2:解决方案1以前mac装双系统都很简单,按照bootcamp的方法:1,在网上寻找win7纯净版ios,网上比较多,我拿

2015-10-23 15:21:55 26669 2

原创 Objective-C的基本类方法,举例

小练习,OC的基本语法方法等主要显示了,OC中各个方法类等基本的方法属性!整个项目的源码下载:https://github.com/junxianhu/OCbaseLanguage可以自己下载运行。主要贴一个ViewController.m的代码:@@ -0,0 +1,220 @@//// ViewController.m// OCbaseLanguage

2015-10-21 21:26:38 554

原创 斯坦福大学公开课 iOS应用开发教程学习笔记(第六课)多个MVC的程序和故事版、UINavigationController、 Segues

斯坦福大学公开课 iOS应用开发教程学习笔记(第六课)多个MVC的程序和故事版、UINavigationController、 Segues1、多个MVC前面的程序都是一个MVC,多个View时,怎么办,那就需要多个Controller。一个MVC一次只能控制一个屏幕或更小的区域。那如何切换两个MVC呢,用控制器群里的控制器:UINavigationContro

2015-10-21 21:21:54 697

原创 im Game nim游戏

im GameYou are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last

2015-10-20 11:26:51 815

原创 Binary Tree Maximum Path Sum 二叉树中任意路径的最大和

Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.For this problem, a path is defined as any sequence of nodes from some starting node to any node in the tree alon

2015-10-07 22:08:52 634

原创 斯坦福大学公开课 iOS应用开发教程学习笔记(第五课)Protocols,手势识别

斯坦福大学iOS应用开发教程学习笔记(第五课)Protocols,手势识别主要4部分组成:自动旋转、 Protocols、 手势识别、一个自定义UIView的Demo1、自动旋转- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation{return UII

2015-10-07 21:16:43 729

原创 Word Pattern 双重映射

Word PatternGiven a pattern and a string str, find if str follows the same pattern.Examples:pattern = "abba", str = "dog cat cat dog" should return true.pattern = "abba", str = "

2015-10-07 15:20:49 975

原创 Minimum Window Substring 最小窗口覆盖所有字串

Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For example,S = "ADOBECODEBANC"T = "

2015-09-28 11:30:12 611

原创 Binary Tree Postorder Traversal 非递归实现二叉树后序遍历

Binary Tree Postorder TraversalGiven a binary tree, return the postorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3retur

2015-09-25 11:09:42 937

原创 Move Zeroes 移动0的个数到数组末尾

Move ZeroesGiven an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3,

2015-09-25 10:57:39 651

原创 Lowest Common Ancestor of a Binary Tree 二叉树的公共祖先

Lowest Common Ancestor of a Binary TreeGiven a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.According to the definition of LCA on Wikipedia: “The lowes

2015-09-24 11:07:02 450

原创 House Robber 动态规划

House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them

2015-09-24 10:56:29 439

原创 Maximal Rectangle 二维矩形中最大的1个数

Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.class Solution {public:/*011011101001110111101

2015-09-23 16:22:57 585

原创 Largest Rectangle in Histogram 一排矩形中的最大的面积

Largest Rectangle in HistogramGiven n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.

2015-09-23 15:44:30 533

原创 Happy Number 数组变换循环判断

Happy NumberWrite an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by th

2015-09-23 11:10:55 434

原创 Kth Smallest Element in a BST 寻找二叉排序树中第k小元素

Kth Smallest Element in a BSTGiven a binary search tree, write a function kthSmallest to find the kth smallest element in it.Note: You may assume k is always valid, 1 ≤ k ≤ BST's total

2015-09-22 14:53:07 1152

原创 Remove Linked List Elements 删除链表中指定元素

Remove Linked List ElementsRemove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --> 3 -->

2015-09-22 14:38:45 535

原创 Number of Digit One 计算十进制1出现的个数

Number of Digit OneGiven an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n = 13,Return 6, because digit

2015-09-21 14:43:13 569

原创 Count Primes 筛选法求素数

Count PrimesDescription:Count the number of prime numbers less than a non-negative number, n.The Sieve of Eratosthenes uses an extra O(n) memory and its runtime complexity is O(n log

2015-09-21 14:15:28 439

原创 Majority Element II 寻找数组中出现次数大于n/3的数

Majority Element IIGiven an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.class Solution {pub

2015-09-19 16:40:05 411

原创 Isomorphic Strings 两个字符串的同构 map操作

Isomorphic StringsGiven two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character mu

2015-09-19 16:23:28 464

原创 Contains Duplicate 重复数的判断

Contains DuplicateGiven an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should retu

2015-09-18 11:09:56 414

原创 Rectangle Area 两个矩形的面积

Rectangle AreaFind the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure.

2015-09-18 11:08:39 497

JAVA WEB整合开发王者归来源代码

JAVA WEB整合开发王者归来源代码 各个章节详细的代码

2015-11-17

1.MVC.and.Introduction.to.Objective-C]

斯坦福大学iOS应用开发教程学习笔记(第一课) MVC/Objective-C。ppT课件

2015-08-26

一步一步学习ios编程

一步一步学习ios编程 文档清晰 书籍非常简单 明了 适合ios初学者

2015-06-09

趋势科技2013暑期夏令营笔试题

趋势科技2013暑期夏令营笔试题,笔试题目

2015-04-10

pthreads-w32-2-9-1-release.zip

pthreads-w32-2-9-1-release.zip

2014-11-18

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除