A list of some other badges: http://shields.io/
This file contains hidden or 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
| <?php | |
| /** | |
| * Implements hook_drush_command(). | |
| */ | |
| function example_drush_command() { | |
| $commands = array(); | |
| $commands['stub-content'] = array( | |
| 'callback' => 'drush_stub_content', |
This file contains hidden or 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
| // | |
| // Paths | |
| // | |
| var basePaths = { | |
| src: 'source/', | |
| dest: 'source/' | |
| }; | |
| var paths = { |
This file contains hidden or 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
| //add <p class="wide"> to make a <p> stretch a grey background across full width | |
| .wide { | |
| background-color: #aaa; | |
| position: relative; | |
| padding: 20px 0; | |
| } | |
| .wide:before, | |
| .wide:after { | |
| content: ' '; |
This file contains hidden or 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 rimraf = require('rimraf'); | |
| var less = require('gulp-less'); | |
| var concat = require('gulp-concat'); | |
| var prefixer = require('gulp-autoprefixer'); | |
| var cssmin = require('gulp-minify-css'); | |
| var jsmin = require('gulp-uglify'); | |
| var watch = require('gulp-watch'); | |
| var util = require('gulp-util'); | |
| var rename = require('gulp-rename'); |
This file contains hidden or 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
| /*global console:true, phantom:true, slidedeck:true*/ | |
| var webpage = require('webpage'), | |
| page = webpage.create(), | |
| system = require('system'), | |
| url = system.args[1] || 'index.html', | |
| fs = require('fs'), | |
| imageSources = [], | |
| imageTags, | |
| width = system.args[2] || 1920, |
This file contains hidden or 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
| <?php | |
| /** | |
| * Implements hook_theme(). | |
| */ | |
| function ds_extras_tokens_theme() { | |
| // Declare our own theme hook, to add to the | |
| // theme_hook_suggestions for 'field' | |
| return array( |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
This file contains hidden or 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
| Feature: Content Type Tests | |
| As an Administrator | |
| I should be able to create nodes of all Content Types | |
| @api @Env::Backend @Creator::EvanAgee | |
| Scenario: Make sure we can create Basic Pages | |
| Given I am logged in as a user with the "administrator" role | |
| And I visit "node/add/page" | |
| Then I enter "BDD TEST BASIC PAGE" for "Title" | |
| And I attach the file "photo.jpg" to "edit-field-images-und-0-upload" |
This file contains hidden or 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
| // Brightness math based on: | |
| // http://www.nbdtech.com/Blog/archive/2008/04/27/Calculating-the-Perceived-Brightness-of-a-Color.aspx | |
| $red-magic-number: 241; | |
| $green-magic-number: 691; | |
| $blue-magic-number: 68; | |
| $brightness-divisor: $red-magic-number + $green-magic-number + $blue-magic-number; | |
| @function brightness($color) { | |
| // Extract color components |