Skip to content

Instantly share code, notes, and snippets.

View shimakyohsuke's full-sized avatar

shimakyohsuke shimakyohsuke

View GitHub Profile
@shimakyohsuke
shimakyohsuke / text.md
Last active August 30, 2015 06:24
D2DRAFT Aチーム

気になること、本当に知りたいこと。 ここにあり〼。

	<ul>
		<li><a href="#">活動紹介</a></li>
		<li><a href="#">D2Dとは</a></li>
		<li><a href="#">ブログ</a></li>
		<li><a href="#">お問合せ</a></li>
	</ul>
<?php
/**
* @package Structured Data of JSON-LD
* @version 2.0
*/
/*
Plugin Name: Structured Data of JSON-LD
Plugin URI: http://wordpress.org/plugins/ejls-easy-json-ld-setter/
Description: Set Structured Data of "JSON-LD" to your WebSite.schema type that you can use is "Article","Person","WebSite" and "searchAction".
Author: Hidetaka Okamoto
@shimakyohsuke
shimakyohsuke / init.coffee
Created August 3, 2015 06:10
atom editor init.coffee
fs = require 'fs'
atom.workspace.onDidOpen ->
editor = atom.workspace.getActiveTextEditor()
try
filePath = editor.getPath()
console.log filePath
catch error
@shimakyohsuke
shimakyohsuke / vccw_mycli.md
Last active August 29, 2015 14:26
mycli を vccw で使ってみる

VCCW

Vagrant based development environment for WordPress plugins, themes, or websites.

http://vccw.cc/

mycli

Mycli is a command line interface for MySQL, MariaDB, and Percona with auto-completion and syntax highlighting.

@shimakyohsuke
shimakyohsuke / keymap.cson
Last active August 29, 2015 14:24
Atom keymap.cson
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
@shimakyohsuke
shimakyohsuke / node.md
Created July 8, 2015 03:40
nodebrewでnodeのバージョンを変更したら、migrateする
$ nodebrew use <NEW_VERSION>
$ nodebrew migrate-package <OLD_VERSION>
<!DOCTYPE html>
<html lang="ja-JP">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=1024">
<title>siteTitle XXX</title>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="http://example.comimages/common/favicon.ico">
<link rel="stylesheet" href="/style.css">
<!DOCTYPE html>
<html lang="ja-JP">
<head>
<meta name="robots" content="noindex,nofollow,noarchive">
<meta name="googlebot" content="noindex,nofollow,noarchive">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=1024">
<meta name="robots" content="noodp,noydir">
@shimakyohsuke
shimakyohsuke / _mixin.styl
Created June 19, 2015 07:51
Stylus mixins
ds(w,h = auto,f = left)
width w
height h
float f
lh(n)
line-height (n * 100)%
fs(c,fz,lh,fw = 400)
color c
@shimakyohsuke
shimakyohsuke / snippets.cson
Last active August 29, 2015 14:23
Atom snippets
# JavaScript
'.source.js':
'console.log':
'prefix': 'log'
'body': 'console.log(${1:"crash"});$2'
'function':
'prefix': 'func'
'body': 'function $1($2) {\n $3\n}'
'function literal':
'prefix': 'funcl'