This file contains hidden or 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 | |
| class c { | |
| function __construct() { $this->x = 123; } | |
| public $x; | |
| } | |
| $a = new c(); | |
| echo $a->x; | |
| ?> |
This file contains hidden or 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 a = new function() { this.x = 123; }; | |
| console.log(a.x); |
This file contains hidden or 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 c = function(){ this.x = 123; }; | |
| var a = new c(); | |
| console.log(a.x); | |
| var b = new c; | |
| console.log(b.x); |
This file contains hidden or 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 x = { | |
| aaa: 123, | |
| bbb: 456, | |
| ccc: 789, | |
| }; | |
| console.log(x); | |
| delete x.bbb; | |
| console.log(x); |
This file contains hidden or 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
| this.x = 123; | |
| console.log(this); |
This file contains hidden or 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 vector = function(x, y){ | |
| switch(arguments.length){ | |
| case 0: x = 0; | |
| case 1: y = 0; | |
| } | |
| this.x = x; | |
| this.y = y; | |
| }; | |
| var my_object = function(p, v){ |
This file contains hidden or 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> | |
| <meta charset="utf-8"> | |
| <title>ページ(=このファイル)全体としてのタイトル</title> |
This file contains hidden or 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
| main() { | |
| var name = 'World'; | |
| print('Hello, ${name}!'); | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| function main(){ | |
| configure | |
| run | |
| } | |
| function configure(){ | |
| echo 'いくつから?' | |
| read range_begin |
This file contains hidden or 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
| CC = g++ | |
| LD = g++ | |
| LDFLAGS = | |
| CFLAGS=-g -Wall `pkg-config --cflags libfreenect` -lopengl32 -lglut32 | |
| LIBS = `pkg-config --libs libfreenect` -lGL -lGLU -lglut | |
| OBJECTS = main.o | |
| PROG = mycppview | |
| all:$(PROG) |