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
| //WASD to orbit, left Ctrl/Alt to zoom | |
| using UnityEngine; | |
| public class KeyboardIsometric : MonoBehaviour | |
| { | |
| public float speed = 29.0F; | |
| public float rotationSpeed = 100.0F; | |
| public GameObject target; | |
| public GameObject gLight; | |
| public bool isController = false; |
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
| {{set . "title" "Register"}} | |
| {{template "header.html" .}} | |
| <h1>Register:</h1> | |
| <form action="{{url "UserController.Register"}}" method="POST"> | |
| {{with $field := field "user.Username" .}} | |
| <p class="{{$field.ErrorClass}}"> | |
| <strong>Username:</strong> | |
| <input type="text" name="{{$field.Name}}" size="16" value="{{$field.Flash}}"> * |
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 <iostream> | |
| using namespace std; | |
| struct Point | |
| { | |
| int x; | |
| int y; | |
| }; | |
| double inc_and_add(Point& p) | |
| { | |
| p.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
| import datetime as dt | |
| import random | |
| def wikipedia_partition(list_set, left_end_index, right_end_index, pivot_index): | |
| pivot_val = list_set[pivot_index] | |
| list_set[pivot_index], list_set[right_end_index] = list_set[right_end_index], list_set[pivot_index] | |
| temp_index = left_end_index | |
| for i in range(left_end_index, right_end_index-1): | |
| if pivot_val > list_set[i]: | |
| list_set[temp_index], list_set[i] = list_set[i], list_set[temp_index] |
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
| import datetime as dt | |
| def wikipedia_partition(list_set, left_end_index, right_end_index, pivot_index): | |
| pivot_val = list_set[pivot_index] | |
| list_set[pivot_index], list_set[right_end_index] = list_set[right_end_index], list_set[pivot_index] | |
| temp_index = left_end_index | |
| for i in range(left_end_index, right_end_index-1): | |
| if pivot_val > list_set[i]: | |
| list_set[temp_index], list_set[i] = list_set[i], list_set[temp_index] | |
| temp_index += 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
| RewriteEngine on | |
| RewriteCond %{REQUEST_URI} ^/gewünschteurl/ [OR] | |
| RewriteCond %{HTTP_HOST} ^dieServerBasisAdresse.de$ | |
| RewriteRule ^(.*)$ http://dieServerBasisAdresse.de/diehtmldatei.html [R,L] |
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
| einfügen(p): | |
| kind = wurzelknoten | |
| do { | |
| __knoten = kind | |
| __if (p <= wert(knoten)) kind = leftChild(knoten) | |
| __else kind = rightChild(knoten) | |
| } while (hasChild(kind)) | |
| if (p <= wert(kind)) { |
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 UnityEngine; | |
| using System.Collections; | |
| public class targetControl : MonoBehaviour | |
| { | |
| public bool targetControlEnabled = true; | |
| public bool boost = false; | |
| public int boostCount; | |
| // Use this for initialization | |
| void Start () |
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 UnityEngine; | |
| public class KeyboardIsometric : MonoBehaviour | |
| { | |
| public float speed = 29.0F; | |
| public float rotationSpeed = 100.0F; | |
| public GameObject target; | |
| public bool isController = false; | |
| void Update() { |
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 <iostream> | |
| #include <string> | |
| using namespace std; | |
| void fac(int n) | |
| { | |
| int ret = 1; | |
| for(int i=1; i < (n+1); i++) | |
| { |