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
#!/bin/bash | |
# 自動清除 Facebook 分享連結 cache 工具 | |
# ---------------------------------------- | |
# 使用方法:fb_cache_cleaner.sh domain.com folder 起始序號 結束序號 | |
# 詢問帳號密碼 (Facebook Debug Tool 目前需要登入方可使用) | |
echo -n "Facebook Email: " | |
read EMAIL | |
echo -n "Facebook Password: " |
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 _optimize_selectbox_padding = function () { | |
$(".search__county, .search__district").each(function () { | |
var text_width = (parseInt($(this).css("font-size"), 10) * $(this).val().length); | |
var padding = (($(this).outerWidth() - text_width) / 2); | |
$(this).css("padding-left", padding); | |
}); | |
}; | |
_optimize_selectbox_padding(); | |
$(".search__county, .search__district").on("change", function () { |
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
Show hidden characters
{ | |
presets: ["es2015", "react", "stage-0"], | |
plugins: ["transform-class-properties"], | |
} |
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
// - slice | |
const p1Arr = [1, 2, 3, 4, 5, 6]; | |
console.log(p1Arr.slice(0, 3)); // [1, 2, 3] | |
// - splice | |
const p2Arr = [1, 2, 3, 4, 5, 6]; | |
p2Arr.splice(1, 3, 9, 9, 9); | |
console.log(p2Arr); // [1, 9, 9, 9, 5, 6] | |
// - pop |
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
.item { | |
position: relative; | |
display: inline-block; | |
width: 48%; | |
margin: 0.5%; | |
background-color: gold; | |
outline: 1px solid red; | |
} | |
.item:before { |
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 imageHeights = [5, 10, 100, 2, 200, 30, 90, 20, 44, 60, 12, 2, 10, 4, 5, 92, 10]; | |
var baseArr = imageHeights.slice(0, 5); | |
var remainArr = imageHeights.slice(5); | |
var getMinIndex = function(arr) { | |
var min = arr[0]; | |
var index = 0; | |
for (var i = 0; i < 5; i++) { | |
if (arr[i] < min) { |
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
<div class="wrapper"> | |
<input type="text" required> | |
<span class="tip">Required!</span> | |
</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
{"lastUpload":"2020-02-13T02:09:35.051Z","extensionVersion":"v3.4.3"} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="theme-color" content="#000000"> | |
<!-- | |
manifest.json provides metadata used when your web app is added to the | |
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ |
OlderNewer