Skip to content

Instantly share code, notes, and snippets.

View agoalofalife's full-sized avatar
😉
Do what you can, with what you have, where you are

Ilya Chubarov agoalofalife

😉
Do what you can, with what you have, where you are
View GitHub Profile
```js
let basePriceProduct = new basis.Token(0);
// price up for some thing
let priceUp = basePriceProduct.as(function(basePrice) {
var priceUp = basePrice/100 * 10;
return basePrice+priceUp;
})
// мощь js как функционального языка
// паттерн pipline в действие
// всего 5 строк кода
const compose = (...fns) =>
(arg) =>
fns.reduce(
(composed, f) => f(composed),
arg )
@agoalofalife
agoalofalife / testing mail in droplet with laravel
Last active January 16, 2019 09:56 — forked from emmanuelbarturen/testing mail in droplet with laravel
send email from artisan with tinker of laravel
# SSH into droplet
# go to project
$ php artisan tinker
$ Mail::send('errors.401', [], function ($message) { $message->to('[email protected]')->subject('this works!'); });
Mail::raw('test', function ($message) {$message->subject('Тестовая тема');$message->from('[email protected]');$message->to('[email protected]');});
# check your mailbox