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
<!-- media query debugger --> | |
<div class="navbar-fixed-top" style="right: initial"> | |
<button type="button" class="btn btn-default visible-lg">Large</button> | |
<button type="button" class="btn btn-default visible-md">Medium</button> | |
<button type="button" class="btn btn-default visible-sm">Small</button> | |
<button type="button" class="btn btn-default visible-xs">Extra-Small</button> | |
</div> | |
<!-- end media query debugger --> |
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
'use strict'; | |
// following guidelines from http://mattbailey.io/a-beginners-guide-to-grunt-redux/ | |
module.exports = function(grunt) { | |
require('load-grunt-config')(grunt); | |
require('time-grunt')(grunt); | |
grunt.loadNpmTasks("grunt-contrib-imagemin"); | |
/*grunt.loadNpmTasks("grunt-concurrent");*/ | |
grunt.initConfig({ |
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
function acf_contact_form_head() { | |
// verify nonce | |
if( acf_verify_nonce('acf_form') ) { | |
// validate data | |
if( acf_validate_save_post(true) ) { | |
// form | |
$GLOBALS['acf_form'] = acf_extract_var($_POST, '_acf_form'); | |
$GLOBALS['acf_form'] = @json_decode(base64_decode($GLOBALS['acf_form']), true); |
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
<?php | |
/** | |
* Customize the MutltiSite Registration Form | |
*/ | |
//1. Add a new form element... | |
add_action( 'signup_extra_fields', 'mydomain_register_form' ); | |
function mydomain_register_form( $errors ) { | |
// First name | |
$first_name = ( ! empty( $_POST['first_name'] ) ) ? trim( $_POST['first_name'] ) : ''; | |
echo '<label for="first_name">' . __('First Name:') . '</label>'; |
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
// because $_SERVER['HTTP_REFERER'] is unreliable | |
function get_referer() { | |
$scheme = is_ssl() ? 'https' : 'http'; | |
return $scheme . "://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; | |
} |
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
*[class^="col-"] .column-fluid { | |
margin-left: ceil(($grid-gutter-width / -2)); | |
margin-right: floor(($grid-gutter-width / -2)); | |
@include clearfix(); | |
} |
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
<span class="match-slot"> | |
<% if @response[index].to_i > 0 %> | |
<div data-id="<%= @response[index].to_i %>" class="draggable"> | |
<span class="bar"><%= Answer.find_by_id(@response[index]).answer %></span> | |
</div> | |
<% end %> | |
</span> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation 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
1. USB, set to Software Install | |
2. Launch Unity Remote | |
3. Launch Unity | |
4. Edit->Project Settings->Editor | |
5. Device: Any Android Device |
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
// Not unique table/alias: 'wp_term_relationships' | |
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID | |
FROM wp_posts | |
INNER JOIN wp_term_relationships | |
ON (wp_posts.ID = wp_term_relationships.object_id) | |
INNER JOIN wp_term_relationships | |
ON wp_posts.ID = wp_term_relationships.object_id | |
INNER JOIN wp_term_taxonomy | |
ON wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id | |
INNER JOIN wp_terms |
OlderNewer