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
/* global chrome, MediaRecorder, FileReader */ | |
chrome.runtime.onConnect.addListener(port => { | |
let recorder = null | |
port.onMessage.addListener(msg => { | |
console.log(msg); | |
switch (msg.type) { | |
case 'REC_STOP': | |
console.log('Stopping recording') | |
if (!port.recorderPlaying || !recorder) { |
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
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
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
{ | |
"common lisp let": { | |
"prefix": "llet", | |
"body": [ | |
"(let ((${1:var}))", | |
" ${2:body})" | |
], | |
"description": "common lisp let" | |
}, | |
"common lisp if": { |
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
element(by.id('some_id')) | |
element(by.label('Some Text!!')) | |
element(by.id('Grandson883').withAncestor(by.id('Son883'))) | |
element(by.id('Son883').withDescendant(by.id('Grandson883'))) | |
element(by.type('RCTImageView')) | |
element(by.id('UniqueId345').and(by.label('ID'))) | |
element(by.label('Product')).atIndex(2) | |
element(by.traits(['button']) |