Skip to content

Instantly share code, notes, and snippets.

@moneya
moneya / Handler.php
Created February 14, 2018 10:47 — forked from collegeman/Handler.php
Boilerplated files for Lumen-based WordPress plugins
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
@moneya
moneya / wp-autopopulate-taxonomy
Created January 29, 2018 09:16 — forked from brenna/wp-autopopulate-taxonomy
WordPress function to auto-populate a taxonomy with a custom post type's entries.
function custom_tax_init(){
//set some options for our new custom taxonomy
$args = array(
'label' => __( 'My Custom Taxonomy' ),
'hierarchical' => true,
'capabilities' => array(
// allow anyone editing posts to assign terms
'assign_terms' => 'edit_posts',
/* but you probably don't want anyone
@moneya
moneya / bootstrap-form.css
Created January 2, 2018 07:06 — forked from sultann/bootstrap-form.css
Bootstrap 3.3.7 form elements css only
.plvr fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
.plvr legend {
display: block;
width: 100%;
@moneya
moneya / index.html
Created November 24, 2017 07:21 — forked from anonymous/index.html
Testimonials Slider for Computer Doctor
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'>
<div class="owl-carousel testimonial-carousel">
<!-- Start Testimonials -->
<!-- Testimonial 1 -->
<div class="single-testimonial">
<div class="testimonials-wrapper">
<h4>Habitasse lobortis cum malesuada nullam cras odio venenatis nisl at turpis sem in porta consequat massa a mus massa nascetur elit vestibulum a.</h4>
<div class="testimonials-blob"></div>
<div class="testimonials-img"><img src="https://randomuser.me/api/portraits/women/21.jpg"></div>
@moneya
moneya / 4sq-tutorial skeleton HTML
Created July 28, 2017 07:16 — forked from colinfwren/4sq-tutorial skeleton HTML
A skeleton HTML template for my foursquare tutorial
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Awesome Foursquare app</title>
<style>
body{
background-color: white;
font-size: 100%;
font-family: helvetica, arial, sans-serif;
}