This file contains hidden or 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
module.exports = function(grunt){ | |
var date = new Date(); | |
var d = date.getFullYear() + "" + (date.getMonth()+1) + "" + date.getDate(); | |
grunt.initConfig({ | |
htmllint:{ | |
all:['../bin/*.html'] | |
}, | |
copy: { | |
build:{ | |
files:{ |
This file contains hidden or 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 express = require('express'); | |
var http = require('http'); | |
var partials = require('express-partials'); | |
var app = express(); | |
var server = http.createServer(app); | |
var path = require('path'); | |
var ejs = require('ejs'); | |
app.configure(function(){ | |
app.use(partials()); |
This file contains hidden or 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 doc = fl.getDocumentDOM() | |
var lib = doc.library; | |
var n = 0; | |
document.timelines.forEach(function(timeline){ | |
removeGuildLayer(timeline) | |
}) | |
lib.items.forEach(function(item){ | |
removeGuildLayer(item) | |
}) |
This file contains hidden or 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
" カーソルを自動的に()の中へ | |
imap {} {}<Left> | |
imap [] []<Left> | |
imap () ()<Left> | |
imap "" ""<Left> | |
imap '' ''<Left> | |
imap <> <><Left> | |
imap // //<left> | |
imap /// ///<left> |
This file contains hidden or 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 assert = require("assert") | |
var Browser = require("zombie") | |
describe("description", function() { | |
var browser = new Browser(); | |
var window = null; | |
var $ = null; | |
beforeEach(function(done){ | |
browser.visit("http://private.localhost/private/test/zombie-mocha/",function(){ |
This file contains hidden or 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
module.exports = function(grunt){ | |
grunt.initConfig({ | |
htmllint:{ | |
all:['index.html'] | |
}, | |
watch:{ | |
files:['index.html'], | |
tasks:'htmllint' | |
} | |
}); |
This file contains hidden or 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
//https://github.com/gruntjs/grunt/ | |
module.exports = function(grunt){ | |
grunt.initConfig({ | |
//execタスクとしてjasmine-headless-webkitを追加。 | |
exec:{ | |
jasmine:{ | |
command:"jasmine-headless-webkit", | |
stdout:true | |
} |
This file contains hidden or 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
//findで探してパイブwhile回す | |
find ... | while read f; do | |
echo $f | |
echo $(basename $f) | |
done |
This file contains hidden or 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
<script src="raphael.2.1.0.min.js"></script> | |
<script src="justgage1.0.min.js"></script> | |
//.. | |
<div id="gauge" class="200x160px"></div> | |
//.. | |
<script> |
This file contains hidden or 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 template = new t("<div>Hello {{=name}}</div>"); | |
document.body.innerHtml = template.render({name: "World!"}); |