This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin clearfix { | |
clear: both; | |
zoom: 1; | |
&:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
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 | |
//---------------------------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /d C:\cygwin\bin | |
ash rebaseall -v | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addEvent(element, type, handler, data, context) { | |
if (!element) { return false; } | |
if (!handler) { return false; } | |
context = context || element; | |
var fn = function (e) { | |
e = e || win.event; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var collection = Backbone.Collection.extend({ | |
originalSync: Backbone.sync, | |
sync: function(method, model, options) { | |
var originalSuccess, cache; | |
if (method !== 'read') { | |
this.originalSync(method, model, options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function flattenHeight(elements) { | |
var maxHeight, i, l, defaultView; | |
maxHeight = 0; | |
i = 0; | |
l = elements.length; | |
defaultView = document.defaultView || {}; | |
if (defaultView.getComputedStyle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.apply(null, Array(100)).forEach(function(x, i) { | |
console.log(i + 1); | |
}); |
OlderNewer