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
package com.example.app; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.provider.Settings; | |
import android.content.pm.PackageManager; | |
import android.os.Build; | |
import android.os.Bundle; |
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
//package.json | |
{ | |
... | |
"devDependencies": { | |
... | |
"purgecss": "^3.0.0" | |
}, | |
"scripts": { | |
"start": "react-scripts start", | |
"build": "react-scripts build && npm run purge-css", |
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
const https = require('https'); | |
callback = returnFn => response => { | |
let str = ''; | |
response.on('data', chunk => { | |
str += chunk; | |
}); | |
response.on('end', () => { | |
returnFn(str); | |
}); |
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
class TrieNode { | |
constructor(key) { | |
this.key = key | |
this.parent = null | |
this.children = {} | |
this.end = false | |
} | |
getWord() { | |
const output = []; | |
let node = this; |
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
// Ensure CSS grid works with IE 11 spec. | |
// https://css-tricks.com/browser-compatibility-css-grid-layouts-simple-sass-mixins/ | |
// sass-lint:disable no-vendor-prefixes, no-duplicate-properties | |
@mixin display-grid { | |
display: -ms-grid; | |
display: grid; | |
} | |
// $columns values should be delimited by a space | |
@mixin grid-template-columns($columns...) { |