For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
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
| #!/usr/bin/env bash | |
| # Start NGROK in background | |
| echo "⚡️ Starting ngrok" | |
| ngrok http 8080 > /dev/null & | |
| # Wait for ngrok to be available | |
| while ! nc -z localhost 4040; do | |
| sleep 1/5 # wait Ngrok to be available | |
| done |
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
| // In Background.js | |
| chrome.tabs.sendMessage(tab.id, {content: "message"}, function(response) { | |
| if(response) { | |
| //We do something | |
| } | |
| }); | |
| // In ContentScript.js | |
| chrome.extension.onMessage.addListener(function(request, sender, sendResponse) { | |
| if(request.content) { |
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 { Injectable } from '@angular/core'; | |
| import { AngularFireDatabaseModule, AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; | |
| import { AngularFireAuth } from 'angularfire2/auth'; | |
| import { Router } from "@angular/router"; | |
| import * as firebase from 'firebase'; | |
| @Injectable() | |
| export class AuthService { |