Skip to content

Instantly share code, notes, and snippets.

View Yiin's full-sized avatar
💭
https://twitch.tv/yiin__

Yiin

💭
https://twitch.tv/yiin__
View GitHub Profile

Requirements

  1. JS/TS server setup
  2. Vue.js in webviews
  3. Ability to ignore social norms

Steps

  1. Install following packages:
@Yiin
Yiin / draft.js
Last active September 23, 2023 02:03
function getV1ServerArgs(eventName, args) {
return ({
anyResourceError: ({ resource }) => [resource],
anyResourceStart: ({ resource }) => [resource],
anyResourceStop: ({ resource }) => [resource],
consoleCommand: ({ command, args }) => [command, ...args],
entityEnterColshape: ({ colShape, entity }) => [colShape, entity],
entityLeaveColshape: ({ colShape, entity }) => [colShape, entity],
explosion: ({ source, type, pos, fx, target }) => [source, type, pos, fx, target],
netOwnerChange: ({ entity, newOwner, oldOwner }) => [entity, newOwner, oldOwner],
anyResourceError: (resource) => ({ resource })
anyResourceStart: (resource) => ({ resource })
anyResourceStop: (resource) => ({ resource })
consoleCommand: (command, ...args) => ({ command, args })
entityEnterColshape: (colShape, entity) => ({ colShape, entity })
entityLeaveColshape: (colShape, entity) => ({ colShape, entity })
explosion: (source, type, pos, fx, target) => ({ source, type, pos, fx, target })
netOwnerChange: (entity, newOwner, oldOwner) => ({ entity, newOwner, oldOwner })
playerChangedVehicleSeat: (player, vehicle, oldSeat, newSeat) => ({ player, vehicle, oldSeat, newSeat })
playerConnect: (player) => ({ player })

00:00:00

Aptariamas ryšys tarp tradicinės mitybos ir geros dantų sveikatos. Daktaro Westono A. Price'o tyrimas atskleidė, kad žmonės, besilaikantys tradicinės dietos, turėjo plačius dantų lankus, tiesius dantis ir keletą ertmių, o žmonėms, valgantiems šiuolaikinį maistą, pavyzdžiui, rafinuotus grūdus, cukrų ir augalinį aliejų, atsirado kreivų dantys ir ertmės. Weston Price taip pat pažymėjo, kad šios grupės, valgančios tradicinę dietą, visada vertino kai kuriuos jūrinius ar gyvūninius maisto produktus, įskaitant kiaušinius, sūrį, sviestą ir riebius pieno produktus, nes šiuose maisto produktuose yra daug vitaminų A, D ir K2, kurie kartu. palaikyti tinkamą kaulų ir veido struktūros formavimąsi, įskaitant dantų lanką.

00:05:00

Aptariami iššūkiai, susiję su gyvūninės kilmės produktų pakeitimu augaliniais, siekiant gauti pakankamai pagrindinių vitaminų, tokių kaip vitaminas A, vitaminas D ir vitaminas K2. Jame pažymima, kad nors kai kurie augaliniai maisto produktai gali aprūpinti šiuos vitaminus, jie gali

@Yiin
Yiin / index.d.ts
Last active February 19, 2023 13:14
declare module "alt-server" {
export interface Player {
store: ReturnType<
typeof import("../../src/shared/store/player.store").usePlayerStore
>;
}
}
@Yiin
Yiin / 1-1.js
Last active December 4, 2021 10:04
AoC 2021
const input = rawInput.split('\n').filter(Boolean).map(Number);
let inc = 0;
let last;
for (const x of input) {
if (typeof last !== 'undefined' && x > last) {
inc++;
}
last = x;
@Yiin
Yiin / day 10.js
Last active December 11, 2020 16:01
list = input.split("\n").sort((a, b) => a - b);
result = list.reduce(
(acc, number) => {
const diff = number - acc.last;
const key = ["one", "two", "three"][diff - 1];
return {
...acc,
[key]: acc[key] + 1,
last: +number,
// https://docs.microsoft.com/en-us/windows/desktop/inputdev/virtual-key-codes
export const VK = {
LBUTTON: 0x01,
RBUTTON: 0x02,
CANCEL: 0x03,
MBUTTON: 0x04,
XBUTTON1: 0x05,
XBUTTON2: 0x06,
DASH: 0xE8,
BACK: 0x08,
import './bindings';
import { inject, injectable } from 'inversify';
import { User } from 'Shared/entity';
import { bind, handleEvent } from '~/container';
import { UserEntityRepository } from './bindings';
import { GameConstants } from '~/constants/game';
import { ServerConstants } from '~/constants/server';
@bind()
@injectable()
This file has been truncated, but you can view the full file.
[{"pos":"1","number":"7492357836","name":"G.","lastname":"DANIKAUSKAS","bdate":"1993","department":"258","info":"iki 2019-02-04 pateikti reikalingus dokumentus Jurbarko KPKP"},{"pos":"2","number":"9487041801","name":"D.","lastname":"VALINČIUS","bdate":"1995","department":"258","info":"iki 2019-02-04 pateikti reikalingus dokumentus Jurbarko KPKP"},{"pos":"3","number":"5867553860","name":"V.","lastname":"TARNAUSKAS","bdate":"1995","department":"217","info":"iki 2019-01-28 pateikti reikalingus dokumentus Kauno RKPKS"},{"pos":"4","number":"7786906318","name":"T.","lastname":"GRIGORAVIČIUS","bdate":"1997","department":"231","info":"iki 2019-02-05 pateikti reikalingus dokumentus Kėdainių KPKP"},{"pos":"5","number":"8119897237","name":"V.","lastname":"MICKA","bdate":"1999","department":"217","info":"iki 2019-01-28 pateikti reikalingus dokumentus Kauno RKPKS"},{"pos":"6","number":"8913016862","name":"K.","lastname":"NAKVOSAS","bdate":"1993","department":"217","info":"iki 2019-01-28 pateikti reikalingus dokumentus Kau