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
| // (d) void RemoveAt(int index) | |
| public void RemoveAt(int index) | |
| { | |
| int counter = 0; | |
| numbers [index] = 0; | |
| counter++; | |
| if (counter >= 1) { | |
| for (int i = index; i < numbers.Length-1; i++) { | |
| numbers [i] = numbers [i + 1]; | |
| } |
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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Post</title> | |
| <link type="text/css" rel="stylesheet" href="stylesheet.css" /> | |
| </head> |
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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Übung 3: PHP Upload</title> | |
| </head> | |
| <body> | |
| <form action="upload.php" method="post" enctype="multipart/form-data"> |
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 | |
| $uploaddir = dirname( $_SERVER["SCRIPT_FILENAME"] ) . "/pix/"; | |
| $filename = basename($_FILES['bild']['name']); | |
| $ext = substr($filename, -4); | |
| if( $ext != '.jpg' || $ext != '.gif' || $ext != '.png' ) { | |
| die("es dürfen nur jpg, png oder gif Dateien hochgeladen werden, nicht " . substr($filename, -3) ); | |
| } |
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
| using System; | |
| using System.Collections.Generic; | |
| class Book | |
| { | |
| public string isbn; | |
| public string title; | |
| public string year; | |
| public string publisher; |
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
| // zum einbinden der Dateien | |
| #include <oogl/Texture2D.h> | |
| #include <oogl/GLSLProgram.h> | |
| // sowie.. | |
| oogl::Texture2D* moontexture; | |
| oogl::GLSLProgram* phongshader; | |
| // in der Init haben wir: |
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
| #include <oogl/Texture2D.h> | |
| #include <oogl/GLSLProgram.h> | |
| oogl::GLSLProgram* phongshader; | |
| oogl::Texture2D* skybox; | |
| phongshader = oogl::GLSLProgram::create("/Users/danielraudschus/Documents/spacerace/projectSpacerace/spacerace/data/shader/textShader.vert", "/Users/danielraudschus/Documents/spacerace/projectSpacerace/spacerace/data/shader/textShader.frag"); |
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
| /** | |
| * Spielsteuerung | |
| * @returns {movePlayer} | |
| */ | |
| function movement() { | |
| var up = down = left = right = touchLeft = touchRight = touchDown = touchUp = false; | |
| var touchLeft = document.getElementById('left'); | |
| Hammer(touchLeft).on("touch", function() { | |
| touchLeft = true; |
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
| //immediate function: it is convention to sign it with an $ if you use jQuery (but we did not use jQuery here??)) | |
| $(function () { | |
| //constructor function | |
| function Person(name) { | |
| console.log('constructor::Person'); | |
| console.log(this); | |
| this.name = 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
| var test = 'hello'; //window, global var | |
| (function() { | |
| //function scope, but we can also access variables and functions in the global scope | |
| //where this function was defined (thus test) and the variables of the parent function | |
| console.log(test); //ToDo: wird in der console als undefined ausgegeben, warum? | |
| //function declaration statement, function declarations get hoisted to top of function scope | |
| function test2(param2, param3) { | |
| console.log(test); |