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
// YOUR PACKAGE | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
/** | |
* Created by scub3d on 11/01/18. | |
*/ | |
public class ExampleUsage implements HandleResponseInterface { | |
private void uploadExample() { |
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
import sys, os, uuid | |
from urllib.request import urlopen, Request | |
from bs4 import BeautifulSoup | |
from dateutil.parser import parse | |
def decodeEmail(e): | |
de = "" | |
k = int(e[:2], 16) | |
for i in range(2, len(e) - 1, 2): | |
de += chr(int(e[i:i+2], 16)^k) |
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
// Put this file/code in your functions/index.js file | |
const functions = require('firebase-functions'); | |
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; | |
const OWNER_USERNAME = "<github_username>"; | |
const REPO_NAME = "<github_repo_name>"; | |
const ACCESS_TOKEN = "<github_personal_access_token>"; | |
exports.newIssue = functions.crashlytics.issue().onNew(issue => { |
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 UnityEditor; | |
using System.IO; | |
public class AssetBundler : Editor { | |
[MenuItem("Assets/Build AssetBundles")] | |
static void BuildAllAssetBundles() { | |
string exportPath = ASSET_BUNDLE_OUTPUT_PATH; // Change to fit your needs | |
BuildPipeline.BuildAssetBundles(exportPath, BuildAssetBundleOptions.ChunkBasedCompression, BuildTarget.StandaloneWindows64); // Change Options to fit your needs |
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 -*- | |
import websocket, thread, time, requests, json | |
from firebase import firebase | |
# I use firebase to store everything, but it can be adpated to work with other stuff | |
firebaseURL = '<your firebase database (not firestore) url here>' | |
firebase = firebase.FirebaseApplication(firebaseURL, authentication=None) | |
def getStreamToken(): | |
r = requests.get("http://api.lolesports.com/api/issueToken") |
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 websocket = require("ws"); | |
const { exec } = require("child_process"); | |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0; | |
exec('WMIC PROCESS get Caption,Commandline', {maxBuffer: 1024 * 500}, (err, stdout, stderr) => { | |
if(err) { | |
console.log(err); | |
return; | |
} |