Skip to content

Instantly share code, notes, and snippets.

View conlan's full-sized avatar

Conlan Rios conlan

View GitHub Profile
import web3;
import json
# Change these
###############################################################
TOKEN_ADDRESS = "0x1301566b3cb584e550a02d09562041ddc4989b91"
TOKEN_ID = 135
INFURA_KEY = "https://mainnet.infura.io/v3/XXX";
###############################################################

Keybase proof

I hereby claim:

  • I am conlan on github.
  • I am conlanrios (https://keybase.io/conlanrios) on keybase.
  • I have a public key ASBqig1dIOvUo2b2m6XqhHK9Joys7icvQCABewADM-PNJAo

To claim this, I am signing this object:

Verifying my identity on Peepeth.com 0xa7f3dfed2bcf7b35a8824e11ae8f723650edfb58
UnitySendMessage("GameObjectName", "MethodName", "Parameter to pass");
@implementation UnityAppController
@end
extern "C" {
void Bar() {
/* Native iOS stuff goes here. UIAlertViews, TWTweetComposeViewController, etc. Go wild! */
};
}
using System.Runtime.InteropServices;
public class Foo : Monobehavior {
[DllImport ("__Internal")]
public static extern void Bar();
}
public static Node operator +(Node x, Node y)
{
Node nodeX = x;
Node nodeY = y;
Node tail = null;
Node head = null;
int remainder = 0;
private var accessToken : String; // << store the previously parsed access token here
function GetTrendingTopics() {
var headers = new Hashtable();
headers["Authorization"] = "Bearer " + accessToken;
var web : WWW = new WWW("https://api.twitter.com/1.1/trends/place.json?id=1", null, headers);
while (!web.isDone) {
//Debug.Log("Wait...");
private var URL_ENCODED_KEY_AND_SECRET : String; // <<< base64 encode your consumerKey : consumerSecret
function GetTwitterAccessToken() {
var body : byte[];
body = System.Text.Encoding.UTF8.GetBytes("grant_type=client_credentials");
var headers : Hashtable = new Hashtable();
headers["Authorization"] = "Basic " + URL_ENCODED_KEY_AND_SECRET;
function ToggleCamera () {
if (mainCam.active) {
oculusCam.active = true;
mainCam.active = false;
} else {
oculusCam.active = false;
mainCam.active = true;
}
}