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 BestHTTP; | |
| using System; | |
| using System.Text; | |
| using System.IO; | |
| using Newtonsoft.Json; | |
| using System.Collections.Generic; | |
| namespace Controllers | |
| { |
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.EventSystems; | |
| namespace IsmaelNascimentoAssets | |
| { | |
| public class GazeInteraction : MonoBehaviour | |
| { | |
| #region VARIABLES | |
| [SerializeField] private Material imageChange; |
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
| const AWS = require('aws-sdk'); | |
| var s3 = new AWS.S3(); | |
| exports.handler = (event, context, callback) => { | |
| var params = { | |
| "Body": event.base64, | |
| "Bucket": "my-bucket", | |
| "Key": 'filename.jpeg', | |
| "ACL": 'public-read', |
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
| private IEnumerator Screenshot_Coroutine() | |
| { | |
| yield return new WaitForEndOfFrame(); | |
| Texture2D screenshot = ScreenCapture.CaptureScreenshotAsTexture(); | |
| string screenshotBase64 = Convert.ToBase64String(screenshot.EncodeToPNG()); | |
| var bytes = Convert.FromBase64String(screenshotBase64); | |
| using (var imageScreenshot = new FileStream(PathFileScreenshot, FileMode.Create)) | |
| { | |
| imageScreenshot.Write(bytes, 0, bytes.Length); |
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
| { | |
| "code": "200", | |
| "status": "success", | |
| "data": { | |
| "message": "if error, message here, if success, message is empty" | |
| } | |
| }; |
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 CopyToClipboardUnity : MonoBehaviour | |
| { | |
| [SerializeField] private string myText; | |
| public void OnButtonCopyClipboardClicked() | |
| { | |
| TextEditor textForCopy = new TextEditor | |
| { | |
| text = myText |
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
| let AWS = require('aws-sdk'); | |
| const sns = new AWS.SNS(); | |
| exports.handler = function (event, context, callback) { | |
| let receiver = event['receiver']; | |
| let sender = event['sender']; // Type alpha numeric with limit max 11 chars | |
| let message = event['message']; | |
| console.log("Sending message", message, "to receiver", receiver); |
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 UnityEngine; | |
| using UnityEngine.Networking; | |
| using UnityEngine.UI; | |
| public class StoreCard : MonoBehaviour | |
| { | |
| [SerializeField] private Image imgStore; | |
| private void OnEnable() |
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.IO; | |
| namespace GetDriversLogics | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Begin Drivers logical:"); |
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
| private string GetStreamingAssetsPath() | |
| { | |
| string filePath; | |
| #if UNITY_EDITOR | |
| filePath = Application.dataPath + "/StreamingAssets"; | |
| #elif UNITY_IOS | |
| filePath = Application.dataPath + "/Raw"; | |