-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (90 loc) · 5.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<div class="index">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="Hugo 0.14" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Lobster'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
<link rel="stylesheet" href="/css/styles.css">
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://ccjeaty.github.io//index.xml">
<title>Logs</title>
<meta property='og:title' content="Logs">
<meta property="og:type" content="website">
<meta property="og:url" content="http://ccjeaty.github.io/">
</head>
<body>
<div class="container-fluid">
<header class="site">
<div class="title"><a href="http://ccjeaty.github.io/">Logs</a></div>
</header>
</div>
<div class="container site">
<article class="li">
<a href="http://ccjeaty.github.io/FarBox/posts/mysql%E7%AE%A1%E7%90%86/" class="clearfix">
<div class="pull-left image"></div>
<div class="detail">
<time>Thu, Mar 10, 2016</time>
<h2 class="title">mysql 管理</h2>
<div class="summary">##重设用户密码 sql set password for 'fred'@'localhost'=password('passwd'); flush privileges;</div>
</div>
</a>
</article>
<article class="li">
<a href="http://ccjeaty.github.io/blog/2016/01/05/clojure-functional-programming/" class="clearfix">
<div class="pull-left image"></div>
<div class="detail">
<time>Tue, Jan 5, 2016</time>
<h2 class="title">clojure functional programming</h2>
<div class="summary">Clojure函数式编程 [toc] 函数 一等函数 函数在clj里面是一等公民;指的是函数可以被当做普通数据对待,具有以下特性: 可以按需创建 可以在数据结构中存储 可以当做函数实参 可以当做函数返回值 这此特性可以为程序提供更多的灵活性. 闭包 闭包指的是函数可以访问成员变量,一般需要函数A返回一个函数B,在返回函数B里持有函数A的成员变量,形成一个闭包。 也可以看做是函数定制的一种手段 (defn repeat-n [n] (fn [num] (* n num))) (def repeat-2 (repeat-n 2)) (repeat-2 5) ;;=> 10 尾递归 尾递归顾名思义,是指在函数尾部进行了递归调用. 与一般的递归区别于返回方式&资源释放. 一般递归需要依次返回,返回值是由首次调用函数返回的,资源需要返回后才能被释放.如递归调用函数A,A1调用A2最终返回值是由A2返回给A1,A1再返回给caller. 并且在A2执行时, A1的资源不会被释放.所以调用时要考虑递归层级问题,如果层级太深会发生堆栈溢出. 尾递归是在A2执行时,A1的资源会被释放,并且最终返回结果是由A2直接返回给caller.所以在调用时,不会出现溢出问题. jvm并不支持尾递 ;;一般递归 (defn pow [base exp] "计算base的exp次幂" (if (zero? exp) 1 (* base (pow base (dec exp)))) ) ;;尾递归版本(clojure版本) (defn pow (base exp) (letfn [(kapow [base exp sum] (if (zero? exp) sum (recure base</div>
</div>
</a>
</article>
<article class="li">
<a href="http://ccjeaty.github.io/blog/1/01/01/" class="clearfix">
<div class="pull-left image"></div>
<div class="detail">
<time>Mon, Jan 1, 0001</time>
<h2 class="title"></h2>
<div class="summary">Idea 常用快捷键 [TOC] 文本操作类 文件搜索 C-F / C-R anywhere Shift + Shift (注意输入法切换冲突)</div>
</div>
</a>
</article>
<article class="li">
<a href="http://ccjeaty.github.io/blog/1/01/01/" class="clearfix">
<div class="pull-left image"></div>
<div class="detail">
<time>Mon, Jan 1, 0001</time>
<h2 class="title"></h2>
<div class="summary">Test TODO (defn test [size] (map #(prn %) size)) zhongwen I’m e</div>
</div>
</a>
</article>
<article class="li">
<a href="http://ccjeaty.github.io/blog/1/01/01/" class="clearfix">
<div class="pull-left image"></div>
<div class="detail">
<time>Mon, Jan 1, 0001</time>
<h2 class="title"></h2>
<div class="summary">常用软件 bubun idea typora markdown listary navicat</div>
</div>
</a>
</article>
</div>
<div class="container-fluid">
<footer class="site">
<p>© 2016 Logs</p>
<p>Powered by <a href="http://gohugo.io" target="_blank">Hugo</a>,</p>
<p>Theme <a href="https://github.com/dim0627/hugo_theme_aglaus" target="_blank">Aglaus</a> designed by <a href="http://yet.unresolved.xyz" target="_blank">Daisuke Tsuji</a></p>
</footer>
</div>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>
</div>