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 | |
namespace App\Http\Controllers; | |
use App\Models\Web\Banner; | |
use App\Models\Web\Header; | |
use Illuminate\Http\Request; | |
use App\Models\Business\Contacto; | |
class ContactoController extends Controller |
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
.nav li ul { | |
visibility: collapse; | |
opacity: 0; | |
transition-property: opacity, visibility; | |
transition-duration: $transition-time; | |
transition-delay: 0s, $transition-time; | |
} | |
.nav li:hover ul { | |
visibility: visible; |
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
scrollToTop() { | |
const scrollPosition = document.documentElement.scrollTop | |
if (scrollPosition > 0) { | |
window.requestAnimationFrame(this.scrollToTop) | |
window.scrollTo(0, scrollPosition - (scrollPosition / 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
<template> | |
<a id="scroll-to-top" | |
class="scroll-to-top" | |
:class="{ 'is-visible': isVisible }" | |
href="#" | |
@click.prevent="scrollToTop"> | |
<i class="fa fa-angle-up"></i> | |
</a> | |
</template> |
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
find -type f -name "*.jpg" -exec jpegoptim --strip-all {} \; |
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
$hamburger-padding: 15px | |
$hamburger-padding-x: 15px | |
$hamburger-margin-left-y: -$hamburger-padding | |
$hamburger-layer-height: 4px | |
$hamburger-height: ($hamburger-layer-height * 3) + ($hamburger-padding * 2) |
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
#!/bin/bash | |
DEST_FOLDER='/var/www/example' | |
SOURCE_REPO='~/projects/app.git' | |
git --work-tree=$DEST_FOLDER --git-dir=$SOURCE_REPO checkout -f | |
changed_files="$(git diff-tree -r --name-only --no-commit-id HEAD)" | |
cd $DEST_FOLDER |
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
class ProfilePage extends StatefulWidget { | |
@override | |
_ProfilePageState createState() => _ProfilePageState(); | |
} | |
class _ProfilePageState extends State<ProfilePage> | |
with AutomaticKeepAliveClientMixin, SingleTickerProviderStateMixin { | |
TabController _tabController; |
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
final List<Map<String, dynamic>> _posts = [ | |
{ | |
'id': 1, | |
'title': 'Foo', | |
'body': 'Lorem', | |
}, | |
{ | |
'id': 2, | |
'title': 'Bar', | |
'body': 'Ipsum', |
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
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text('Posts: ${_posts.length}'), | |
), | |
body: Builder( | |
builder: (context) { | |
if (_posts.isEmpty) { | |
return Center( |
OlderNewer