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
/*jshint node:true*/ | |
module.exports = function(grunt) { | |
var Y = require("yui/promise"), | |
name = "...", | |
desc = "...", | |
defaultOptions = { /* */ }; | |
function executeAsyncTask(resolve, reject, file, options) { | |
// this is where your business logic goes | |
// call `resolve` when the task is finished |
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
/*global YUI*/ | |
/** | |
* Prevents iOS from showing the URL bar for cancelled links | |
* | |
* @module ios-linkfix | |
* @requires base-build, event-touch, node-base, node-event-delegate, plugin | |
*/ | |
YUI.add("ios-linkfix", function (Y, NAME) { | |
var HREF = "href", | |
DATA = "data-" + NAME, |
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
<!-- | |
This is the mobile viewport setting. iOS 5 has a bug that | |
does some goofy scaling when you rotate it unless you set | |
the max scale to 1. We could do a one-off for this, | |
but it doesn't seem worth it. | |
--> | |
<meta id="meta-viewport" name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1"> | |
<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
<div class="wrap"> | |
<div class="bar"> | |
<div class="foo">Text!</div> | |
</div> | |
</div> |
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
#!/bin/bash | |
handlebars $1 | java -jar ~/bin/yuicompressor.jar --type js -o ${1/.handlebars/.js} |
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
{ | |
"tests": [ | |
{ "agree": "yes" }, | |
{ "agree": "no" } | |
] | |
} |
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
@mixin placeholder { | |
-webkit-appearance: textfield; | |
-moz-appearance: textfield; | |
appearance: textfield; | |
&::-webkit-input-placeholder { | |
@content; | |
} | |
&::-moz-placeholder { | |
@content; | |
} |
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
/*global YUI*/ | |
YUI.add("get-depenedencies", function (Y) { | |
/** | |
* Provides a method to recursively lookup YUI module dependencies | |
* | |
* @module get-depenedencies | |
*/ | |
/** | |
Retrieves the entire module dependency list for the given module. |
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
YUI({ | |
groups: { | |
group1: { modules: ["mymodule": {}], base: "http://group1..." }, | |
group2: { modules: ["mymodule": {}], base: "http://group2..." }, | |
} | |
}).use( | |
// maintain current usage | |
"node", | |
// allow specifying skins at the module level | |
{ name: "slider", skin: "round-dark" /* or ["sam", "round-dark"] */ }, |
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
/*global require,console,process*/ | |
var fs = require("fs.extra"), | |
exec = require('child_process').exec, | |
path = process.argv[2]; | |
fs.readdirSync(path).forEach(function (name) { | |
var loc = path + "/" + name; | |
// Is it a directory? | |
if ((/^[^\.]/).test(name)) { |