首页 新闻 论坛 群组 Blog 文档 下载 读书 Tag 网摘 搜索 .NET Java 游戏 视频 人才 外包 数据库 第二书店 程序员

Tag/ 


共17个网摘 [ 1 ]   |  

RE: substrings in BASH-shells

AppZ收录,使用标签:bash, substring, function, collect, learn,时间:2008-9-18 16:10:33 | 相关网摘我也收藏

A snippet from the man page for bash:

${parameter:offset:length}
Substring Expansion. Expands to up to length char-
acters of parameter, starting at offset. If length
is omitted, expands to the substring of parameter,
starting at the character specified by offset.
length and offset are arithmetic expressions (see
ARITHMETIC EVALUATION below). length must evaluate
to a number greater than or equal to zero. If off-
set evaluates to a number less than zero, the value
is used as an offset from the end of the value of
parameter. If parameter is @, the result is length
positional parameters beginning at offset. If
parameter is an array name indexed by @ or *, the
result is the length members of the array beginning
with ${parameter[offset]}. Substring indexing is
zero-based unless the positional parameters are
used, in which case the indexing starts at 1.


10 Useful JavaScript Regular Expression Functions to improve your web applications efficiency - Ntt.cc

stickyman收录,使用标签:function, JavaScript, Regular, Expression,时间:2008-5-10 13:16:23 | 相关网摘我也收藏

Some Regular expressions have been used. Regular expressions are very powerful tools for performing pattern matches.And validating user input is the bane of every software developer existence. But these patterns used in RegExp can be very simple. Fortunately, JavaScript 1.2 has incorporated regular expressions.JavaScript has an alternate syntax for creating Regular Expression objects that implicitly calls the RegExp constructor function.A regular expression pattern is composed of simple characters, such as /abc/, the syntax for that method is the following:


6 very basic but very useful JavaScript Number Format Functions for web developers - Ntt.cc

stickyman收录,使用标签:Format, function, JavaScript, Number,时间:2008-4-25 21:52:37 | 相关网摘我也收藏

How number is treated in JavaScript? JavaScript is loosely typed and the plus operator also concatenates, you can easily convert JavaScript Numbers to Strings similar to this: 1 “”, but as we all know that JavaScript doesn’t have many built-in methods to format numbers. Most of the time we need to write our customized code to do it.The following is 6 very useful JavaScript number format function,why have to re-inventing the wheel? Don’t waste your valuable time to write it by yourself, only copy what you like and use it!


JavaScript function-Splits the string by given separator and returns an array with trimmed items - Ntt.cc

stickyman收录,使用标签:function, JavaScript, separator, Split, string,时间:2008-1-31 23:58:20 | 相关网摘我也收藏

This extension splits the string by given separator and returns an array with trimmed items. It uses the trim() extension at trim a string from white space by JavaScript function or Another JavaScript function for trim a string from white space.


trim a string from white space by JavaScript function - Ntt.cc

stickyman收录,使用标签:code, function, JavaScript, prototype, trim,时间:2008-1-19 0:40:45 | 相关网摘我也收藏

Some times we need to trim a string from white space at the front and end,even all in the string.How can we do that elegantly?Add the following string prototype function to your code. You will call it like predefined String member functions like Substring(),charAt() and indexOf().
The code below shows the function declaration and how to use it.


Call to undefined function mysql_create_db() - happyboy的专栏 - CSDNBlog

amio收录,使用标签:function, mysql_create_db(), , MySQL, 4.x不支持,时间:2007-11-15 22:58:21 | 相关网摘我也收藏

其实你在PHP手册上搜索mysql_create_db(),你就会发现有这样一条警告:

警告:
如果 MySQL 扩展库是基于 MySQL 4.x 客户端库建立的,则本函数不可用。


eTech - Amy Jo Kim

saucer收录,使用标签:Game, Function,时间:2007-10-23 3:05:19 | 相关网摘我也收藏

How can we use game mechanics to create compelling services and applications, even if those are not games.

How can games shape behaviour? By leveraging our basic, primal response patterns. Schedules of reinforcement (giving rewards within a certain schedule)

How to make interactive experience more addictive? By finding inspiration in 5 game mechanics.


SQL函数 - txz2003的专�?- CSDNBlog

qiangshenglin收录,使用标签:sql, 函数, function,时间:2007-9-17 17:08:03 | 相关网摘我也收藏

函数是一种有零个或多个参数并且有一个返回值的程序。在SQL中Oracle内建了一系列函数,这些函数都可被称为SQL或PL/SQL语句,函数主要分为两大类:
   单行函数



共17个网摘 [ 1 ] 

Tag/相关标签



    网站简介广告服务网站地图帮助联系方式诚聘英才English 问题报告
    北京创新乐知广告有限公司 版权所有 京 ICP 证 070598 号
    Copyright © 2000-2008, CSDN.NET, All Rights Reserved