| 1 | | {{{#!syntax typescript |
|---|
| 2 | | let test = true; |
|---|
| 3 | | |
|---|
| 4 | | public asdfasdf { |
|---|
| 5 | | test = false; |
|---|
| 6 | | } |
|---|
| 7 | | |
|---|
| 8 | | // 근데 ts 이따구로 쓰는게 맞긴 함? |
|---|
| 9 | | }}} |
|---|
| 10 | | typescript |
|---|
| 11 | | |
|---|
| 12 | | {{{#!syntax javascript |
|---|
| 13 | | const gdl = {}; |
|---|
| 14 | | const blue = JSON.parse('{"__proto__":{"gdl": "Missing"}}'); |
|---|
| 15 | 2 | |
|---|
| 16 | 3 | Object.assign(gdl, blue); |
|---|
| 17 | 4 | console.log(gdl.gdl); |
|---|
| 18 | 5 | // ProtoType Pollution!!!! |
|---|
| 19 | 6 | |
|---|
| 20 | 7 | // 대충 저따구로 하면 프로토타입의 프로토타입의 프로토타입의.... 되어 영원히 반복된다고 한다 |
|---|
| 21 | 8 | }}} |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | {{{#!syntax python |
|---|
| 24 | 11 | alpha = 'wiki' |
|---|
| 25 | 12 | the = 'tree' |
|---|
| 26 | 13 | |
|---|
| 27 | 14 | if alpha == 'wiki': |
|---|
| 28 | 15 | if the !== 'tree': |
|---|
| 29 | 16 | print('알파위키'); |
|---|
| 30 | 17 | else: |
|---|
| 31 | 18 | print('테스트위키'); |
|---|
| 32 | 19 | |
|---|
| 33 | 20 | # 대충 이렇게 만들면 되겠지? |
|---|
| 34 | 21 | }}} |
|---|
| 35 | 22 | |
|---|
| 1 | 더시드엔진 기반 위키. 나무위키에서 갈라져 나온 위키이다. |
|---|
|
|
|
|
|
|
|
|
|
|
|
|
|