Skip to content

Instantly share code, notes, and snippets.

View hankchanocd's full-sized avatar
😈
Mobilize the world with AI

Hank Chan hankchanocd

😈
Mobilize the world with AI
View GitHub Profile
<!-- footer-wrap -->
<div id="footer-wrap" class="content-wrap">{footer}</div>
<!-- end footer-wrap -->
<div id="footer-wrap">
<div id="footer">
{footer}
<div></div>
<div id="footer">{footer}</div>
style="visibility:hidden"
<div id="footer" style="visibility:hidden">{footer}</div>
@hankchanocd
hankchanocd / gist:c7cb185715aac113bcb9286af8c497a3
Last active June 21, 2017 20:23
#Weebly Footer Alternative
<div id="footer" style="display:none">{footer}</div>
<br><br>
<div align="center"> &copy; 2017 Weebly in 3 Min<br>
<a href="http://weeblyin3min.weebly.com" style="color: white;"> 首頁 &nbsp</a> |
<a href="http://weeblyin3min.weebly.com/about.html" style="color: white;">&nbsp 關於我們 &nbsp</a> |
<a href="http://weeblyin3min.weebly.com/hank-chans-blog" style="color: white;">&nbsp 攻略 &nbsp</a> |
<a href="http://weeblyin3min.weebly.com/slides.html" style="color: white;">&nbsp Slides &nbsp</a> |
</div>
/* 以下是已經被遮蓋掉的 Weebly original footer */
<div id="footer" style="display:none">{footer} </div>
@hankchanocd
hankchanocd / read-write-file.js
Created March 23, 2018 14:10
Read Write to file with javascript
/// write to file
var txtFile = "c:/test.txt";
var file = new File(txtFile);
var str = "My string of text";
file.open("w"); // open file with write access
file.writeln("First line of text");
file.writeln("Second line of text " + str);
file.write(str);
file.close();
@hankchanocd
hankchanocd / alternative-footer.tpl
Last active July 20, 2018 05:24
Alternative Footer to replace the original footer ads on Weebly
Verifying my Blockstack ID is secured with the address 1D51kV6mLCuq9BdX6tvrJGGFLr4Pt7EdFR https://explorer.blockstack.org/address/1D51kV6mLCuq9BdX6tvrJGGFLr4Pt7EdFR
@hankchanocd
hankchanocd / index.js
Created March 26, 2020 06:44
Remove HTML Extension using Lambda@edge on S3
'use strict';
/* Public domain project by Cloud Under (https://cloudunder.io).
* Repository: https://github.com/CloudUnder/lambda-edge-nice-urls
*/
const config = {
suffix: '.html',
appendToDirs: 'index.html',
removeTrailingSlash: false,