Skip to content

Instantly share code, notes, and snippets.

const app = Vue.createApp({
data() {
return {
title : 'List of countries',
countries : [],
country: {},
showCountry: false,
}
},
@hackertron
hackertron / InputHandler.cs
Last active July 8, 2021 15:24
InputHandler
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
public class InputManager : MonoBehaviour
{
public GameObject AR_object;
public Camera AR_Camera;
public ARRaycastManager raycastManager;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Datahandler : MonoBehaviour
{
public GameObject furniture;
private static Datahandler instance;
public static Datahandler Instance
{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class UIHandler : MonoBehaviour
{
public Button btn;
public GameObject furniture;
@hackertron
hackertron / InputController.cs
Last active September 28, 2020 11:01
InputController script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
public class InputManager : MonoBehaviour
{
public GameObject AR_object;
public Camera AR_Camera;
public ARRaycastManager raycastManager;
# /------------------------------------------\
# | don't forget to download the .tp file |
# | and place it in the user's directory :› |
# | |
# | also install lolcat: |
# | https://github.com/busyloop/lolcat |
# \------------------------------------------/
alias test-passed='if [ "$?" -eq "0" ]; then lolcat ~/.tp -a -s 40 -d 2; fi;'
@hackertron
hackertron / sql.go
Created January 25, 2019 10:55
go sqlite
package main
import (
"database/sql"
"fmt"
"time"
_ "github.com/mattn/go-sqlite3"
)
func main() {
package javadriverexample;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.ExpectedCondition;
import java.util.concurrent.TimeUnit;
// This is a comment
/*
* Multi-line comment
*/
// Tells the compiler iostream library which contains the function cout
#include <iostream>
// Allows us to use vectors
#include <vector>
package com.fire.fire.pullingjsonresponseintorecyclerviewtutorial;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;