Skip to content

Instantly share code, notes, and snippets.

View Xevion's full-sized avatar
⚜️
Chaos Order

Xevion Xevion

⚜️
Chaos Order
View GitHub Profile
{
"abTest": {
"ldIdData": "350:1"
},
"authState": {
"hasFetched": false,
"isSignedIn": false,
"userInfo": null
},
"categoryListData": {
from typing import List
class CommandDecorator():
def __init__(self, name: str = None, description: str = '', aliases: List[str] = list):
self.name = name
self.description = description
self.aliases = aliases
self.func = None
def __call__(self, func):
self.func = func
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Solution {
HashMap<String, Integer> count = new HashMap<String, Integer>();
public String[] getFolderNames(String[] names) {
String[] results = new String[names.length];
for (int i = 0; i < names.length; i++) {
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Solution {
public String[] getFolderNames(String[] names) {
Map<String, Set<Integer>> nameCount = new HashMap<String, Set<Integer>>();
List<String> submit = new ArrayList<String>(names.length);
Pattern p = Pattern.compile("(.+)\\((\\d+)\\)");
for (int i = 0; i < names.length; i++) {
class InfiniteError(Exception):
def __init__(self, func):
super().__init__("Oops!")
func()
def func():
"""Very useful docstring.
Long enough so lemon approves.
"""
raise InfiniteError(func)
import arithmetic from "@/arithmetic";
import utils from "@/utils";
export default {
methods: {
getProblem() {
console.log(this);
let problem = this.problems[utils.methods.getRandomInt(0, this.problems.length)];
return problem.method(problem.difficulties[problem.current])();
}
import arithmetic from "@/arithmetic";
import utils from "@/utils";
export default {
methods: {
getProblem() {
console.log(this);
let problem = this.problems[utils.methods.getRandomInt(0, this.problems.length)];
return problem.method(problem.difficulties[problem.current])();
}
/// <summary>
/// Move the ChangeController's current index forward by index.
/// Positive values only, wil only result in forward movement (if any).
/// </summary>
/// <param name="n">The number of times to move forward.</param>
public void Forward(int n = 1) {
if (n < 0)
throw new ArgumentOutOfRangeException(nameof(n));
for (int i = 0; i < n; i++) {
// Decompiled with JetBrains decompiler
// Type: UnityEngine.Vector2Int
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 578B5B67-7E30-45F5-8675-3155BC1864CB
// Assembly location: C:\Program Files\Unity\Hub\Editor\2019.1.1f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
using System;
using UnityEngine.Scripting;
namespace UnityEngine
@Xevion
Xevion / Node.cs
Last active November 15, 2020 01:19
public class Node {
public Node Parent;
public Vector2Int Position;
// A* Algorithm variables
public float DistanceToTarget;
public float Cost;
public float Weight;
public float F {