Skip to content

Instantly share code, notes, and snippets.

Avatar
🔊
♪ minimal techno ♫

Daisuke Masuda x5gtrn

🔊
♪ minimal techno ♫
View GitHub Profile
View indy-customized_by_x5gtrn.html
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{block:Description}
<meta name="description" content="{MetaDescription}" />
{/block:Description}
<title>{block:TagPage}{Tag} posts - {/block:TagPage} {block:SearchPage}{lang:Search results for SearchQuery} - {/block:SearchPage}{block:PostSummary}{PostSummary} - {/block:PostSummary}{Title}</title>
@x5gtrn
x5gtrn / ImageFileUrlPrinter.java
Last active May 1, 2022
To show every urls of all images from a source code (html) file.
View ImageFileUrlPrinter.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
public class ImageFileUrlPrinter {
private static final String USER_ID = "999999"; // Target userID
private static final String CONDITION = "\" src=\"https://fanty-master-storage.s3.ap-northeast-1.amazonaws.com/user/" + USER_ID + "/post/";
public static void main(String[] args) {
@x5gtrn
x5gtrn / ameblo_permalink_collector.py
Last active Apr 20, 2022
As a shell script, this script collects and shows a permalink of all entries from the target Ameba Blog Site.
View ameblo_permalink_collector.py
@x5gtrn
x5gtrn / script1.js
Created Nov 7, 2020
Hatena Blog Open All Category List
View script1.js
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://hatena.wackwack.net/v1.1/js/breadcrumb.min.js"></script>
<script src="https://hatena.wackwack.net/v1.1/js/category_archive.min.js"></script>
@x5gtrn
x5gtrn / log
Created Oct 18, 2020
Crash Reports
View log
Process: WindowServer [54387]
Path: /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/Resources/WindowServer
Identifier: WindowServer
Version: 600.00 (451.4)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
Responsible: WindowServer [54387]
User ID: 88
Date/Time: 2020-10-17 00:14:40.576 +0900
@x5gtrn
x5gtrn / breadcrumb.v1.1.js
Created Jul 19, 2020
To be Layered Category List for Hatena Blog
View breadcrumb.v1.1.js
/*
* @see https://hatena.wackwack.net/v1.1/js/breadcrumb.js
*/
var host = $(location).attr('host');
function remapBreadcrumb(breadcrumb){
new_breadcrumb_html='';
for(var i=0;i<breadcrumb.length;i++) {
url_category=[];
for(var j=0;j<=i;j++) {
View Admin - Design - Entry - Entry header.html
<div style="text-align: right; float: right;">
<small><a href="#box2">List↓</a></small>
</div>
View Persona-tumblr_theme.default.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" id="{block:indexpage}ind{/block:indexpage}{block:permalinkpage}per{/block:permalinkpage}" class="not-mobile {block:ifnotusecaption} hide-post-nav hide-caption {/block:ifnotusecaption} {select:Change Layout} {block:ifhidelinkborder}hide-link-border{/block:ifhidelinkborder} {block:SearchPage}this-is-tag{block:SearchPage} {block:NoSearchResults}no-results{/block:NoSearchResults} {block:ifhidecaptiononly}hide-caption{/block:ifhidecaptiononly} {select:Loading type} not-high-res {block:ifHideTopHeaderBackground}no-top-bg{/block:ifHideTopHeaderBackground} {block:ifautoscrolltolayoutonpermalink}auto-scroll{/block:ifautoscrolltolayoutonpermalink} {block:NoSearchResults}no-search-available{/block:NoSearchResults} no-tags {block:ifnotheader1image}header1-enabled{/block:ifnotheader1image} {block:ifheader1image}header1-enabled{/block:ifheader1image} {bloc
View delete.js
/*
* 共通
*/
class TypeElement {
constractor(type, name, rule) {
this.type = type;
this.name = name;
this.rule = rule;
}
View nav-tabs-custom.js
var variationTabIndex = 0;
var variationTabCount = 0;
$(".nav-tabs").on("click", "a", function (e) {
e.preventDefault();
if (!$(this).hasClass('add-variation')) {
$(this).tab('show');
}
})