Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeff1evesque/interview-vimeo
Generate csv file(s) of validated clip properties from csv input
https://github.com/jeff1evesque/interview-vimeo
Last synced: 3 days ago
JSON representation
Generate csv file(s) of validated clip properties from csv input
- Host: GitHub
- URL: https://github.com/jeff1evesque/interview-vimeo
- Owner: jeff1evesque
- Created: 2015-02-12T22:56:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-26T13:29:04.000Z (almost 10 years ago)
- Last Synced: 2024-11-08T06:06:15.589Z (about 2 months ago)
- Language: PHP
- Homepage:
- Size: 527 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
interview-vimeo
================This coding [exercise](https://github.com/jeff1evesque/interview-vimeo#exercise) was given to me when I applied for a *Software Engineer* (Video Player) position at [Vimeo](https://vimeo.com/).
##Exercise
Your job is to write code that will load in [`sample.csv`](https://github.com/jeff1evesque/interview-vimeo/blob/master/data/sample.csv) and analyze the data against the rules listed below. Your code should output the results into two files; `valid.csv` will contain a list of clip_ids's that passed the tests and `invalid.csv` will contain a list of clip_id's that failed the tests. Requirements are to use PHP (You can use Python if you want), utilize the SPL FilterIterator (or any other standard library, for Python), and handle exceptions if a file cannot be read in or written to.
**Rules:**
- The clip must be public (privacy == anybody)
- The clip must have over 10 likes and over 200 plays
- The clip title must be under 30 characters## Installation
###Linux Packages
The following packages are needed to be installed:
```
# LAMP (with MariaDB, and phpmyadmin):
sudo apt-get install apache2
sudo apt-get install mariadb-server mariadb-client
sudo apt-get install php5 libapache2-mod-php5
sudo apt-get install phpmyadmin
```**Note:** This project assumes [Ubuntu Server 14.04](http://www.ubuntu.com/download/server) as the operating system. If another system is preferred, simply download the above requirements, with respect to the systems *package manager* equivalent.
## Configuration
###GIT
Fork this project in your GitHub account, then clone your repository:
```
cd /var/www/html/
sudo git clone https://[YOUR-USERNAME]@github.com/[YOUR-USERNAME]/interview-vimeo.git
```Then, change the *file permissions* for the entire project by issuing the command:
```
cd /var/www/html/
sudo chown -R jeffrey:www-data interview-vimeo
```**Note:** change 'jeffrey' to the user account YOU use.
**Note:** changing the *group* permission to `www-data` allows apache2 to write output `data/valid.csv`, and `data/invalid.csv`.
Then, add the *Remote Upstream*, this way we can pull any merged pull-requests:
```
cd /var/www/html/interview-vimeo/
git remote add upstream https://github.com/[YOUR-USERNAME]/interview-vimeo.git
```