This file contains hidden or 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 | |
/** | |
* Displays a form to edit an existing User entity. | |
* | |
* @Route("/{id}/edit", name="user_edit") | |
* @Method("GET") | |
* @Template() | |
*/ | |
public function editAction( User $entity ) |
This file contains hidden or 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 | |
class CountMe implements Countable { | |
protected $_myCount = 3; | |
public function count() { | |
return $this->_myCount; | |
} | |
} |
This file contains hidden or 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
<!doctype html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>js prototype 和__proto__簡單demo</title> | |
</head> | |
<body> | |
<script> | |
var Person = function () { |
This file contains hidden or 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
<!doctype html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>透過拖放實現新增 , 刪除 </title> | |
<script src="//code.jquery.com/jquery-1.9.1.js"></script> | |
</head> | |
<body> | |
<div style="width: 600px ;border:1px solid #000"> | |
<h2>可將喜歡的項目拖入收藏夾</h2> |
This file contains hidden or 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
<!doctype html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript函式獨立性</title> | |
</head> | |
<body> | |
</body> | |
<script> |
This file contains hidden or 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
<!doctype html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Javascript函式獨立性</title> | |
</head> | |
<body> | |
</body> | |
<script> |
This file contains hidden or 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
<select> | |
<option value="0">請選擇</option> | |
<option value="1">貓物語( 白 ) op</option> | |
<option value="2">戰場原 op</option> | |
<option value="3">未聞花名 op</option> | |
<option value="4">千石撫子 op1</option> | |
<option value="5">神原駿河 op</option> | |
<option value="6">八九寺真宵 op1</option> | |
<option value="7">傾物語 op</option> | |
<option value="8">偽物語(火憐) op</option> |
This file contains hidden or 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
<!doctype html> | |
<html lang="zh-tw"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>pushState和replaceState介紹</title> | |
<link rel="stylesheet" href="//addyosmani.github.io/jquery-ui-bootstrap/css/custom-theme/jquery-ui-1.10.3.custom.css"> | |
<script src="//code.jquery.com/jquery-1.9.1.js"></script> | |
<script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
$(function () { | |
var inStoreReportApp = (function () { | |
var | |
// Handle user's motion on DOM | |
controller = { | |
// Click specific button to submit form |
This file contains hidden or 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
int result = 1 | |
for(i=0;i<10;i++) | |
{ | |
result = result*2; | |
} | |
printf(" %d",result); |