content
stringlengths
5
1.05M
--苄基天种 local m=14090024 local cm=_G["c"..m] function cm.initial_effect(c) c:EnableReviveLimit() aux.AddFusionProcFunRep(c,cm.ffilter,2,true) --SpecialSummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(m,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e...
Screen = { Top = display.screenOriginY, Left = display.screenOriginX, Right = display.contentWidth - display.screenOriginX, Bottom = display.contentHeight - display.screenOriginY, CenterX = display.contentCenterX, CenterY = display.contentCenterY, Center = { display.contentCenterX, display.conte...
object_tangible_collection_reward_col_hoth_sharpshooter_buff = object_tangible_collection_reward_shared_col_hoth_sharpshooter_buff:new { } ObjectTemplates:addTemplate(object_tangible_collection_reward_col_hoth_sharpshooter_buff, "object/tangible/collection/reward/col_hoth_sharpshooter_buff.iff")
--[[ 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...
local KilledPlayers = {} local HuntedPlayers = {} IsPlayerHunted = false RegisterNetEvent("Z:killedPlayer") AddEventHandler("Z:killedPlayer", function(playerId) table.insert(KilledPlayers, playerId) if #KilledPlayers >= config.huntedAmount and not IsPlayerHunted then local cx,cy,cz = GetEntityCoords(PlayerPedId()...
project "sqlite3" kind "StaticLib" files { "sqlite3.c", "sqlite3.h" }
-- eLua platform interface - low level functions data_en = { -- Title title = "eLua platform interface - low level functions", -- Menu title menu_name = "Low-level", -- Overview overview = [[ This part of the platform interface deals contains a small set of "low level functions" that are used to "coup...
local class = require(game.ReplicatedStorage.BehaviorTree.middleclass) local Decorator = require(game.ReplicatedStorage.BehaviorTree.node_types.decorator) local AlwaysFailDecorator = class('AlwaysFailDecorator', Decorator) function AlwaysFailDecorator:success() self.control:fail() end function AlwaysFailD...
local skynet = require "skynet" local socket = require "socket" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local string = string local cjson = require "cjson" local utils = require "utils" local crc32 = require "crc32" local function response(id, code, msg, ...) utils.print...
lust = require 'tests/lust' for _, fn in pairs({'describe', 'it', 'test', 'expect', 'spy', 'before', 'after'}) do _G[fn] = lust[fn] end local files = { 'parse', 'rules' } for i, file in ipairs(files) do dofile('tests/' .. file .. '.lua') if next(files, i) then print() end end local red = string.char...
local filename=minetest.get_worldpath() .. "/teleport_tubes" local tp_tube_db = nil -- nil forces a read local tp_tube_db_version = 2.0 local function hash(pos) return string.format("%d", minetest.hash_node_position(pos)) end local function save_tube_db() local file, err = io.open(filename, "w") if file then tp...
object_tangible_item_skillmod_skillmod_empire_day_2009_standing_sign = object_tangible_item_skillmod_shared_skillmod_empire_day_2009_standing_sign:new { } ObjectTemplates:addTemplate(object_tangible_item_skillmod_skillmod_empire_day_2009_standing_sign, "object/tangible/item/skillmod/skillmod_empire_day_2009_standing_...
function MatureNetherwingDrake_OnEnterCombat(Unit,Event) Unit:CastSpell(38502) Unit:RegisterEvent("MatureNetherwingDrake_IntangiblePresence", 16000, 0) Unit:RegisterEvent("MatureNetherwingDrake_Netherbreath", 5000, 0) end function MatureNetherwingDrake_IntangiblePresence(Unit,Event) Unit:FullCastSpellOnTarget(3651...
push([[ ----------------------------------------------------------- --- /client/gui/button_class.lua --- --- Part of openFrame project --- --- Written by 50p. Additional changes by Orange. --- --- Lately edited in revision number 13 by Orange --- --- Li...
--[[ The MIT License (MIT) Copyright (c) 2015 lijinlong 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, me...
object_tangible_component_armor_armor_segment_enhancement_reek = object_tangible_component_armor_shared_armor_segment_enhancement_reek:new { } ObjectTemplates:addTemplate(object_tangible_component_armor_armor_segment_enhancement_reek, "object/tangible/component/armor/armor_segment_enhancement_reek.iff")
object_tangible_collection_col_ent_fan_01 = object_tangible_collection_shared_col_ent_fan_01:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_ent_fan_01, "object/tangible/collection/col_ent_fan_01.iff")
local skynet = require "skynet" local protobuf = require "protobuf" local crc32 = require "utils/crc32" local TAG = "pbc" local pbc = {} local files = { "./commonService/protobuf/S2CProto", "./commonService/protobuf/C2SProto", } --协议号映射表 local name2code = {} local code2name = {} --打印二进制string,用于调试 local function ...
E2Lib.RegisterExtension( "light", false ) -- By Divran -- Fixed by LiddulBOFH 7/13/2015 local max_convar = CreateConVar( "wire_expression2_lights_max", 20, { FCVAR_ARCHIVE, FCVAR_NOTIFY } ) local count = {} ----------------------------------------------------------------------- -- Construct & Destruct -- Create ini...
g_lance_vibrolance = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "lance_vibrolance", weight = 10000000} } } addLootGroupTemplate("g_lance_vibrolance", g_lance_vibrolance)
TOOL.Category = "C_GM13B_GUI" TOOL.Name = "#Tool.spawn_curse_detector.name" TOOL.Command = nil TOOL.ConfigName = "" TOOL.Information = { { name = "left" }, } if CLIENT then language.Add("Tool.spawn_curse_detector.name", "Curse Detector") language.Add("Tool.spawn_curse_detector.desc", "Spawns Curse Detector (gm13...
-- -- lua-Coat : <http://fperrad.github.com/lua-Coat/> -- local setmetatable = setmetatable local _G = _G local Coat = require 'Coat' local Meta = require 'Coat.Meta.Role' local basic_type = type local checktype = Coat.checktype local module = Coat.module _ENV = nil local _M = {} local function has (role, name, op...
/* * wlterm - pango fonts * * Copyright (c) 2011-2013 David Herrmann <dh.herrmann@gmail.com> * * 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...
nge_house_loot_deed_01 = { description = "", minimumLevel = 0, maximumLevel = 0, lootItems = { {itemTemplate = "yt1300_house_loot_deed", weight = 500000}, {itemTemplate = "vipbunker_house_loot_deed", weight = 1000000}, {itemTemplate = "yoda_house_loot_deed", weight = 500000}, {itemTemplate = "vehicle_house_...
local cv = require 'cv' require 'cv.photo' require 'cv.imgcodecs' require 'cv.highgui' require 'cv.imgproc' if not arg[1] or not arg[2] then print('Usage: `th demo/inpainting.lua path_to_image path_to_mask`') print('Now using `demo/data/lena.jpg demo/data/inpainting/lena_mask.jpg') end local image = cv.imread...
local skynet = require "skynet" local mc = require "multicast" local dc = require "datacenter" local mode = ... if mode == "sub" then skynet.start(function() skynet.dispatch("lua", function (_,_, cmd, channel) assert(cmd == "init") local c = mc.new { channel = channel , dispatch = function (channel, sourc...
do local triggers = {'^(about)$','^(setall)$', '^(adminlist)$', '^(adminlist) (%d+)$', '^(antispam) (%a+)$', '^(arabic) (%a+)$', '^(revoke)$', '^(links) (%a+)$', '^(photo) (%a+)$', '^(cmds) (.*)$', '^(gif) (%a+)$', '^(fwd) (%a+)$', '^(video) (%a+)$', '^(warnmod) (%a+)$', '^(warnmax) (%d+)$','^...
cc = cc or {} ---PhysicsJointGear object ---@class PhysicsJointGear : PhysicsJoint local PhysicsJointGear = {} cc.PhysicsJointGear = PhysicsJointGear -------------------------------- --- Set the ratio. ---@param ratchet float ---@return PhysicsJointGear function PhysicsJointGear:setRatio(ratchet) end ----------------...
local Clock = require("app.DowneyTang.Clock") local ClockBehavior = require("app.DowneyTang.ClockBehavior") local Chip = require("app.DowneyTang.Chip"); local ChipBehavior = require("app.DowneyTang.ChipBehavior") local function main() local scene = cc.Scene:create() --【时钟模块测试】 local newClock = Cl...
ENT.Type = "anim" ENT.Base = "base_anim"--"base_gmodentity" ENT.PrintName = "Billboard" ENT.Author = "Lexi" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = true ENT.AdminSpawnable = true ENT.RenderGroup = RENDERGROUP_TRANSLUCENT; ENT.Category = "Lexi's Dev Stuff" if SERVER then ...
local overrides = {} local function register_override(func_name) local f = io.open("includes/overrides/" .. func_name .. ".c", "r") local file_content = f:read("*all") f:close() overrides[func_name] = file_content end register_override("sv_init") register_override("sv_get_time_map") register_override("sv_audi...
local E, C, L = select(2, ...):unpack() local module = C.aura local TIER = 9 local INSTANCE = 1190 -- 纳斯利亚堡 local BOSS -- Credit: Luckyone, ElvUI BOSS = 2393 -- 啸翼 module:RegisterDebuff(TIER, INSTANCE, BOSS, 328897) -- 抽干 module:RegisterDebuff(TIER, INSTANCE, BOSS, 330713) -- 耳鸣之痛 BOSS = 2429 -- 猎手阿尔迪莫 module:Registe...
local fcgi = require("luafcgid") function main(env, req) -- gotta give Lua some props req:header("X-Powered-By", "Lua") req:puts("<h1>Environment</h1><pre>\n") for n, v in pairs(env) do req:puts(string.format("%s = %s\n", n, v)) end req:puts("</pre>\n") if env.REQUEST_METHOD == "GET" then s = {} -- stri...
local _; local _G = _G; local VUHDO_HIGLIGHT_CLUSTER = { }; local VUHDO_HIGLIGHT_NUM = 0; local VUHDO_ICON_CLUSTER = { }; local VUHDO_NUM_IN_UNIT_CLUSTER = { }; local VUHDO_ACTIVE_HOTS = { }; local sClusterConfig; local VUHDO_CLUSTER_UNIT = nil; -- local twipe = table.wipe; local pairs = pairs; local VUHDO_RAID = {...
PROJECT_NAME = path.getname(os.getcwd()) minko.project.library("minko-plugin-" .. PROJECT_NAME) files { "src/**.cpp", "include/**.hpp", "lib/freetype/**.h", "lib/freetype/**.c" } includedirs { "include", "lib/freetype/include/freetype2", "lib/freetype/include" ...
local json = require "cjson" local http_client = require "kong.tools.http_client" local spec_helper = require "spec.spec_helpers" local BASE_URL = spec_helper.API_URL.."/apis/%s/plugins/" describe("Rate Limiting API", function() setup(function() spec_helper.prepare_db() spec_helper.insert_fixtures { a...
--[[ The MIT License (MIT) Copyright (c) 2014 Socialz (+ soc-i-alz GitHub organization) 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 ...
local id = unpack(ARGV); local exploit = redis.call('GET', 'XSSIO:EXPLOIT:'..id); if exploit then return {false, exploit, 200}; end return {"nope", false, 404};
local core = require('vfiler/libs/core') local status = require('vfiler/status') local vim = require('vfiler/libs/vim') local Buffer = require('vfiler/buffer') local View = require('vfiler/view') local vfilers = {} local VFiler = {} VFiler.__index = VFiler local function new_buffer(bufname, context) local buffer ...
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "Starfall" ENT.Author = "Colonel Thirty Two" ENT.Contact = "initrd.gz@gmail.com" ENT.Purpose = "" ENT.Instructions = "" ENT.Spawnable = false ENT.Starfall = true ENT.States = {...
package.path = './data/lua/?.lua;' .. package.path require("io/iidxio/defs") require("iop/output-anim") require("iop/text-output-anim") require("screen/attract/defs") local ANIM_CYCLE_TIME_MS = 2000 local ANIM_ENTRY_CYCLE_TIME_MS = 700 local ANIM_TEXT_MOVE_TIME_MS = 200 local TEXT_16SEG_SIZE = 9 local __anim_light l...
-- Copyright (c) 2020-2021 shadmansaleh -- MIT license, see LICENSE for more details. local M = require('lualine.component'):extend() -- stylua: ignore local symbols = { unix = '', -- e712 dos = '', -- e70f mac = '', -- e711 } -- Initializer function M:init(options) -- Run super() M.super.init(self, opti...
C_QuestLine = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_QuestLine.GetAvailableQuestLines) ---@param uiMapID number ---@return QuestLineInfo[] questLines function C_QuestLine.GetAvailableQuestLines(uiMapID) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_QuestLine.GetQuestLineInfo) ---...
local IS_NIL = {["nil"]=true, ["null"]=true} function GetAppData(source, app, key, cb) local player = QBCore.Functions.GetPlayer(source) local pData = player and player.PlayerData local cid = pData and pData.citizenid if cid then local result = SingleSync("SELECT data FROM laptop_appdata WHERE...
DoReady.Mage.Frost.Raid.Legendarys = { [1] = 327508, [2] = 354294, [3] = 354333, [4] = 327364, [5] = 327284, [6] = 327492, [7] = 327365, [8] = 356877, } DoReady.Mage.Frost.Raid.Talents = { [2] = 205024, [3] = 212653, [4] = 116011, [5] = 278309, [6] = 205036, [7] = 56377, [8] = 155149, } DoReady.Mage.Fire.Raid.Legendary...
-- VARIABLES local module = { x = 10, y = 10, } -- FONCTIONS function module.load() end -- MODULE END return module
slot0 = class("VotePreRaceRankPage", import("....base.BaseSubView")) slot0.RANK_DISPLAY_COUNT = 15 slot0.getUIName = function (slot0) return "PreRaceRank" end slot0.OnInit = function (slot0) slot0.uiitemlist = UIItemList.New(slot0:findTF("content"), slot0:findTF("content/tpl")) slot0.prevBtn = slot0:findTF("prev")...
ITEM.name = "Mushroom Crate" ITEM.description = "A crate of tightly packed with mushrooms." ITEM.model = "models/devcon/mrp/props/weapon_shipment.mdl" ITEM.uniqueID = "mushroom_crate" ITEM.width = 2 ITEM.height = 1 ITEM.price = 30
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
SpiderClanCaveScreenPlay = ScreenPlay:new { numberOfActs = 1, screenplayName = "SpiderClanCaveScreenPlay", lootContainers = { 5165581, 5165583, 5165584, 5165585, 5165586, 5165587, 5165588, 5165591, 5165592, 5165593 }, lootLevel = 36, lootGroups = { { groups = { {group = "color_cry...
require("pgevents") function Definitions() DebugMessage("%s -- In Definitions", tostring(Script)) -- Now doing groundbase upgrades via base component construction plans Category = "AlwaysOff" --Category = "Upgrade_Groundbase | Build_Initial_Groundbase_Only" IgnoreTarget = true TaskForce = { { "BaseForce", ...
local g_GUI addEvent("main_onLoginReq", true) addEvent("main_onLoginStatus", true) local function onLoginClick(btn,state) if btn ~= "left" or state ~= "up" then return end local name = dxGetText(g_GUI.name) local pw = dxGetText(g_GUI.pw) dxSetText(g_GUI.info, "Please wait...") dxSetColor(g_GUI.info,...
local doors = { { pass = 'natsroom', createObject(1502,1285.5,-823.4,1088.93,0,0,90), createObject(1502,1285.44,-820.37,1088.93,0,0,270) } } for _, group in pairs(doors) do for _, door in ipairs(group) do setElementInterior(door, 5) setElementDimension(door, 1252) setElementData(door, "door...
local env = arg[2] local shared_fitness_simulate_count = tonumber(arg[3]) local species0_training_model = arg[4] local species0_population_size = tonumber(arg[5]) local species1_training_model = arg[6] local species1_population_size = tonumber(arg[7]) local generation = tonumber(arg[8]) local storage = string.format...
ITEM.name = "Modern Military Backpack (Ukrainian)" ITEM.description = "A backpack. Features compartments for easy storage of your valuables." ITEM.model = "models/kek1ch/sumka1.mdl" ITEM.price = 900 ITEM.width = 2 ITEM.height = 2 ITEM.weight = 1.150 ITEM.carryinc = 15 ITEM.outfitCategory = "backpack" ITEM.exRender =...
-- PDResults.lua -- Read results from PD exported as text into a table PDResults = {} -- Convert the line into a table with column labels -- The PD Text Export s tab delimited with quotes around each column entry -- The header and data rows are formatted the same local function ParseLine(line) local row = {} while...
-- Implementation of "follow.js" example from -- PhantomJS -- https://github.com/ariya/phantomjs/blob/master/examples/follow.js USERS = { 'PhantomJS', 'ariyahidayat', 'detronizator', 'KDABQt', 'lfranchi', 'jonleighton', '_jamesmgreene', 'Vitalliumm', } local base = 'http://mobile.twitter.com/' functio...
package("libsndfile") set_homepage("https://libsndfile.github.io/libsndfile/") set_description("A C library for reading and writing sound files containing sampled audio data.") set_license("LGPL-2.1") add_urls("https://github.com/libsndfile/libsndfile/archive/$(version).tar.gz", "https://...
local Prop = {} Prop.Name = "Nº745 Bairro Capitalista" Prop.Cat = "House" Prop.Price = 340 Prop.Doors = { Vector(-299, -6539, -145.71899414063), Vector(-624.82000732422, -6480, -144.71899414063), } GM.Property:Register( Prop )
M = {} local m = import("bedrock.data-access.adapters.custom") local colors = {} HlRange, ModeIcons = {}, {} function M.getmodeicon(data) local i = m.request_mode_group(data) return ModeIcons[i] end local function setbg() local u = function() local i = m.request_mode_group(m.get_mode()) ...
object_tangible_collection_col_force_shui_painting_04 = object_tangible_collection_shared_col_force_shui_painting_04:new { gameObjectType = 8211,} ObjectTemplates:addTemplate(object_tangible_collection_col_force_shui_painting_04, "object/tangible/collection/col_force_shui_painting_04.iff")
local player = game.Players.LocalPlayer local plrGui = player:WaitForChild("PlayerGui") local Values = player:WaitForChild("Values") local SoundService = game.SoundService game.Workspace.Finishing_Positions.FinishPart0.Touched:Connect(function(hit) if hit.Parent.Name == player.Name then SoundService.Maze0:...
#!/usr/bin/env -S llrocks run local handler = require 'tulip.handler' local M = {} if string.match(arg[0], '/minimal%.lua') then os.execute('./scripts/run_server.lua scripts.examples.minimal config') return end function M.config() return { log = { level = 'debug' }, server = { host = '127.0.0.1', port ...
local Class = {} function Class.make(class, parent) class = class or {} class.__index = class class.instance = function(instance) instance = instance or {} if parent then instance = parent.new(instance) end setmetatable(instance, class) instance:Initialize() return instance end class.new = cl...
---@meta ---@class sp.SkeletonRenderer :cc.Node@all parent class: Node,BlendProtocol local SkeletonRenderer={ } sp.SkeletonRenderer=SkeletonRenderer ---* ---@param scale float ---@return self function SkeletonRenderer:setTimeScale (scale) end ---* ---@return boolean function SkeletonRenderer:getDebugSlotsEnabled...
--[[ Create the player unit frame. --]] if(SanieUI.debug == true) then print("Loading player frame data") end local uf = SanieUI.unitframes local _, class = UnitClass("player") local height = uf.player.height local width = uf.player.width local scale = uf.player.scale local texture = uf.bartexture local xpos = uf.p...
local angleshit = 1; local anglevar = 1; function onBeatHit() if curBeat > 63 then if curBeat % 2 == 0 then angleshit = anglevar; else angleshit = -anglevar; end setProperty('camHUD.angle',angleshit*3) setProperty('camGame.angle',angleshit*3)...
-- Abbreviations (:h iabbrev) vim.cmd [[ iabbrev asessment assessment iabbrev asessments assessments iabbrev assesment assessment iabbrev assesments assessments iabbrev colleciton collection iabbrev comepetncies competencies iabbrev comepetncy competency iabbrev competncies competencies iabbrev compet...
if nil ~= require then require "fritomod/Timing"; require "fritomod/OOP-Class"; require "fritomod/ListenerList"; require "fritomod/StateDispatcher"; end; Monitor = OOP.Class("Monitor", StateDispatcher); function Monitor:Constructor(name) Monitor.super.Constructor(self, "Inactive", name or "Monitor"); end; funct...
------------------------------------------------------------------- -- This script is created by zdroid9770; please do not edit this -- -- script and claim it as your own, as of All rights are claimed -- -- by me. -- -- Copyright (c) zdroid9770 ...
local Command = require 'Command' local Target = {} Target.__index = Target function Target:new(o) o = o or {} setmetatable(o, self) self.__index = self return o end function Target.from_args(name, stage, config) return Target:new { name = name, stage = stage, config = ...
package.path = "../?.lua;" .. package.path local RequestResponseSerde = require("impl.request_response_serde") local json = require("utils.json") local JsonRequestResponseSerde = {} setmetatable(JsonRequestResponseSerde, {__index = RequestResponseSerde}) local result_encoders = {} -- deserializes a JSON request st...
require("../../Environments/Grid_World/grid_world_defs") GridWorldTabularAgent = {}; function GridWorldTabularAgent:new() -- Initialise the instance local result = {} -- Intialise the Q-Value table result.qValues = {} result.qValues.numRows = NUM_ROWS result.qValues.numCols = NUM_COLS f...
version https://git-lfs.github.com/spec/v1 oid sha256:10f3d089cd6bec6c619e59d2b4351a6e6cf9afb5152f286b1823f1948bb7aaa1 size 1224
--proc/ole/dragdrop: drag & drop OLE API --Written by Cosmin Apreutesei. Public Domain. setfenv(1, require'winapi') require'winapi.ole' require'winapi.idataobject' DRAGDROP_S_FIRST = 0x00040100 DRAGDROP_S_LAST = 0x0004010F DRAGDROP_S_DROP = 0x00040100 DRAGDROP_S_CANCEL ...
local _, addon = ...; -- https://onlinetexttools.com/split-text?input=&split-by-char=false&char=%20&split-by-regex=false&regex=%2F%5Cs%2B%2F&split-by-length=true&length=110&separator=%2C%5Cn&symbol-before-chunk=%22&symbol-after-chunk=%22 table.insert(addon.officialCourses, table.concat({ "!WOP:2!0xF08B8AC2!fs13lUv...
local M = {} local util = require 'core.util' local log = require 'core.log' function M.alloc() local self = {} local cs = {} local next_id = 0 function self.plan(func) cs[next_id] = coroutine.create(func) next_id = next_id + 1 end function self.run() while ...
------------------------------------------------------------------------------------- -- Trace of Huge Piranha Plant NPC of SMBX Engine ------------------------------------------------------------------------------------- -- AI1:0 AI2:0 AI3:0 AI4:0 AI5:0 --INITIAL -- AI1:71 AI2:4 AI3:0 AI4:0 AI5:0 --HIDDEN -- AI1:74 A...
local bit32 = require 'bit32' local vstruct = require 'vstruct' local encodeValues_BOOLEAN = function(values) error('not implemented yet', values) end local decodeValues_BOOLEAN = function(cursor, count) local values = {} for i=0,count-1 do local b = string.byte(cursor.buffer, cursor.offset+1 + math.floor(i...
-- CQ: EyePos seems to be somewhat hackish; used in several places but not owned anywhere... predates Mixins function Whip:GetEyePos() return self:GetOrigin() + self:GetCoords().yAxis * 1.8 -- Vector(0, 1.8, 0) end Script.Load("lua/DigestMixin.lua") class 'GorgeWhip' (Whip) GorgeWhip.kMapName = "gorgewhip" Gorge...
vim.g.vimwiki_list = {{ path = '~/vimwiki', syntax = 'markdown', ext = '.md' }} vim.g.vimwiki_global_ext = 0
-------------------------------- -- @module LayerGradient -- @extend LayerColor -------------------------------- -- @function [parent=#LayerGradient] getStartColor -- @param self -- @return color3B_table#color3B_table ret (return value: color3B_table) -------------------------------- -- @function [parent=#L...
object_static_worldbuilding_sign_thm_sign_medcenter = object_static_worldbuilding_sign_shared_thm_sign_medcenter:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_sign_thm_sign_medcenter, "object/static/worldbuilding/sign/thm_sign_medcenter.iff")
return{ name = "leaf", }
local UserInputService = game:GetService("UserInputService") local localPlayer = game:GetService("Players").LocalPlayer local humanoid local isRunning = false local function setIsRunning(value) isRunning = value if humanoid then humanoid.WalkSpeed = isRunning and 32 or 16 end end local runGui = localPlayer:WaitFo...
describe("encoding", function() setup(function() TOML = require "toml" end) it("array", function() local obj = TOML.encode{ a = { "foo","bar" } } local sol = "a = [\nfoo,\nbar,\n]" assert.same(sol, obj) end) end)
local tinyECS = require("lib/tiny-ecs") local globals = require("code/globals") local gameWorld = require("code/worlds/game") io.stdout:setvbuf('no') function love.load() gameWorld.create() end function love.update(dt) local fps = "FPS:" .. love.timer.getFPS() local systemCount = ", syste...
--[[ MIT License Copyright (c) 2019-2021 Love2D Community <love2d.org> 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, ...
personal_log = {} local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) local ccompass_modpath = minetest.get_modpath("ccompass") local compassgps_modpath = minetest.get_modpath("compassgps") local default_modpath = minetest.get_modpath("default") local unified_inventory_modpath...
--[[ desc: a basic interface of beaten business. author: Musoucrow since: 2018-5-28 ]]-- ---@class Actor.State.Duelist.IBeaten local _IBeaten = require("core.class")() function _IBeaten:Update() if (self._entity.identity.isPaused ~= self._isBeaten) then self._isBeaten = not self._isBeaten self:...
------------------------------------- -- generate new key & move data in table ------------------------------------- local function bot_rekey(bot_key,meta) local new_key = vbots.get_key() vbots.bot_info[new_key] = vbots.bot_info[bot_key] vbots.bot_info[bot_key] = nil meta:set_string("key", new_key) ...
-- Import frlib and extras. package.cpath = "3p/build/lib/?.so;" .. package.cpath package.path = "frlib/?.lua;" .. package.path local fr = require "flexrender" local fre = require "extras" -- Handy aliases. local vec3 = fr.vec3 local mat4 = fr.mat4 local radians = fr.radians local normalize = fr.normalize local scale ...
--- -- Implementation of ND Arrays in Lua. -- @classmod Array -- A generic implementation of ND arrays in pure Lua. -- This module tries to be as similar to the Python numpy package -- as possible. -- -- Due to everything being in Lua there are not _views_ of arrays which -- means that many functions creates unnecessar...
-- This file is just a namespace declaration for WIM. -- try not to blind yourself with all the code. WIM = {};
object_tangible_painting_painting_wod_scene_04 = object_tangible_painting_shared_painting_wod_scene_04:new { } ObjectTemplates:addTemplate(object_tangible_painting_painting_wod_scene_04, "object/tangible/painting/painting_wod_scene_04.iff")
--メタファイズ・ディメンション --Metaphys Dimension --Scripted by Eerie Code function c101002075.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(101002075,0)) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --special summon local e2=Effect.CreateE...
-- Global variables sda=1 scl=2 -- UART setup --uart.setup(0,19200,8,0,1,0) tmr.delay(1000) --I2C setup i2c_speed=i2c.setup(0,sda,scl,i2c.SLOW) tmr.delay(1000) print("I2C setup, speed is " .. i2c_speed) print("Heap @ startup: " .. node.heap()) --GPIO -- for skipping deep-sleep mode gpio.mode(6, gpio.INPUT, gpio.PULL...
invisibleWeaponOldUpdate = update function update(dt, fireMode, shiftHeld) invisibleWeaponOldUpdate(dt, fireMode, shiftHeld) activeItem.setHoldingItem(false) end
local nmap = U.keymap.nmap local xmap = U.keymap.xmap local omap = U.keymap.omap vim.g['sneak#s_next'] = 0 vim.g['sneak#use_ic_scs'] = 1 nmap('s', '<Plug>Sneak_s', {}) nmap('S', '<Plug>Sneak_S', {}) -- visual-mode xmap('s', '<Plug>Sneak_s', {}) xmap('S', '<Plug>Sneak_S', {}) -- operator-pending-mode omap('s', '<Plug...
--- === cp.commands.englishKeyCodes === --- --- Returns a table of all the English Key Codes. return { ["'"] = 39, [","] = 43, ["-"] = 27, ["."] = 47, ["/"] = 44, ["0"] = 29, ["1"] = 18, ["2"] = 19, ["3"] = 20, ["4"] = 21, ["5"] = 23, ["6"] = 22, ["7"] = 26, ["8...