Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View marcusellis05's full-sized avatar

Marcus Ellis marcusellis05

View GitHub Profile
@marcusellis05
marcusellis05 / fizzbuzz.js
Last active August 29, 2015 14:21
FizzBuzz
function fizzbuzz(limit){
var fb;
for (var i=1; i<=limit; i++){
fb = '';
if (i % 3 === 0){
fb += 'Fizz';
}
if (i % 5 === 0){
fb += 'Buzz';
}
@marcusellis05
marcusellis05 / gruntfile.js
Last active August 29, 2015 14:18
Issue with grunt-contrib-jasmine
"use strict";
var loadGruntTasks = require('load-grunt-tasks');
module.exports = function(grunt) {
grunt.initConfig({
connect: {
test : {
port : 8000
@marcusellis05
marcusellis05 / gist:4b53ee767798ef211900
Created July 9, 2014 20:33
The problem with CSS PreProcessors
input[type="email"][readonly]:hover,
input[type="file"][readonly]:hover,
input[type="number"][readonly]:hover,
input[type="password"][readonly]:hover,
input[type="reset"][readonly]:hover,
input[type="search"][readonly]:hover,
input[type="submit"][readonly]:hover,
input[type="button"][readonly]:hover,
input[type="tel"][readonly]:hover,
input[type="text"][readonly]:hover,
@marcusellis05
marcusellis05 / build.js
Last active December 31, 2015 21:59
Simple Node script for calling Grunt tasks without the CLI
var grunt = require('grunt')
, args = process.argv.slice(2)
, tasks = ['build'];
if (args && args.length){
tasks = args;
}
grunt.cli.tasks = tasks;
grunt.cli();