Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added tina_sharma/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GET / HTTP/1.1
Host: localhost:3000
User-Agent: curl/7.43.0
Accept: */*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

52 changes: 52 additions & 0 deletions tina_sharma/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
var appFiles =['lib/**/*.js',];
var testFiles = ['./test/**/*.js'];
var watchFiles = ['./*.js', 'lib/**/*.js', './test/**/*.js'];

gulp.task('jshint:test', function(){
return gulp.src(testFiles)
.pipe(jshint({
node: true,
globals: {
describe: true,
it: true,
before: true,
after: true
}
}))
.pipe(jshint.reporter('default'));
});

gulp.task('jshint:app', function() {
return gulp.src(appFiles)
.pipe(jshint({
node: true
}))
.pipe(jshint.reporter('default'));
});

gulp.task('mocha:test', function() {
return gulp.src(testFiles)
.pipe(mocha({
node: true,
globals: {
describe: true,
it: true,
before: true,
after: true
}
}))
.pipe(mocha({reporter:'spec'}));
});

gulp.task('default', ['watch']);

gulp.task('watch', function(){
gulp.watch(watchFiles, ['jshint'], ['mocha']);
});

gulp.task('jshint', ['jshint:test', 'jshint:app']);
gulp.task('mocha', ['mocha:test']);
gulp.task('default', ['jshint', 'mocha']);
11 changes: 11 additions & 0 deletions tina_sharma/lib/tcp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var net = require('net');
var fs = require('fs');

var server = net.createServer(function(socket) {
var d = new Date();
socket.pipe(fs.createWriteStream(d + '_message.txt'));
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty straight forward task, but looks good. and your code styling looks great


server.listen('3000', function(){
console.log('server up');
});
1 change: 1 addition & 0 deletions tina_sharma/node_modules/.bin/_mocha

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tina_sharma/node_modules/.bin/gulp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tina_sharma/node_modules/.bin/mocha

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions tina_sharma/node_modules/chai/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

217 changes: 217 additions & 0 deletions tina_sharma/node_modules/chai/CONTRIBUTING.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading