Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Submission] Ian Ker-Seymer -- Challenge 4 #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 31 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
# Name

write-your-name
Ian Ker-Seymer

# How many points have you earned?

0/100
100/100

(Make your own calculation and replace the number 0 with the points you think you've earned.)

# How many hours have you spent on this?

fill-in-your-answer
4

# What is the most difficult part about this week's challenge?

fill-in-your-answer
Regex

# Show and tell

## Link (3 points)

[title-of-the-article](http://link-to-an-interesting-article-about-the-notion-of-quantified-self)
[The Quantified Self: How Data-Obsessed Trackers Push Toward Healthier Lives](http://www.livescience.com/44618-quantified-self-culture.html)

## How do you relate to this article personally? (3 points)

fill-in-your-answer
Although I do not fully relate with the activity of tracking my every move,
I understand the usefulness of doing so. There are countless habits, thoughts, etc.
that lend itself to improvement via the scientific method. For example, I often assess my thought
processes and associated emotions. There is a clear relation between the two. I can
see how useful it might be to track EVERYTHING of that variety as means of self-improvement.

On the other hand, I wonder if examining oneself under the microscope of data could be
considered obsessive, and possibly be used as means of self-degradation. Sometimes I think
you just have to enjoy life as it comes, and not constantly imagine various trivial ways to
'optimize' yourself. Just be, per se.

To dust off an old cliche, everything in life is a balance.

# API (II) (5 points x 4 + 8 points x 2 = 36 points)

Expand Down Expand Up @@ -72,54 +81,55 @@ fill-in-your-answer

### 1 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/um6seadqu16995e/Screenshot%202014-09-21%2020.39.00.png?dl=1)

### 2 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/21bacm943968j77/Screenshot%202014-09-21%2021.02.57.png?dl=1)

### 3 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/1xrh3daah5lo4yf/Screenshot%202014-09-21%2021.07.37.png?dl=1)

### 4 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/tyqlrbpyd0cjh9j/Screenshot%202014-09-21%2021.14.35.png?dl=1)

### 5 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/n4tc8v6bxn58v5q/Screenshot%202014-09-21%2021.20.40.png?dl=1)

## Challenges (4 points x 7 + 10 points x 1 = 38 points)

### 1 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/akfcy9zwterjvoy/Screenshot%202014-09-21%2021.34.20.png?dl=1)

### 2 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/yfa8oxj8bt248hv/Screenshot%202014-09-21%2021.38.26.png?dl=1)

### 3 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/clx3nt6otvb0ol0/Screenshot%202014-09-21%2021.51.25.png?dl=1)

### 4 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/vu69o2h6n8f45pn/Screenshot%202014-09-21%2021.51.56.png?dl=1)

### 5 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/ez42a8tme8engy8/Screenshot%202014-09-21%2021.53.47.png?dl=1)

### 6 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/e0p8e7fnp2xwkyd/Screenshot%202014-09-21%2022.47.48.png?dl=1)


### 7 (4 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/kf9x74fsn790h8v/Screenshot%202014-09-21%2022.48.41.png?dl=1)

### 8 (10 points)

![image](image.png?raw=true)
![image](https://www.dropbox.com/s/fwt2iofqiwbgron/Screenshot%202014-09-21%2023.06.09.png?dl=1)
6 changes: 5 additions & 1 deletion github1.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO:
var rest = require('restler');

rest.get('https://api.github.com/repositories').on('complete', function(data) {
console.log(data);
});
6 changes: 5 additions & 1 deletion github2.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO:
var rest = require('restler');

rest.get('https://api.github.com/orgs/csci-4830-002-2014/repos').on('complete', function(data) {
console.log(data);
});
6 changes: 5 additions & 1 deletion github3.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO:
var rest = require('restler');

rest.get('https://api.github.com/repos/CSCI-4830-002-2014/challenge-week-1/forks').on('complete', function(data) {
console.log(data);
});
6 changes: 5 additions & 1 deletion github4.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO:
var rest = require('restler');

rest.get('https://api.github.com/repos/csci-4830-002-2014/challenge-week-1/pulls?state=closed').on('complete', function(data) {
console.log(data);
});
6 changes: 5 additions & 1 deletion github5.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO:
var rest = require('restler');

rest.get('https://api.github.com/repos/indiesquidge/hackathon-accesslog/stats/contributors').on('complete', function(data) {
console.log(data);
});
10 changes: 9 additions & 1 deletion github6.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
// TODO:
var rest = require('restler');

rest.post('https://api.github.com/repos/CSCI-4830-002-2014/challenge-week-4/issues', {
username: 'ianks',
password: process.env.GITHUB_PW,
data: JSON.stringify({ "title": "Ian KS issue" })
}).on('complete', function(data, response) {
console.log(response);
});
25 changes: 24 additions & 1 deletion github7.js
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
// TODO:
var GitHubApi = require("github");
var async = require("async");

var github = new GitHubApi({
version: "3.0.0",
});

function getClassEventsForPage(i, callback){
github.events.getFromOrg({
org: "CSCI-4830-002-2014",
page: i
}, callback);
};

function flatten_fast(input){
return input.reduce(function(a, b) {
return a.concat(b);
}, []);
}

async.map([1,2,3,4,5,6,7,8,9,10], getClassEventsForPage, function(err, results){
flattened = flatten_fast(results);
console.log(JSON.stringify(flattened, undefined, 4));
});
Loading