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
# -*- coding: utf-8 -*- | |
"""TrillApp.ipynb | |
Automatically generated by Colaboratory. | |
Original file is located at | |
https://colab.research.google.com/drive/1b0qU_SkDafVEvhYmLhRgYzO_B-cu3KwQ | |
""" | |
# Tasks! |
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 System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class SampleClass : MonoBehaviour | |
{ | |
[HideInInspector] // <---- This will hide the public variable in the insepector | |
public GameObject goVariable; | |
[HideInInspector] |
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
const cheerio = require('cheerio'); | |
const request = require('request'); | |
var URL = 'https://www.reddit.com/r/dankmemes/'; | |
request(URL, function(err, resp, html) { | |
//If there is no error | |
if (!err){ | |
//The URL Data | |
const $ = cheerio.load(html); |
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
const express = require('express'); | |
const app = express(); | |
const path = require('path'); | |
const port = 8080; | |
//Tell us when the server is up and running + where at | |
console.log("I am running at: " + port); | |
//Start the listener | |
app.listen(port); |
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
var json = { | |
"firstName": "John", | |
"lastName": "Smith", | |
"isAlive": true, | |
"age": 27, | |
"address": { | |
"streetAddress": "21 2nd Street", | |
"city": "New York", | |
"state": "NY", | |
"postalCode": "10021-3100" |
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
//This is the npm package that will allow you to by-pass the 301 redirect error | |
const https = require('follow-redirects').https; | |
//This is your URL link to query the system and your username | |
var url = 'https://public-api.tracker.gg/apex/v1/standard/profile/<YourSystem>/<YourName>'; | |
//This is our GET-request module | |
https.get(url, { | |
headers: { | |
"TRN-Api-Key" : "<YourApiKeyHere>" //<----This is where you will pass your API key to |
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
curl https://public-api.tracker.gg/apex/v1/standard/profile/{SystemNumber}/{Username} | |
-H "TRN-API-KEY: {APIKeyHere}" |
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
User$ git clone <RepositoryName> |
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
//Loading the npm packages | |
const cheerio = require('cheerio') | |
const request = require('request') | |
//The Url that will be scraped | |
var URL = 'http://rancrump.com/aboutme/'; | |
//The attribute that will be searched, follows the HTML class and ID syntax i.e. '.' and '#' | |
//can also select a span by simply typing span in the begining i.e. 'span.someClassName' | |
var selector = '.myTopBorder' |
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
//Loading the npm packages | |
const cheerio = require('cheerio') | |
const request = require('request') | |
//The Url that will be scraped | |
var URL = 'http://rancrump.com/aboutme/'; | |
//The attribute that will be searched, follows the HTML class and ID syntax i.e. '.' and '#' | |
//can also select a span by simply typing span in the begining i.e. 'span.someClassName' | |
var selector = '.myTopBorder' |