Skip to content

Instantly share code, notes, and snippets.

View s9tpepper's full-sized avatar

Omar Gonzalez s9tpepper

View GitHub Profile
@s9tpepper
s9tpepper / grunt.js
Created November 14, 2012 00:57 — forked from GarthDB/grunt.js
Fixme Grunt!
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
coffeeFiles: ['js/*.coffee', '!node_modules/**'],
cssFiles: ['css/*.styl', '!node_modules/**'],
watch: {
scripts: {
files: '<config:coffeeFiles>',
tasks: 'coffee'
var BuyThisWorld = function BuyThisWorld(callback) {
this.browser = document.querySelector('iframe');
callback();
};
// DSL
BuyThisWorld.prototype.test = function(callback) {
if (this.browser.contentDocument.querySelector('p').innerText === "Yup") {
callback;