Ryan Cannon RCanine

View jshintrc-plus-grunt.js
1 2 3 4 5 6 7 8 9 10
'use strict';
 
module.exports = function (grunt) {
 
var jshintrc = grunt.file.readJSON('.jshintrc');
 
// super simple shallow copy/merge
function merge(o1, o2) {
var retVal = {}, i;
for (i in o1) {
View paginator.liquid
1 2 3 4 5 6 7 8 9
{% comment %}
Generate PURE Paginators in a Jekyll blog:
 
http://purecss.io/menus/#paginators
http://jekyllrb.com/docs/pagination/
 
The `page_spread` determines how wide the paginator is; it's the
number of links on either side of the center link, so you'll end
up with a list of the following sizes:
View yui-async-multi-grunt.js
1 2 3 4 5 6 7 8 9 10
/*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
View ios-linkfix.js
1 2 3 4 5 6 7 8 9 10
/*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,
View viewport.html
1 2 3 4 5 6 7 8 9 10
<!--
 
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>
View innocent.html
1 2 3 4 5
<div class="wrap">
<div class="bar">
<div class="foo">Text!</div>
</div>
</div>
View handlebars_compile.sh
1 2
#!/bin/bash
handlebars $1 | java -jar ~/bin/yuicompressor.jar --type js -o ${1/.handlebars/.js}
View data.json
1 2 3 4 5 6
{
"tests": [
{ "agree": "yes" },
{ "agree": "no" }
]
}
View _placeholder.scss
1 2 3 4 5 6 7 8 9 10
@mixin placeholder {
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
&::-webkit-input-placeholder {
@content;
}
&::-moz-placeholder {
@content;
}
View get-requirements.js
1 2 3 4 5 6 7 8 9 10
/*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.
Something went wrong with that request. Please try again.