Skip to content

Instantly share code, notes, and snippets.

@hiun
hiun / nfs.sh
Created July 19, 2014 10:17
NFS mount command (Assume Client For NFS and nfs-kernel-server are installed in Windows / Linux)
\\192.168.137.67\var\nfs G:
@hiun
hiun / cifs.sh
Created July 17, 2014 11:48
CIFS mount command - Mount windows share folder in ubuntu
sudo mount -t cifs //192.168.137.1/shared ~/shared -o username=hiun
@hiun
hiun / sublimetext_settings.md
Last active August 29, 2015 14:03
Sublime Text Setting for Web Developer (Extremly Subjective)

###1.HTML Build System with Chrome

Open HTML file dirctly on Chrome Browser (with Ctrl + b a.k.a Build Shortcut)

####Consideration and Things to improve

  • On Max OS X, command may need to be change see this.

  • Currently only working on build system is fixed to HTML, If build system is setted to automatically will cause an error no build system.

@hiun
hiun / hangulization.js
Created June 18, 2014 05:37
Styling every `p` element with `NanumBarunGothic, sans-serif` or `anything, sans-serif`
javascript:
var p = document.getElementsByTagName('p');
var len = p.length;
var i;
for (i = 0; i < len; i++) {
p[i].style.fontFamily='NanumBarunGothic';
}
@hiun
hiun / nbg1.html
Last active August 29, 2015 14:01
<!--code for loading NanumBarunGothic CSS-->
<link href='http://www.openhiun.com/hangul/nanumbarungothic.css' rel='stylesheet' type='text/css'>
<!--code for loading NanumBarunGothic CSS-->
<link href='https://raw.github.com/openhiun/hangul/master/nanumbarungothic.css' rel='stylesheet' type='text/css'>
<!--code for applying NanumBarunGothic to DOM-->
<style>
h1 {
font-family: 'Nanum Barun Gothic', sans-serif;
}
</style>
@hiun
hiun / extractCookie.js
Created April 19, 2014 18:01
Extract Cookie with JavaScript
function layout () {
var cookies = document.cookie.split(";");
for (i = 1; i < cookies.length; i++) {
var value = cookies[i];
value = value.split("=");
if (value[0] === "layout" && value[1] === false) {
return false;
} else {
return true;
@hiun
hiun / js1.js
Last active August 29, 2015 13:59
JavaScript possible shape of if else statement.
if (tagInfo === 0) {
if (session === true) {
if (layout === undefined) {
} else if (layout === false) {
}
} else if (session === undefined) {
if (layout === undefined) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
if (x) {
var hometown = "where is your hometown?"
if (hometown = "california") {
var sf = "have you been to san francisco?"
if (sf = "yes") {
var apple = "have you been to apple inc?"
if(apple = "yes") {
var ceo = "did you met Timothy Cook?"
if(ceo = "yes") {
alert("congrat");
} else {