Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘

Alec Dilanchian adilanchian

🤘
View GitHub Profile
View ARSceneViewExample.swift
//-- Center Middle Overlay --//
@IBOutlet weak var centerOverlayView: UIView!
//-- AR Properties --//
@IBOutlet weak var arSceneView: ARSCNView!
let useARView = true
var screenCenter: CGPoint = CGPoint()
var planeAnchors = [ARPlaneAnchor]()
//-- Scenekit Properties --//
View FriendProtocol.swift
import UIKit
/*
Protocol Definition: A protocol defines a blueprint of methods, properties, and other requirements that suit a particular
task or piece of functionality.
(https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html)
*/
/*
This protocol, GreetFriendDelegate, requires any conforming type to have an instance method called greetFriend, which
@adilanchian
adilanchian / FAQ.md
Last active Aug 15, 2020
Pixelogic's Saturday Standup Podcast Moderator FAQ
View FAQ.md

The Main Goal

The main goal here is simple - stay interactive with the chat when you feel like it and remove dem trolls! There will be less interaction with chat during these Podcast streams, just as a FYI.

New Commands

!standup - "Welcome to The Saturday Standup Podcast! Today we are talking with {EnterGuestHere} ({EnterSomeSocialLink}) about the future of live programming streams. Have a question? Use !q and your question to be answered by Alec or {EnterGuestHere} at the end of the stream!"

!question - "Have a question for {EnterGuestHere} or Alec? Use !q and then your question to add it to the queue!"

I think these should be pretty self explanatory, but please let me know if you need more clarity.

@adilanchian
adilanchian / App.js
Last active Sep 25, 2021
Section 4: Update WavePortal to randomly send lucky users waving at you some Ethereum
View App.js
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import waveportal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@adilanchian
adilanchian / App.js
Last active Sep 25, 2021
Section 5: Update UI + deploy to an Ethereum testnet so anyone on the internet can wave at you using their
View App.js
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import waveportal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@adilanchian
adilanchian / App.js
Last active Sep 26, 2021
Section 3: Build web3 app that connects to our wallet and talks to our WaveContract
View App.js
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import waveportal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
/**
* Create a varaible here that holds the contract address after you deploy!
*/
@adilanchian
adilanchian / WavePortal.sol
Last active Sep 26, 2021
Section 2: Write and deploy your WavePortal smart contract to a local Ethereum network
View WavePortal.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;
import "hardhat/console.sol";
contract WavePortal {
uint256 totalWaves;
constructor() {