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

final submission #48

Open
wants to merge 1 commit 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
Binary file added .DS_Store
Binary file not shown.
39 changes: 19 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# Name

write-your-name
Jose Vieitez

# 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

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

fill-in-your-answer
understanding how node and restler worked in the file system as it took me a while to find how to even call them correctly

# Show and tell

Expand All @@ -37,13 +36,13 @@ fill-in-your-answer

### 2 (4 points)

* Code: [github2.js](github23.js)
* Code: [github2.js](github2.js)
* Result: [result2.json](result2.json)

### 3 (4 points)

* Code: [github3.js](github3.js)
* Result: [result3.json](result.json)
* Result: [result3.json](result3.json)

### 4 (4 points)

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

### 1 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/Zwr45BE.jpg?raw=true)

### 2 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/1af410L.png?raw=true)

### 3 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/XNdnDPX.jpg?raw=true)

### 4 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/WtWWAZB.jpg?raw=true)

### 5 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/lzLXTy3.png?raw=true)

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

### 1 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/O2JBqN7.png?raw=true)

### 2 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/Y11YCuk.jpg?raw=true)

### 3 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/ZlCNZak.png?raw=true)

### 4 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/LeOmkDn.jpg?raw=true)

### 5 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/rpkawIX.jpg?raw=true)

### 6 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/h1sMd7Z.jpg?raw=true)

### 7 (4 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/kuJ8Zbv.png?raw=true)

### 8 (10 points)

![image](image.png?raw=true)
![image](http://i.imgur.com/fmK8gDB.png?raw=true)
12 changes: 11 additions & 1 deletion github1.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
// TODO:
// TODO:
var rest = require('./restler');

rest.get('https://api.github.com/repositories').on('complete', function(result) {
if (result instanceof Error) {
console.log('Error:', result.message);
this.retry(5000); // try again after 5 sec
} else {
console.log(result);
}
});
12 changes: 11 additions & 1 deletion github2.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
// TODO:
// TODO:
var rest = require('./restler');

rest.get('https://api.github.com/orgs/csci-4830-002-2014/repos').on('complete', function(result) {
if (result instanceof Error) {
console.log('Error:', result.message);
this.retry(5000); // try again after 5 sec
} else {
console.log(result);
}
});
12 changes: 11 additions & 1 deletion github3.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
// TODO:
// TODO:
var rest = require('./restler');

rest.get('https://api.github.com/repos/csci-4830-002-2014/challenge-week-1/forks').on('complete', function(result) {
if (result instanceof Error) {
console.log('Error:', result.message);
this.retry(5000); // try again after 5 sec
} else {
console.log(result);
}
});
12 changes: 11 additions & 1 deletion github4.js
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
// TODO:
// 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(result) {
if (result instanceof Error) {
console.log('Error:', result.message);
this.retry(5000); // try again after 5 sec
} else {
console.log(result);
}
});
2 changes: 1 addition & 1 deletion github5.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO:
// Was not in Hackathon
18 changes: 17 additions & 1 deletion github6.js
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
// TODO:
// TODO:

var rest = require('./restler');

var data = {
"title": "This is Jose Vieitez",
"body" : "I ate cereal for breakfast today."
};
var options = {
username: 'jvieitez',
password: 'INSERT PASSWORD',

};

rest.postJson('https://api.github.com/repos/csci-4830-002-2014/challenge-week-3/issues', data, options).on('complete', function(data, response) {

});
2 changes: 1 addition & 1 deletion github7.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// TODO:
// Was not in Hackathon
Loading