content
stringlengths
5
1.05M
local keymap = {} function keymap.map(mode, lhs, rhs, opts) local options = {noremap = true} if opts then options = vim.tbl_extend("force", options, opts) end keymap.nvim_set_keymap(mode, lhs, rhs, options) end function keymap.map_buf(bufnr, mode, lhs, rhs, opts) local options = {noremap = true} if op...
--Grim 赤ずきん function c21210002.initial_effect(c) --special summon local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetRange(LOCATION_HAND) e1:SetCountLimit(1,21210002) e1:SetCondition(c21210002.spcon) e1:SetOperation(c21210...
---@meta ---@class cc.EaseSineInOut :cc.ActionEase local EaseSineInOut={ } cc.EaseSineInOut=EaseSineInOut ---* ---@param action cc.ActionInterval ---@return self function EaseSineInOut:create (action) end ---* ---@return self function EaseSineInOut:clone () end ---* ---@param time float ---@return self function...
-- Copyright 2013 Jon S Akhtar (Sylvanaar) -- -- 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 appl...
--[[ ******************************************************************************** Project owner: RageQuit community Project name: GTW-RPG Developers: Mr_Moose Source code: https://github.com/404rq/GTW-RPG/ Bugtracker: https://discuss.404rq.com/t/issues Suggestions: https://discuss.404rq.com/t/deve...
------------------------------------------------------------------------ --[[ PGLMFactory ]]-- -- An example experiment builder for training BillionWords using a -- Language Model of arbitrary dept ------------------------------------------------------------------------ local PGLMFactory, parent = torch.class("dp.PGLMF...
local Types = require(script.Parent.Parent.Types) type Array<T> = Types.Array<T> local function filterArray(arr: Array<any>, predicate: (any, number, Array<any>) -> boolean): Array<any> local new = table.create(#arr) for index, value in arr do if predicate(value, index, arr) then table.insert(new, value) en...
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua') ScenarioUtils.CreateResources = function() end local function localImport(fileName) return import('/maps/beach_survival_ee.v0008/src/' .. fileName) end local function entropyLibImport(fileName) return import('/maps/beach_survival_ee.v0008/vendor/Entropy...
------------------------------------------------------ -- get.lua -- -- Basic GET proecessing. ------------------------------------------------------ -- Load in a query string. return function (qs) -- Set aside memory. local tt = {} local xx -- Evaluate the strings and return as a purty table. if qs and string.l...
util.AddNetworkString("OCRP_AddBuddy") util.AddNetworkString("OCRP_RemoveBuddy") util.AddNetworkString("OCRP_ChiefMenu") util.AddNetworkString("OCRP_Bank") util.AddNetworkString("OCRP_Gas_Pump") util.AddNetworkString("OCRP_CraftingMenu") util.AddNetworkString("OCRP_Loot") util.AddNetworkString("OCRP_LootItem") util.Add...
local handle = {} local handlers function handle.message( msg, msgType, console ) if handlers[msgType] then local send = handlers[msgType]( msg, console ) -- get the return value from the handler to know what to send if send then return send end elseif msgType == "unknown" then -- if the message...
require("lualine").setup { options = { theme = "nightfox", globalstatus = true, }, sections = { lualine_c = { { "filename", file_status = true, path = 1 } }, lualine_x = {'encoding', 'filetype'}, }, }
local Category = "SGM Cars" local V = { // Required information Name = "Golf Cart", Class = "prop_vehicle_jeep", Category = Category, // Optional information Author = "SentryGunMan, Turn 10", Information = "vroom vroom", Model = "models/sentry/golfcart.mdl", KeyValues = { ...
package("qt5gui") set_base("qt5lib") set_kind("library") on_load(function (package) package:add("deps", "qt5core", {debug = package:is_debug(), version = package:version_str()}) package:data_set("libname", "Gui") if package:is_plat("android") then package:data_set("sysl...
AddCSLuaFile() local VehicleName = "Unmarked Jeep Cherokee" local EMV = {} EMV.Siren = 2 EMV.Skin = 0 EMV.Color = Color(255,255,255) EMV.BodyGroups = { { 0, 0 }, -- Body { 1, 0 }, -- cockpit { 2, 0 }, -- wheel { 3, 0 }, -- wing } EMV.Props = { [1] = { Model = "models/schmal/laptop_stand.mdl", Scale = .65,...
-------------------------------- -- @module Technique -- @extend RenderState -- @parent_module cc -------------------------------- -- Returns the number of Passes in the Technique -- @function [parent=#Technique] getPassCount -- @param self -- @return int#int ret (return value: int) ----------------------...
Asset = "http://www.roblox.com/Thumbs/Asset.ashx?x=420&y=230&assetId=" me = game.Players.xSoulStealerx char = me.Character torso = char.Torso local brick = Instance.new("Part",workspace) brick.Anchored = true brick.formFactor = "Custom" brick.Size = Vector3.new(30, 20, 1) brick.CFrame = torso.CFrame * CFrame.new(0, ...
classer = require "classer" bump = require "lib.bump" maze = require "maze" db = require "db" enemy = require "enemy" pill = require "pill" bar = require "bar" local universe = {} universe.Universe = classer.ncls() function universe.Universe:_init(gridSize) self.world = bump.newWorld(gridSize) self.coins = {} sel...
local V = { -- Required information Name = "Prison Bus", Model = "models/mdj/badman/pbus.mdl", Class = "prop_vehicle_jeep", Category = "Ecott & MattDavidJ Vehicles", -- Optional information Author = "MattDavidJ", Information = "uwu", KeyValues = { vehiclescript = "scripts/vehicles/mdj/pbus.txt" } } list....
-- // Services local Workspace = game:GetService("Workspace") -- // Vars local CurrentCamera = Workspace.CurrentCamera -- // Metatable Vars local mt = getrawmetatable(game) local backupindex = mt.__index setreadonly(mt, false) -- // Load Silent Aim loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Stef...
local callback, set_timer_timeout, zip = callback, set_timer_timeout, zip local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1") local Promise = dofile(base.."/promise.lua") local config = dofile(base.."/config.lua") local util = dofile(base.."/util.lua")(Promise) local serpent = dofile(base.."/ser...
--- base64_spec.lua -- -- Copyright (c) 2013 Snowplow Analytics Ltd. All rights reserved. -- -- This program is licensed to you under the Apache License Version 2.0, -- and you may not use this file except in compliance with the Apache License Version 2.0. -- You may obtain a copy of the Apache License Version 2.0 at h...
local t = 0 function update(dt) t = t + dt if t > 3600 then this.gui_text.text = "way too much" else this.gui_text.text = string.format("%d:%02d", math.floor(t / 60), math.floor(t) % 60) end end
nvim.call_once = function(f) local called = false local ret = nil return function() if called then if ret then return unpack(ret) else return nil end end called = true local temp = { f() } if #temp == 0 or #temp[1] == nil then return end ret = temp return unpack(ret) end end ...
-- Utility functions base config script -- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS -- YOU KNOW WHAT YOU'RE DOING, but reading this file over -- is a good way to get to know how DSB works. -- These functions are not called by the engine directly, -- but they are used by the default system functions a...
local M = {} local config = require("core.utils").user_settings() function M.config() local status_ok, treesitter = pcall(require, "nvim-treesitter.configs") if not status_ok then return end local default_opts = { ensure_installed = {}, sync_install = false, ignore_install = {}, highlight...
-- Required Lua/Lapis includes local lapis = require("lapis") local config = require("lapis.config").get() -- Import bit32 library globally for use in etlua templates. bit32 = require("bit32") -- Utilities local futil = require("modules/file_util") -- 3rd-party local json = require("modules/3p/json/json") -- Initial A...
local Mob = require('mob') local Cam = require('cam') local Maph = require('maph') local Pack = require('pack') local Hud = require('gui.hud') local Sword = require('mob.player.sword') local Spear = require('mob.player.spear') local HandItem = require('mob.player.hand_item') local Item = require('mob.item') local Bench...
return {'flyer','flyeren','flynn','flyers','flynns'}
local function setup() xplr.config.modes.custom.visit_path = { name = "visit path", key_bindings = { on_key = { enter = { messages = { { BashExecSilently = [===[ dir="$...
text = nil local TEXT = '' local CHAR = '' local KEY, IDX = nil, -1 local MAP = { ['1'] = { '1', '.', ',' } , ['2'] = { 'a', 'b', 'c', '2' } , ['3'] = { 'd', 'e', 'f', '3' } , ['4'] = { 'g', 'h', 'i', '4' } , ['5'] = { 'j', 'k', 'l', '5' } , ['6'] = { 'm', 'n', 'o', '6' } , ['7'] = { 'p', 'q', 'r', 's', '7' }...
local home = {} function home.setup_scr_home(ui) --Write codes home ui.home = lvgl.obj_create(nil, nil) --Write codes home_cont1 ui.home_cont1 = lvgl.cont_create(ui.home, nil) --Write style lvgl.CONT_PART_MAIN for home_cont1 -- local style_home_cont1_main -- lvgl.style_init(style_home_cont1_main) local styl...
local src_dir, build_dir = ... package.path = src_dir .. "?.lua;" .. package.path package.cpath = build_dir .. "?.so;" .. package.cpath local tap = require("tap") local ev = require("ev") local help = require("help") local dump = require("dumper").dump local ok = tap.ok local noleaks = help.collect_and_ass...
local recv_protos = { [1001] = "RoleInfo" } return recv_protos
-- TODO: Make my own timer class that returns count and limit as well... dofile("$SURVIVAL_DATA/Scripts/game/util/Timer.lua") dofile("$SURVIVAL_DATA/Scripts/game/survival_items.lua") dofile("$SURVIVAL_DATA/Scripts/game/survival_survivalobjects.lua") StreamReader = class( nil ) local readClock = os.clock M...
-- Material design button. -- RoactMaterial does not implement floating action buttons, so they are not shown here. local UserInputService = game:GetService("UserInputService") -- Import configuration; gives access to Roact library. local Configuration = require(script.Parent.Parent.Configuration) local Roact = Confi...
project "GLFW" kind "StaticLib" language "C" targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}") objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}") files { "module/include/GLFW/glfw3.h", "module/include/GLFW/glfw3native.h", "module/src/glfw...
function tprint (tbl, indent) if not indent then indent = 0 end for k, v in pairs(tbl) do formatting = string.rep(" ", indent) .. k .. ": " if type(v) == "table" then print(formatting) tprint(v, indent+1) elseif type(v) == 'boolean' then print(formatting .. tostring(v)) else...
-- the unlocked wardrobe is kind of buggy and messy local CM = ClickMorph if not CM.isRetail then return end local db local cache = {} local f = CreateFrame("Frame") local VerifyFrame = CreateFrame("Frame") local ItemsCollection local active, unlocked local startupTimer, startupUnlockTime local IsWardRobeSortLoaded ...
local tree = require'nvim-tree' local tree_cb = require'nvim-tree.config'.nvim_tree_callback -- following options are the default tree.setup { -- disables netrw completely disable_netrw = true, -- hijack netrw window on startup hijack_netrw = true, -- open the tree when running this setup functi...
-- akinsho/nvim-toggleterm.lua -- Please ensure you have set hidden in your neovim config, otherwise the terminals will be discarded when closed. vim.o.hidden = true require('toggleterm').setup{ -- size can be a number or function which is passed the current terminal size = function(term) if term.direction ==...
package.loaded['neon'] = nil require 'neon'
--[[------------------------------------------------------------------ INTERSECTING VALUES Intersect different values to get a fade effect ]]-------------------------------------------------------------------- if CLIENT then --[[ Given a value, determines how much of each one is shown @param {number} a @p...
--- Headers policy -- This policy allows to include custom headers that will be sent to the -- upstream as well as modify or delete the ones included in the original -- request. -- Similarly, this policy also allows to add, modify, and delete the headers -- included in the response. local ipairs = ipairs local type = ...
require "core.strict" require "core.regex" local common = require "core.common" local config = require "core.config" local style = require "core.style" local command local keymap local RootView local StatusView local TitleView local CommandView local NagView local DocView local Doc local core = {} local function load...
-- main.lua --
function dump(...) local objects = vim.tbl_map(vim.inspect, { ... }) print(unpack(objects)) end local function map(type, input, output) vim.api.nvim_set_keymap(type, input, output, { silent = true }) end local function noremap(type, input, output) vim.api.nvim_set_keymap(type, input, output, { noremap = true, sil...
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
ManagedSingleton = inherit(ManagedClass) ManagedSingleton._getSingleton = function(class) return class._instances[1] end function ManagedSingleton:new(...) self.new = function() end return ManagedClass.new(self, ...) end function ManagedSingleton:getSingleton(...) local instance = self:getClass():_getSin...
s = Procedural.TriangleShape():setLength(3):realizeShape() tests:addShape(s)
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_belt.lua") includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_belt_gcw.lua") includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bicep_l.lua") includeFile("tangible/wearables/armor/rebel_sp...
---@class GridEntitySpikes:GridEntity @ local GridEntitySpikes = {} -------------------- -- Variables -------------------- ---@type number @(member) (int) GridEntitySpikes.Timeout = nil
local vec3 = require("vec3") local utils = require("utils") local locTracker = require("locationtracker") local VectorChunk = {} --VectorChunk.__index = VectorChunk setmetatable(VectorChunk, {__call = function(cls, packValues, allowFloats, offset) local self = {} self.hashData = {} self.arrayData = {} ...
local comment_col_max = 72 local comment_delim_col_start = 73 local comment_start = "/*" local comment_end = "*/" local note_comment = "* NOTE *" local note_comment_indent = #comment_start + 1 + #note_comment local M = {} -- Checks if the current line is a ss1 style comment. local function is_comment(line) -- Remov...
local Routines = {} function AddRoutineForNPC(npcid, hour, minute) table.insert(Routines,{id = npcid, h = hour, m = minute}) end function RemoveNPCRoutine(npcid, hour, minute) for k, v in ipairs(Routines) do if v.id == npcid and v.h == hour and v.m == minute then table.remove(Routine, k) end end end function ...
require("std/orklib") inspect = require("std/inspect") local s = ork.getscene(); printf("Hello world, from %s yo.",_VERSION) --printf( "Lua Initializing scene NumEnt<%d>",s:NumEntities() ) ------------------------------------- spawned = 0 at_start = 0 function OnSceneCompose() printf("OnSceneCompose()") if at_sta...
local utils = require('restructure.utils') local vstruct = require('vstruct') -- FIXME avoid exposing buffer internals. local Reserved = {} Reserved.__index = Reserved function Reserved.new(type, count) local b = setmetatable({}, Reserved) b.type = type b.count = count or 1 return b end function Reserved:dec...
local api = vim.api local M = {} local repeat_fn function M.repeat_action() repeat_fn() end function M.mk_repeatable(fn) return function(...) local args = { ... } local nargs = select('#', ...) repeat_fn = function() fn(unpack(args, 1, nargs)) local vimfn = vim.fn ...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') util.AddNetworkString("UrbanWeaponSpawnsOpenMenu") function ENT:Initialize() self:SetNWInt("id", 0) self:SetNWFloat("respawnTime", 10) self:SetNWString("weapon","weapon_medkit") self:SetModel( "models/weapons/w_medkit.mdl" ) self:Se...
local ActionCreator = require(script.Parent.Parent.ActionCreator) return ActionCreator("SetHasPermissionToVoiceChat", function(hasPermissionToVoiceChat) return { hasPermissionToVoiceChat = hasPermissionToVoiceChat, } end)
-- Copyright (c) Jérémie N'gadi -- -- All rights reserved. -- -- Even if 'All rights reserved' is very clear : -- -- You shall not use any piece of this software in a commercial product / service -- You shall not resell this software -- You shall not provide any facility to install this particular software in a c...
local loader = require 'lib.love-loader' loading = {} function loading:enter() self.loading = false self.started = false self.loadingDone = false end function loading:draw() local width, height = love.graphics:getWidth(),love.graphics:getHeight() love.graphics.printf("Loading...",0,height/2,width,"center") ...
vim.g.gitgutter_sign_added = "" vim.g.gitgutter_sign_removed = "" vim.g.gitgutter_sign_modified = "" vim.g.gitgutter_map_keys = 0
function arithmeticExpression(a, b, c) divInt = false plus = a + b sub = a - b mult = a * b if a % b == 0 then divInt = true else divInt = false end if plus == c or sub == c or mult == c then return true elseif divInt == true then if a ...
local setmetatable = setmetatable local io = io local button = require( "awful.button" ) local beautiful = require( "beautiful" ) local util = require( "awful.util" ) local config = require( "forgotten" ) local tooltip2 = require( "radical.tooltip" ) local wibox = require( "wibox...
local _message_handler = { -- common message ["ENUM_SHOW_START_UI"] = { file = "ui/ui_demo", func = "ShowDemoUI(...)"}, } local function ReceiveUIMessage(message,... ) local handleEvents = _message_handler[message] if handleEvents then if handleEvents.file~=nil then requi...
-- Nothing --
ITEM.name = "The Bible" ITEM.desc = "" ITEM.model = "models/z-o-m-b-i-e/metro_2033/books/m33_book_15.mdl" ITEM.contents = [[ <h1>The Holy Bible</h1> <p> <ol> <li>In the beginning God created the heaven and the earth.</li> <li>And the earth was without form, and void; and darkness was upon the face of the deep. And the...
local example = {} example.title = "Panel" example.category = "Object Demonstrations" function example.func(loveframes, centerarea) local frame = loveframes.create("frame") frame:setName("Panel") frame:setSize(210, 85) frame:centerWithinArea(unpack(centerarea)) local panel = loveframes.create("panel", frame)...
local ThemeColor = LoadModule('Theme.Colors.lua') return Def.ActorFrame { InitCommand = function(self) self :Center() :sleep(4) end, Def.Quad { InitCommand = function(self) self :SetSize(SCREEN_WIDTH, SCREEN_HEIGHT) :diffuse(color('#000000')) :diffusealpha(0) end, StartTransitioningComm...
local ConfigCompiler do local _class_0 local _base_0 = { filters = { pg = function(val) local user, password, host, db local _exp_0 = type(val) if "table" == _exp_0 then db = assert(val.database, "missing database name") user, password, host, db = val.user or "p...
local WorldEntity = require "njli.ui.worldentity" local YappyBirdWorldEntity = {} YappyBirdWorldEntity.__index = YappyBirdWorldEntity local json = require('json') setmetatable(YappyBirdWorldEntity, { __index = WorldEntity, __call = function (cls, ...) local self = setmetatable({}, cls) WorldEntity.create(self, ....
DefineClass.MissionGoal = { __parents = { "MsgObj" }, colony_approval_sol = false, popup_intro = false, popup_early = "Evaluation_Early_Reminder", popup_late = "Evaluation_Late_Reminder", popup_final_fail = false, popup_final_good = false, popup_final_great = false, objective = "", --T{"<target> @ <timeout>...
function ispali(str) i, j = 1, #str while i < j do if string.byte(str, i) ~= string.byte(str, j) then return false end i, j = i + 1, j - 1 end return true end print(ispali("step on no pets")) print(ispali("banana"))
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). --]] local ITEM = Clockwork.item:New("clothes_base"); ITEM.name = "ItemMedicUniform"; ITEM.uniqueID = "medic_uniform"; ITEM.group = "group03m"; ITEM.weight = 3; ITEM.access = "m"; ITEM.business = tru...
dofile("/data/local/tmp/c/engine/BasicEngine.lua") -- Businesses = "遍历测试" Edition = "1.0.0"
TestMisc = {} function TestMisc:testRemove() local a = BasicClassA:New() a:Remove() lu.assertEquals( BasicClassA:GetInstances()[a], nil ) collectgarbage( "collect" ) end function TestMisc:testRemoveIndex() local a = BasicClassA:New() a:Remove() lu.assertEquals( BasicClassA:GetInstances()[a], nil ) local b, e...
Keys = { ["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57, ["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] =...
-- JWT verification module -- Adapted version of x25/luajwt for Kong. It provides various improvements and -- an OOP architecture allowing the JWT to be parsed and verified separately, -- avoiding multiple parsings. -- -- @see https://github.com/x25/luajwt local BasePlugin = require "kong.plugins.base_plugin" local jw...
local tp = require "tprint" local list = { {item = "socks", price=10, qty=5, discount=0, note="nice and warm"}, {item = "hat", price=44, qty=33, discount=0.2, note="old fashioned"}, {item = "hat", price=60, qty=20, discount=0.1, note="stylish"}, {item = "gloves", price=55, qty=25, discount=...
-- Setting up the general settings vim.o.encoding = "utf8" vim.o.mouse = "a" vim.o.clipboard = "unnamedplus" vim.o.sw = 4 vim.o.expandtab = true vim.o.smartindent = true vim.o.number = true vim.o.rnu = true vim.o.nuw = 1 vim.o.wrap = false vim.o.swapfile = false vim.o.backup = false vim.o.undodir = ConfigPath .. "/...
ITEM.name = "King Arms MR" ITEM.description = "Taiwanese reflex sight. T type sight." ITEM.category = "Attachments" ITEM.width = 1 ITEM.height = 1 ITEM.attachName = "md_reflex" ITEM.model = "models/cw2/attachments/microt1.mdl" ITEM.upgradeIcon = Material("materials/vgui/ui/stalker/weaponupgrades/sights.png") ITEM.attac...
player_state_addr = 0x000E; player_state_dying = 6; player_float_addr = 0x001D; player_float_flagpole = 3; player_page_addr = 0x006D; player_horizpos_addr = 0x0086; minimum_frames = 197; emu.speedmode("maximum"); while true do if (emu.framecount() > minimum_frames) then --dead? local dead = memory.readbyte(player...
corellian_butterfly_defender = Creature:new { objectName = "@mob/creature_names:corellian_butterfly_defender", socialGroup = "butterfly", faction = "", level = 18, chanceHit = 0.32, damageMin = 210, damageMax = 220, baseXp = 1257, baseHAM = 2000, baseHAMmax = 2400, armor = 0, resists = {5,115,-1,-1,-1,-1,-1...
---@diagnostic disable-next-line: unused-local return function(client, bufnr) -- Enable completion triggered by <c-x><c-o> vim.opt.omnifunc = 'v:lua.vim.lsp.omnifunc' -- Enable lsp_signature require('lsp_signature').on_attach() if client.name == 'tsserver' or 'jsonls' then client.resolved_capabilities.document...
-- local int = int local abs = abs local min = min local max = max local sin = sin local cos = cos local task = task local Color = Color local New = New local IsValid = IsValid local PlaySound = PlaySound local SetImageState = SetImageState local Render = Render local Del = Del local ObjList = ObjList local KeyIsDown ...
require "core/game/camera" GameBase = GameBase or { world = nil, -- Default world camera_unit = nil, -- Default camera game = nil, -- User Game game_level = nil, _test_package = nil, } function GameBase.init() -- Create world GameBase.world = Device.create_world() -- Create default camera Gam...
-- Very very simple XML library, misses a lot of features local xml = {} --- Tags are tables as follow: --- name: Name --- attr: Attributes --- parent: Parent --- childrens: Childrens --- What this function return is a root tag (just a tag with no name, no attribute and no parent, that have all tags (not neste...
FACTION.name = "SS-Reichssicherheitshauptamt" FACTION.desc = "Reich Security Main Office" FACTION.color = Color(255, 1, 1) FACTION.isDefault = false FACTION.pay = 125 FACTION.payTime = 900 FACTION.isGloballyRecognized = true FACTION_RHSA = FACTION.index
function GenerateResource(pPlayer, pCity) --Creates a Gold resource on a land plot that doesn't have a resource --Preference is for hills for i = 1, pCity:GetNumCityPlots() - 1, 1 do local fPlot = pCity:GetCityIndexPlot(i) if not fPlot:IsMountain() then if fPlot:IsHills() then if fPlot:GetResourceType(-1)...
casting_rooted_modifier = class( {} ) function casting_rooted_modifier:DeclareFunctions() local funcs = { } return funcs end function casting_rooted_modifier:CheckState() local state = { [MODIFIER_STATE_SILENCED] = true, [MODIFIER_STATE_DISARMED] = true, [MODIFIER_STATE_ROOTED] = true } return state end ...
-- siamese network -- -- David-Alexandre Beaupre -- require 'nn' require 'cunn' function create_model(max_dips, nChannel) -- whole network local model = nn.Sequential() -- base = combination of left and right network local base = nn.ParallelTable() local left = nn.Sequential() -- building block (convolution, ...
function readfile(name) local f = io.open(name, "rb") if not f then return nil end local s = f:read("*a") f:close() return s end function similar(s1, s2) return string.lower(string.gsub(s1 or "", "%s", "")) == string.lower(string.gsub(s2 or "", "%s", "")) end function fail(msg) ms...
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937" client_script "discord.lua"
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_marci_reb...
require"socket" require"event" module(...,package.seeall) local ctx = { --state = "idle", sockid = nil, } function poll() if ctx.sockid then while true do local s = ctx.sockid:receive() if s and string.len(s) > 2 then local len = string.byte(s,1)*256 + string.byte(s,2) if len == ...
Config = {} Config.keys = {} Config.SpawnTrain = {} Config.Locale = 'fr' Config.keys.EnterTrain = 'DELETE' Config.keys.control = { traction = 'TOP', brakes = 'DOWN', EnginePower = 'TAB' } Config.keys.gps = 'I' Config.SpawnTrain.menu = { x = 102.2487, y = -...
-- 2677 Whispymound Drive -- High end house 7: 120.5 549.952 184.097 exports('GetGTAOHouseHi7Object', function() return GTAOHouseHi7 end) GTAOHouseHi7 = { interiorId = 206593, Strip = { A = "Apart_Hi_Strip_A", B = "Apart_Hi_Strip_B", C = "Apart_Hi_Strip_C", Enable = function (details, sta...
-- Required by Docker Hub Alpine container return { capabilities = { "chown", "setuid", "setgid" }, }
--[[ __ __ ____ _____ _____ _____ _ _ \ \ / / / __ \ |_ _| | __ \ / ____| (_) | | \ \ / / | | | | | | | | | | | (___ ___ _ __ _ _ __ | |_ ___ \ \/ / | | | | | | | | | | \___ \ / __...