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
* { | |
padding: 0; | |
margin: 0; | |
border: 0; | |
} | |
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; |
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
$layout-width: 1280; | |
@mixin adaptive-font($lg-size: 16, $xs-size: 14, $xs-screen: 320) { | |
$add-size: $lg-size - $xs-size; | |
$max-width: $layout-width - $xs-screen; | |
font-size: calc(#{$xs-size + px} + #{$add-size} * ((100vw - #{$xs-screen + px}) / #{$max-width})); | |
} | |
// h1 { @include adaptive-font(32, 24); } |
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
Obviously for educative purposes only. | |
Furthermore, this DOESN'T activate BabelEdit permanently. | |
If you like the software, buy it, the devs deserve it. | |
Since I have no money to buy it, I discovered a workaround for unlimited trials. | |
It's quite a annoying workaround, but ... it works! | |
Firstly go to "c:\windows\system32\drivers\etc\" and open the "hosts" file in Notepad/Notepad++/VSCode/Sublime/Atom/whatever as admin (if you don't open it as admin, it won't let you save it). | |
Add this line at the end of the file: |
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
<VirtualHost *:80> | |
DocumentRoot "/Users/myName/Projects/laravel/public" | |
ServerName myLaravel.dev | |
<Directory "/Users/myName/Projects/laravel/public"> | |
AllowOverride All | |
Options FollowSymLinks +Indexes | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> |
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
// scroll to content button | |
var $scrollToContentBtn = $('.js-scroll-to-content'), | |
allowScrolling = true; | |
allowAutoScrolling = $(window).scrollTop() === 0; | |
$(window).scroll(function () { | |
var $this = $(this); | |
if ($this.scrollTop() > 0 && allowAutoScrolling) { |
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
<meta name="format-detection" content="telephone=no"> |
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
protected function _connect() | |
{ | |
$this->_link = mysqli_init(); | |
if (!$this->_link) | |
{ | |
die('mysqli_init failed.'); | |
} | |
if (!mysqli_options($this->_link, MYSQLI_OPT_CONNECT_TIMEOUT, 5)) | |
{ |