Permalink
Browse files

Day 206

  • Loading branch information...
James Kahng James Kahng
James Kahng authored and James Kahng committed Dec 16, 2017
1 parent cdedbd3 commit 484448c8920483e1abe0f8ed5da65b9b50adc829
Showing with 505 additions and 0 deletions.
  1. +58 −0 .gitignore
  2. +27 −0 github.js
  3. +2 −0 main.js
  4. +9 −0 node lessons/node_http.js
  5. +409 −0 package-lock.json
@@ -0,0 +1,58 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
@@ -0,0 +1,27 @@
var github = require('octonode');
var fs = require('fs');
// Then we instantiate a client with or without a token (as show in a later section)
var ghme = client.me();
var ghuser = client.user('pksunkara');
var ghrepo = client.repo('pksunkara/hub');
var ghorg = client.org('flatiron');
var ghissue = client.issue('pksunkara/hub', 37);
var ghmilestone = client.milestone('pksunkara/hub', 37);
var ghlabel = client.label('pksunkara/hub', 'todo');
var ghpr = client.pr('pksunkara/hub', 37);
var ghrelease = client.release('pksunkara/hub', 37);
var ghgist = client.gist();
var ghteam = client.team(37);
var ghproject = client.project('pksunkara/hub', 37);
var ghnotification = client.notification(37);
var ghsearch = client.search();
var scopes = {
'add_scopes': ['user', 'repo', 'gist'],
'note': 'admin script'
};
var config = fs.readFileSync('DATA', 'utf8');
@@ -4,10 +4,12 @@
//api
//authorize github api
//request repo + commit
//find commit diff and generate playable demo for that file (scope for now is just Pico-8)
//repeat to generate website
//potential other idea: make this website interactive. if a user requests day 60, this will generate whatever was updated on day 60.
//bash path
@@ -0,0 +1,9 @@
var http = require('http');
console.log('Hello World');
var server = http.createServer(function(req, res) {
res.writeHead(200);
res.end('Hello Http');
});
server.listen(8080);
Oops, something went wrong.

0 comments on commit 484448c

Please sign in to comment.