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; |
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
# -*- 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
// ############ 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
<?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
<?php | |
namespace Moveopn\Vendor\Autoload; | |
/** | |
* An example of a general-purpose implementation that includes the optional | |
* functionality of allowing multiple base directories for a single namespace | |
* prefix. | |
* | |
* Given a foo-bar package of classes in the file system at the following | |
* paths ... |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My First React Example</title> | |
</head> | |
<body> | |
<div id="greeting-div"></div> | |
<script src="https://fb.me/react-15.0.0.js"></script> | |
<script src="https://fb.me/react-dom-15.0.0.js"></script> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My First React Example</title> | |
</head> | |
<body> | |
<div id="greeting-div"></div> | |
<script src="https://fb.me/react-15.0.0.js"></script> | |
<script src="https://fb.me/react-dom-15.0.0.js"></script> |
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
// CommonJS style | |
var React = require('react'); | |
var ReactDOM = require('react-dom'); | |
var Greeting = React.createClass({ | |
render: function () { | |
return ( | |
<p> Hello, Dalk Study</p> | |
); | |
} |
OlderNewer