Skip to content

Instantly share code, notes, and snippets.

View jeonghwan-kim's full-sized avatar

김정환 jeonghwan-kim

View GitHub Profile
@jeonghwan-kim
jeonghwan-kim / gist:82e9e10078d319d82947
Last active September 7, 2015 11:32 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

var https = require('https');
var iconv = require('iconv-lite');
function (req, reply) {
// 인증결과 확인
if (req.payload.P_STATUS !== '00') {
// 에러 처리
}
@jeonghwan-kim
jeonghwan-kim / .jshinrc
Created November 11, 2015 10:59
.jshinrc sample
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 2,
<ng-pluralize
count="remainingCount"
when="{ 0: 'No item', one: 'a item', other: '{} items' }">
</ng-pluralize>
var morgan = require('morgan');
/**
* morgan wrapper
* @returns {morgan}
*/
module.exports = function setLogger() {
// http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
var red = '\x1B[31m',
green = '\x1B[32m',
<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 / 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;
}
@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>