const array = ['a', 1, null, ''].filter(Boolean); // ['a', 1]
// filters out truthy values
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
/* Box sizing rules */ | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
} | |
/* Remove default margin */ | |
body, | |
h1, |
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
Applications Graphics Acceleration Info: | |
Uptime: 217811477 Realtime: 1099735775 | |
** Graphics info for pid 28939 [com.instaworkmobile.beta] ** | |
Stats since: 217791859437958ns | |
Total frames rendered: 497 | |
Janky frames: 61 (12.27%) | |
50th percentile: 7ms | |
90th percentile: 17ms |
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
8:59:58 PM: Build ready to start | |
9:00:00 PM: build-image version: 6dfe19d15f524c85d6f9bf7df9fb30b0a9f0a61a | |
9:00:00 PM: build-image tag: v3.3.10 | |
9:00:00 PM: buildbot version: 0d19834c19ebfe54208907d729718495339fe085 | |
9:00:00 PM: Fetching cached dependencies | |
9:00:00 PM: Starting to download cache of 349.7MB | |
9:00:02 PM: Finished downloading cache in 1.76825814s | |
9:00:02 PM: Starting to extract cache | |
9:00:20 PM: Finished extracting cache in 18.474851627s | |
9:00:20 PM: Finished fetching cache in 20.339023534s |
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
[ | |
{ | |
"id": "agauniyal.vscode-caniuse", | |
"name": "vscode-caniuse", | |
"publisher": "agauniyal", | |
"version": "0.5.0" | |
}, | |
{ | |
"id": "alefragnani.project-manager", | |
"name": "project-manager", |
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
const Generator = require('yeoman-generator'); | |
module.exports = class extends Generator { | |
// ... | |
writing() { | |
this.log('Writing files... 📝'); | |
const { type, name } = this.answers; | |
if (type === 'screen') { |
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 React from 'react'; | |
import { View } from 'react-native'; | |
const <%= name %> = () => ( | |
<View> | |
</View> | |
); | |
export default <%= name %>; |
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
const Generator = require('yeoman-generator'); | |
module.exports = class extends Generator { | |
// ... | |
async prompting() { | |
this.log('Generator starting... 🤖'); | |
this.answers = await this.prompt([ | |
{ |
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
const Generator = require('yeoman-generator'); | |
module.exports = class extends Generator { | |
constructor(args, options) { | |
super(args, options); | |
} | |
// first stage | |
async prompting() { | |
this.log('Generator starting... 🤖'); |
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
{ | |
"name": "generator-example", | |
"version": "1.0.0", | |
"description": "Yeoman generator example", | |
"files": ["generators"], | |
"keywords": ["yeoman-generator"], | |
"author": "Divyanshu Maithani <[email protected]> (https://github.com/divyanshu013)", | |
"license": "MIT", | |
"dependencies": { | |
"yeoman-generator": "^3.2.0" |
NewerOlder