Skip to content

Instantly share code, notes, and snippets.

View mattisbusycom's full-sized avatar

Matthew M Kaufman mattisbusycom

View GitHub Profile

Multi-Toggle Navigation

The multi-toggle is basically just nested accordions. The user taps on the parent category to reveal children categories underneath. Once enough screen real estate becomes available, they convert to the usual multi-level dropdown we’re used to seeing.

A Pen by Brad Frost on CodePen.

License.

<header class="clearfix">
<div class="container">
<div class="header-left">
<h1>Your company</h1>
</div>
<div class="header-right">
<label for="open">
<span class="hidden-desktop"></span>
</label>
<input type="checkbox" name="" id="open">

Integrating WP API into Core

Plan for integrating WP API into core

This document describes the process of integrating the WordPress JSON REST API ("API project") into the WordPress core codebase ("core").

Motivation

Accessing data remotely is a common goal for many WordPress users and developers. The ability to access and update data remotely is used by desktop publishing software, mobile applications, and in-browser applications. These

$link = mysql_connect($host, $user, $password);
if (!$link)
{
die('Could not connect: ' . mysql_error());
}
else
{
echo 'Connected successfully';
}
@mattisbusycom
mattisbusycom / gradient-div.html
Created May 30, 2015 02:27
nice super super simple clean gradient div
<div class="gradient">
</div>
<style>
div {
height: 60px;
background-color: red;
background-image:
linear-gradient(
Vagrant.configure(2) do |config|
config.vm.box = "lucid32"
config.vm.provision :shell, :path => "vagrant-provision.sh"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777","fmode=666"]
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
# First, create the synonyms file /opt/elasticsearch/name_synonyms.txt
# with the contents:
#
# rob,bob => robert
#
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGGryv/qvcRBpBt8tNdBtr5hinrLxjqNMjlXyDlDXMdQOz9ll49BSSWODfHCG1Rsq2RVCcBpZPEpzsw1HjzHiUN630KWAbTlmv/mfKvCk8SLQAxigj7ilM/33xW3syf5G0wpvolDhDE+Ow0PDHS/og0jc/Ok4AvzvitmPcpqLC+ebb96hL+3X2z8J3M8OvENMIiJSkCIRBf/cjjjeuKg4z2VR/17Jc9DR61Zf6R6QXxRxAm2RKqhpUcRc2yg2HR/FVr902f5wNkhD7iuYpdFcgIYHhkv2mt4cgNVkvmtFs4zzwXAcRot8SeOnUZUleAsbqz3H7K7kT82fRvpvwbPoX spclopsinc@matt-Lenovo-Edge-15