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
#!/usr/bin/env bash | |
echo ">>> Starting Install Script" | |
# Update | |
sudo apt-get update | |
# Install MySQL without prompt | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root' |
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
# BASH Configuration and Aliases | |
# source: http://natelandau.com/my-mac-osx-bash_profile/ | |
# source: https://github.com/mathiasbynens/dotfiles | |
# Sections: | |
# 0. Execute Only Once (if you want) | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching |
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
fa-glass | |
fa-music | |
fa-search | |
fa-envelope-o | |
fa-heart | |
fa-star | |
fa-star-o | |
fa-user | |
fa-film | |
fa-th-large |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php | |
*/ | |
$args = array( |
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 customInterpolationApp = angular.module('customInterpolationApp', []); | |
customInterpolationApp.config(function($interpolateProvider) { | |
$interpolateProvider.startSymbol('<%'); | |
$interpolateProvider.endSymbol('%>'); | |
}); |
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
/** | |
* WP_Customize_Manager->add_setting(); // adds a new setting to the database | |
* WP_Customize_Manager->add_section(); // adds a new section (i.e. category/group) to the Theme Customizer page | |
* WP_Customize_Manager->add_control(); // creates an HTML control that admins can use to change settings. | |
* WP_Customize_Manager->get_setting(); // can be used to fetch any existing setting, in the event you need to modify something | |
*/ | |
add_action( 'customize_register', 'my_customize_register' ); | |
function my_customize_register( $wp_customize ) { |
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
$.extend($.fn, { | |
spin: function (opts, callback) { | |
this.each(function() { | |
var $this = $(this), | |
data = $this.data(); | |
if (opts !== false) { | |
data.spinner = new Spinner(opts).spin(this); | |
$this.trigger('spin'); |
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
// Save this as a seperate file & execute it before the second file | |
// It will collect all the links and store them in a file | |
module.exports = { | |
'Collect all the links': function (test) { | |
test.open('http://google.com') | |
// load all the links | |
.execute(function () { | |
var links = document.getElementsByTagName('a'); | |
var data = []; | |
for (var i = 0; i <= links.length; i++) { |
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
module.exports = { | |
'A lot of screenshots': function (test) { | |
var resolutions = [{width: 1280, height: 1024}, {width: 1024, height: 768}, {width: 800, height: 600}]; | |
var pages = ['http://facebook.com', 'http://twitter.com', 'http://dalekjs.com']; | |
resolutions.forEach(function (res) { | |
pages.forEach(function (page) { | |
test.open(page) | |
.resize(res) |
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
.select2-container .select2-choice { | |
border: 2px solid #dce4ec; | |
font-family: "Lato", sans-serif; | |
font-size: 14px; | |
text-indent: 1px; | |
-webkit-border-radius: 6px; | |
-moz-border-radius: 6px; | |
border-radius: 6px; | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; |