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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ObjectMovmentOnWayPoints : MonoBehaviour | |
{ | |
#region Vars | |
public List<GameObject> movmentWayPoints; |
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 cv2 #Import openCV | |
import sys #import Sys. Sys will be used for reading from the command line. We give Image name parameter with extension when we will run python script | |
#Read the image. The first Command line argument is the image | |
image = cv2.imread(sys.argv[1]) #The function to read from an image into OpenCv is imread() | |
#imshow() is the function that displays the image on the screen. | |
#The first value is the title of the window, the second is the image file we have previously read. | |
cv2.imshow("OpenCV Image Reading", image) |
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 cv2 | |
import sys | |
# reading image and saving in a var | |
image = cv2.imread(sys.argv[1]) # The first argument is the image, getting from command line | |
print("image shape") | |
print(image.shape) | |
# Convert to Grayscale |
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 | |
/** | |
* Created by PhpStorm. * User: Faizan Khan * Date: 1/2/2018 * Time: 10:51 AM | |
*/ | |
/*Script Motive: The purpose of the file is to present different PDO Functions for DML and DDL operations | |
Sample Table | |
Table Name: UserTbl | |
Columns: Id, UserName, Email, RecordAddDate | |
*/ |
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
namespace FileExtensionConverter | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
bool quitApp = false; | |
do | |
{ | |
Console.WriteLine("\t\t\t**Files Extension Converter**"); |
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.Net; | |
using System.Net.Mail; | |
using System.Net.Security; | |
using System.Security.Cryptography.X509Certificates; | |
using UnityEngine; | |
public class SendEmail : MonoBehaviour | |
{ | |
public string fromEmail = "yourGmailAccountFromWhereYouWantToSendEmail"; | |
public string toEmail = "WhomYouWantToSendEmail"; |
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 Serilog;//Need dll files | |
public class SerilogDemoInUnity3d : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
void Start() | |
{ | |
var log = new LoggerConfiguration().WriteTo.File(Application.dataPath + "/AppLog.txt").CreateLogger(); |
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 AnimationController : MonoBehaviour | |
{ | |
[SerializeField] | |
Animation anim; | |
[SerializeField] | |
string clipName; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MaterialPickOnClick : MonoBehaviour | |
{ | |
void Update() | |
{ | |
if (Input.GetMouseButtonDown(0)) |