View ICS.php
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 | |
/** | |
* ICS.php | |
* ======= | |
* Use this class to create an .ics file. | |
* | |
* Usage | |
* ----- | |
* Basic usage - generate ics file contents (see below for available properties): |
View AutoComplete.vue
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
<script> | |
Vue.component('autoComplete', { | |
template: | |
'<div>' + | |
'<div class="input-group float-right">' + | |
'<input type="text" ' + | |
'id="instantSearch" ' + | |
'v-model="instantSearch" ' + | |
'v-on:keyup="getSearchData" ' + | |
'class="form-control rounded-left border-right-0 font-italic" ' + |
View route.php
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
Route::get('/', 'CustomersController@autocomplete'); | |
Route::get('instantSearch', 'CustomersController@instantSearch'); |
View view.blade.php
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
<div id="app"> | |
<auto-complete></auto-complete> | |
</div> |
View CustomersController.php
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
public function autocomplete() | |
{ | |
return view('panel.dashboard'); | |
} | |
public function instantSearch(Request $request) | |
{ | |
$customers = Customers::where('FirstName','LIKE',$request->instantSearch.'%')->get(); | |
return response()->json($customers); | |
} |
View I am not ready to publish them
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
" ------------------------------------ Vim Plug --------------------------------- " | |
source $HOME/.config/nvim/vim-plug/plugins.vim | |
" ------------------------------------ Mappings --------------------------------- " | |
nnoremap <SPACE> <Nop> | |
let mapleader = ' ' |
View Plugins.vim
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
" auto-install vim-plug | |
if empty(glob('~/.config/nvim/autoload/plug.vim')) | |
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
"autocmd VimEnter * PlugInstall | |
"autocmd VimEnter * PlugInstall | source $MYVIMRC | |
endif | |
call plug#begin('~/.config/nvim/autoload/plugged') |