Skip to content

Instantly share code, notes, and snippets.

View edbentinck's full-sized avatar

Ed Bentinck edbentinck

View GitHub Profile
@edbentinck
edbentinck / SassMeister-input.scss
Created May 4, 2015 12:37
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
.form {
color: black;
&__label { font-weight: bold; }
&__input {

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

/**
* An AngularJS directive for Dropzone.js, http://www.dropzonejs.com/
*
* Usage:
*
* <div ng-app="app" ng-controller="SomeCtrl">
* <button dropzone="dropzoneConfig">
* Drag and drop files here or click to upload
* </button>
* </div>
@edbentinck
edbentinck / wordpress_dropdown_menu
Last active August 29, 2015 14:01 — forked from hitautodestruct/readme.md
Create custom WordPress menu navigation, including sub-menus
<?php
$menu_name = 'primary';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="nav site-nav l-container l--fullwidth">
<?php