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
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.chrome.options import Options | |
| import time | |
| options = Options() | |
| options.headless = True | |
| driver = webdriver.Firefox() | |
| driver.get("https://www.google.com") |
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
| ''' | |
| This is a simple Python script that is a network configuration script for setting up the canbus protocol , | |
| to be used with ICSim created by Craig Zombie.It is to be used if your like me lazy and don't want | |
| to run the commands everytime you start it up. | |
| Link for ICSim repo: https://github.com/zombieCraig/ICSim | |
| ''' |
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 Jimp = require('jimp'); | |
| const brain = require('brain.js'); | |
| var fs = require("fs"); | |
| const dogImagePath = './images/dog/'; | |
| var dogImages = new Array(); | |
| const catImagePath = './images/cat/'; | |
| var catImages = new Array(); | |
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
| from keras.preprocessing.text import text_to_word_sequence | |
| from keras.preprocessing.text import one_hot | |
| from keras.models import Sequential | |
| from keras import layers | |
| import pandas as pd | |
| data_train = pd.read_csv("train-data.csv") |
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 React, { Component } from "react"; | |
| import { Navbar, NavbarBrand, Button } from "shards-react"; | |
| import Card from "./Card"; | |
| import "./App.css"; | |
| class App extends Component { | |
| constructor(props) { | |
| super(props); | |
| //Variables and Data | |
| this.state = { |
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
| using System; | |
| namespace BankAccount | |
| { | |
| public abstract class Account | |
| { | |
| public float accountMoney; | |
| //Transfer from checking to Savings | |
| //Close Account | |
| public void CloseAccount() |
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
| using System; | |
| namespace SimpleProduct | |
| { | |
| public class Product | |
| { | |
| public int q; | |
| public float pr; | |
| public int i; | |
| public Product(int quantity,float price, int id) | |
| { |
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
| using NUnit.Framework; | |
| using System.Collections.Generic; | |
| namespace SimpleProduct | |
| { | |
| [TestFixture] | |
| public class SimpleProductTest | |
| { | |
| Product testProductOne = new Product(45, (float)34.99, 1); | |
| Product testProductTwo = new Product(68, (float)39.99, 2); | |
| Product testProductThree = new Product(123, (float)99.99, 3); |
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
| allUsers() { | |
| var results; | |
| MongoClient.connect(url + excerises, (err, db) => { | |
| if (err) throw err; | |
| var dbo = db.db(users); | |
| dbo | |
| .collection(users) | |
| .find({}) | |
| .toArray((err, result) => { | |
| if (err) throw err; |
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
| Traceback (most recent call last): | |
| File "script.py", line 24, in <module> | |
| print("You said "+r.recognize_google(audio)) | |
| File "/home/pi/.local/lib/python2.7/site-packages/speech_recognition/__init__.py", line 858, in recognize_google | |
| if not isinstance(actual_result, dict) or len(actual_result.get("alternative", [])) == 0: raise UnknownValueError() | |
| speech_recognition.UnknownValueError |
NewerOlder