码迷,mamicode.com
首页 >  
搜索关键字:input source    ( 50636个结果
for语句的用法
#!/bin/bashfor i in 1 2 3 4 5 6do echo $idone看文件#!/bin/bashdir=$(ls /etc)for i in $dirdo echo $idone判断#!/bin/bashread -p "please input a dirname:" ...
分类:其他好文   时间:2014-05-16 03:21:30    阅读次数:279
getElementByName()方法和getter属性,及与getElementById()的区别
可以使用document.getElementByName()方法根据元素的name属性来获得元素。定义name属性的元素包括button、fieldset、input、keygen、output.select、textarea、form、iframe、object、map、meta、param。 getElementByName()获取的是具有相同name属性及值的集合,返回值类型是NodeL...
分类:其他好文   时间:2014-05-15 19:53:10    阅读次数:255
2004-view-animation-shake
介绍EditText颤抖的动画效果 Animation1.java /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except...
分类:其他好文   时间:2014-05-15 18:12:00    阅读次数:345
检索document(retrieving a document)
为了在ES中把document检索出来,我们使用_index,type,_id,但是请求的动作变为了GET:GET /website/blog/123?pretty响应的数据包括了我们已经熟悉的元素,另外还有使用JSON格式组织的document的_source字段,这个字段是我们存储的数据。{ "...
分类:其他好文   时间:2014-05-15 17:32:58    阅读次数:329
[leetcode]_Reverse Integer
经历了三道树的题后,完全崩溃中,急需一道非树图的题来挽救信心。题目:反转数字。input : 123 , output : 321.思路:直接,没什么好说的。自己代码:很龊,有大量的冗余信息,还申请了一个List,虽然AC了,但有很大改进空间。public int reverse(int x) { ...
分类:其他好文   时间:2014-05-15 14:22:31    阅读次数:212
centos java安装
1、下载java:jdk-7u51-linux-x64.tar.gzhttp://www.kuaipan.cn/file/id_175485603436042793.htm?source=12、移动jdk-7u51-linux-x64.tar.gz到/usr/localtar-zxvfjdk-7u51-linux-x64.tar.gz3、设置环境变量vi/etc/profile加入以下代码exportJAVA_HOME=/usr/local/java/jdk1.7.0..
分类:编程语言   时间:2014-05-15 12:35:10    阅读次数:359
8 Best Open-Source Ecommerce Platforms to Open Your Own Store
The modernization of world had led to coming of many businesses online. Businesses have realized the importance of coming up online. That is the main ...
分类:其他好文   时间:2014-05-15 10:14:55    阅读次数:364
数据处理之求和语句,retain语句
先看下面的一个例子:DATA A;INPUT X Y @@;S+X;DATALINES;3 5 7 9 20 21PROC PRINT;RUN;衍生的新变量s为与x变量的求和,我们看结果Obs X Y S1 3 5 3 ...
分类:其他好文   时间:2014-05-15 09:41:11    阅读次数:215
python学习笔记-抓取网页图片脚本
初学者一枚,代码都是模仿网上的。亲测可用~运行脚本的前提是本机安装了httplib2模块#!/usr/bin/python importos importre importstring importurllib #author:reed #date:2014-05-14 defGetWebPictures(): url=raw_input(‘pleaseinputthewebsiteyouwanttodownload:‘) imgconte..
分类:编程语言   时间:2014-05-15 09:03:42    阅读次数:385
xml解析-dom4j(比较流行,第三方提供)
需要导入dom4j的包,以提供dom4j的支持。 package day06_parser.dom4j; /**dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的 DOM4J是dom4j.org出品的一个开源XML解析包,它的网站中这样定义: Dom4j is an easy to use, open source library for working with ...
分类:其他好文   时间:2014-05-15 08:00:47    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!