Skip to content

Instantly share code, notes, and snippets.

@AleeRojas
AleeRojas / auto_suggest.md
Created October 27, 2015 19:10
Typeahead.js & Laravel
  • view/index.blade.php
{{ Form::open(['url' => '/profile', 'method' => 'get']) }}
	{{ Form::text('user', null, ['id'=>'users']) }}
	{{ Form::submit('GO') }}
{{ Form::close() }}
  • routes.php
Route::get('/', 'SearchController@index');
@AleeRojas
AleeRojas / widget-skeleton.php
Last active August 29, 2015 14:25 — forked from matiskay/widget-skeleton.php
Wordpress Widget Skeleton
<?php
class Widget_Name extends WP_Widget {
function Widget_Name() {
$widget_opts = array(
'classname' => 'your-awesome-class',
'description' => 'Your awesome Description',
);
@AleeRojas
AleeRojas / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
$('.dropdown-menu').hide();
// Nav Dropdown
$('#navigation li').hover(function(){
$(this).find('.dropdown-menu').toggle();
});