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
{ | |
"abTest": { | |
"ldIdData": "350:1" | |
}, | |
"authState": { | |
"hasFetched": false, | |
"isSignedIn": false, | |
"userInfo": null | |
}, | |
"categoryListData": { |
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
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 |
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
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++) { |
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
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++) { |
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
class InfiniteError(Exception): | |
def __init__(self, func): | |
super().__init__("Oops!") | |
func() | |
def func(): | |
"""Very useful docstring. | |
Long enough so lemon approves. | |
""" | |
raise InfiniteError(func) |
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
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])(); | |
} |
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
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])(); | |
} |
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
/// <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++) { |
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
// 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 |
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 class Node { | |
public Node Parent; | |
public Vector2Int Position; | |
// A* Algorithm variables | |
public float DistanceToTarget; | |
public float Cost; | |
public float Weight; | |
public float F { |