Skip to content

Instantly share code, notes, and snippets.

View Pafuxu's full-sized avatar

Kouji Tsuru Pafuxu

View GitHub Profile
<q cite="引用元のURL" title="「引用元のタイトル」から引用">引用本文</q>
<blockquote cite="引用元のURL" title="「引用元のタイトル」から引用">
<p>引用本文</p>
<footer>? <cite><a href="引用元のURL">引用元のタイトル</a></cite></footer>
</blockquote>
@Pafuxu
Pafuxu / Get_Block_Quote_Tag.scpt
Last active August 29, 2015 14:05
引用タグを自動化する
tell application "Safari"
activate
set theURL to URL of front document
set theTitle to name of front document
set selectedText to (do JavaScript "(''+getSelection())" in document 1)
set the clipboard to "<blockquote class=\"block-quote_content\" cite=\"" & theURL & "\" title=\"「" & theTitle & "」から引用\">" & return & " " & "<p>" & selectedText & "</p>" & return & " " & "<footer>" & return & " " & "<cite>— <a href=\"" & theURL & "\">" & theTitle & "</cite>" & return & " " & "</footer>" & return & "</blockquote>" & return as string
end tell
-- Script that acquires current time and displays it to HUD display
--
set currentTime to do shell script "date '+%Y-%m-%dT%H:%M:%S%z' | sed 's/00$/:00/'"
tell application "LaunchBar" to display in large type currentTime
return currentTime
<div style="float:right;margin-left:0.5em;">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink(); ?>';
tweetmeme_source = 'twitter_name';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
<div style="float:right;margin-left:0.5em;">
<script type="text/javascript">
tweetmeme_url = '<?php the_permalink(); ?>';
tweetmeme_source = '<?php the_author(); ?>';
</script>
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
</div>
tr {
background-color: #fff;
-webkit-transition: background-color, 1s;
}
tr:hover {
background-color: #e5ecff;
}
thead tr:hover {
/*custom styles*/
.entry-content,
.comment {
font: normal normal normal 13px/1.8 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
}
.entry-content p,
.comment p {
margin-bottom: 1.5em;
.label {
background: url(label\ green-64.png) no-repeat center center ;
display: -webkit-box;
-webkit-box-align: center;
-webkit-box-pack: center;
width: 64px;
height: 64px;
margin: 0;
padding: 0;
position: absolute;
.gradation-box {
background: -webkit-gradient(linear, left top, left bottom, from(white), color-stop(0.1, white), to(rgb(205, 221, 241)));
-webkit-border-radius: 4px;
-webkit-box-shadow: rgba(0, 0, 0, 0.496094) 0px 3px 5px;
border: 1px solid rgb(204, 204, 204);
display: block;
margin: 0px 5px 5px 5px;
padding: 10px;
text-shadow: white 0px 1px 0px;
vertical-align: top;