Skip to content

Instantly share code, notes, and snippets.

View gaga5lala's full-sized avatar
🐈

Gaga Pan gaga5lala

🐈
  • Tokyo
View GitHub Profile
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)
@gaga5lala
gaga5lala / graduate01.js
Created June 28, 2015 08:29
NSYSU 課程組離校問卷
// year + department
// X1032 + B402
var department = 'X1032B402';
var start = 101;
var end = 2000;
var className;
var row;
<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>
@gaga5lala
gaga5lala / file
Last active August 29, 2015 14:12
COIMOTION LIST
-blocks
--modules
---list
----list.js(需要嗎)
--views
---list
----list.html
----listCtrl.js
$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);
}
-----
@gaga5lala
gaga5lala / nsysu_enroll
Last active August 29, 2015 14:06
中山大學網路註冊問卷(題型:四選一)
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