Justin's Words


  • Home

  • About

  • Archives
Justin's Words

解析多文件上传 - PHP

Posted on 2014-08-16 | In PHP |

解析多文件上传

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
function parseMultiFileUpload($file, $e = false) {
$arr = [];
foreach ($file as $key => $value) {
foreach ($file[$key] as $k => $v) {
if (!$e) {
if ($file['error'][$k] != 0) {
continue;
}
}
$arr[$k][$key] = $file[$key][$k];
}
}
return $arr;
}
?>
Justin's Words

The travel guide of Macau

Posted on 2014-08-13 | In NoneTech |
Justin's Words

UNRAVEL 初音版异常地好听(^o^)/~

Posted on 2014-08-08 | In NoneTech |

简直洗脑循环!!!

Justin's Words

PHPass 用法

Posted on 2014-08-06 | In PHP |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
#
# http://www.openwall.com/phpass/
# http://sunnyis.me/blog/secure-passwords/
#

requeir("PasswordHash.php");

## Creating the Hash
$password = $_REQUEST['password'];

$hasher = new PasswordHash(8, false);
$hash = $header->HashPassword($password); // you can store the hash somewhere such as database

## Checking "Matched" Passwords
$password = $_REQUEST['password'];

$hasher = new PasswordHash(8, false);
$stored_hash = "this is the hash we stored ealier";

$check = $hasher->CheckPassword($password, $stored_hash); // return true if match or false if not match

?>
Justin's Words

FadeIn on Scroll

Posted on 2014-07-30 | In Front-End |

FadeIn on Scroll

Justin's Words

政府监视

Posted on 2014-07-21 | In NoneTech |

本视频来自网易公开课。

政府监视——这只是个开始

Justin's Words

本人作品一览

Posted on 2014-07-07 | In Front-End |

以下作品为本人在校期间外包完成的,均为国外项目,全部使用 HTML5:

  1. http://9.youngdze.sinaapp.com/baxter/

    Read more »
Justin's Words

自定义 select option 控件

Posted on 2014-07-03 | In Front-End |

好吧找遍整个 Google 都找不到符合要求的 jQuery 插件来制作我需要的 select option 控件样式, 索性自己写了。
Github: https://github.com/youngdze/CustomSelect

Demo preview:

select.PNG

Justin's Words

jQuery 插件 fancybox 使用指南

Posted on 2014-07-01 | In Front-End |

fancybox 是一个能让页面弹出自定义窗口的 jQuery 插件,可以直接去它的 Github 主页看看。 本文只介绍该插件最常被用到的场合,即点击一个链接弹出自定义 <div> 窗口。

获取插件

通过 Git

1
$ git clone https://github.com/fancyapps/fancyBox.git
Read more »
Justin's Words

Google Changes the World

Posted on 2014-06-26 | In Uncategorized |

来自 Verge 制作的视频,Google Changes the world!

1…91011
Justin Young

Justin Young

You Deserve A Better Life

107 posts
15 categories
54 tags
RSS
Github Twitter
© 2014 - 2019 Justin Young
Powered by Hexo
Theme - NexT.Mist