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 | |
| /** | |
| * composer require sentry/sentry-sdk | |
| */ | |
| use Sentry; | |
| Env::init(); | |
| // Bedrock application config... | |
| if (env('SENTRY_DSN')) { | |
| Sentry\init([ | |
| 'dsn' => env('SENTRY_DSN'), |
A Holiday gift exchange is where a group of people are randomly assigned one other person in the group to buy a gift for. This person can be anyone else in the group except for themselves. Everyone should both give and receive a gift.
Design a program that reads a provided CSV file, performs the matching, and then prints out the matches. Assume that you may email the match to the person later, but focus on printing first.
The format of the CSV is name,email on each row.
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 mandatory_excerpt($data) { | |
| $excerpt = $data['post_excerpt']; | |
| if (empty($excerpt)) { | |
| if ($data['post_status'] === 'publish') { | |
| add_filter('redirect_post_location', 'excerpt_error_message_redirect', '99'); | |
| } |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| require 'yaml' | |
| ANSIBLE_PATH = '.' # path targeting Ansible directory (relative to Vagrantfile) | |
| # Set Ansible roles_path relative to Ansible directory | |
| ENV['ANSIBLE_ROLES_PATH'] = File.join(ANSIBLE_PATH, 'vendor', 'roles') |
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 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'graphql', '1.10.10' | |
| end | |
| class BaseArgument < GraphQL::Schema::Argument | |
| def initialize(*args, **kwargs, &block) | |
| super(*args, prepare: method(:convert_id), **kwargs, &block) |
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 | |
| if (!is_blog_installed()) { return; } | |
| if ('http://' . $_SERVER['SERVER_NAME'] . '/wp' == get_option('home')) { | |
| update_option('siteurl', 'http://' . $_SERVER['SERVER_NAME'] . '/wp'); | |
| update_option('home', 'http://' . $_SERVER['SERVER_NAME']); | |
| update_option('upload_path', $_SERVER['DOCUMENT_ROOT'] . '/media'); | |
| update_option('upload_url_path', 'http://' . $_SERVER['SERVER_NAME'] . '/media'); | |
| update_option('permalink_structure', '/%postname%/'); | |
| } |
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
| # Load DSL and Setup Up Stages | |
| require 'capistrano/setup' | |
| # Includes default deployment tasks | |
| require 'capistrano/deploy' | |
| # Custom tasks | |
| require 'capistrano/composer' | |
| require 'capistrano/npm' |
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
| const WHITELIST = [ | |
| 'https://cdn.theathletic.com' | |
| ] | |
| const ALLOW = { cancel: false }; | |
| const DENY = { cancel: true }; | |
| chrome.webRequest.onBeforeSendHeaders.addListener((req) => { | |
| var cancel = null; |
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
| # this is group_vars/development | |
| --- | |
| www_root: /srv/www | |
| # Define your WordPress sites here | |
| wordpress_sites: | |
| - site_name: site1.dev | |
| site_hosts: | |
| - site1.dev |
NewerOlder