This file contains 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
$choices-font-size-lg: $input-font-size-lg; | |
$choices-font-size-md: $input-font-size; | |
$choices-font-size-sm: $input-font-size-sm; | |
$choices-guttering: $spacer; | |
$choices-border-radius: 0; | |
$choices-border-radius-item: 0; | |
@if $enable-rounded { | |
$choices-border-radius: $input-border-radius; |
This file contains 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\Console\Commands; | |
use Illuminate\Console\Command; | |
/** | |
* Class CreateFontawesomeIconArray | |
* @package App\Console\Commands | |
* |
This file contains 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
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */ | |
function jsInclude(files, target) { | |
let loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] | |
.getService(Components.interfaces.mozIJSSubScriptLoader); | |
for (let i = 0; i < files.length; i++) { | |
try { | |
loader.loadSubScript(files[i], target); | |
} | |
catch(e) { |
This file contains 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 | |
/* | |
Better eager loading example for GraphQL package | |
https://github.com/Folkloreatelier/laravel-graphql/blob/master/docs/advanced.md#eager-loading-relationships | |
Given a GraphQL query like.... | |
{ | |
document { | |
id, |
This file contains 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 | |
// Array average method for use within Laravel framework | |
// simple example usage: | |
// $arr = [1,2,3] | |
// $avg = array_average($arr) //outputs '2' | |
// | |
// Associative array usage, find average comments per user | |
// $arr = [ ['user_id' => 1, 'total_comments' => 5], ['user_id' => 2, 'total_comments ' => 9] ] | |
// $avg = array_average($arr, 'total_comments') //outputs '7' |
This file contains 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\Traits; | |
use Carbon\Carbon; | |
Trait ConvertTimes | |
{ | |
/** | |
* Return a timestamp as DateTime object. | |
* | |
* @param mixed $value |