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
add_action('wp_head','add_ogp_img'); | |
function add_ogp_img(){ | |
if (is_archive() || is_author() || is_search()){ | |
$homeUrl = get_home_url(); | |
echo "<meta property='og:image' content='{$homeUrl}'/.png'>"; | |
} | |
} |
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
{ | |
"@context": "http://schema.org", | |
"@type": "Event", | |
"name": "イベント名", | |
"location": { | |
"@type": "Place", | |
"name":"会場名", | |
"address": "会場住所", | |
"url": "http://example.com/Place" | |
}, |
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
{ | |
"@context": "http://schema.org", | |
"@type": "Event", | |
"name": "イベント名", | |
"location": { | |
"@type": "Place", | |
"name":"竹生島神社", | |
"address": { | |
"@type": "PostalAddress", | |
"postalCode":"526-0124", |
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
{ | |
"@context": "http://schema.org", | |
"@type": "Place", | |
"name":"竹生島神社", | |
"description": "竹生島(ちくぶしま)は、琵琶湖の北部に浮かぶ島。琵琶湖国定公園特別保護地区、国の名勝および史跡に指定されている。", | |
"geo":{ | |
"@type": "GeoCoordinates", | |
"latitude":"35.2524", | |
"longitude":"136.0837" | |
}, |
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
<code> | |
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX dcterms:<http://purl.org/dc/terms/> | |
select distinct * where { | |
?link dcterms:subject <http://ja.dbpedia.org/resource/Category:日本の世界遺産>; | |
rdfs:label ?name; | |
rdfs:comment ?cont; | |
dbpedia-owl:thumbnail ?thumb; |
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<polymer-element name="my-element"> | |
<template> |
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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<div class="wp_org_api"></div> | |
<script> | |
//setUp Post Data | |
var actionType = 'hot_tags'; | |
var number = 10; | |
var timeout = 15; | |
//Parse Post Data | |
var postData = { |
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
//node.jsのchild-processを呼び出す | |
var exec = require('child_process').exec; | |
//ymlファイルの更新を監視する | |
gulp.task('default',function(){ | |
gulp.watch("orm/yaml/**.yml",['db-update']); | |
}); | |
//DoctrineでEntityを作る | |
gulp.task('db-generate-entities', function(){ |
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
mkdir react && cd react | |
npm install react |
OlderNewer