Skip to content

Instantly share code, notes, and snippets.

bradleyfew@bradleys-mbp comcom (js-testing) $ grunt test
>> Local Npm module "grunt-template-jasmine-requirejs" not found. Is it installed?
Running "connect:test" (connect) task
Started connect web server on http://0.0.0.0:8899
Running "jasmine:run" (jasmine) task
Warning: Object false has no method 'indexOf' Use --force to continue.
Aborted due to warnings.
@sirbrad
sirbrad / hubot.sh
Last active December 17, 2015 06:59
message:
{ user: { id: '1', name: 'Shell', room: 'Shell' },
text: 'hubot brew roulette',
id: 'messageId',
done: false,
room: 'Shell' },
match: [ 'hubot brew roulette', index: 0, input: 'hubot brew roulette' ],
envelope:
{ room: 'Shell',
user: { id: '1', name: 'Shell', room: 'Shell' },
.btn {
background-color: #f00;
display: block;
&:hover,
&:focus {
background-color: red;
}
&:active {
# Description:
# Decide who's making the next round of tea
#
# Commands:
# hubot brew roulette
#
taunts = [
", you are the chosen one my friend.",
", it's time to make a brew!",
@sirbrad
sirbrad / dabblet.css
Created March 12, 2013 17:22
Untitled
.grid {
background:red;
margin-left: -1em;
overflow: hidden;
/* demo purposes */
margin-bottom: 1em;
}
.cell {
box-sizing: border-box;
.btn {
@include box-sizing(border-box);
display: inline-block;
padding: 0.5em 1.75em;
border: none;
border-bottom: 1px solid #6B5F5A;
margin: 0;
background-color: $brand;
color: #fff;
cursor: pointer;
@sirbrad
sirbrad / gist:3419385
Created August 21, 2012 21:02
create styleguide blocks
// Return the hex value of tint/shade
@function colorToString($color, $int) {
$output: $color;
@if $int == 0 {
$output: base + ' - ' + $color;
}
@return "" + $output + "";
@sirbrad
sirbrad / gist:3414563
Created August 21, 2012 11:07
calculate percent
$site-width: 962px;
@function calc-percent($target, $container) {
// $container: $site-width !default; fails :(
@return ($target / $container) * 100%;
}
.foo {
/**********************************************/
/*
/* Darker Skin by Darcy Clarke - 2011
/*
/* For how to install, or more themes, check out:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
/* Color scheme is based on Joe Bergantine's Specials Board:
/* http://joebergantine.com/werkstatt/seestyle
/*
@sirbrad
sirbrad / Btn architecture
Created August 15, 2012 10:57
Quick overview of btn architecture
// Basic gradient mixin which is located inside variables-and-mixins.scss
@mixin basic-gradient($start, $stop) {
background: $start;
background: -moz-linear-gradient(top, $start 0%, $stop 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,$start), color-stop(100%,$stop));
background: -webkit-linear-gradient(top, $start 0%,$stop 100%);
background: -o-linear-gradient(top, $start 0%,$stop 100%);
background: -ms-linear-gradient(top, $start 0%,$stop 100%);
background: linear-gradient(to bottom, $start 0%,$stop 100%);
}