Skip to content

Instantly share code, notes, and snippets.

@867
867 / Blog-Templates_header.html
Last active August 29, 2015 14:20
企業サイトブログに掲載(DreamweaverのTemplates)
<head>
<!-- TemplateParam name="global" type="text" value="" -->
<!-- TemplateParam name="second" type="text" value="" -->
<!-- TemplateParam name="col2" type="boolean" value="false" -->
</head>
<ul class="navGlobal">
<li><a@@((global=='home') ? ' class="is-active"':'')@@ href="/">HOME</a></li>
<li><a@@((global=='works') ? ' class="is-active"':'')@@ href="/works/">実績紹介</a></li>
<li><a@@((global=='company') ? ' class="is-active"':'')@@ href="/company/">企業情報</a></li>
<li><a@@((global=='recruit') ? ' class="is-active"':'')@@ href="/recruit/">採用情報</a></li>
<li><a@@((global=='news') ? ' class="is-active"':'')@@ href="/news/">ニュース</a></li>
<li><a@@((global=='contact') ? ' class="is-active"':'')@@ href="/contact/">お問い合わせ</a></li>
</ul>
<div id="contents" class="l-contents">
<!-- TemplateBeginIf cond="!col2" -->
<div id="main" class="l-main col1">
<!-- TemplateBeginEditable name="main1" -->●●<!-- TemplateEndEditable -->
</div>
<!-- TemplateEndIf -->
<!-- TemplateBeginIf cond="col2" -->
<div id="main" class="l-main col2">
<!-- TemplateBeginEditable name="main2" -->●●<!-- TemplateEndEditable -->
</div>
<head>
<!-- InstanceParam name="global" type="text" value="company" -->
<!-- InstanceParam name="second" type="text" value="message" -->
<!-- InstanceParam name="col2" type="boolean" value="true" -->
</head>
<body @@((second!='') ? 'class="t-'+global+'-'+second+'"' : 'class="t-'+global+'"')@@>
<div id="header" class="l-header">
<ul class="navGlobal">
<li><a href="/">HOME</a></li>
<li><a href="/works/">実績紹介</a></li>
<li><a class="is-active" href="/company/">企業情報</a></li>
<li><a href="/recruit/">採用情報</a></li>
<li><a href="/news/">ニュース</a></li>
<li><a href="/contact/">お問い合わせ</a></li>
</ul>
</div>
@867
867 / Blog-httpd-vhosts.conf
Last active January 12, 2016 08:35
Apach2.4系のバーチャルホスト設定
## Apache2.4系 通常のバーチャルホスト設定
<VirtualHost *:80>
DocumentRoot "c:/var/www/dev.sample1.local/html"
ServerName dev.sample1.local
ErrorLog "logs/sample1-error.log"
CustomLog "logs/sample1-access.log" common
<Directory "c:/var/www/dev.sample1.local/html">
Require all granted
</Directory>
@867
867 / Blog-httpd-vhosts.conf
Last active January 12, 2016 08:34
Apache2.4系でVirtualDocumentRootを使うときの設定
## Apache2.4系 VirtualDocumentRootを使う場合の設定
UseCanonicalName Off
<virtualhost *:80>
VirtualDocumentRoot "c:/var/www/%0/html"
</virtualhost>
<directory "c:/var/www/*/html">
Require all granted
</directory>
@867
867 / Deploy-subdirectory.php
Last active December 21, 2015 06:39
BacklogのサブディレクトリのみをCPIへのデプロイするスクリプト。
<?php
/**
* BacklogからCPIへのデプロイスクリプト(https://gist.github.com/hissy/6a114d0d9a85f3338aed)
* 上記に対し、Gitのサブディレクトリ(/html)のみをデプロイするよう改変しました。
*/
// CPIユーザーID(契約情報で確認してください)
$user_id = 'abc123defg';
// Gitレポジトリの位置の指定(固定で[.git])
$git_dir = '/usr/home/' . $user_id . '/.git';
'use strict';
const gulp = require('gulp');
const nunjucks = require('gulp-nunjucks-render');
const data = require('gulp-data');
const beautify = require('gulp-html-beautify');
const brsync = require('browser-sync');
const paths = {
'src' : {