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 Vuforia; | |
using UnityEngine.SceneManagement; | |
// Coloque esse script no GameObject ImageTarget | |
public class ActionDetectImageTarget: MonoBehaviour, ITrackableEventHandler | |
{ | |
private void Start() | |
{ | |
GetComponent<TrackableBehaviour>().RegisterTrackableEventHandler(this); |
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
#include <iostream> | |
#include <stdlib.h> | |
#include <stdio.h> | |
using namespace std; | |
int main() | |
{ | |
int n; |
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
private string GetStreamingAssetsPath() | |
{ | |
string filePath; | |
#if UNITY_EDITOR | |
filePath = Application.dataPath + "/StreamingAssets"; | |
#elif UNITY_IOS | |
filePath = Application.dataPath + "/Raw"; | |
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; | |
using System.IO; | |
namespace GetDriversLogics | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Begin Drivers logical:"); |
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 UnityEngine; | |
using UnityEngine.Networking; | |
using UnityEngine.UI; | |
public class StoreCard : MonoBehaviour | |
{ | |
[SerializeField] private Image imgStore; | |
private void OnEnable() |
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
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 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 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 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); |