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
# ================================================== | |
# MTML Completions for ATOM [start] | |
# ================================================== | |
'.text.md, .text.plain, .text.html.basic, .text.html.php, .source.js, .source.css, .source.yaml': | |
'current_mapping="1"': | |
'prefix': 'current_mapping="1"' | |
'body': 'current_mapping=\"${1:1}\"' | |
'with_index="1"': |
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
(function ($) { | |
$('#search').flexibleSearch({ | |
searchFormCreation: false, | |
searchDataPath: { | |
search_A: "/flexibleSearch/search.json", | |
search_B: "/flexibleSearch/search2.json", | |
}, | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ |
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
(function ($) { | |
$('#search').flexibleSearch({ | |
searchDataPath: "/flexibleSearch/search.json", | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ | |
'<dl>', | |
'{{#items}}', | |
'<dt><a href="{{url}}" title="{{title}}">{{&title}}</a></dt>', | |
'<dd><span>{{&body}}...</span><a href="{{url}}">[続きを読む]</a></dd>', |
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
/* ================================================== | |
Lock Screen | |
================================================== */ | |
#mtapp-lock-screen { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 99999; |
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
<mt:DynamicMTML> | |
<mt:Ignore section="解説 01"> | |
変数を初期化します。 | |
</mt:Ignore> | |
<mt:SetVar name="ids"> | |
<mt:SetVar name="entries"> | |
<mt:Ignore section="解説 02"> |
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"> | |
<title>Multi file uploader</title> | |
<style type="text/css"> | |
body { | |
background-color: black; | |
font-family: 'Source Code Pro', Monaco, Consolas, 'Courier New', Courier, monospace; | |
color: white; |
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 api = new MT.DataAPI({ | |
baseUrl: '/mt_dir/mt-data-api.cgi', | |
clientId: 'mt data api test.' | |
}); | |
var blog_ids = [1, 2, 3]; | |
var total = 0; | |
var responsed = 0; | |
for (var i = 0, l = blog_ids.length; i < l; i++) { | |
api.listEntries( | |
blog_ids[i], |
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> | |
<meta charset="UTF-8"> | |
<title>MTDDC</title> | |
<style type="text/css"> | |
#result-container { | |
position: relative; | |
} | |
#result-img { |
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
#!/usr/bin/perl | |
# Copyright (c) Tomohiro Okuwaki. http://www.tinybeans.net/blog/ | |
use strict; | |
use warnings; | |
use utf8; | |
# 複数のファイルの操作 | |
my $dir = shift; | |
my $files = []; |
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
jQuery(function($){ | |
var btn = $('<button class="button mt-edit-field-button"></button>') | |
.text('公開日を現在時刻に設定') | |
.click(function(){ | |
if (confirm('公開日時を変更していいですか!?') == false) { | |
return false; | |
} | |
stamp(); | |
return false; | |
}); |