主要来自 Scala 语言发明人 Martin Odersky 教授的 Coursera 课程 《Functional Programming Principles in Scala》。2. Higher Order Functions把其他函数作为参数或者作为返回值,就是 higher order...
分类:
其他好文 时间:
2014-07-07 23:27:55
阅读次数:
412
alias ll='ls -al'use_color=false# Set colorful PS1 only on colorful terminals.# dircolors --print-database uses its own built-in database# instead of ...
分类:
其他好文 时间:
2014-07-07 13:41:54
阅读次数:
245
--mysql阅读收录-----------------2014/07/02# 复制相关:1. 解释基于语句的复制中怎样处理functions,triggers,events和auto_increment键Statement based replication with Stored Functio...
分类:
数据库 时间:
2014-07-02 15:11:08
阅读次数:
187
daniel@daniel-mint ~/msf/metasploit-framework $ ruby msfpayload windows/exec CMD=calc.exe CWARNING: Nokogiri was built against LibXML version 2.8.0, b...
分类:
其他好文 时间:
2014-07-01 16:48:05
阅读次数:
267
DAL:IUserDALnamespace Dal{ /// /// This interface is defined for user functions. /// public interface IUserDal { #region Retur...
分类:
其他好文 时间:
2014-07-01 00:43:02
阅读次数:
308
Swift’s API includes many functions and instance methods that reflect its functional programming heritage. A prime example is calledreduce.You can red...
分类:
移动开发 时间:
2014-07-01 00:27:22
阅读次数:
329
本人自己录制的swift菜鸟入门,欢迎大家拍砖,有什么问题可以在这里留言。 主要内容: 函数定义与调用(Defining and Calling Functions) 函数参数与返回值(Function Parameters and Return Values) 函数参数名称(Function Parameter Names) 函数类型(Function Types) 函数嵌套(Nested Fu...
分类:
其他好文 时间:
2014-06-30 16:35:58
阅读次数:
235
Blocks are a way to define a block of code that you will use at a later time.Sometimes people refer to blocks as anonymous functions because they are ...
分类:
其他好文 时间:
2014-06-30 15:21:04
阅读次数:
220
Functions and Closures 函数和封闭性(闭包)Functions 函数的使用Swift中的函数定义和OC中有明显的差别了,使用func定义函数,在括号里定义參数和类型,用 -> 定义返回值类型func greet(name: String, day: String) -> Str...
分类:
其他好文 时间:
2014-06-29 19:26:28
阅读次数:
209
最近在尝试使用Zsh,发现其补全命令的功能相当厉害。但对CMake命令的补全在默认的5.0.5中好像没有看到,网上找了下关于配置Zsh补全的文章也没有多少。 于是自己动手,发现在Zsh安装目录下有个functions的文件夹,里面都有以_开头的各种补全提示文件,比如_sed,_awk等,于是尝试.....
分类:
其他好文 时间:
2014-06-26 12:55:10
阅读次数:
199