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
/*jQuery UI - Laravel 5*/ | |
/*Search Selection*/ | |
$(function() { | |
$(".input-search-selection").autocomplete({ | |
source: function(request, response) { | |
$.ajax({ | |
url: "{{url('sec-menus/menus-by-field')}}", | |
dataType: 'json', | |
data: { | |
searchValue: $('.input-search-selection').val(), |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Aloha!</title> | |
<style type="text/css"> | |
* { | |
font-family: Verdana, Arial, sans-serif; | |
} |
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 namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; | |
class AlohaController extends Controller | |
{ | |
public function getPdf() |
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
$(':input').on('propertychange input', function (e) { | |
var valueChanged = false; | |
if (e.type=='propertychange') { | |
valueChanged = e.originalEvent.propertyName=='value'; | |
} else { | |
valueChanged = true; | |
} | |
if (valueChanged) { | |
/* Code goes here */ |
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
/* | |
* Email send function | |
*/ | |
$nameTo = $request->FirstName . " " . $request->LastName; | |
$emailTo = $request->email; | |
$subject = 'Welcome to the jungle!'; | |
try{ | |
\Mail::send("emails.welcome", ['name' => $nameTo, 'email' => $emailTo], function($message) use ($nameTo, $emailTo, $subject){ | |
$message | |
->to($emailTo, $nameTo) |
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 | |
function uniqueString()// Return a unique string | |
{ | |
return $customId = strtoupper(uniqid()) . rand(0, 20); | |
} |
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
$(document).on('propertychange input keypress', '.mask-regex', function(e) { | |
let valueChanged = false; | |
let self = $(this); | |
if (e.type=='propertychange') { | |
valueChanged = e.originalEvent.propertyName=='value'; | |
} else { | |
valueChanged = true; | |
} |
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var rename = require('gulp-rename'); | |
var cssnano = require('gulp-cssnano'); | |
var iconfont = './node_modules/material-design-icons/iconfont'; | |
var roboto = './node_modules/roboto-fontface/fonts'; | |
gulp.task('material-css', function(){ | |
gulp |
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
Branch | |
git checkout -b <branch> | |
git push -u origin <branch> | |
Tag | |
git tag -a <tag> -m "message" | |
git push origin <tag> | |
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
<!-- | |
BREAKING NEWS: KITTENS FKN LOVE YARN | |
__ __, | |
\,`~"~` / | |
.-=-. / . .\ | |
/ .-. \ { = Y}= | |
(_/ \ \ \ / |
OlderNewer