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
/** | |
* Test detecting if scrollbars are available | |
* on overflow-scroll elements. | |
*/ | |
Modernizr.addTest('overflowscroll',function(){ | |
var container = document.createElement('div'); | |
container.style.cssText= 'height: 200px; width: 400px; overflow:scroll'; | |
var content = document.createElement('div'); |
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
# -------------------------------------------------------------------------- | |
# Puppet manifest for wordpress projects: | |
# - Creates a host entry | |
# - Configures a vhost on an Apache server | |
# - Creates a database with a specific user | |
# | |
# The manifest relies on Hiera to access server specific information like | |
# the folder where the project is deployed or the database password. | |
# | |
# Apache configuration uses a fork of puppetlabs-apache module, available at |
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
# The host resource manages entries in the host file | |
# http://docs.puppetlabs.com/references/latest/type.html#host | |
host { 'awesome-project': | |
ensure => 'present', | |
name => 'awesome-project.local', | |
ip => '127.0.0.1' | |
} |
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
# Apache configuration uses a fork of puppetlabs-apache module, available at | |
# https://github.com/rhumaric/puppetlabs-apache | |
# | |
# If you use the module from puppetlabs, be sure to remove | |
# - the `purge_vhosts_dir` parameter | |
# - the `setenv` parameter | |
# Makes sure apache is installed on the system. Leaves any vhost already | |
# deployed as it is. | |
class { 'apache': |
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
# Makes sure MySQL is available on the server | |
class { 'mysql::server': | |
config_hash => { | |
'root_password' => 'OMG-The-r0ot-p@sSword-in-Pl@1n-T3xt' | |
} | |
} | |
# And creates the database | |
mysql::db {'awesome-project.local': | |
user => 'awesome-project', |
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
module.exports = function(grunt) { | |
// Load Grunt tasks declared in the package.json file | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Configure Grunt | |
grunt.initConfig({ | |
// grunt-contrib-connect will serve the files of the project | |
// on specified port and hostname |
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
module.exports = function(grunt) { | |
// Load Grunt tasks declared in the package.json file | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Configure Grunt | |
grunt.initConfig({ | |
// grunt-contrib-connect will serve the files of the project | |
// on specified port and hostname |
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
module.exports = function(grunt) { | |
// Load Grunt tasks declared in the package.json file | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Configure Grunt | |
grunt.initConfig({ | |
// grunt-contrib-connect will serve the files of the project | |
// on specified port and hostname |
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
module.exports = function(grunt) { | |
// Load Grunt tasks declared in the package.json file | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Configure Grunt | |
grunt.initConfig({ | |
// grunt-contrib-connect will serve the files of the project | |
// on specified port and hostname |
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
describe('add()', function() { | |
it('Adds the character to the cast', function (){ | |
var cast = new MovieCast([{name:'Mickey'},{name: 'Pluto'}]); | |
var newCharacter = {name:'Goofy'}; | |
cast.add(newCharacter); | |
expect(cast.size()).to.equal(3); |
OlderNewer