A mega menu implementation using Bootstrap (unfinished - how can the indicator be positioned on the active top-level item without the relative positioning?)
This file contains hidden or 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
{ | |
"generate html5 (basic) template": { | |
"prefix": "html5", | |
"body": [ | |
"<!doctype html>", | |
"", | |
"<html lang=\"en\">", | |
"<head>", | |
" <meta charset=\"utf-8\">", | |
"", |
This file contains hidden or 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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{00000000-0000-0000-ba54-000000000002}", | |
"profiles": { | |
"defaults": { |
This file contains hidden or 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 class="header"> | |
<h1>Wavy Loading Animations</h1> | |
<h4>By: <a href="http://kylebrumm.com" target="_blank">Kyle Brumm</a></h4> | |
</div> | |
<div class="shaft-load"> | |
<div class="shaft1"></div> | |
<div class="shaft2"></div> | |
<div class="shaft3"></div> | |
<div class="shaft4"></div> |
This file contains hidden or 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
alias ls='ls -alh' | |
alias cdmongodata='cd /c/mongodb/data/db && ls' | |
alias sbrc='cd ~ && source .bashrc' | |
alias mydocs='cd ~/Documents' | |
alias dev='cd ~/devbox' | |
# Aliases | |
alias g='git' | |
alias gst='git status' | |
alias gd='git diff' | |
alias gdc='git diff --cached' |
This file contains hidden or 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
u(".widget-forms").each(function (el, i) { | |
console.log(el); | |
var button = u(el).find('.tag-button'); | |
var frm = u(el).find('.hide-tags'); | |
console.log(frm); | |
u(button).on('click', function () { | |
console.log(u(button).text()); | |
u(frm).toggleClass("bluform"); |
This file contains hidden or 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 | |
/* | |
* $data = dataset mixed|array|string required | |
* $title = component title string | |
* $attributes html attributes | |
* $view blade template optional | |
* */ | |
Html::component("component_name", "dash::components.test", ["data", 'title' => 'Title', "attributes" => [], 'view']); |
This file contains hidden or 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 | |
if(env("APP_DEBUG") === FALSE): | |
// 404 page when a model is not found | |
if ($exception instanceof ModelNotFoundException or $exception instanceof NotFoundHttpException) { | |
return response()->view('extras::errors.404', $request, 404); | |
} |
This file contains hidden or 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
alias gs='git status' | |
alias gc='git commit' | |
alias gcl='git clone' | |
alias gp='git push' | |
alias ga='git add' | |
alias gall='git add .' | |
alias ddev='cd /d/Apps/dev' | |
alias builds='cd /d/Apps/builds' | |
alias devcode='cd /d/DevCode' | |
alias apps='cd /d/Apps' |
This file contains hidden or 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 | |
// https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&key=API_KEY | |
if (isset($address)) { | |
$add = urlencode('342 glenn ivy terrace spring hill fl 34608'); | |
$url = "http://maps.googleapis.com/maps/api/geocode/json?address=$add&sensor=false"; | |
$data = file_get_contents($url); | |
$geo = json_decode($data); | |
$this->lat = $geo->results[0]->geometry->location->lat; | |
$this->long = $geo->results[0]->geometry->location->lng; |
NewerOlder