Skip to content

Instantly share code, notes, and snippets.

View shimakyohsuke's full-sized avatar

shimakyohsuke shimakyohsuke

View GitHub Profile
@shimakyohsuke
shimakyohsuke / functions.php
Created June 17, 2015 09:26
WordPress で親テーマのスタイルシートを呼び出す方法
<?php
function my_style() {
wp_enqueue_style( 'parent-style', dirname( get_template_directory_uri() ) . '/twentyfifteen/style.css' );
}
add_action( 'wp_enqueue_scripts', 'my_style' );
@shimakyohsuke
shimakyohsuke / wocker-site_move.md
Last active January 7, 2017 17:25
[FIX] Wocker を使って公開されているサイトをローカルにコピーする

※161102 以下記事に最新の方法が記載されてます。
http://blog.cntlog.net/?p=1494

  1. 公開サーバーの phpMyAdmin から生成オプションの「DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER コマンドを追加する」にチェックいれた状態で sql ファイルをエクスポート
  2. Wocker に新しいコンテナを作成 ※以下コマンドで作成したコンテナ名は「CONTAINER」です。
    core@wocker ~ $ wocker run --name CONTAINER
  3. wocker exec コマンドで root に入る
    core@wocker ~ $ wocker exec -it CONTAINER bash
  4. sql ファイルをインポート
    root@*****:/var/www/wordpress# wp db import --allow-root
@shimakyohsuke
shimakyohsuke / 0_ls.md
Last active August 29, 2015 14:18
HTML MAIL TEMPLATE
src
  └─ ejs
        ├─ index.ejs
        └─ partial
              └─ _inc_css.ejs
node_modules
  └─ 各パッケージ
dist
 └─ index.html
@shimakyohsuke
shimakyohsuke / _base-fz-16.styl
Last active August 29, 2015 14:12
default setting stylus
px10 = 63%
px11 = 69%
px12 = 75%
px13 = 82%
px14 = 88%
px15 = 94%
px16 = 100%
px17 = 107%
px18 = 113%
px19 = 119%
@shimakyohsuke
shimakyohsuke / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console