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 ItemType = require('./enum/ItemType'); | |
const ItemRarity = require('./enum/ItemRarity'); | |
const ItemSource = require('./enum/ItemSource'); | |
const ItemEdition = require('./enum/ItemEdition'); | |
module.exports = { | |
1: { | |
id: 1, | |
name: 'Spoob-A-Cola', | |
source: ItemSource.CRATE, |
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
NAME 200 NUMBERS 1686, 1983, 1801, 1890, 1910, 1722, 1571, 1952, 1602, 1551, 1144, 1208, 1335, 1914, 1656, 1515, 1600, 1520, 1683, 1679, 1800, 1889, 1717, 1592, 1617, 1756, 1646, 1596, 1874, 1595, 1660, 1748, 1946, 1734, 1852, 2006, 1685, 1668, 1607, 1677, 403, 1312, 1828, 1627, 1925, 1657, 1536, 1522, 1557, 1636, 1586, 1654, 1541, 1363, 1844, 1951, 1765, 1872, 696, 1764, 1718, 1540, 1493, 1947, 1786, 1548, 1981, 1861, 1589, 1707, 1915, 1755, 1906, 1911, 1628, 1980, 1986, 1780, 1645, 741, 1727, 524, 1690, 1732, 1956, 1523, 1534, 1498, 1510, 372, 1777, 1585, 1614, 1712, 1650, 702, 1773, 1713, 1797, 1691, 1758, 1973, 1560, 1615, 1933, 1281, 1899, 1845, 1752, 1542, 1694, 1950, 1879, 1684, 1809, 1988, 1978, 1843, 1730, 1377, 1507, 1506, 1566, 935, 1851, 1995, 1796, 1900, 896, 171, 1728, 1635, 1810, 2003, 1580, 1789, 1709, 2007, 1639, 1726, 1537, 1976, 1538, 1544, 1626, 1876, 1840, 1953, 1710, 1661, 1563, 1836, 1358, 1550, 1112, 1832, 1555, 1394, 1912, 1884, 1524, 1689, 1775, 1724, 1366, 1966, 1549, 1931, 1975, 15 |
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
/** | |
* This file contains type guards that allow narrowing of types from an unknown type to a known type. | |
* see https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards for more info | |
*/ | |
// Represents valid keys for JavaScript objects. | |
export type RecordKey = string | number | symbol; | |
// Represents any JavaScript object. | |
export type RecordObject = Record<RecordKey, unknown>; |
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 { Profile } from 'passport-google-oauth'; | |
import { User } from '@prisma/client'; | |
import config from '../../config'; | |
import Nullable from '../../models/nullable'; | |
import client from './client'; | |
// Export the User type from here so that it is easier to find, instead of needing to import from client each time | |
export { User }; | |
/** |
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
/** | |
* This file defines the "google strategy" for passport. | |
* Passport requires three main things for a strategy to work: | |
* - A deserialize method to turn an ID into a database object (a User) | |
* - A serialize method to turn a database object (a User) into an ID | |
* - The actual Strategy used to perform authentication | |
*/ | |
import passport from 'passport'; | |
import { OAuth2Strategy as GoogleStrategy } from 'passport-google-oauth'; |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(App()); | |
} | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) => MaterialApp( | |
theme: ThemeData.dark(), |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(App()); | |
} | |
class App extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) => MaterialApp( | |
theme: ThemeData.dark(), |
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 bot = mineflayer.createBot({ /* ... */ }); | |
// ... do some action that would get you within range of a piston ... | |
// This .findBlock method will find the nearest block to the point, which is the position of the bot's entity. The block it finds must match the piston block ID, and will be returned. | |
const piston = bot.findBlock({ point: bot.entity.position, matching: pistonBlockId }); | |
if (piston == null) { | |
return; | |
} |