Skip to content

Instantly share code, notes, and snippets.

View jeonghwan-kim's full-sized avatar

김정환 jeonghwan-kim

View GitHub Profile
<ul class="post-it">
<li><a href="#">SUNDAY</a></li>
<li><a href="#">MONDAY</a></li>
<li><a href="#">TUESDAY</a></li>
<li><a href="#">WENDSDAY</a></li>
<li><a href="#">THURSDAY</a></li>
<li class="active"><a href="#">FRIDAY</a></li>
<li><a href="#">SATERDAY</a></li>
</ul>
<div class="note">HERE IS NOTE.</div>http://codepen.io/JeonghwanKim/pen/IhsdC#
<php
echo 'test';
?>
@jeonghwan-kim
jeonghwan-kim / after-slector.css
Last active December 25, 2015 08:29
clear float attribute by :after slector
.foo {
float: left;
}
.foo:after {
content: "";
display:block;
clear:both;
}
@jeonghwan-kim
jeonghwan-kim / default.html
Last active December 25, 2015 08:29
html default source with jquery, bootstrap
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 101 Template</title>
<meta name="viewport"content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css"rel="stylesheet"media="screen">
</head>
<body>
<h1>Hello, world!</h1>
@jeonghwan-kim
jeonghwan-kim / set-transparent-ie.css
Created October 12, 2013 08:46
Set transparent value in IE
.opacity {
background-color: #000000;
opacity: 0.6;
filter: alpha(opacity=60);
}
.non-opacity {
position: relative;
}
white-space:pre-wrap;
word-wrap: break-word;
@jeonghwan-kim
jeonghwan-kim / link-to-ie-css.html
Created October 12, 2013 08:48
Link to IE style sheet file
@jeonghwan-kim
jeonghwan-kim / str-to-int.c
Created October 12, 2013 09:08
Convert string to integer
int str_to_int(char *str) {
int i = 0;
while (*str >= '0' && *str <= '9')
i = i * 10 + *str++ - '0';
return i;
}
@jeonghwan-kim
jeonghwan-kim / get-day-of-week.php
Created October 12, 2013 10:21
요일구하기
function get_day_of_week($date) {
$day = array('일','월','화','수','목','금','토');
$day_of_week = $day[date('w', strtotime($date))];
return $day_of_week;
}
@jeonghwan-kim
jeonghwan-kim / get-real-ip-addr.php
Created October 12, 2013 10:22
Get real IP address
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
{
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}