- 使用者可以登入 / 登出
- 使用者可以使用 Facebook 登入 https://github.com/xdite/auto-facebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
/** | |
* Converts to and from JSON format. | |
* | |
* JSON (JavaScript Object Notation) is a lightweight data-interchange | |
* format. It is easy for humans to read and write. It is easy for machines | |
* to parse and generate. It is based on a subset of the JavaScript | |
* Programming Language, Standard ECMA-262 3rd Edition - December 1999. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* JSON data to html table | |
* | |
* @param object $data | |
* | |
*/ | |
function jsonToTable ($data) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'raphael-rails' | |
gem 'morrisjs-rails' | |
gem 'gon' | |
#... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$max_file_size = 5*1024*1024; //5MB | |
$path = "admin/upload/"; // Upload directory | |
//$count = 0; // nr.successfully uploaded files | |
$valid_formats = array("rar","zip","7z","pdf","xlsx","xls","docx","doc","txt"); | |
$valid_formats_server = array( | |
"application/pdf", | |
"application/octet-stream", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/node_modules | |
/public/storage | |
/storage/*.key | |
/vendor | |
Homestead.yaml | |
Homestead.json | |
.env | |
# ====== OS X =========================================== | |
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cask_args appdir: '/Applications' | |
tap 'caskroom/cask' | |
tap "homebrew/cask-fonts" | |
tap 'caskroom/versions' | |
tap "homebrew/bundle" | |
tap "homebrew/core" | |
tap "homebrew/services" | |
tap "hsatac/toybox" | |
brew "coreutils" | |
brew "gnu-sed" |
Run the two commands below one at a time to get Samba 3 installed and to have it run on boot.
Install Samba with Homebrew
brew install samba
OlderNewer