This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!isset($conf)) { | |
$conf = 1; | |
} | |
$conf += 1; | |
return $conf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ############ EXAMPLE ############ | |
// CASE1 | |
var obj = { | |
prop: 'EWJO', | |
sub_func: function () { | |
var user = obj.sub_func2(); | |
console.log('Hello ' + user); | |
}, | |
sub_func2: function () { | |
return this.prop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
import os | |
import time | |
from subprocess import Popen | |
print("# Create zombie process (PID: %s)" % os.getpid()) | |
child_process = Popen(['/usr/local/bin/python', 'zombie.py']) | |
print("# Fork child-process (PID: %s)" % child_process.pid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
# socket 모듈을 임포트 | |
from socket import * | |
from select import select | |
import sys | |
# 호스트, 포트와 버퍼 사이즈를 지정 | |
HOST = '127.0.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myObject = { | |
value: 1, | |
increment: function (inc) { | |
var inc_type = typeof inc; | |
var that = this; | |
var minus = function () { | |
return that.value - 5; | |
}; | |
this.value += (inc_type === 'number')? inc : 1; |
NewerOlder