This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Created by: Daniel Flynn | |
* Date: Jan 17, 2013 | |
* Updated: Jan 17, 2013 | |
* jQuery plugin for a dynamic country/state select field | |
* | |
**/ | |
(function($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Created by: Daniel Flynn | |
* Date: Mar 04, 2013 | |
* jQuery plugin for a lazy loading slideshow | |
* Assumes that the slides or content is in order and has a data-src attribute. | |
* | |
* Currently is only working with images as content. Other file types will be added | |
* in as development continues | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppBuilder < Rails::AppBuilder | |
# Checks to make sure that hub is installed before continuing | |
def rakefile | |
if `which hub`.strip == "" | |
say "hub", "Please install hub. https://github.com/defunkt/hub" | |
exit 1 | |
end | |
end | |
# Makes the readme use Markdown and pre-populates it with basic information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This is a LESS port of Sparkbox's module-based media queries mixin in SASS | |
* https://github.com/sparkbox/SB-Media | |
* | |
* Example use: http://codepen.io/dflynn15/pen/AHadk | |
* body{ | |
* background-color:red; | |
* | |
* .sb-media(40em ,{ | |
* background-color: blue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Format of command: ./xampp.sh new.website.name.com projectDir path/to/project/Dir | |
# Number of expected arguments | |
EXPECTED_ARGS=3 | |
function create_symbolic_link { | |
sudo ln -s $1 /Applications/XAMPP/xamppfiles/htdocs/$2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var jasmine = require('gulp-jasmine-phantom'); | |
gulp.task('default', function() { | |
return gulp.src('spec/test.js') | |
.pipe(jasmine({ | |
integration: true | |
})); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var jasmine = require('gulp-jasmine-phantom'); | |
gulp.task('unitTests', function () { | |
return gulp.src('spec/test.js') | |
.pipe(jasmine()); | |
}); | |
gulp.task('integrationTests', function() { | |
return gulp.src('spec/test.js') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
merger = require ('lcov-result-merger'); | |
gulp.task('merge-coverage', function() { | |
return gulp.src('./reports/coverage/**/lcov.info') | |
.pipe(merger()) | |
.pipe(gulp.src('./reports/merged/')) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.hero { | |
// First, styles that all brands | |
// have in common. | |
// (The "shared stuff") | |
font-size: 2em; | |
font-weight: bold; | |
border: 1px solid; | |
// Next, brand-specific styles. | |
// (The "themed stuff") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class Capital | |
attr_reader :contestants | |
def initialize() | |
@contestants = [] | |
end | |
def register(NewContestant) | |
puts "#{NewContestant.name} has entered the game!" | |
@contestants >> NewContestant |
OlderNewer