- 博客(24)
- 收藏
- 关注
转载 React使用笔记(3)-React Event Listener
目录 1. 构造基本结构 2. 给<button>添加事件绑定 3. 给<input>添加事件绑定 Date: 2015-11-28 12:18Category: WebTags: JavaScriptAuthor: 刘理想1. 构造基本结构...
2015-11-28 13:27:00
208
转载 React使用笔记2-React Components的生命周期
目录 1. React Components的生命周期 2. React Components生命周期中的hook函数 2.1 实验,来添加mount的hook函数 2.2 如何修改state呢? 2.3 Update阶段 2.4 Unmounting阶段...
2015-11-28 12:13:00
170
转载 React使用笔记1-React的JSX和Style
目录 1. 文件基本结构 2. 添加样式 2.1 使用外部CSS样式 2.2 使用内联CSS样式 React使用笔记1-React的JSX和StyleDate: 2015-11-27 20:56Category: WebTags: J...
2015-11-28 11:55:00
186
转载 使用wfastcgi在IIS上部署Python Flask应用
本文介绍了如何在Windows上部署Python Flask应用,相关环境如下:操作系统:windows 7Python:3.4WFastCGI: 2.2应用所用到的包版本如下:Flask==0.10.1Flask-SQLAlchemy==2.1itsdangerous==0.24Jinja2==2.8MarkupSafe==0.23pyodbc==3.0.10...
2015-11-27 09:05:00
455
转载 Python数据分析扩展库
Anaconda和Python(x,y)都自带了下面的这些库。1. NumPy强大的ndarray和ufunc函数。import numpy as npxArray = np.ones((3, 4))xArrayOut[3]: array([[ 1., 1., 1., 1.], [ 1., 1., 1., 1.], [ 1., 1....
2015-11-25 13:11:00
203
转载 PhoneGap笔记-01 基本使用
1. 环境配置1.1 常用框架jQueryBackbone.jsdojobootstrapkendo UISenchajQuery MobilePhoneJSAngularJSICENIUM1.2 Node.js下载并安装nodejs1.3 iOS下载Xcode打开Xcode1.4 Android将E:\adt\sdk\platform-too...
2015-03-14 20:34:00
179
转载 Android Launcher label和Main Activity保持不一致
最近在开发一个库存管理的App,AndroidMainifest.xml中是这样设定的: <application android:allowBackup="true" android:icon="@drawable/app_icon" android:label="@string/app_name" andr...
2015-02-27 11:09:00
191
转载 ASP.NET MVC5 学习笔记-5 测试
1. 测试步骤准备执行检查2. 创建单元测试注意:单元测试不要包含数据库操作,包含数据库操作的一般成为集成测试。2.1 编写测试代码namespace AspNetMVCEssential.Tests.Controllers{ [TestClass] public class HomeControllerTest { [Test...
2015-02-25 11:16:00
139
转载 ASP.NET MVC5 学习笔记-4 OWIN和Katana
1. OwinOWIN全名:Open Web Interface for .NET. 它是一个说明,而非一个框架,该声明用来实现Web服务器和框架的松耦合。它提供了模块化、轻量级和便携的设计。类似Node.js, WSGI.Katana是微软实现的OWIN组件的集合。包含基础设施组件和功能性组件。并且暴露出了OWIN管道用来添加组件。可以在IIS、OwinHost.exe或者自定义的...
2015-02-25 11:15:00
246
转载 ASP.NET MVC5 学习笔记-3 Model
1. Model1.1 添加一个模型注意,添加属性时可以输入"prop",会自动输入代码段。public class CheckoutAccount{ public int Id { get; set; } public string AccountNumber { get; set; } public string FirstName { get; ...
2015-02-25 11:10:00
284
转载 ASP.NET MVC5 学习笔记-2 Razor
1. Razor@*注释*@你在用 @Request.Browser.Browser, 发送邮件给support@qq.com, 转义@@qq@{ var amounts = new List<Decimal> {100, 25.00m, 30.0m, -40}; }<ul> @foreach (decimal amount in ...
2015-02-25 11:08:00
138
转载 ASP.NET MVC5 学习笔记-1 控制器、路由、返回类型、选择器、过滤器
目录 1. Action 1.1 新建项目 1.2 控制器 2. 路由 2.1 路由规则 2.2 路由定义RouteConfig.cs 3 返回类型 3.1 PartialViewResu...
2015-02-25 11:05:00
135
转载 [翻译]Django速查表
原文在此:https://code.djangoproject.com/wiki/DjangoCheatSheetDjango速查表Django教程已经非常好了。这个速查表的作用是创建一个快速开始指南,以便在读过一两遍教程之后能有一个更好的手册。创建一个项目…django-admin.py startproject AcmeIntranetcd AcmeIntrane...
2014-03-04 21:16:00
140
转载 部署django - Apache + mod_wsgi + windows
部署django - Apache + mod_wsgi + windows1、环境django 1.6.2python 3.3 32位apache2.4.7 32位一个可以使用的django project(https://github.com/liulixiang1988/python_study_case/tree/master/django)...
2014-02-10 15:45:00
139
转载 python优秀库 - 使用envelopes发送邮件
这里有一个使用python自带lib发送邮件的例子(http://my.oschina.net/leejun2005/blog/74416),这里面讲解的很全面,可以供大家参考。今天将的是使用envelopes这个第三方库来发送邮件。既然已经有了python自带的标准库,为什么还要使用这个呢?因为简单易用啊。envelopes项目地址:https://github.com/tom...
2014-02-08 11:47:00
300
转载 python优秀库 - 使用xmltodict解析xml文档
上次讲到如何使用BeautifulSoup解析XML文档,今天发现另外一个python库xmltodict(https://github.com/martinblech/xmltodict)也很简单。小例子一枚,因为很简单,不需要太多说明#!/usr/bin/env python# -*- coding:utf-8 -*-__author__ = 'liulixi...
2014-02-08 10:53:00
656
转载 iOS显示PDF
使用UIWebView来显示//locale fileNSString *html = [NSString stringWithContentsOfFile:path1 encoding:NSUTF8StringEncoding error:nil];[self.webView loadHTMLString:html baseURL:[NSURL fileURLWithP...
2014-01-28 21:16:00
124
转载 使用BeautifulSoup解析XML文档
有200多个XML文档,每个文档类似如下:<?xml version="1.0"?><VehicleInfo> <FileHeader> <ScaleInfo> <SN>H00120030101081526</SN> <UserName>盛隆钢铁&l...
2014-01-23 11:27:00
309
转载 Dapper 基础用法
Dapper是.Net下的一个简单orm框架,具有以下特点:1、简单,只需要一个文件即可(SqlMapper.cs)2、快速,下面是一个查询结果集在500以上的运行速度对比3、不要求特定的db provider,即不论是sqlite, sqlce, firebird, oracle, MySQL 还是 SQL Server,都能使用它。项目的github地址是:htt...
2013-09-22 21:41:00
420
转载 【整理】Python中字符串与时间的转换与计算
一、string time datetime之间的相互转换1、string->time>>> time.strptime('2012-08-04', '%Y-%m-%d')time.struct_time(tm_year=2012, tm_mon=8, tm_mday=4, tm_hour=0, tm_min=0, tm_sec=0, tm_wda...
2012-08-04 20:12:00
109
转载 Simple Box
转载自:http://sperling.com/examples/box/Note:this is a box with rounded corners. I have reviewed the available references and found similar solutions, but none that do it this way.✓ This box w...
2011-06-07 09:12:00
156
转载 构建可扩展程序
简要说明:可扩展程序包括三个部分,第一部分是个接口程序,包含IAppFunctionality接口,所有扩展都要实现该接口,第二部分是扩展,实现IAppFunctionality,第三部分是主程序,它检测与它同级目录下是否有plugins文件夹,如果没有,就创建,如果有,查找该目录下所有实现IAppFunctionality接口的程序集,并更新菜单。未添加扩展(即plugins下无dl...
2011-06-02 10:30:00
130
转载 SerialPort (RS-232 Serial COM Port) in C# .NET
This article is about communicating through the PC's Serial COM RS-232 port using Microsoft .NET 2.0 or later by using the System.IO.Ports.SerialPort class. If you're looking for USB info,see h...
2011-05-04 17:08:00
1067
转载 Python学习笔记——String、Sequences
一、input()与raw_input()的区别代码 1 >>> buck = input("Enter your name: ") 2 Enter your name: liu 3 4 Traceback (most recent call last): 5 File "<pyshell#1>", line 1, in <mo...
2010-05-25 12:09:00
223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人