Instantly share code, notes, and snippets.

View lfm.php
<?php
return [
'nav-back' => '戻る',
'nav-new' => '新規フォルダ',
'nav-upload' => 'アップロード',
'nav-thumbnails' => 'サムネイル',
'nav-list' => 'リスト',
'nav-sort' => 'ソート',
'nav-sort-alphabetic'=> 'ファイル名順',
View show-text
<?php
/*
Plugin Name: Show Text
Plugin URI: http://www.webopixel.net/wordpress/631.html
Description: プラグイン開発説明用のプラグイン
Author: k.ishiwata
Version: 0.1
Author URI: http://www.webopixel.net
*/
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View html5-fileAPI.js
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>File API Sample</title>
<style type="text/css">
#file-input div.input {
padding: 60px;
border: solid 1px #333;
width: 300px;
View simplefacebook.js
$(function() {
var formatData = function(date) {
var d = new Date(date);
//ゼロパディング(2桁)にしない場合
//return (d.getFullYear() + '.' + (d.getMonth() + 1) + '.' + d.getDate());
return (d.getFullYear() + '.' + ("0"+(d.getMonth()+1)).slice(-2) + '.' + ("0"+d.getDate()).slice(-2));
};
var replaceURL = function(url){
url = url.replace(/(\/l.php\?u=http%3A%2F%2F)([\x21-\x7e]+)(&amp;h=[\x21-\x7e]+&amp;s=1)/gi,'http://$2');
return unescape(url);
View custom-meta-table.php
<?php
/*
Plugin Name: Custom Meta Table
Plugin URI: http://www.webopixel.net/wordpress/637.html
Description: カスタムフィールドの値をオリジナルのテーブル(DB)に保存する
Author: k.ishiwata
Version: 0.1
Author URI: http://www.webopixel.net/
*/
class CustomMetaTable {