content stringlengths 5 1.05M |
|---|
local llthreads = require("llthreads2.ex")
local mtmsg = require("mtmsg")
print(mtmsg._VERSION)
local threadIn = mtmsg.newbuffer("threadIn")
local listener = mtmsg.newlistener()
local threadOut1 = listener:newbuffer("threadOut1")
local threadOut2 = listener:newbuffer("threadOut2")
local threadOut1Id = threadOut1... |
controler = {}
function controler.click(deck, mx, my, player_num)
count_x, count_y = deck.mousereleased(mx, my)
if (count_x > 0 and count_x < 9 and count_y > 0 and count_y < 9) then
if (deck[count_x][count_y][1] == 0) then
stepdone = false
deck, stepdone = controler.drawdimensio... |
chatCommands.spawn = {
permissions = {'admin', 'mod', 'helper'},
event = function(player, args)
local target = string_nick(args[1])
if not players[target] then return chatMessage('<g>[•] $playerName not found.', player) end
chatMessage('<g>[•] moving '..target..' to spawn...', player)
players[target].place = ... |
local ServerStorage = game:GetService("ServerStorage")
local SwordSmith = require(ServerStorage:WaitForChild("SwordSmith"))
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Action = ReplicatedStorage.Actionite
local tool = script.Parent
local debounce = false
local data = {
criticalHits = 45, --... |
-- Threatrack
-- MIT License © 2019 Arthur Corenzan
-- More on https://github.com/haggen/wow
-- High level hostile players.
--
local SKULL = -1;
-- Max player level.
--
local MAXED = 60;
-- Colors. Stolen from WoW default interface.
RegularColor = CreateColor(1.0, 0.82, 0.0);
GuildColor = CreateColor(0.251, 0.753, 0... |
PlazaRedPacketHdxqCcsView = class("PlazaRedPacketHdxqCcsView")
PlazaRedPacketHdxqCcsView.onCreationComplete = function (slot0)
ClassUtil.extends(slot0, ZoomPopUpChildView, true, slot0, slot0.bg, slot0.view)
Hero.redPacketDesInfoChangedSignal:add(slot0.onRedPacketDesInfoChanged, slot0)
slot0:onRedPacketDesInfoChange... |
------------------------------------------------------------
-- Menu visuals
local mp = require('mp')
local assdraw = require('mp.assdraw')
local Menu = assdraw.ass_new()
function Menu:new(o)
self.__index = self
o = o or {}
o.selected = o.selected or 1
o.canvas_width = o.canvas_width or 1280
o.can... |
--[[
Copyright 2017 YANG Huan (sy.yanghuan@gmail.com).
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
--------------------------------------------------------------------------------
----------------------------------- DevDokus -----------------------------------
--------------------------------------------------------------------------------
if not ((_StartError_) and (Framework.Vorp)) then
function DrawCircle(x, y,... |
function TreeTag:OnThink()
if GameRules:IsGamePaused() == true then
return 1
end
end
function TreeTag:OnGameRulesStateChange()
local newState = GameRules:State_Get()
if newState == DOTA_GAMERULES_STATE_CUSTOM_GAME_SETUP then
TreeTag:OnSetupVotingPhase();
elseif newState == DOTA_GAMERULES_STATE_PRE_... |
client, service, Routine = nil, nil, nil
local function boolToStr(bool)
return bool and "Yes" or "No"
end
return function(data, env)
if env then
setfenv(1, env)
end
local client = client
local service = client.Service
local Routine = Routine
local player: Player = data.Target
local window = client.UI.M... |
local Dictionary = {
copy = require(script.copy),
copyDeep = require(script.copyDeep),
count = require(script.count),
equals = require(script.equals),
equalsDeep = require(script.equalsDeep),
every = require(script.every),
filter = require(script.filter),
flatMap = require(script.flatMap),
flatten = require(s... |
module( "control", package.seeall )
HoldTime = 0.3
LastPress = nil
LastKey = nil
KeyControls = {}
function Check()
if gui.IsGameUIVisible() or gui.IsConsoleVisible() then return end
for key, tbl in pairs( KeyControls ) do
if tbl.Enabled then
-- Key hold (repeat press)
if tbl.LastPress and tbl.LastPress... |
local MAX_INVENTORY_SLOTS = 14
-- get inventory data and send to UI
function SyncInventory(player)
log.trace('SyncInventory')
local inventory_items = PlayerData[player].inventory
-- log.trace("INVENTORY ITEMS (" .. GetPlayerName(player) .. "): " .. dump(inventory_items))
local current_inhand
loca... |
return {
"hrsh7th/nvim-cmp",
requires = {
"hrsh7th/vim-vsnip",
"hrsh7th/cmp-vsnip",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-nvim-lua",
"hrsh7th/cmp-path",
"onsails/lspkind-nvim"
},
config = function()
local vim = _G["vim"]
local cmp_found, cmp = pcall(require, "cmp")
if not cmp_found then
vim.not... |
#!/usr/bin/env tarantool
local tap = require('tap')
local test = tap.test('session')
local fiber = require('fiber')
box.cfg{
listen = os.getenv('LISTEN');
log="tarantool.log";
}
local uri = require('uri').parse(box.cfg.listen)
local HOST, PORT = uri.host or 'localhost', uri.service
session = box.session
spac... |
local MY_MODULE_NAME = "others"
local MY_MODULE_VERSION = 29.2
local HTT = HowToTitle
if not HTT then return end
local MY_MODULE = HTT:RegisterModule(MY_MODULE_NAME, MY_MODULE_VERSION)
if not MY_MODULE then return end
HTT:RegisterTitle("@YungDoggo", nil, 2746, {en = "|cffffffA|cfff0ffl|cffe8ffm|cffe0ffi|cffd9ffg|cff... |
local server = require('test.luatest_helpers.server')
local t = require('luatest')
local g = t.group()
g.before_all(function()
g.server = server:new({alias = 'gh-6766'})
g.server:start()
end)
g.after_all(function()
g.server:stop()
end)
g.test_6766_1 = function()
local conn = g.server.net_box
loca... |
local p = premake
print "test 1"
if not p.modules.emscripten then
print "loading emscripten"
dofile("_preload.lua")
p.modules.emscripten = {}
local emscripten = p.modules.emscripten
emscripten._VERSION = "0.0.1"
dofile("emcc.lua")
end
return p.modules.emscripten
|
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Millechuca
-- Regional Marchant NPC
-- Only sells when San d'Oria controls Vollbow.
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
require("scripts/globals/conquest")
require("scripts/globals/quests... |
local utils = require('monarized.utils')
local palette = require('monarized.palette')
local colors = require('monarized.colors')
local Color, c, Group = require('colorbuddy').setup()
local s = require('colorbuddy.style').styles
local vim = vim
local M = {}
local function customizations()
local underline = s.none
... |
-- module to help run sandboxed code
-- copyright 2016 Samuel Baird MIT Licence
local class = require('core.class')
return class(function (sandbox)
function sandbox:init(available_values)
self.globals = {}
for k, v in pairs(available_values) do
self.globals[k] = v
end
end
-- TODO: add module
-- TODO... |
#!/usr/bin/env lua
-- remaps another jet state (provided by 'some_servive.lua'
-- asynchronously by fetching the state.
local peer = require'jet.peer'.new{ip=arg[1]}
local cjson = require'cjson'
local remapped
local remap = function(path,event,data)
print(path,event,cjson.encode(data))
if event == 'add' then
as... |
local snmp = require "snmp"
function func_cb(vb, status, index, reqid, session, magic)
if magic == "obelix" then
print("Callback: from obelix")
else
print("Callback: from localhost")
end
print(vb)
end
hub1 = assert(snmp.open{peer = "obelix"})
hub2 = assert(snmp.open{peer = "localhost"})
local reqid1 ... |
-- Natural Selection 2 Competitive Mod
-- Source located at - https://github.com/xToken/CompMod
-- lua\CompMod\Mixins\InfestationMixin\post.lua
-- - Dragon
InfestationMixin.networkVars =
{
desiredInfestationRadius = "float",
infestationRadius = "float",
infestationChangeTime = "time",
growthRate = "flo... |
local gl = require('galaxyline')
local gls = gl.section
local fileinfo = require('galaxyline.provider_fileinfo')
gl.short_line_list = {'NvimTree','vista','dbui','packer', 'startify'}
local schema = require('vn-night.schema').schema
local colors = {
bg = schema.gray2,
section_bg = schema.gray3,
fg = schema.gray... |
--[[
Bind(tag, func):
Binds a function to fire when the event is fired.
Fire(tag, ...):
Fires the according event to the server. Won't fire if already fired.
FireQueued(tag, ...):
Fires the according event to the server. Will not return but will queue in order to send all data. Mostly used as a remote
--]]... |
local cursor= setmetatable({}, cursor_mt)
return Def.ActorFrame{
cursor:create_actors(
"cursor", 0, 0, 2, fetch_color("player.both"),
fetch_color("player.hilight"), {{"top", "MenuUp"}, {"bottom", "MenuDown"}}),
Def.Actor{
OnCommand= function(self)
self:GetParent():draworder(2):GetParent():SortByDrawOrder()
... |
local lua = {}
local fn = vim.fn
local ts_utils = require('nvim-treesitter/ts_utils')
local utils = require('partials.utils')
vim.cmd([[augroup init_lua]])
vim.cmd([[autocmd!]])
vim.cmd([[autocmd FileType lua lua kris.lua.setup()]])
vim.cmd([[augroup END]])
function lua.setup()
vim.bo.keywordprg = ':help'
utils.b... |
local M = {}
function M.setup()
local opts = { noremap = true, silent = true, nowait = true }
vim.api.nvim_set_keymap('', '<Leader>w', '<cmd>HopChar1<CR>', opts)
vim.api.nvim_set_keymap('', '<Leader>sw', '<cmd>HopPattern<CR>', opts)
end
return M
|
--[[
@author Digital.
@url https://github.com/dig/onset-camera-library
]]
local CameraTimer = 0
local CameraTick = 10
local CameraCurrentIndex = 1
local CameraCurrentStep = 0
local CameraStayInCamera = false
local function Path_OnCameraTick(path, length, data, steps)
if data[CameraCurrentIndex] == nil then re... |
local lspconfig = require'lspconfig'
local completions = require'completion'
local protocol = require'vim.lsp.protocol'
-- bash
lspconfig.bashls.setup{
on_attach=completions.on_attach
}
-- js, ts
lspconfig.tsserver.setup{
on_attach=completions.on_attach
}
-- js deno
lspconfig.denols.setup{
on_attach=comp... |
function encode.highlight(text)
local text = encode.html(text)
text = text:gsub("\027", "")
text = text:gsub("\\\\", "\027b")
text = text:gsub("\\%*", "\027a")
text = text:gsub("%*([^%*]*)%*", '<span class="highlighted">%1</span>')
text = text:gsub("\027a", "*")
text = text:gsub("\027b", "\\")
return te... |
local super = Class("Graphics", Container).getSuperclass()
Graphics.viewPortX = 0
Graphics.viewPortY = 0
function Graphics.getInstance()
return LuaObject.getSingleton("Graphics")
end
function Graphics:init()
super.init(self)
self.width, self.height = guiGetScreenSize()
self.bufferedPolygons = {}
self.textX =... |
require("__5dim_core__.lib.equipment.generation-fusion-reactor-equipment")
local powerProduction = 750
local techCount = 400
-- Beacon 01
genFusionReactors {
number = "01",
subgroup = "armor-reactor",
power = powerProduction,
new = false,
order = "a",
ingredients = {
{"processing-unit"... |
local traitormod = {}
traitormod.peoplePercentages = {}
traitormod.roundtraitors = {}
traitormod.selectedCodeResponses = {}
traitormod.selectedCodePhrases = {}
traitormod.gamemodes = {}
traitormod.disableRadioChat = false
local endingRound = false
local roundEndDelay = 0
local traitorAssignDelay = 0
local traitorsA... |
if SERVER then
AddCSLuaFile()
end
local function dosomething()
--please don't hurt me, linter
end
function GetHTMLMaterialVL(url, callbackfunc)
if not CLIENT then return end
HTMLMaterial(url, HTMLMAT_STYLE_COVER_IMG, function(mat)
local matdata = {
["$basetexture"] = mat:GetName()... |
---
-- Rolelayering module that mostly handles the communication between the UI and the server role cole.
-- @section rolelayering
-- @author Alf21
-- @author Mineotopia
rolelayering = {}
local function SendLayerData(layerTable)
local layerTableSize = #layerTable
net.WriteUInt(layerTableSize, ROLE_BITS)
for i = ... |
local h = require('null-ls.helpers')
local methods = require('null-ls.methods')
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
-- method を指定すると、 register_source() が呼ばれる
---@class nullls.generator
---@field fn function
---@field async boolean?
---@class nullls.source
---@field generator nullls.generator
---@field ... |
obs = obslua
output_file_name = "obs-local-stream-marker.csv";
output_folder = "";
csv_headers = "Date Time, Stream Start, Stream Timestamp, Recording Filename, Recording Timestamp";
output_format = "$current_time, $stream_start_time, $stream_timestamp, $recording_start_time, $recording_timestamp";
stream_timestamp ... |
loadstring('\27\83\88\76\16\0\1\4\4\4\8\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\23\14\3\0\0\36\0\0\0\100\64\0\0\164\128\0\0\228\192\0\0\36\1\1\0\100\65\1\0\164\129\1\0\228\193\1\0\36\2\2\0\100\66\2\0\164\130\2\0\228\194\2\0\36\3\3\0\100\67\3\0\164\131\3\0\0\0\0\0\0\0\128\3\0\0\128\6\0\0\0\3\0\0\0\6\0\0\0\1\0\0\128\2\0\0\0\2\... |
local computer = require("computer")
local keyboard = require("keyboard")
local event, listeners, timers = {}, {}, {}
local lastInterrupt = -math.huge
local function call(callback, ...)
local result, message = pcall(callback, ...)
if not result and type(event.onError) == "function" then
pcall(event.onError, m... |
-- Barthalus
local NPCID = 90100
function Spellmaster_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "Who dares disturbing me?")
pUnit:RegisterEvent("Spellmaster_Shadowbolt", 8000, 0)
pUnit:RegisterEvent("Spellmaster_Fireball", 3000, 0)
pUnit:RegisterEvent("Spellmaster_Frostbolt", 10000, 0)
pUnit:RegisterEvent("... |
local warriorspells = {1180, 201, 196, 198, 202, 197, 199, 227, 200, 266, 264, 5011, 9116}
local paladinspells = {201, 196, 198, 202, 197, 199, 200, 9116}
local hunterspells = {1180, 201, 196, 198, 202, 197, 266, 264, 5011}
local roguespells = {1180, 201, 196, 198, 266, 264, 5011}
local priestspells = {1180, 198, 227, ... |
--------------------------------
--- Materials (GENERAL)
--------------------------------
local Materials = {}
MR.CL.Materials = Materials
local materials = {
preview = {
-- Preview material
name = "MatRetPreviewMaterial",
material = "MatRetPreviewMaterial",
}
}
-- Networking
net.Receive("CL.Materials:SetPre... |
createObject(9931, 885.12103271484, -1106.3221435547, 2086.5666503906, 0, 0, 180, 0, 369)
createObject(9931, 792.41278076172, -1106.4708251953, 2088.7473144531, 0, 0, 180, 0, 369)
createObject(9931, 846.88623046875, -1072.3342285156, 2088.7473144531, 0, 0, 89.999938964844, 0, 369)
createObject(9931, 846.88623046875,... |
class("TimeSynchronizationCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.TimeMgr.GetInstance():SetServerTime(slot1:getBody().timestamp, slot1.getBody().monday_0oclock_timestamp)
getProxy(BuildShipProxy).setBuildShipState(slot3)
if getProxy(PlayerProxy):getData() then
slot4:flushTimesListener()
... |
paradeSlot("tai_mothership",{
1500,
1000,
-1800,
},{
0,
0,
1,
},{
0,
1,
0,
},1300)
paradeSlot("tai_shipyard",{
1500,
1000,
-1800,
},{
0,
0,
1,
},{
0,
1,
0,
},1300)
paradeSlot("TAI_Scout",{
-410,
-183,
1664,
},{
0,
0,
1,
},{
-1,
0,
... |
-- Example shows compatibility with raysan5 and robloach's bindings
-- It also can run in TSnake41's and Alexander Matz's bindings
-- Remove linking when you run this code in other bindings and uncomment line below
-- if not (type(rl) == "table" or type(rl) == "userdata") then setmetatable(_G, { __index = rl }) end
... |
local holeWidth = 5
local height = 4
local lend = false
function forward()
while turtle.detect() do
turtle.dig()
end
while turtle.attack() do
end
turtle.forward()
end
function selectItem(name)
for i=1,16 do
turtle.select(i)
local data = turtle.getItemDetail()
if data and data.name == name then
return... |
data:extend({
{
type = "int-setting",
name = "request-scanner_update_interval",
order = "aa",
setting_type = "runtime-global",
default_value = 120,
minimum_value = 1,
maximum_value = 216000, -- 1h
},
{
type = "int-setting",
name = "request-scanner_max_results",
order = "ab"... |
if AkDebugLoad then print("[#Start] Loading ak.road.TramSwitch ...") end
local TramSwitch = {}
--- Registriert eine neue Strassenbahnweiche und schaltet das Licht der angegeben Immobilien anhand der Weichenstellung
-- @param switchId ID der Weiche
---@param structure1 string Immobilie, deren Licht bei Weichenstellung ... |
local Impl = {}
Impl.chara_drop = require("impl/chara_drop.lua")
Impl.God = require("impl/god.lua")
Impl.shop_inventory = require("impl/shop_inventory.lua")
Impl.show_dialog = require("impl/show_dialog.lua")
Impl.Blending = require("impl/blending.lua")
ELONA.api:add {
Impl = Impl,
}
|
local ffi = require('ffi')
local class = require('../class')
local constants = require('../constants')
local format = string.format
local abs, sqrt, min = math.abs, math.sqrt, math.min
local DIAGONAL_DIFF = constants.DIAGONAL_DIFF
local Vector3 = class('Vector3')
ffi.cdef[[
typedef struct {
float x, y, z;
} Vector... |
object_tangible_loot_creature_loot_collections_space_engine_mark_05_cygnus = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_05_cygnus:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_05_cygnus, "object/tangible/loot/creature/loot/collections... |
local BaseDao = require "kong.dao.cassandra.base_dao"
local utils = require "kong.tools.utils"
local SCHEMA = {
primary_key = {"id"},
fields = {
id = {type = "id", dao_insert_value = true},
created_at = {type = "timestamp", dao_insert_value = true},
consumer_id = {type = "id", required = true, queryabl... |
--[[
GD50
Legend of Zelda
Author: Colton Ogden
cogden@cs50.harvard.edu
]]
Projectile = Class{}
function Projectile:init(def, x, y)
-- string identifying this object type
self.type = def.type
self.texture = def.texture
self.frame = def.frame or 1
-- whether it ac... |
wisp = {}
wisp.wisps = {}
wisp.jars = {}
-----------------
-- Mod Storage --
-----------------
local mod_storage = minetest.get_mod_storage()
local data = {
wisps = minetest.deserialize(mod_storage:get_string("wisps")) or {},
jars = minetest.deserialize(mod_storage:get_string("jars")) or {},
}... |
local lspconfig = require('lspconfig')
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc',... |
local Validator = script.Parent
local Toast = Validator.Parent
local Dialog = Toast.Parent
local App = Dialog.Parent
local UIBlox = App.Parent
local Packages = UIBlox.Parent
local t = require(Packages.t)
local validateColorInfo = require(UIBlox.Core.Style.Validator.validateColorInfo)
return t.strictInterface({
iconCo... |
-- Initialize luaunit
local lu = require('luaunit')
-- Initialize mocks
require('ut-mocks')
-- Initialize aura
require('aura-init')
-- Tests
TestUnitMatchAuraActivationRulesInRaid = { }
function TestUnitMatchAuraActivationRulesInRaid:Setup()
_G.IsInRaid = function () return true end
_G.UnitClas... |
local ok = pcall(function() require 'fb.luaunit' end)
if not ok then
print('For running tests, please manually install fb.luaunit from fblualib.')
print('fblualib does not have rockspecs yet')
return
end
require 'nn'
local precision = 1e-5
local pl = require'pl.import_into'()
local mytester = torch.Tester()... |
local math, string, table, arg = math, string, table, arg
local pairs, ipairs, require, error = pairs, ipairs, require, error
local _ENV = {package=package}
local PYLUA = require('PYLUA')
local FontMetric = require('metric').FontMetric
local CharMetric = require('metric').CharMetric
local FontFormatError = require('m... |
local Modules = script.Parent.Parent.Parent.Parent
local Roact = require(Modules.Roact)
local PluginAccessor = require(Modules.Plugin.Components.PluginAccessor)
local function Dropdown(props)
if typeof(props.value) ~= 'EnumItem' then
return nil
end
local value = props.value
local enumType = value.EnumType
loca... |
local defaults = {}
local valid = {}
return{
isCreatable = function(className)
local validD = valid[className]
if not validD then
valid[className] = pcall(function()
Instance.new(className)
end)
validD = valid[className]
end
return validD
end,
getDefaults = function(className,property)
... |
-- Copyright 2020 SparkyPotato
workspace "Spark"
architecture "x86_64"
configurations
{
"Debug",
"Development",
"Release"
}
startproject "Spark"
group "Engine"
project "Spark"
location "Engine/Intermediate/ProjectFiles"
language "C++"
cppdialect "C++17"
targetdir "Engine/Binaries/%{cfg.buildcf... |
--[[
Copyright 2016-2020 The Node.lua Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
local addonName, pct = ...;
pct.PROFESSIONS = {
ALCHEMY = {
spellId = 11611;
},
LEATHERWORKING = {
spellId = 10662;
},
TAILORING = {
spellId = 12180;
}
}
pct.TRACKED_SPELLS = {
TRANSMUTE_ARCANITE = {
spellId = 17187,
profession = pct.PROFESSIONS.ALCH... |
M = {}
M.data = {
title = "",
active = false,
}
return M |
-- formatter modules
local function prettier()
return {
exe = "prettier",
args = { "--stdin-filepath", vim.api.nvim_buf_get_name(0) },
stdin = true,
}
end
require("formatter").setup({
logging = false,
filetype = {
sh = {
function()
return { exe = "shfmt", args = { "-" }, stdin = t... |
--[[
Copyright (C) 2013 David 'Falcqn' Hepworth
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish... |
-- common metatable patterns and functionality
-- copyright 2016 Samuel Baird MIT Licence
local module = require('core.module')
return module(function (meta)
function meta.readonly(obj)
local proxy = {}
setmetatable(proxy, {
__index = obj,
__newindex = function (obj, property, value) error('object is re... |
local config = {
["citizen"] = {
male = 128,
female = 136,
addon = 3,
items = {
{5878,100}
}
},
["hunter"] = {
male = 129,
female = 137,
addon = 3,
items = {
{5876, 100}, {5948, 100}
}
},
["mage"] = {
male = 130,
female = 138,
addon = 3,
items = {
{2160, 1000}
}
},
["knigh... |
Locales ['fi'] = {
['buy_license'] = 'osta lisenssi?',
['yes'] = 'kyllä',
['no'] = 'ei',
['buy'] = 'sinä ostit',
['not_enough_black'] = 'ei tarpeeksi likaista rahaa',
['not_enough'] = 'sinulla ei ole tarpeeksi rahaa',
['shop'] = 'kauppa',
['shop_menu'] = 'paina ~INPUT_CONTEXT~ avataksesi kauppa ikkuna.... |
---------------------------------------------------------------------
---- Convert AD binary schlib to kicad symbol lib
---- Use 7z to unpack the compound format binary library
---- Get the headerfile of the library, then parse the element in each
---- componment
--------------------------------------------------------... |
module(..., package.seeall)
function apply(env, options)
tundra.unitgen.load_toolset("generic-dotnet", env)
env:set_many {
["DOTNET_SUFFIXES"] = { ".cs" },
["DOTNET_SUFFIXES_RESOURCE"] = { ".resource" },
["CSC"] = "gmcs",
["CSPROGSUFFIX"] = ".exe",
["CSLIBSUFFIX"] = ".dll",
["CSRESGEN"] = ... |
--************************
--name : SINGLE_AG_BD_01.lua
--ver : 0.1
--author : Kintama
--date : 2004/09/08
--lang : en
--desc : Single Assassination Group for Blackdragon
--npc :
--************************
--changelog:
--2004/09/08(0.1): Added description
--************************
function... |
--
-- Generated from file.lt
--
local Slash = package.config:sub(1, 1)
return {Slash = Slash, read = function(path)
local f = assert(io.open(path, "r"))
local text = f:read("*all")
f:close()
return text
end, write = function(path, text)
local f = assert(io.open(path, "w"))
f:write(text)
f:cl... |
local DefaultOnStrike = function(inst)
if inst.components.health and not inst.components.health:IsDead() then
local protected = false
if GetPlayer().components.inventory:IsInsulated() then
protected = true
end
if not protected then
local mult = TUNING.ELECTRI... |
-- Called OnSpellStart
function Cyclone(event)
local target = event.target
local caster = event.caster
local ability = event.ability
-- Checking if target has spell block, if target has spell block, there is no need to execute the spell
if not target:TriggerSpellAbsorb(ability) then
local hero_duration = abili... |
-- @Author:pandayu
-- @Version:1.0
-- @DateTime:2018-09-09
-- @Project:pandaCardServer CardGame
-- @Contact: QQ:815099602
local config = require "game.config"
local timetool = require "include.timetool"
local roleMgr = require "manager.roleMgr"
local mailMgr = require "manager.mailMgr"
local CDb = require "include.db"
... |
return {'bye','byebye','byes'} |
#!/usr/bin/env lua
-- [[ colors ]]
local RED = "\x1b[31m"
local GREEN = "\x1b[32m"
local YELLOW = "\x1b[33m"
local BLUE = "\x1b[34m"
local PURPLE = "\x1b[35m"
local CYAN = "\x1b[36m"
local WHITE = "\x1b[97m"
local NOCOL = "\x1b[0m"
-- [[ opencmd ]]
local function opencmd(cmd)
local command = io.popen(cmd, "r")
local... |
require("rider.v2")
local envoy = envoy
local bodyHandler = {}
bodyHandler.version = "v2"
function bodyHandler:on_request_header()
local header = envoy.req.get_header("test")
if header == nil then
envoy.logDebug("no req_header");
else
envoy.logDebug("req_header: "..header);
end
... |
--[[
Code in parts or totally from zorker
https://github.com/zorker/rothui
https://github.com/zorker/rothui/tree/master/wow8.0/rBuffFrame
MIT license
Code in parts or totally from lithammer
https://github.com/lithammer/NeavUI
https://github.com/lithammer/NeavUI/tree/master/Interface/AddOns/nBuff
MIT license
]]--... |
slot0 = class("BackYardBaseView")
slot1 = require("Framework.notify.event")
slot2 = require("Mod/BackYard/view/BackYardTool")
slot0.Ctor = function (slot0, slot1, slot2, slot3, slot4)
slot0.event = slot0.New()
slot0._go = slot1
slot0._tf = tf(slot1)
slot0.mode = slot2
slot0.bgm = slot4
pg.DelegateInfo.New(slot0... |
-- /c
function shuffle(list)
for i = #list, 2, -1 do
local j = math.random(i);
list[i], list[j] = list[j], list[i];
end
end
local train = game.player.vehicle.train;
local schedule = { current = 1, records = {} };
function addstop(name)
table.insert(schedule.records, { station = name, wait_conditions = { { ty... |
--[[
This file is part of 'Masque', an add-on for World of Warcraft. For license information,
please see the included License.txt file or visit https://github.com/StormFX/Masque.
* File...: Core\Regions\Normal.lua
* Author.: StormFX
'Normal' Region
* See Skins\Default.lua for region defaults.
]]
local _, Co... |
return {'babylonisch','baba','babbel','babbelaar','babbelaarster','babbelaartje','babbelachtig','babbelarij','babbelbox','babbelen','babbelkous','babbelpraatje','babbeltje','babbelziek','babbelzieke','babbelzucht','babe','babi','baboe','baboesjka','babok','baby','babyartikel','babyboom','babyboomer','babyboomgeneratie'... |
local lz4 = require("lz4")
local compress = lz4.compress
local function writeChunk(stream, name, chunk)
if #name ~= 4 then
name = name..string.rep("\0", 4-#name)
end
stream.writeSetLengthString(name)
local compressedData = compress(chunk)
if compressedData.getLength() >= chunk.getLength(... |
require 'colors'
local Side = require 'actors/side'
local State = require 'states/state'
local Menu = require 'states/menu'
local Game = require 'states/game'
local Settings = require 'states/settingsMenu'
local Info = require 'states/info'
function love.load()
math.randomseed(os.time())
... |
-- this require isn't specifically required as it will be added
-- when executed inside of erlmon, but they are necessary to
-- test the file on the command line, by typing lua config.lua
require "lua/erlmon"
-- Global Erlmon Settings
Erlmon.http.login = 'admin'
Erlmon.http.password = 'admin'
Erlmon.smtp.host = "mai... |
function description()
return "Copy the URL"
end
function run()
local windex = focused_window_index()
local uri = webview_uri(windex, focused_webview_index(windex))
set_command_field_text(windex, uri)
focus_commandbar_in_window(windex)
return false
end
|
local parser = require 'parser'
local core = require 'core'
local buildVM = require 'vm'
rawset(_G, 'TEST', true)
function TEST(script)
return function (expect)
local start = script:find('<?', 1, true)
local finish = script:find('?>', 1, true)
local pos = (start + finish) // 2 + 1
... |
local expect, printed = require'rx-test'()
local rx, _ = require'rx'()
describe('Buffer Operator', function()
describe('buffer()', function()
it('is included in rx object', function()
assert.no.is_nil(_.buffer)
end)
it('handles multiple values', function()
local te... |
---
-- @author wesen
-- @copyright 2020 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Object = require "classic"
---
-- Parses the HTML reporter configuration from a luacov configuration table.
--
-- @type Configuration
--
local Configuration = Object:extend()
---
-- The luacov configuration tabl... |
--[[ Element: Additional Power Bar
Handles updating and visibility of a status bar displaying the player's
alternate/additional power, such as Mana for Balance druids.
Widget
AdditionalPower - A StatusBar to represent current caster mana.
Sub-Widgets
.bg - A Texture which functions as a background. It will inherit ... |
local addonName, global = ...;
local greetings = { "You look awesome today, by the way!", "Have a great day!", "I'm gonna have tacos on Friday :D", "Pineapple on pizza is actually pretty good." };
local greeting = greetings[math.random(#greetings)];
print(global.ADDON_NAME_PRETTY .. " v" .. global.VERSION .. " loaded... |
ITEM.name = "Saiga-12 Drum Magazine"
ITEM.description = "A drum magazine explicitly made for the Saiga-12."
ITEM.category = "Attachments"
ITEM.model = "models/Items/BoxSRounds.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.slot = 4
ITEM.weight = 2
ITEM.price = 5000
ITEM.isAttachment = true
ITEM.attSearch = { "kk_ins2_mag_sai... |
--Copyright 2016 Alex Iverson
local funcTools = require"fr.functionTools"
local createFunction = funcTools.createFunction
local tinsert = table.insert
local tremove = table.remove
local PropertyMetatable
local Property
local function fromEventStream(stream, initial)
local subscribers = {}
local preupdates = {}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.