GithubHelp home page GithubHelp logo

David Lattimer's Projects

concentration-ios icon concentration-ios

(CS 193P by Stanford HW1) This is my first draft solution at the game Concentration

csv-splitter icon csv-splitter

(Using pandas) At my work today we had an excel file over 2 gigabytes and needed to open it. That is too large for either Excel or Google Sheets to work with. This code cut the file into seperate files. This could also be accomplished on macOS using "split -l filename.csv" but this code can be modified further for other needed tasks using the read csv function commented out from pandas.

dice-roll-experiment icon dice-roll-experiment

Jupyter Notebook experiments to show my friend: 1) that rolling at least one 6 in 3 rolls only has a chance of roughly 42% of happening not 50% like they assumed. This is because each time you have a 1 in 6 chance of rolling a 6. Two ways to prove this mathematically are 1 - (5/6) or (5/6)^2*(1/6)*3 + (5/6)*(1/6)^2*3 + (1/6)^3. The second way is the probability of exactly 1 6 rolled plus the probability of exactly 2 sixes rolled plus the probability of exactly 3 sixes rolled. 2) that rolling at least one 6 in 6 rolls has a chance of 66.51% of happening and that getting them back to back has only a 44% chance of happening. They thought this would basically happen every time. The reason it is roughly 44% is because the chance of any given dice roll is a 6 is 1/6, meaning a chance that no dice rolled out of 6 was a 6 is (5/6)^6 because the chance a dice roll isn't a 6 is 5/6 and to the power of 6 because you rolled 6 times. Now 1-(5/6)^6 is .6651 or 66.51% and to do it twice would be .6651 * .6651 = 44.23%

dictation icon dictation

(using speech_recognition and pynput) This application simply allows you to speak and have it type out what you are saying. Place your curser somewhere you would like to type and speak while the program is on.

do-first-babies-come-late icon do-first-babies-come-late

(Using Matplotlib and thinkstats2 to process CDC data) Visualizing the problem of "Do first babies come late?". Data provided by Center for Disease Control's Survey of Family Growth. There is a clear trend but this survey is not representational of society and is not outside of the statistical range of 3%+. The other problem with the data is that there is a diminishing pool of data the more points you try to use since many people don't have more than 1 child and especially not more than 2.

gender-classifier icon gender-classifier

This program has a command line interface that allows you to input height, weight and shoe size to determine a person of unspecified gender is male or female. It uses 4 different models (decision tree, support vector machine, k neigherest neighbor, ensemble aka bag prediction). Inputs to the system can be either in metric or American imperial system. The program has 6 methods that can be called generate a male's dimensions, generate a female's dimensions, classify a single person's dimensions, take a user's input to classify them, classify multiple people and convert shoe size from US to EU.

keyboard-input-face-detection icon keyboard-input-face-detection

(using opencv, pynput, numpy and time) this application is modified from opencv's github sample code. This code tracks the face and depending on where the face is the program types a certain key. Right now this is mapped to left, right, up and down.

pretweet icon pretweet

An application that shows the sentiment analysis of your tweet before you send it.

self-replicating-code icon self-replicating-code

This code is a self replicating virus. Run ./a.out and it will output 3 files. Each file reads itself and outputs 3 more files.

speech-translation icon speech-translation

(Using googletrans and speech_recognition)This program has a command line interface that allows you to record your voice using your computers microphone. Then you select the language you would like the output for (Japanese is the default). Then you can print the out put of the translation of the speech. You can switch languages as you go because the speech is saved until you rerecord. To use please have pyaudio installed which requires portaudio.

twilio-rsvp-service icon twilio-rsvp-service

(Using Twilio, glob, flask and ngrok) I made a service that allows you to send messages through twilio to a list of contacts store in a folder. If you add your number to numberList.csv you can text twilio and write a message, send the message, check how many people have responded and authorize others to access these features for your distribution of the app.

twitter-sentiment-analysis icon twitter-sentiment-analysis

(Using tweepy and textblob) This program has a command line interface that allows you to search for a topic on twitter and receive the 100 most recent tweets on that topic. The tweets will be in english and you can filter out retweets to see just tweets people have posted them selves. Under each tweet is a polarity value from -1 to 1 with 1 being very positive and -1 being very negative. There is also a subjectivity value showing how opinionated the text is. The command line also allows you to filter the last 100 to show just very negative tweets and just very positive tweets. Please provide your own twitter API keys

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.