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
<?php | |
// ref: https://partner.steamgames.com/doc/webapi/ISteamLeaderboards | |
$cache_filename = "leaderboard_cache"; | |
$default_leaderboard = "Normal"; | |
if (!file_exists($cache_filename) || time() - filemtime($cache_filename) > 3600) | |
{ | |
$max = 10; // how many displayed scores | |
$key = ""; // steam webapi key, to get it: https://partner.steamgames.com/doc/webapi_overview/auth#create_publisher_key | |
$appid = ""; // your game's app id | |
// the names and corresponding leaderboard IDs |
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
public class MeshLister : EditorWindow | |
{ | |
[MenuItem("Tools/Mesh Lister")] | |
static void Open() { GetWindow<MeshLister>(); } | |
struct Info | |
{ | |
public Mesh mesh; | |
public int subMeshes; | |
public int triCount; |
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
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
// Version 2, December 2004 | |
// | |
// Copyright (C) 2004 Sam Hocevar <[email protected]> | |
// | |
// Everyone is permitted to copy and distribute verbatim or modified | |
// copies of this license document, and changing it is allowed as long | |
// as the name is changed. | |
// | |
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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 UnityEngine.Profiling; | |
using System.Runtime.CompilerServices; | |
using System.Collections.Generic; | |
public class VectorTest : MonoBehaviour | |
{ | |
Vector3[] array; | |
List<Vector3> list; |
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 Twitch = require("twitch").default; | |
const Discord = require("discord.js"); | |
const ChatClient = require("twitch-chat-client").default; | |
// environment variables to be set for script to run properly | |
const { | |
CODE, // generate code with authorization code flow | |
// see: https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/#oauth-authorization-code-flow | |
CLIENT_ID, // client id of twitch app | |
CLIENT_SECRET, // client secret of twitch app (for token renewal) |