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
| /** | |
| * @license | |
| * Copyright 2018, Google, Inc. | |
| * Licensed under the Apache License, Version 2.0 (the 'License'); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| advancement grant <targets> everything | |
| advancement grant <targets> from <advancement> | |
| advancement grant <targets> only <advancement> | |
| advancement grant <targets> only <advancement> <criterion> | |
| advancement grant <targets> through <advancement> | |
| advancement grant <targets> until <advancement> | |
| advancement revoke <targets> everything | |
| advancement revoke <targets> from <advancement> | |
| advancement revoke <targets> only <advancement> | |
| advancement revoke <targets> only <advancement> <criterion> |
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
| #!/bin/bash | |
| # Apps locations: | |
| # macOS - /Applications/Spotify.app/Contents/Resources/Apps | |
| # Windows - C:\Users\lsh\AppData\Roaming\Spotify\Apps | |
| MODULES=`ls *.spa` | |
| for m_file in $MODULES | |
| do | |
| if [ -f $m_file ]; then |
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
| # The ID of your GitHub App | |
| APP_ID= | |
| WEBHOOK_SECRET=development | |
| # Uncomment this to get verbose logging | |
| # LOG_LEVEL=trace # or `info` to show less | |
| # Go to https://smee.io/new set this to the URL that you are redirected to. | |
| # WEBHOOK_PROXY_URL= |
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 { Component, OnInit, OnDestroy } from '@angular/core'; | |
| import {Http} from "@angular/http"; | |
| import { LocalCacheService } from "./local-cache.service"; | |
| @Component({ | |
| selector: 'app-example', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.scss'] | |
| }) | |
| export class ExampleComponent implements OnInit, OnDestroy { |
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
| // Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
| if(!!window.React || | |
| !!document.querySelector('[data-reactroot], [data-reactid]') || | |
| Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
| ) | |
| console.log('React.js'); | |
| if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
| console.log('Next.js'); |
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
| # If your project uses WebView with JS, uncomment the following | |
| # and specify the fully qualified class name to the JavaScript interface | |
| # class: | |
| -keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| public *; | |
| } | |
| ### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9) | |
| -keep class rx.schedulers.Schedulers { | |
| public static <methods>; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.