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
<html> | |
<head> | |
<title>列印標題</title> | |
<?php | |
if (empty($page)) $page = "error"; | |
?> | |
<script language="javascript"> | |
<!-- | |
window.focus() | |
//--> |
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
magick mogrify -quality 85 -auto-orient -strip -resize "1280x960" -format jpg *.JPG | |
for pic in *.jpg; do | |
convert -size 140x80 xc:none -fill "#EEE7" \ | |
-gravity NorthWest -draw "text 10,10 '@distresslife'" \ | |
-gravity SouthEast -draw "text 5,15 '@distresslife'" \ | |
miff:- | | |
composite -tile - $pic ${pic//.jpg}-marked.jpg | |
done |
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
/*四個數字依序是調整 左上 右上 右下 左上 的圓角,數字越大越圓角*/ | |
#timeline_cnt .plurk .plurk_cnt { | |
border-radius: 10px 10px 10px 10px; | |
} | |
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
.dash-segment .segment-content { | |
background: transparent; | |
color: #FFF; | |
} | |
#form_holder { | |
padding-top: 5px; | |
margin-top: -5px; | |
border-radius: 0 0 10px 10px; | |
} |
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
#form_holder .response_box::-webkit-scrollbar { | |
width: 1em; | |
} | |
#form_holder .response_box::-webkit-scrollbar-track { | |
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); | |
} | |
#form_holder .response_box::-webkit-scrollbar-thumb { | |
background-color: darkgrey; |
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
.dash-segment .segment-content { | |
background: transparent; | |
color: #FFF; | |
} | |
#form_holder { | |
padding-top: 5px; | |
margin-top: -5px; | |
border-radius: 0 0 10px 10px; | |
.response_box { |
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
<?php | |
/* | |
kissmetrics_data.json 格式長這樣……WTF | |
{"search engine":"Google","_n":"search engine hit","_t":1374291092} | |
{"search engine":"Google","_n":"search engine hit","_t":1374291092} | |
{"search engine":"Google","_n":"search engine hit","_t":1374291092} | |
{"search engine":"Google","_n":"search engine hit","_t":1374291092} | |
*/ | |
$origin_data_array = explode("\n",file_get_contents($s3_object_url)); |
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
<?php | |
ini_set('max_execution_time', 0); | |
function get_blog_name($blog_url,$api_key){ | |
$q_array = array( | |
'api_key' => $api_key, | |
); | |
$url = 'http://api.tumblr.com/v2/blog/' . $blog_url . '/info?' . http_build_query($q_array); | |
$ch = curl_init(); |
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
<?php | |
function get_instagram_uid($user_name,$access_token){ | |
$q_array = array( | |
'q' => strtolower($user_name), | |
'access_token' => $access_token, | |
); | |
$url = 'https://api.instagram.com/v1/users/search?' . http_build_query($q_array); | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); |
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
<?php | |
function get_mylist_array($mylist_number){ | |
$url = 'http://www.nicovideo.jp/mylist/' . $mylist_number . '?rss=2.0'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
$output = curl_exec($ch); | |
curl_close($ch); | |
$output_xml = simplexml_load_string($output); |