Skip to content

Instantly share code, notes, and snippets.

View ishisaka's full-sized avatar
💭
I may be slow to respond.

Tadahiro Ishisaka ishisaka

💭
I may be slow to respond.
View GitHub Profile
@ishisaka
ishisaka / Twenty Fourteen page.php
Created May 12, 2014 10:48
zenbackの埋め込み
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other 'pages' on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Fourteen
@ishisaka
ishisaka / ExampleOfEsentPersistantDictionary2.cs
Last active August 29, 2015 13:57
ESE InteropのPersistantDictionaryの使用方法。Dictionary<>の使用感覚でESEを使える大変な便利なライブラリ。当然Linqが使える
using System;
using System.Diagnostics;
using System.Linq;
using Microsoft.Isam.Esent.Collections.Generic;
namespace ExampleOfEsentPersistantDictionary2
{
/// <summary>
/// PersistentDictionaryFileのサンプル。
/// 保存するデータに構造体を用いる。
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Microsoft.Isam.Esent.Interop;
namespace EsentSample
{
internal class Program
{
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Program.cs" company="Tadahiro Ishisaka">
// Copyright 2014 Tadahiro Ishisaka
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
@ishisaka
ishisaka / Twenty Fourteen content.php
Last active December 31, 2015 15:09
タイトルにはてなスターをつけるため、修正
<?php
/**
* The default template for displaying content
*
* Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
@ishisaka
ishisaka / Twenty Fourteen style.css
Last active December 31, 2015 15:09
Word Press 3.8についてくるTwenty Fourteenテーマのスタイルシートカスタマイズ。サイドバーとメインコンテンツの表示幅を広げ、Widthの上限を無くし、日本語のフォントを追加
/*
Theme Name: Twenty Fourteen
Theme URI: http://wordpress.org/themes/twentyfourteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, ac
@ishisaka
ishisaka / TestIVS.cs
Created October 29, 2013 14:19
IVS文字かどうか調べる
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Windows.Forms;
namespace ConsoleApplication3
{
@ishisaka
ishisaka / profile.ishisaka.ps1
Last active December 25, 2015 06:09
posh-gitのコマンドプロンプトを変更
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
@ishisaka
ishisaka / NLog.config
Last active December 25, 2015 01:49
NLogでテキストファイルにスタックトレースをそれなりに綺麗に出力する為のNLog.config設定例。
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
See http://nlog-project.org/wiki/Configuration_file
for information on customizing logging rules and outputs.
-->
<targets>
<!-- add your targets here -->
@ishisaka
ishisaka / ClosedXML Sample2.cs
Last active December 20, 2015 12:09
ClosedXMLを使った、Excel操作の例 ClosedXML http://closedxml.codeplex.com/
using System;
using System.Linq;
using ClosedXML.Excel;
/*
ClosedXMLを利用して、セルの値を取得するサンプル
*/
namespace ClosedXMLSample2
{
class Program