You need to download libwebp and put in the shell script folder. You must have installed the jpegoptim, giflossy (gifsicle), pngquant and imagemagick library.
- Convert folder and put results in the results folder:
@mixin reset-list($display-inline: false) | |
{ | |
padding-left: 0; | |
margin:0; | |
& > li { | |
list-style: none; | |
@if ($display-inline) { | |
display: inline; | |
} | |
} |
<!doctype html> | |
<html amp="" lang="pt-br"> | |
<head> | |
<meta charset="utf-8" /> | |
<title><?php echo $this->get( 'document_title' ) ?></title> | |
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | |
<?php do_action( 'amp_post_template_head', $this ); ?> |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name='keywords' content="is, this, still, useful?"> | |
<meta name='description' content="This is a quick html5 stuff gist"> | |
<link rel="profile" href="http://graciano.github.io" /> | |
<meta property="og:image" content="imagens/dev.svg"> | |
<meta property="og:title" content="html5 gist"> |
{ | |
init: function(elevators, floors) { | |
for (let floor of floors) { | |
floor.on("up_button_pressed", function() { | |
for(let elevator of elevators) { | |
elevator.checkDestinationQueue(); | |
if(elevator.destinationQueue.lenght > 0 && elevator.loadFactor == 1){ | |
elevator.destinationQueue.push(floor); | |
elevator.checkDestinationQueue(); | |
} |
/* | |
* this really needs more work, the translates are tested only with 25px | |
*/ | |
@mixin arrow($size: 25px, $orientation: left, $color: #000, $hover-color: red) { | |
&:before, &:after { | |
display: block; | |
width: $size; | |
height: 1em; | |
border-top: 3px solid $color; | |
line-height: 1em; |
/** | |
* Add given screen specific callbacks to run when resize changes from 768px breakpoint | |
* Ensures that one of the callbacks run at the end of this function | |
*/ | |
let addResizeEventBreakpoint = function(mobileCallback, desktopCallback) { | |
// force handleResize to run some callback at first | |
var mobileState = window.matchMedia("(min-width: 768px)").matches; | |
function handleResize() { | |
//run mobileCallback if resized to mobile and last function that ran was desktopCallback |
{ | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Theme - Brogrammer/brogrammer.tmTheme", | |
"line_padding_top" : 5, | |
"line_padding_bottom" : 5, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.rpyc", | |
"*.pyo", |
var sendAjaxFormLaravel = function(form, callbacks){ | |
var formAction = form.attr('action'); | |
var formMethod = form.attr('method'); | |
var formData; | |
if(formMethod.toLowerCase() == 'post'){ | |
formData = form.serializeArray(); | |
$.ajaxSetup({ | |
headers: { 'X-CSRF-Token' : $('meta[name=_token]').attr('content') } | |
}); | |
} |
<?php | |
use Illuminate\Database\Seeder; | |
class DatabaseSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |