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 static Tile getTile(WorldPoint point) { | |
LocalPoint a = LocalPoint.fromWorld(Microbot.getClient(), point); | |
if (a == null) { | |
return null; | |
} | |
return Microbot.getClient().getScene().getTiles()[point.getPlane()][a.getSceneX()][a.getSceneY()]; | |
} | |
public static boolean isDoorPresent(WorldPoint a, WorldPoint b) { | |
WallObject wallObject = getTile(a).getWallObject(); |
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
package net.runelite.client.plugins.example; | |
import net.runelite.api.Client; | |
import net.runelite.api.GameState; | |
import net.runelite.api.events.GameStateChanged; | |
import net.runelite.client.Mouse; | |
import net.runelite.client.eventbus.Subscribe; | |
import net.runelite.client.plugins.Plugin; | |
import net.runelite.client.plugins.PluginDescriptor; |
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
package net.runelite.client; | |
import lombok.Setter; | |
import net.runelite.api.Client; | |
import java.awt.*; | |
import java.awt.event.MouseEvent; | |
public class Mouse { |
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
{ | |
"type": "https://example.com/probs/out-of-credit", | |
"title": "You do not have enough credit.", | |
"detail": "Your current balance is 30, but that costs 50.", | |
"instance": "/account/12345/msgs/abc", | |
"balance": 30, | |
"accounts": ["/account/12345", | |
"/account/67890"] | |
} |
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
{ | |
"message": "Customer not found.", | |
"documentation":"https://example.com/docs/readme | |
} |
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
{ | |
"success": false, | |
"error": { | |
"code": 422, | |
"type": "customer_duplicate", | |
"detail": "Customer already exists" | |
} | |
} |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.EntityFrameworkCore; | |
using WebAPI.Models; | |
using WebAPI.Models.Database3PWEB; | |
using WebAPI.Models.ViewModels; | |
namespace WebAPI.Services |
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
List<Entity> list = dbContext.Entity.Where(x => x.Foo == "Foo").ToList() | |
foreach(var item in list) { | |
Console.WriteLine(item.ToString()) | |
} |
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
IQueryable<Entity> query = dbContext.Entity.Where(x => x.Foo == "Foo") | |
foreach(var item in query) { | |
Console.WriteLine(item.ToString()) | |
} |
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 MyService | |
{ | |
private static Dictionary<string, string> dictionary; | |
public async Task loadData() | |
{ | |
dictionary = new Dictionary<string, string>() | |
{ | |
{"test", "test" } | |
}; |
NewerOlder