// Without running these in the browser, can you tell what each of the following would return?
['1', '2', '3', '4'].map(parseInt);
(new Array(2)).map(function() {
return 1;
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
version: '3' | |
services: | |
haproxy: | |
image: haproxy:alpine | |
restart: 'unless-stopped' | |
logging: | |
driver: 'json-file' | |
options: | |
max-size: 100k |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. |
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
find . ! -path '*.git*' ! -path '*/vendor/*' ! -path '*/node_modules/*' -type f -print0 | xargs -0 dos2unix |
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
@mixin margin-helper($level, $spacing) { | |
.m-#{$level} {margin: #{$spacing}!important;} | |
.mx-#{$level} {margin-left: #{$spacing}!important;margin-right: #{$spacing}!important;} | |
.my-#{$level} {margin-top: #{$spacing}!important;margin-bottom: #{$spacing}!important;} | |
.mt-#{$level} {margin-top: #{$spacing}!important;} | |
.mb-#{$level} {margin-bottom: #{$spacing}!important;} | |
.ml-#{$level} {margin-left: #{$spacing}!important;} | |
.mr-#{$level} {margin-right: #{$spacing}!important;} | |
} |
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 App\Providers; | |
use App\Modules\Payment\Entities\PaymentMethod; | |
use App\Modules\Shipping\Entities\ShippingOption; | |
use App\Modules\Variant\Entities\VariantOption; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
use Illuminate\Routing\Router; |
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
sudo apt-get install fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-mincho fonts-ipafont-gothic fonts-unfonts-core |