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 { chromium } = require('playwright'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const URL = 'https://orgvue-qa.eu-west-1.concentra.io/app/primitive-components/1.0.0/?path=/story/components-icon--actions'; | |
async function scrapeSVGs() { | |
const browser = await chromium.launch({ headless: false }); // Change to true if you want headless mode | |
const page = await browser.newPage(); |
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 | |
python camera.py & | |
python prediction.py & | |
wait |
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 io | |
import picamera | |
import logging | |
import socketserver | |
from threading import Condition | |
from http import server | |
PAGE = """\ | |
<html> | |
<head> |
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 time | |
import audioop | |
import pyaudio | |
from pushbullet import Pushbullet | |
import wave | |
from tflite_support.task import core | |
from tflite_support.task import processor | |
from tflite_support.task import audio | |
from datetime import datetime |
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 time | |
import audioop | |
import pyaudio | |
from pushbullet import Pushbullet | |
import wave | |
from tflite_support.task import core | |
from tflite_support.task import processor | |
from tflite_support.task import audio | |
from datetime import datetime |
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 tensorflow as tf | |
import tflite_model_maker as mm | |
from tflite_support.task import core | |
from tflite_support.task import processor | |
from tflite_support.task import audio | |
from tflite_model_maker import audio_classifier | |
import os | |
import numpy as np | |
import matplotlib.pyplot as plt |
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
var SURNAME = ["Abraham", "Allan", "Alsop", "Anderson", "Arnold", "Avery", "Bailey", "Baker", "Ball", "Bell", "Berry", "Black", "Blake", "Bond", "Bower", "Brown", "Buckland", "Burgess", "Butler", "Cameron", "Campbell", "Carr", "Chapman", "Churchill", "Clark", "Clarkson", "Coleman", "Cornish", "Davidson", "Davies", "Dickens", "Dowd", "Duncan", "Dyer", "Edmunds", "Ellison", "Ferguson", "Fisher", "Forsyth", "Fraser", "Gibson", "Gill", "Glover", "Graham", "Grant", "Gray", "Greene", "Hamilton", "Hardacre", "Harris", "Hart", "Hemmings", "Henderson", "Hill", "Hodges", "Howard", "Hudson", "Hughes", "Hunter", "Ince", "Jackson", "James", "Johnston", "Jones", "Kelly", "Kerr", "King", "Knox", "Lambert", "Langdon", "Lawrence", "Lee", "Lewis", "Lyman", "MacDonald", "Mackay", "Mackenzie", "MacLeod", "Manning", "Marshall", "Martin", "Mathis", "May", "McDonald", "McLean", "McGrath", "Metcalfe", "Miller", "Mills", "Mitchell", "Morgan", "Morrison", "Murray", "Nash", "Newman", "Nolan", "North", "Ogden", "Oliver", "Paige", "Parr" |
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 webpack = require('webpack'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | |
const path = require('path'); | |
let prod = process.argv.indexOf('-p') !== -1; | |
let watchOption = process.argv.indexOf('--watch') !== -1; | |
module.exports = { | |
entry: ['./js/site.js'], | |
output: { |
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
... | |
router.use('/api', cors(), firebaseMiddleware.auth); | |
router.get('/api/hello', (req, res) => { | |
res.json({ | |
message: `You're logged in as ${res.locals.user.email} with Firebase UID: ${res.locals.user.uid}` | |
}); | |
}); | |
... |
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
... | |
getTokenAndSendToAPI() { | |
this.afAuth.auth.currentUser.getToken().then(idToken => { | |
this.tokenID = idToken; | |
console.log('getTokenAndSendToAPI() idToken', this.tokenID); | |
let headersObj = new Headers(); | |
headersObj.append('Authorization', 'Bearer ' + this.tokenID) | |
let options = new RequestOptions({ headers: headersObj }); |
NewerOlder