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
module Ex25 | |
# This function will break up words for us. | |
def Ex25.break_words(stuff) | |
words = stuff.split(' ') | |
return words | |
end | |
# Sorts the words. | |
def Ex25.sort_words(words) |
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
// year + department | |
// X1032 + B402 | |
var department = 'X1032B402'; | |
var start = 101; | |
var end = 2000; | |
var className; | |
var row; |
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
<a href="#myModal" role="button" class="btn" data-toggle="modal">執行範例對話視窗</a> | |
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h3 id="myModalLabel">對話視窗標題</h3> | |
</div> | |
<div class="modal-body"> | |
<p>一個好的本體…</p> | |
</div> |
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
-blocks | |
--modules | |
---list | |
----list.js(需要嗎) | |
--views | |
---list | |
----list.html | |
----listCtrl.js |
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
$sql = "SELECT * FROM `member` as m LEFT JOIN `play` as r on m.mId = r.mId where m.mDoctor = ?"; | |
$sth=$dbh->prepare($sql); | |
$sth->execute(array($mId)); | |
while ($result = $sth->fetch(PDO::FETCH_OBJ)) { | |
print_r($result); | |
} | |
----- |
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
var inputs = document.getElementsByTagName("input") | |
var chk_input =0 | |
for (var i = 0; i < inputs.length; i++) { | |
switch (inputs[i].type) { | |
case "checkbox": | |
if (!inputs[i].checked && chk_input %4 ==0) { | |
inputs[i].checked = true; | |
} | |
chk_input +=1 |
NewerOlder