Skip to content

Instantly share code, notes, and snippets.

@hitsujixgit
hitsujixgit / yokohama_codes.csv
Created June 14, 2014 12:11
Words' names and their codes in Yokohama city.
cityid name
id141011 鶴見区
id141020 神奈川区
id141038 西区
id141046 中区
id141054 南区
id141062 保土ヶ谷区
id141071 磯子区
id141089 金沢区
id141097 港北区
@hitsujixgit
hitsujixgit / 0_reuse_code.js
Created June 15, 2014 13:34
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
@hitsujixgit
hitsujixgit / index.php
Created June 16, 2014 00:46
Wordpress sample theme for training. #01
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
</head>
<body>
<?php echo 'Hello, welcome to WordPress!'; ?>
@hitsujixgit
hitsujixgit / style.css
Created June 16, 2014 00:58
Wordpress sample theme for training. #01
/*
Theme Name: Wordpress sample theme for training
Theme URL: http://wordpress.hitsuji.me
Description: This is training theme.
Author: Tae Matsumoto
Version: 1.1
*/
@hitsujixgit
hitsujixgit / source.html
Created June 16, 2014 01:01
Wordpress sample theme for training. #01
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>HitsujixWordpress</title>
<link rel="stylesheet" href="http://127.0.0.1:8080/wordpress/wp-content/themes/Training/style.css" type="text/css" />
</head>
<body>
Hello, welcome to Wordpress!
@hitsujixgit
hitsujixgit / index.php
Created June 16, 2014 01:03
Wordpress sample theme for training. #02
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
</head>
<body>
@hitsujixgit
hitsujixgit / index.php
Created June 16, 2014 01:08
Wordpress sample theme for training. #03 (only body tag)
<body>
<div id="container"><!-- 全体を中央寄せ-->
<div id="header">
<h1><?php bloginfo('name'); ?></h1>
</div> <!–header–>
<div id="contents">
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<div class="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
@hitsujixgit
hitsujixgit / style.css
Created June 16, 2014 01:10
Wordpress sample theme for training. #03
/*
Theme Name: Wordpress sample theme for training
Theme URL: http://wordpress.hitsuji.me
Description: This is training theme.
Author: Tae Matsumoto
Version: 1.3
*/
/*---------------------------------------------------------*/
/* General */
@hitsujixgit
hitsujixgit / index.php
Created June 18, 2014 23:41
最小限のファイルでテーマを作成してみる
<!DOCTYPE html>
<html>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" />
</head>
<body>
<?php echo 'Hello, welcome to Wordpress!'; ?>
</body>
@hitsujixgit
hitsujixgit / style.css
Created June 19, 2014 00:11
最小限のファイルでテーマを作成してみる
/*
Theme Name: Hitsuji Sample
Theme URL: http://wordpress.hitsuji.me/
Description: This is training theme.
Author: Hitsuji
Version: 1.0
*/