Skip to content

Instantly share code, notes, and snippets.

@evangoer
evangoer / gist:1161628
Created August 22, 2011 03:58 — forked from juandopazo/gist:1161269
YUI Boilerplate - more minimal
<!DOCTYPE html>
<title>My App</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/combo?3.4.0/build/cssreset/cssreset-min.css&
3.4.0/build/cssfonts/cssfonts-min.css&3.4.0/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="styles.css">
<script src="http://yui.yahooapis.com/3.4.0/build/yui/yui-min.js"></script>
<script>
YUI().use("event-base", function (Y) {
// specify "node-base", "event-base", or whichever modules your app requires

Improvements to New YUI Blog Theme

Objective

  • Wrong copyright. Should be: "© 2012 Yahoo! Inc." not: "© 2012 YUI Blog"
  • Search page is unusable: http://cl.ly/IiYS
  • Linen texture should only be at the lowest layer of the design (I don't care that iOS uses it for the notification sheets, they did it wrong :)
  • Home page's heading alignments are off:

I wrote this for a colleague at work, but I thought I'd share it here for those that are confused as to the role of a build tool. To those that have not spent years working with various build tools, it may be tempting to find one that is written in the language you are using (i.e. Phing, Ant, Rake, and Grunt come to mind) or perhaps you are easily persuaded by things that have a lot of features (Gradle immediately comes to mind).

To be honest, build tools are just glorified shell script wrappers. Some more complex than others. At the end of the day, a build tool should do four things to be useful and not get in the way:

  1. Run your scripting tasks (where less abstraction layers are better than more).
  2. Allow you to define dependencies (like, always run the task to delete all of the build artifacts before running the task that generates code coverage).
  3. Give you a simple way (preferably without needing to install a fancy GUI/IDE) to look at what build steps will be run without running them.
  4. Issue a s
@evangoer
evangoer / readme.md
Last active December 15, 2015 06:19 — forked from max-mapper/readme.md
@evangoer
evangoer / index.html
Last active April 7, 2017 22:40 — forked from anonymous/index.html
Starter React jsbin with JSX
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Starter React jsbin with JSX">
<script src="http://fb.me/react-with-addons-0.13.1.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>