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
def remove_duplicates(grades): | |
newlist = [] | |
for grade in grades: | |
if grade not in newlist: | |
newlist.append(grade) | |
return newlist | |
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> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"/> | |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> | |
<!-- jQuery library --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> |
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
<%@ WebHandler Language="C#" Debug="true" Class="name" %> | |
using System.Web; | |
public class name : IHttpHandler { | |
public void ProcessRequest (HttpContext context) { | |
} |
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 StateMachine : MonoBehaviour { | |
public Transform player; | |
public Transform TargetObj; | |
private bool isPaused; | |
private Renderer myWeapon; | |
public enum PlayerState { |
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 math | |
def destroy(x1,y1,r1,x2,y2,r2): | |
dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) | |
if(dist - (r1+r2) < 0): | |
print("True") | |
else: | |
print("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
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class TextFileHandler : MonoBehaviour { | |
public GameObject diaglogBox; | |
public Text dialogText; | |
public TextAsset textFile; |
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 | |
define('DB_USER','username'); | |
define('DB_PASSWORD','password'); | |
define('DB_HOST','localhost'); | |
define('DB_NAME','dbname'); | |
$db_connect = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die | |
('Could not connect to MYSQL '. mysqli_connect_error()); | |
?> |
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 UnityEngine.SceneManagement; | |
public class Button_LoadScene : MonoBehaviour { | |
public void LoadScene() { | |
SceneManager.LoadScene("unit2-2"); | |
} |