Skip to content

Instantly share code, notes, and snippets.

View pineoc's full-sized avatar
😇

Allen Yunseok Lee pineoc

😇
View GitHub Profile
/*
pineoc, 2015-04-27
week 9 network programming
multiThread echo server
server code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@pineoc
pineoc / week10_network_chattingClient.c
Last active August 29, 2015 14:20
week10_network_chatting
/*
pineoc, 2015-05-04
week 10 network programming
multiThread chatting
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@pineoc
pineoc / week10_network_multiThreadClient.c
Created May 4, 2015 03:30
for assignment week10 multi thread send recv routine divide client code
/*
pineoc, 2015-05-04
week 10 network programming
multiThread recv send routine divide
client code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@pineoc
pineoc / select_server.c
Last active August 29, 2015 14:21
week12_network, select server
/*
pineoc, 2015-05-18
week 12 network programming
select echo server
server code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@pineoc
pineoc / selectServer.c
Last active August 29, 2015 14:22
week14 network programming, select echo server
/*
pineoc, 2015-06-01
week 14 network programming
select server
server code
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@pineoc
pineoc / soruce.cpp
Created June 12, 2015 07:00
maximum rect solution
#define TIMETEST 0
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#if (TIMETEST)
#include <chrono>//for time check
#endif
@pineoc
pineoc / source.cpp
Created June 12, 2015 07:01
다각형의 넓이 구하기
#define TIMETEST 0
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <math.h>
#if (TIMETEST)
#include <chrono>//for time check
@pineoc
pineoc / source.cpp
Created June 12, 2015 07:02
전등 밝히기
#define TIMETEST 0
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#if (TIMETEST)
#include <chrono>//for time check
#endif
@pineoc
pineoc / app.js
Created June 28, 2015 09:13
node.js expressjs 4 session 참조 코드
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var parseurl = require('parseurl');
var routes = require('./routes/index');
@pineoc
pineoc / index.js
Created June 28, 2015 10:01
node.js expressjs 4, socket testing
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/sock',function(req,res,next){
res.render('sockTest',{title:'socket Test'})