Skip to content

Instantly share code, notes, and snippets.

@maninthemirror
maninthemirror / README.md
Created February 19, 2019 08:23 — forked from CodingDoug/README.md
Copying Data from a Google Sheet into Firebase Realtime Database in real time via Apps Script
@maninthemirror
maninthemirror / php-mail.php
Created February 20, 2016 10:14 — forked from s9011514/php-mail.php
[PHP]使用Mail函式透過SMTP發信
<?php
$to =" yourmail@your.com "; //收件者
$subject = "test"; //信件標題
$msg = "smtp發信測試";//信件內容
$headers = "From: admin@your.com"; //寄件者
if(mail("$to", "$subject", "$msg", "$headers")):
echo "信件已經發送成功。";//寄信成功就會顯示的提示訊息
else:
echo "信件發送失敗!";//寄信失敗顯示的錯誤訊息
@maninthemirror
maninthemirror / index.html
Last active February 20, 2016 10:17
jQueryTab
<!-- tab切換 -->
<div class="tabZone">
<!-- 點數 -->
<ul class="tabUl tabAreaFunc">
<li class="tabActive">獲得明細</li>
<li class="taboff">使用明細</li>
</ul>
<!-- end點數-->
<!-- 內容區域-->
<div class="tabArea contentPaddingLR" id="tabArea0">
@maninthemirror
maninthemirror / ajax_jsonp.js
Created February 18, 2016 11:53 — forked from codingjester/ajax_jsonp.js
User JQuery with the Tumblr API & JSONP
$.ajax(
'http://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts?api_key=<your_key>',
{
dataType: 'jsonp',
success: function (d) {
console.log(d); // On success log the data to the console
},
}
);
@maninthemirror
maninthemirror / index.css
Created February 18, 2016 07:14
兩個div同高
.sameh{
width:35%;
float:left;
margin-right:15px;
border:1px solid #ccc;
}
@maninthemirror
maninthemirror / data.json
Created February 18, 2016 07:10
把12筆資料用 9 個換頁
[
{"id":1,"name":"name_1"},
{"id":2,"name":"name_2"},
{"id":3,"name":"name_3"},
{"id":4,"name":"name_4"},
{"id":5,"name":"name_5"},
{"id":6,"name":"name_6"},
{"id":7,"name":"name_7"},
{"id":8,"name":"name_8"},
{"id":9,"name":"name_9"},
@maninthemirror
maninthemirror / contact.html
Created February 13, 2016 19:11 — forked from ajtroxell/contact.html
Build a simple PHP, jQuery, and AJAX Powered Contact Form, from: http://ajtroxell.com/build-a-simple-php-jquery-and-ajax-powered-contact-form/
<form id="contact" name="contact" method="post">
<fieldset>
<label for="name" id="name">Name<span class="required">*</span></label>
<input type="text" name="name" id="name" size="30" value="" required/>
<label for="email" id="email">Email<span class="required">*</span></label>
<input type="text" name="email" id="email" size="30" value="" required/>
<label for="phone" id="phone">Phone</label>
<input type="text" name="phone" id="phone" size="30" value="" />