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
| import R from 'ramda'; | |
| const items = [ | |
| {id: 1, name: 'Al', country: 'AA'}, | |
| {id: 2, name: 'Connie', country: 'BB'}, | |
| {id: 3, name: 'Doug', country: 'CC'}, | |
| {id: 4, name: 'Zen', country: 'BB'}, | |
| {id: 5, name: 'DatGGboi', country: 'AA'}, | |
| {id: 6, name: 'Connie', country: 'AA'}, | |
| ]; |
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
| export default { | |
| // Включает абстрактный компонент во Vue. | |
| // Это свойство не задокументировано и может измениться в любой момент, | |
| // но ваш компонент должен работать без него. | |
| abstract: true, | |
| // Входные параметры отлично работают в абстрактных компонентах! | |
| props: { | |
| threshold: { | |
| type: Array |
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
| var gm = require('gm'); | |
| var canvasWidth = 248; | |
| var canvasHeight = 389; | |
| gm(__dirname + '/original.jpg').size(function(error, size) { | |
| if (error) { | |
| console.error(error); | |
| } else { | |
| // current image size |