if (condition) {
//statements
}
else {
//statements
}
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
import time | |
print("You find yourself in some sort of container that is rapidly falling") | |
time.sleep(2) | |
print("Suddenly the bottom of your container pops out with a bang, but you still can't see anything") | |
time.sleep(2) | |
start = input("A message pops up in front of you. Some kind of question box. It says ARE YOU READY TO PLAY?") | |
if start == 'yes': | |
print("Welcome!") | |
# loading screen like star wars crawl | |
time.sleep(3) |
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
.gp-theme #buddypress #object-nav li a:before { | |
content: '\f1db'; | |
} | |
.gp-theme #buddypress #object-nav #activity-personal-li a:before { | |
content: '\f03a'; | |
} | |
.gp-theme #buddypress #object-nav #xprofile-personal-li a:before { | |
content: '\f2c0'; | |
} | |
.gp-theme #buddypress #object-nav #blog-personal-li a:before, |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraController : MonoBehaviour { | |
public GameObject player; | |
private Vector3 offset; // Private because we set this offset in the script. Take the CURRENT transform position of the camera and subtract the CURRENT transform position of the player |
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
;SPECTRUM Launcher v3 for Rainmeter 4.2+ | |
;by /u/TheProtagonists | |
;Creative Commons 4.0 BY-NC-SA | |
;Credits: | |
;The icons used in this skin are created by https://materialdesignicons.com/ and https://icons8.com/ | |
;All images, artworks and backgrounds used in this skin are not created by me, and all rights goes to their original creators and copyright holders |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class NewBehaviourScript : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
void Start() | |
{ | |
Debug.Log(transform.position.x); // Find the x transform position of the game object this script is attached to and display it to the console |
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
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class scrPlayerController : MonoBehaviour | |
{ | |
public float speed; // Public floats will show up in the INSPECTOR as an editable property. Changes can be made to this variable in the Unity editor. We now have control over this variable inside the Unity editor, without having to recompile. | |
public Text countText; | |
public Text winText; |
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
<div id="graphcomment"></div> | |
<script type="text/javascript"> | |
/* - - - CONFIGURATION VARIABLES - - - */ | |
// make sure the id is yours | |
window.gc_params = { | |
graphcomment_id: 'ACORD', | |
// if your website has a fixed header, indicate it's height in pixels |
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
#!/usr/bin/env python | |
import rospy | |
import time | |
import math | |
class Robot(): | |
''' | |
Robot class contains all the math and motor control algorithms to move the rover | |
In order to call command the robot the only method necessary is the sendCommands() method | |
with drive velocity and turning amount |
OlderNewer