This file contains hidden or 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
| #region | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using NUnit.Framework; | |
| using Sokoban; | |
| using Sokoban.Serialization; | |
| using UnityEngine; | |
| #endregion |
This file contains hidden or 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
| #region | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using NUnit.Framework; | |
| using UnityEngine; | |
| #endregion | |
| namespace Tests |
This file contains hidden or 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; | |
| //https://www.cs.jhu.edu/~misha/MyPapers/EUROG20.pdf Appendix A | |
| namespace PolygonCenterFinder | |
| { | |
| public static class PolygonCenter | |
| { | |
| public static Vector2 GetPolygonCenter(Vector2[] verts) | |
| { |
This file contains hidden or 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.Serialization; | |
| public class SphereCollisionTest : MonoBehaviour | |
| { | |
| [FormerlySerializedAs("avoidanceCheckCount")] | |
| [SerializeField] | |
| int testCount = 20; |
This file contains hidden or 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 puppeteer = require('puppeteer'); | |
| const fs = require("fs"); | |
| (async () => { | |
| const browser = await puppeteer.launch(`headless: "new"`); | |
| const page = await browser.newPage(); | |
| await page.goto('https://twitter.com/apastoraldream'); | |
| fs.writeFileSync("tweets.txt", ""); | |
| var allTweets = new Set(); |
This file contains hidden or 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
| [ | |
| { | |
| "word": "_ _ _ _ _ _ ", | |
| "definition": "Cold hard cash, we aint talking about no fifty dollars, _ _ _ _ _ _ is mad money, huge amounts." | |
| }, | |
| { | |
| "word": "_ _ _ _ ", | |
| "definition": "Abbrevation for why the hell not?" | |
| }, | |
| { |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| [ | |
| { | |
| "word": "chedda", | |
| "definition": "Cash money, synonymous with scrilla.", | |
| "score": 346 | |
| }, | |
| { | |
| "word": "wthn", | |
| "definition": "Abbrevation for why the hell not?", | |
| "score": 10 |
This file contains hidden or 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; | |
| public static class PolygonCenter | |
| { | |
| public static Vector2 GetPolygonCenter(Vector2[] verts) | |
| { | |
| var matA = CreateAMatrix(verts); | |
| var vecB = CreateBVector(verts); | |
| alglib.rmatrixsolve(matA, vecB.Length - 1, vecB, out _, out _, out var x); |
This file contains hidden or 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 static bool IntersectLineSegments(Vector2 a0, Vector2 a1, Vector2 b0, Vector2 b1, out Vector2 intersection) | |
| { | |
| Vector3 X = Vector3.Cross( | |
| Vector3.Cross(((Vector3)a0) + Vector3.forward, ((Vector3)a1) + Vector3.forward), | |
| Vector3.Cross(((Vector3)b0) + Vector3.forward, ((Vector3)b1) + Vector3.forward)); | |
| intersection = new Vector2(X.x / X.z, X.y / X.z); | |
| //Lines are not parallel | |
| if (float.IsNaN(intersection.x) || float.IsNaN(intersection.y)) |
This file contains hidden or 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 util = require('util'), | |
| graphviz = require('graphviz'), | |
| fs = require('fs'); | |
| let allBoards = {}; | |
| let nodesInGraph = {}; | |
| let rotationArray = [1, 2, 5, 0, 4, 8, 3, 6, 7]; | |
| let mirrorArray = [2, 1, 0, 5, 4, 3, 8, 7, 6] |
NewerOlder