Skip to content

Instantly share code, notes, and snippets.

View oismaelash's full-sized avatar
💭
I change the world when you see the path for get the goals! let’s go together

Ismael Ash oismaelash

💭
I change the world when you see the path for get the goals! let’s go together
View GitHub Profile
using UnityEngine;
using BestHTTP;
using System;
using System.Text;
using System.IO;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Controllers
{
using UnityEngine;
using UnityEngine.EventSystems;
namespace IsmaelNascimentoAssets
{
public class GazeInteraction : MonoBehaviour
{
#region VARIABLES
[SerializeField] private Material imageChange;
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',
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);
{
"code": "200",
"status": "success",
"data": {
"message": "if error, message here, if success, message is empty"
}
};
using UnityEngine;
public class CopyToClipboardUnity : MonoBehaviour
{
[SerializeField] private string myText;
public void OnButtonCopyClipboardClicked()
{
TextEditor textForCopy = new TextEditor
{
text = myText
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);
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
using UnityEngine.UI;
public class StoreCard : MonoBehaviour
{
[SerializeField] private Image imgStore;
private void OnEnable()
using System;
using System.IO;
namespace GetDriversLogics
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Begin Drivers logical:");
private string GetStreamingAssetsPath()
{
string filePath;
#if UNITY_EDITOR
filePath = Application.dataPath + "/StreamingAssets";
#elif UNITY_IOS
filePath = Application.dataPath + "/Raw";