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
// Define SCSS variables for the gap and breakpoints | |
$gap: 40px; | |
$breakpoints: ( | |
xs: 0px, | |
sm: 576px, | |
md: 768px, | |
lg: 992px, | |
xl: 1200px, | |
xxl: 1800px, |
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 Tests\Traits; | |
use Illuminate\Testing\TestResponse; | |
use Illuminate\Support\Arr; | |
use PHPUnit\Framework\Assert as PHPUnit; | |
trait AssertJson | |
{ |
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
// Example #1 | |
.tree__branch--green { | |
.twig__leaf { | |
color: green; | |
} | |
} | |
// Example #2 | |
.tree__branch--green__twig__leaf { | |
color: green; |
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
<a href="#" onclick="document.getElementById("block-order-detail").scrollIntoView();">This is my link text</a> |
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
const verifyUser = function(username, password, callback){ | |
dataBase.verifyUser(username, password, (error, userInfo) => { | |
if (error) { | |
callback(error) | |
}else{ | |
dataBase.getRoles(username, (error, roles) => { | |
if (error){ | |
callback(error) | |
}else { | |
dataBase.logAccess(username, (error) => { |
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> | |
... | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
product: Object | |
} |
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
module.exports = { | |
chainWebpack: config => { | |
config | |
.plugin('copy') | |
.use(require('copy-webpack-plugin'), [[{ | |
from: 'public', | |
ignore: ['./index.html', '.DS_Store'] | |
}]]) | |
} | |
} |
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
$block: diode | |
$diameter: 0.5rem | |
+component | |
width: $diameter | |
height: $diameter | |
background: $idle | |
display: inline-block | |
border: 2px solid white | |
margin-right: $margin_xs |
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
=vendor($attribute, $value) | |
-webkit-#{$attribute}: #{$value} | |
-moz-#{$attribute}: #{$value} | |
-ms-#{$attribute}: #{$value} | |
-o-#{$attribute}: #{$value} | |
#{$attribute}: #{$value} | |
=rotate($deg) | |
display: inline-block | |
+vendor(transform, rotate(#{$deg}deg)) |
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 | |
$clinics = new Clinic; | |
if($request->modules) | |
{ | |
foreach($request->modules as $module) | |
{ | |
$clinics = $clinics->whereHas('modules', function ($query) use ($module) { | |
$query->where('modules.id',$module); | |
}); | |
} |
NewerOlder