Skip to content

Instantly share code, notes, and snippets.

View wildaces215's full-sized avatar
💭
I may be slow to respond.

theph03*nix215 wildaces215

💭
I may be slow to respond.
  • Daytona Beach,FL
View GitHub Profile
@wildaces215
wildaces215 / script.py
Last active June 14, 2023 23:18
Quick selenium script
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")
@wildaces215
wildaces215 / script.py
Created August 23, 2020 22:04
Script for helping to run ICSim
'''
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
'''
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();
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")
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 = {
using System;
namespace BankAccount
{
public abstract class Account
{
public float accountMoney;
//Transfer from checking to Savings
//Close Account
public void CloseAccount()
using System;
namespace SimpleProduct
{
public class Product
{
public int q;
public float pr;
public int i;
public Product(int quantity,float price, int id)
{
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);
@wildaces215
wildaces215 / db.js
Created July 6, 2019 22:46
Exercise Tracker api
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;
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