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
" Highlight ES6 template strings | |
hi link javaScriptTemplateDelim String | |
hi link javaScriptTemplateVar Text | |
hi link javaScriptTemplateString String |
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
{ | |
"require-dev": { | |
"10up/wp_mock": "dev-master" | |
} | |
} |
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 loadTasks = require( 'load-grunt-tasks' ); | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
nodemon: { | |
dev: { | |
script: 'server.js', |
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
function! OpenQuickList(data) | |
silent! botright 10split __QuickList__ | |
normal! ggdG | |
setlocal buftype=nofile | |
setlocal bufhidden=delete | |
setlocal noswapfile | |
setlocal nowrap | |
setlocal nobuflisted |
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
function! RunNetGrep(pattern, ...) | |
let tmpfile = tempname() | |
if exists('g:NetGrep_server_name') && exists('g:NetGrep_default_directory') | |
let server_name = g:NetGrep_server_name | |
let default_directory = g:NetGrep_default_directory | |
else | |
echom "Error: NetGrep requires g:NetGrep_server_name and g:NetGrep_default_directory" | |
return | |
endif |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :public_network | |
config.vm.provision :shell, :path => "deploy-puppet.sh" | |
config.vm.provision :puppet do |puppet| | |
puppet.module_path = "modules" | |
puppet.manifests_path = "manifests" | |
end | |
end |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.ssh.private_key_path = "PRIVATE_KEY" | |
config.vm.provider :rackspace do |rs| | |
rs.username = "USER" | |
rs.api_key = "KEY" | |
rs.flavor = /512MB/ | |
rs.image = /Ubuntu/ |
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
forge "http://forge.puppetlabs.com" | |
mod 'hunner/wordpress' | |
mod 'puppetlabs/apache' | |
mod 'b0d0nne11/vim' |
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
@mixin bleed($padding: $grid-padding, $sides: left right) { | |
@if $sides == 'all' { | |
margin: - $padding; | |
padding: $padding; | |
} @else { | |
@each $side in $sides { | |
margin-#{$side}: - $padding; | |
padding-#{$side}: $padding; | |
} | |
} |
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
def fill_in_select2(selector, options={}) | |
page.find(:css, "#s2id_#{selector} a").click | |
page.find(:css, ".select2-search input.select2-input").set options[:with] | |
page.find(:css, ".select2-result-label").click # Choose the first result | |
end |