Skip to content

Instantly share code, notes, and snippets.

View ChangJoo-Park's full-sized avatar
:octocat:
🌱

ChangJoo Park(박창주) ChangJoo-Park

:octocat:
🌱
View GitHub Profile
@ChangJoo-Park
ChangJoo-Park / .vimrc
Created April 18, 2013 06:48
.vimrc 파일
" #################### Vim ####################
" ########## File ##########
set nocompatible
set backspace=indent,eol,start " Backspace 사용에 이전 줄과 연결
set backup " Backup 활성화
set backupdir=~/.vim/backup
set history=50 " 명령어 기록 수
set novisualbell " 화면 깜빡임 사용안함
set noerrorbells " 오류음 사용안함
set lazyredraw " 매크로 실행중 화면을 다시 그리지 않음
@ChangJoo-Park
ChangJoo-Park / gist:5443017
Last active January 29, 2019 20:55
# Ubuntu 13.04 , linux mint install RVM with Ruby 2.0.0-p353 , Rails 4.0.0
# If you meet install errors, see abid-hussain's comment
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
&&
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
<%-- Created by IntelliJ IDEA. --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title></title>
</head>
<body>
<form method="POST" action="loginhandle.jsp">
<p>ID : <input type="text" name="userId"></p>
<p>PW : <input type="password" name="userPassword"></p>
<%--
Created by IntelliJ IDEA.
User: changju
Date: 13. 4. 24
Time: 오후 9:36
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
/**
* Created with IntelliJ IDEA.
* User: changju
* Date: 13. 4. 24
* Time: 오후 9:40
* To change this template use File | Settings | File Templates.
*/
package javaBean;
public class User {
@ChangJoo-Park
ChangJoo-Park / bresenham.rb
Created April 26, 2013 04:52
Bresenham Algorithm with Ruby
def Bresenham(x1,y1,x2,y2)
if(x1 > x2)
Bresenham(x2,y2,x1,y1)
return
end
dx = x2 - x1
dy = y2 - y1
if( dy< 0 )
@ChangJoo-Park
ChangJoo-Park / wordpress.txt
Created May 6, 2013 08:20
ubuntu wordpress
APACHE 서버의 설치
먼저 아파치 서버를 설치합니다.
1
$ apt-get install apache2
위의 명령을 실행했는데 설치가 안되면 다음 명령을 실행하고 나서 위의 명령을 다시 실행합니다.
1
@ChangJoo-Park
ChangJoo-Park / index.html
Created May 10, 2013 12:17
HTML 기본 문서구조
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>
<body>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INITIAL_LIFE 5
#define MIN_LEVEL 1
#define MAX_LEVEL 10
#define TRUE 1
#define FALSE 0
typedef struct{
@ChangJoo-Park
ChangJoo-Park / gist:6131305
Created August 1, 2013 13:27
Install Sublime text 2 Ubuntu PPA
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
install package control
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')