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 | |
return array( | |
'magic' => array( | |
'BootForm' => array( | |
'setToken' => 'AdamWathan\Form\FormBuilder::setToken', | |
'open' => 'AdamWathan\Form\FormBuilder::open', | |
'close' => 'AdamWathan\Form\FormBuilder::close', | |
'text' => 'AdamWathan\BootForms\BasicFormBuilder::text', | |
'date' => 'AdamWathan\BootForms\BasicFormBuilder::date', | |
'dateTimeLocal' => 'AdamWathan\BootForms\BasicFormBuilder::dateTimeLocal', |
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
// Demo: https://jsfiddle.net/fjspx80x/2/ | |
.switch > input[type="checkbox"] { | |
display: none; | |
} | |
.switch > label.toggle { | |
cursor: pointer; | |
height: 0; | |
position: relative; |
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
$breakpoints: xs, sm, md, lg; | |
@each $breakpoint in $breakpoints { | |
@for $i from 0 through 10 { | |
$distance: $i * 15; | |
$breakpointInPixels: 0; | |
@if $breakpoint == sm { | |
$breakpointInPixels: 768; | |
} @else if $breakpoint == md { | |
$breakpointInPixels: 992; |
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
$gutter-width = 20 | |
$break-sm = 768 | |
$break-md = 992 | |
$break-lg = 1200 | |
$breakpoints = { 'xs': 0 px, 'sm': $break-sm px, 'md': $break-md px, 'lg': $break-lg px } | |
for bp in $breakpoints | |
for i in (0...10) | |
$distance = i * $gutter-width px | |
@media (min-width $breakpoints[bp]) |
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
(()=>{function e(){Array.from(document.querySelectorAll("[id^=issue_")).forEach(e=>{0===Array.from(e.querySelectorAll("img.from-avatar")).filter(e=>e.alt==="@"+document.querySelector('meta[name="user-login"]').getAttribute("content")).length&&(e.style.display="none")})}new MutationObserver(e).observe(document.querySelector(".issues-listing"),{subtree:!0,childList:!0}),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
startup_message off | |
defutf8 on | |
#caption always "%{= Wk}%-w%{= Bw}%n %t%{-}%+w %-=%c:%s" | |
#vbell on | |
autodetach on | |
hardstatus alwayslastline "%{.kc}%-w%{.kw}%n*%t%{-}%+w %= %c:%s %d/%m/%Y" |
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
#!/bin/sh | |
# This script creates a supervisor program for the Laravel queue worker and writes | |
# the log to the storage folder of the project. It also starts the http server on | |
# port 9001 so you need to add this port forwarding to your Homestead.yaml file. | |
sudo sh -c 'echo "[inet_http_server] | |
port = 9001 | |
username = homestead | |
password = secret |
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 | |
use Illuminate\Database\Seeder; | |
class DatabaseSeeder extends Seeder | |
{ | |
/** | |
* Run the database seeds. | |
* | |
* @return void |
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 Warning: Uncaught ErrorException: require(/home/vagrant/pap/site/database/factories/CategoryFactory.php): failed to open stream: Too many open files in /home/vagrant/pap/site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php:275 | |
Stack trace: | |
#0 /home/vagrant/pap/site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(275): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require(/home/v...', '/home/vagrant/p...', 275, Array) | |
#1 /home/vagrant/pap/site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(275): require() | |
#2 /home/vagrant/pap/site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factory.php(68): Illuminate\Database\Eloquent\Factory->load('/home/vagrant/p...') | |
#3 /home/vagrant/pap/site/vendor/laravel/framework/src/Illuminate/Database/DatabaseServiceProvider.php(83): Illuminate\Database\Eloquent\Factory::construct(Object(Faker\Generator), '/home/vagrant/p...') | |
#4 /home/vagrant/pap/site/vendor/laravel/framework/sr |
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
- platform: command_line | |
name: Disk Usage | |
command: >- | |
df -h / | sed 1d | awk '{ print "\{\"size\": \"" $2 "\", \"used\": \"" $3 "\", \"used\%\": " $5+0 "\}" }' | |
unit_of_measurement: "%" | |
json_attributes: | |
- "size" | |
- "used" | |
- "used%" | |
value_template: "{{ state_attr('sensor.disk_usage', 'used%') }}" |
OlderNewer