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
# -*- coding: utf-8 -*- | |
from requests_oauthlib import OAuth1Session | |
import json | |
import datetime, time, sys | |
from abc import ABCMeta, abstractmethod | |
import codecs | |
CK = 'XXXXXXXXXXXXXXXXXXXXXXXXX' # Consumer Key |
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> | |
</head> | |
<body> | |
<p>だみーぺーじ</p> | |
</body> | |
</html> |
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
pre.code.lang-html, | |
pre.code.lang-css, | |
pre.code.lang-javascript, | |
pre.code.lang-markdown, | |
pre.code.lang-hatena { | |
background: #f2f1e8; | |
color: #07a; | |
/* font-family: Raleway, sans-serif; */ | |
font-family: inherit; | |
border: solid 2px #2e3034; |
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
pre.code { | |
&.lang-html, &.lang-css, &.lang-javascript, &.lang-markdown, &.lang-hatena { | |
background: #f2f1e8; | |
color: #07a; | |
font-family: inherit; | |
border: solid 2px #2e3034; | |
-webkit-hyphens: none; | |
-moz-tab-size: 4; | |
text-shadow: 0 1px var(--hcb-color--text-shadow, #fff); | |
font-weight: 600; |
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> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<h2 id="about">ハテブカスタムについて</h2> | |
<div class="profile-center"> | |
<!--真ん中寄せ--> | |
<div style="margin-bottom: 20px;"> |
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="hatena-module hatena-module-search-box"> | |
<div id="original-search-box" class="hatena-module-body"> | |
<form class="search-form" role="search" action="https://rubirubi.hateblo.jp/search" method="get"> | |
<input type="text" name="q" class="search-module-input" value="" placeholder="ブログ内を検索" required> | |
<input type="submit" value="検索" class="search-module-button" /> | |
</form> | |
</div> | |
</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
<div class="hatena-module hatena-module-entries-access-ranking" | |
data-count="5" | |
data-display_entry_category="0" | |
data-display_entry_image="1" | |
data-display_entry_image_size_width="100" | |
data-display_entry_image_size_height="100" | |
data-display_entry_body_length="0" | |
data-display_entry_date="0" | |
data-display_bookmark_count="1" | |
data-source="access" |
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
<!-- Internet Explorerなど非対応のブラウザに対応させるためのスクリプトリンク --> | |
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script> | |
<script> | |
document.addEventListener("DOMContentLoaded", function () { | |
var lazyImages = [].slice.call(document.querySelectorAll("img.lazy")); | |
if ("IntersectionObserver" in window) { | |
let lazyImageObserver = new IntersectionObserver(function (entries, observer) { | |
entries.forEach(function (entry) { | |
if (entry.intersectionRatio > 0) { |
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
import codecs | |
text_file = codecs.open('tweets.txt','r','utf-8') | |
txt = text_file.read() | |
# テキストを改行で区切った配列にする | |
sentences = txt.split('\n') | |
# janomeでテキスト分解 | |
from janome.tokenizer import Tokenizer | |
t = Tokenizer() |
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
# -*- coding: utf-8 -*- | |
from requests_oauthlib import OAuth1Session | |
import json | |
import datetime, time, sys | |
from abc import ABCMeta, abstractmethod | |
import codecs | |
CK = 'XXXXXXXXXXXXXXXXXXXXXXXXX' # Consumer Key |
NewerOlder