Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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
// Original: https://github.com/gaspanik/gulpbase/ | |
// Update 0.2.0 | |
var gulp = require('gulp'), | |
// 列挙するのが面倒なので、load-pluginsでプラグインをロード。何使ってるかは「package.json」で | |
var $ = require('gulp-load-plugins')({ | |
pattern: ['gulp-*', 'gulp.*'], | |
replaceString: /\bgulp[\-.]/ |
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
// admin/make-form.phpの最後にscriptタグで追加 | |
(function($){ | |
var $box = $('#standard-form'), | |
boxBaseOffsetY = $box.offset().top; | |
$box.css({ | |
position: 'absolute', | |
left:0, |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
generate: { | |
all: { | |
expand: true, | |
cwd: '.grunt/html/', | |
src: ['**/*.hbs', '!**/*.inc.hbs'], | |
filter: 'isFile', | |
dest: './', | |
ext: '.html' |
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
$ node include-helper.js test,tmpl | |
<p>apple is sweet and red.</p> | |
<p>orange is sweet and orange.</p> | |
<p>grape is sweet and purple.</p> | |
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
#除外ファイル | |
exclude = [ | |
'!**/.DS_Store' | |
'!**/Thumbs.db' | |
'!**/*.coffee' | |
'!**/*.map' | |
'!**/*.scss' | |
'!**/*.less' | |
'!**/*.s.css' | |
'!**/*.l.css' |
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
requirejs.config({ | |
baseUrl: '/js', | |
paths: { | |
jquery: ['//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min','jquery.min'], | |
bootstrap: 'bootstrap.min' | |
}, | |
shim: { | |
'bootstrap':{deps: ['jquery']} | |
} | |
}); |
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
/* | |
* Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
* These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
* | |
* Original: | |
* nhoizey / screenshots.js https://gist.github.com/nhoizey/4060568 | |
* | |
* Usage: | |
* $ casperjs screenshots.js http://example.com | |
*/ |
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
'use strict' | |
PROJECT_DIR = '' | |
LIVERELOAD_PORT = 35729 | |
lrSnippet = require('connect-livereload')({ port: LIVERELOAD_PORT }) | |
proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest | |
mountFolder = (connect, dir) -> | |
return connect.static(require('path').resolve(dir)) | |
module.exports = (grunt) -> | |
grunt.initConfig |
NewerOlder