Skip to content

Instantly share code, notes, and snippets.

View ykhs's full-sized avatar

Yukihisa Yamada ykhs

  • Autify, Inc.
  • Tokyo, Japan
View GitHub Profile
(function ($) {
$(function () {
// jQuery の要素集合をキャッシュ
var $slider_root = $('#slider'),
$slider_ul = $slider_root.find('ul'),
$slider_li = $slider_ul.find('li'),
sliderWidth = $slider_li.outerWidth(true) * $slider_li.size(),
viewWidth = 800;
@ykhs
ykhs / rebaseall.bat
Created April 21, 2011 06:55
Cygwin + git-svn で良く出てくる fatal error の対処
cd /d C:\cygwin\bin
ash rebaseall -v
pause
@ykhs
ykhs / _grid.scss
Created April 18, 2011 15:01
960 Grid System Using Sass.
/*!
Variable Grid System.
Learn more ~ http://www.spry-soft.com/grids/
Based on 960 Grid System - http://960.gs/
Licensed under GPL and MIT.
*/
// Containers
//----------------------------------------------------------------------------------------------------
@ykhs
ykhs / site.css
Created April 10, 2011 14:23
個人サイトに Sass を導入してみた(CSS 生成後)
/*!
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
html {
color: #000;
background: #FFF; }
@ykhs
ykhs / _clearfix.scss
Created April 10, 2011 14:22
個人サイトに Sass を導入してみた
@mixin clearfix {
clear: both;
zoom: 1;
&:after {
content: ".";
display: block;
height: 0;
clear: both;
--- a/autoload/zencoding.vim
+++ b/autoload/zencoding.vim
@@ -456,7 +456,11 @@ function! s:zen_toString_html(settings, current, type, inline, filters, itemno,
else
if inline == 0
if stridx(','.settings.html.empty_elements.',', ','.current.name.',') != -1
- let str .= " />\n"
+ if &ft != 'xhtml'
+ let str .= ">\n"
+ else