content
stringlengths
5
1.05M
function AirSpirit_OnEnterCombat(Unit,Event) Unit:RegisterEvent("AirSpirit_Spell1", 11000, 0) Unit:RegisterEvent("AirSpirit_Spell2", 25000, 0) end function AirSpirit_Spell1(Unit,Event) Unit:FullCastSpellOnTarget(12058,Unit:GetClosestPlayer()) end function AirSpirit_Spell2(Unit,Event) Unit:FullCastSpellOnTarget(32...
--@import see.util.ArgumentUtils --@native pairs --@native table --[[ Creates a new LRU cache @param number max size of the cache (unlimited if nil) @param number expire time (unlimited if nil) @param function entry evict callback (params key,value) ]] function LRUCache:init(size, expire, entryEvicted) if size t...
require('Comment').setup({ padding = false, -- Do not add space toggler = { line = '<leader>//', block = nil, }, opleader = { line = nil, block = '<leader>/', }, mappings = { basic = true, extra = false, extended = false, }, })
object_tangible_loot_npc_loot_heroic_exar_brazier = object_tangible_loot_npc_loot_shared_heroic_exar_brazier:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_heroic_exar_brazier, "object/tangible/loot/npc/loot/heroic_exar_brazier.iff")
-- Gemeinschaft 5 module: pager class -- (c) AMOOMA GmbH 2013 -- module(...,package.seeall) Pager = {} function Pager.new(self, arg) arg = arg or {} pager = arg.pager or {} setmetatable(pager, self); self.__index = self; self.class = 'pager'; self.log = arg.log; self.database = arg.database; self.ca...
AddCSLuaFile(); SWEP.Base = "weapon_coi_base"; SWEP.PrintName = "Medkit"; SWEP.HoldType = "slam"; SWEP.ViewModel = "models/weapons/c_medkit.mdl"; SWEP.WorldModel = "models/weapons/w_medkit.mdl"; SWEP.ViewModelFOV = 54; SWEP.UseHands = true; SWEP.Primary.Ammo = ""; SWEP.Primary.Firearm = false; SWEP.Primary.ClipSize ...
class "UIInputBox" { extends "UIObject", new = function (self, x,y,width,height, valueAlias, isNumber, minValue, maxValue) self:super(x,y, width,height) self.value = valueAlias if isNumber ~= nil then self.isNumber = isNumber else self.isNumber = true end self.minValue = minValue self.m...
local LuaSocket, Callable, Timers, EventEmitter, util local Process = {} local function queuesAreEmpty() return Timers.isEmpty()-- and Io.isEmpty() end function Process:override_emit(inherited, event, ...) local listenersRegistered = inherited(self, event, ...) if event == 'uncaughtException' and not listeners...
local lush = require "lush" local hsl = lush.hsl -- (setq frame-background-mode 'light) -- (setq nano-color-foreground "#37474F") ;; Blue Grey / L800 -- (setq nano-color-background "#FFFFFF") ;; White -- (setq nano-color-highlight "#FAFAFA") ;; Very Light Grey -- (setq nano-color-critical "#FF6F00") ;; Amber / L...
local Native = require('lib.stdlib.native') local converter = require('lib.stdlib.enum.converter') ---@class AllianceType local AllianceType = { Passive = 0, --ALLIANCE_PASSIVE HelpRequest = 1, --ALLIANCE_HELP_REQUEST HelpResponse = 2, --ALLIANCE_HELP_RESPONSE SharedXp = 3, --ALLIANCE_SHARED_XP Sha...
local _M = {} _M._VERSION = '0.0.1' local redis = require "apps.resty.redis" _M.new = function(self, conf) self.host = conf.host self.port = conf.port self.uds = conf.uds self.timeout = conf.timeout self.dbid = conf.dbid self.poolsize = conf.poolsize self.idl...
-- Guard System -- local Base = require 'src.entities.systems.base' local Guard = Base:extend() -- New -- function Guard:new(host, data) Base.new(self, host, { 'guard', 'defense' }) -- -- properties self.origDef = host._def self.guardDef = host._def * (data.scale or 1.25) end -- Update -- function Guard:upd...
function ModuleDependencies(module_name) return { "Memory", "Engine", "EASTL", "Gaff", "mpack", module_name } end function ModuleIncludesAndLinks(module_name, base_name) local base_dir = "" if base_name then base_dir = GetModulesDirectory(base_name) else base_dir = GetModulesDire...
return { objects = { {name="basement", x=0, y=0, noquads=true}, {name="me", x=1, y=20, controlled=true} }, events = { }, right = "7-2-b", }
--[================================[ @Language.ko-KR @Summary [Slot] 슬롯의 데이터를 불러옵니다. @Group SCA @param.Slot.Number @Language.us-EN @Summary [Slot] 슬롯의 데이터를 불러옵니다. @Group SCA @param.Slot.Number ]================================] function SCALoad(Slot) --SCA/Number/[Slot] 슬롯의 데이터를 불러옵니다. preDefine("import TriggerEdito...
-- private variables local topMenu local fpsUpdateEvent = nil local statusUpdateEvent = nil -- private functions local function addButton(id, description, icon, callback, panel, toggle, front, index) local class if toggle then class = 'TopToggleButton' else class = 'TopButton' end if topMenu.rever...
-- https://github.com/lukas-reineke/dotfiles/blob/master/vim/lua/lsp/rename.lua local M = {} local util = require "navigator.util" local rename_prompt = "Rename -> " M.rename = function() local current_name = vim.fn.expand("<cword>") local bufnr = vim.api.nvim_create_buf(false, true) vim.api.nvim_buf_set_option(...
data:extend( { { type = "item", name = "gasification-plant", icon = "__base__/graphics/icons/chemical-plant.png", icon_size = 32, subgroup = "production-machine", order = "e[gasification-plant]", place_result = "gasification-plant", stack_size = 50 }, { type = "item", name = "liquid-steel-furnace...
return { ui = { inv = { buy = { how_many = function(_1) return ("How many? (1 to %s)") :format(_1) end, not_enough_money = { "You check your wallet and shake your head.", "You need to earn more money!" }, prompt = function(_1, _2) return ("Do you really want to buy %s for %s go...
local A = FonzAppraiser A.module 'fa.session' local L = AceLibrary("AceLocale-2.2"):new("FonzAppraiser") local abacus = AceLibrary("Abacus-2.0") local util = A.requires( 'util.string', 'util.time', 'util.chat' ) local source = A.require 'fa.value.source' local filter = A.require 'fa.filter' l...
object_tangible_wearables_necklace_necklace_ace_pilot_rebel_f = object_tangible_wearables_necklace_shared_necklace_ace_pilot_rebel_f:new { } ObjectTemplates:addTemplate(object_tangible_wearables_necklace_necklace_ace_pilot_rebel_f, "object/tangible/wearables/necklace/necklace_ace_pilot_rebel_f.iff")
local Tunnel = module("vrp","lib/Tunnel") local Proxy = module("vrp","lib/Proxy") vRP = Proxy.getInterface("vRP") --[ CONNECTION ]---------------------------------------------------------------------------------------------------------------- emp = Tunnel.getInterface("emp_farmer-store") --[ VARIABLES ]-------------...
local filenamesplit = require 'filenamesplit' local t = require 'testhelper' t( {filenamesplit()}, {'','',''}, t.deepsame ) t( {filenamesplit''}, {'','',''}, t.deepsame ) t( {filenamesplit'path/name.ext'}, {'path/','name','.ext'}, t.deepsame ) t( {filenamesplit'/path/path/name.ext'}, {'/path/path/','name','.ext'}, t...
local config = {} -- server and port configuration. config.server = "irc.freenode.net" config.port = 6667 -- --- --- --- --- -- user configuration. -- -- If you don't want your realname -- to be defined, simply set it to an empty -- string. -- -- NOTE: config.password is simply a password -- that is sent to serve...
local pink = require('pink.pink') local story = pink.getStory('examples/game.ink') -- you can also jump to a story knot based on some event in your game story.choosePathString('back_in_london'); local currentText = nil local a=10 function love.update(dt) a = a + dt*3 if not currentText then if story.canCon...
-- driver local cmd = torch.CmdLine() cmd:option('-lr' , 1e-4, 'learning rate') cmd:option('-epsilon' , 1e-6, 'adam, epsilon') cmd:option('-batchSize' , 1, 'mini batch size') cmd:option('-numPasses' , 1, 'number of passes') cmd:text() opt = cmd:parse(arg) dofile('model_persp_joint_lsun_type.lua') dofile('train_pers...
object_mobile_storyteller_loveday_ewok_herald = object_mobile_shared_storyteller_loveday_ewok_herald:new { } ObjectTemplates:addTemplate(object_mobile_storyteller_loveday_ewok_herald, "object/mobile/storyteller_loveday_ewok_herald.iff")
-- 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_disruptor...
-- -- ixsst.lua : Super-Simple Templates (v0.3)<2012/05/01> -- Created by "ZR" (Takayuki YATO) --- ixsst.to_code() : -- Converts to a template string to a Lua code. -- @param str (string) a template string -- @returns (string) the Lua code representing the template local function to_code(str) lo...
registerNpc(197, { walk_speed = 200, run_speed = 510, scale = 140, r_weapon = 337, l_weapon = 0, level = 95, hp = 41, attack = 399, hit = 213, def = 301, res = 346, avoid ...
--[[Author: YOLOSPAGHETTI Date: February 13, 2016 Determines the multicast multiplier and applies it to the necessary spell]] function Multicast(keys) local caster = keys.caster local target = keys.target local ability = keys.ability local ability_cast local two_times = ability:GetLevelSpecialValueFor( "multicas...
local route_123_berry = DoorSlot("route_123", "berry") local route_123_berry_hub = DoorSlotHub("route_123", "berry", route_123_berry) route_123_berry:setHubIcon(route_123_berry_hub)
require('constants') if player_has_item("hearts_needle") then if get_num_deities() == 0 then add_message_with_pause("EVIL_WIN_MESSAGE_GODSLAYER") clear_and_add_message("EVIL_WIN_MESSAGE_GODSLAYER2") -- If Amaurosis is friendly, for whatever reason, he sure isn't -- anymore... set_hostility("end_...
local druid = require("druid.druid") local druid_style = require("example.ysdkdebug.druid_style") local table_util = require("example.ysdkdebug.table_util") local yagames = require("yagames.yagames") local log_print = require("example.ysdkdebug.log_print") local print = log_print.print local M = {} function M.init_...
--[[============================================================================ Project spacebuild extensions = Copyright Spacebuild project (http://github.com/spacebuild) = ...
local the = require "the" local lib = require "lib" local Part = require "part" local Compart = the.class() function Compart:_init(t, verbose, w,rank,part) self.w = 5 self.state = {} self.meta = {} self.order = {} rank = {stock=1,s=1,a=3,aux=3,f=2,flow=2} for k,parts in pairs(t) do for name,init in...
ExtraFWMod = RegisterMod("ExtraFW", 1) local modTable = {} local Content = {} function ExtraFWMod:getContent() return Content end local function makeReadOnlyTable(t) local p = {} local mt = { __index = t, __metatable = "protected metatable", __newindex = function(t,k,v) error("Tried to write to read-only ...
local K = unpack(select(2, ...)) local Module = K:GetModule("ActionBar") local _G = _G local next = next local MouseIsOver = _G.MouseIsOver local SpellFlyout = _G.SpellFlyout local CreateFrame = _G.CreateFrame local function FaderOnFinished(self) self.__owner:SetAlpha(self.finAlpha) end local functio...
local ok, neoclip = pcall(require, "neoclip") if not ok then vim.notify("Unable to require neoclip", vim.lsp.log_levels.ERROR, { title = "Plugin error" }) return end neoclip.setup() vim.keymap.set( "n", "<Leader>bp", ":Telescope neoclip unnamed<CR>", { noremap = true, silent = true, desc = "Show clipboard buffe...
local scene1 = parser:parse [[ <scene> <text> text: "Hello world" font: 25 x: 10 y: 15 </text> <text> text: "Minecraft is my life!" font: 18 x: 55 y: 55 </text> <image> sprites: "sprites/UI/logotype.png" x: 100 y: 80 scalex: 0.5 scaley: 0.55 </image> </scene> ]] local scene2 = Sce...
local executeTest = require(script.Parent.executeTest) return function(tests, context) local newContext = table.create(#context) if #context > 0 then table.move(context, 1, #context, 1, newContext) else for k, v in pairs(context) do newContext[k] = v end end context = newContext context.testDepth += 1 ...
local model={} local base_model=torch.reload("../../Decode/decode_model") setmetatable(model,{ __index = base_model }) function model:GenerateSample() self.mode="decoding" if self.params.sample then self.sample_target=self:sample() for i,v in pairs(self.sample_target)do self.sample...
AddCSLuaFile() local VehicleName = "2015 AWD Charger Undercover" local EMV = {} EMV.Siren = 43 EMV.Skin = 0 EMV.Color = Color(0,0,30) EMV.BodyGroups = { { 0, 0 }, -- Body { 1, 0 }, -- Rims { 2, 0 }, -- Badges { 3, 0 }, -- clamped1 { 4, 0 }, -- clamped2 { 5, 0 }, -- clamped3 { 6, 0 }, -- clamped4 } EMV.Props...
-- Made by Luk -- http://steamcommunity.com/id/doctorluk/ -- Version: 1.0 -- https://github.com/doctorluk/ULX-CSS-Checker if SERVER then ServerLog("[CSS File Check] Loading CS:S Filelist\n") -- List of files that a usual CS:S installation has CS_CONTENT_FILES = {"materials/brick/brickwall003d.vmt", "materials/bric...
-- The opponent shoots firework bullets local opponentPhaseFireworkShot = {} opponentPhaseFireworkShot.__index = opponentPhaseFireworkShot opponentPhaseFireworkShot.INTRO_TEXT = "Do you ever feel\nLike a plastic bag" -------------------- -- MAIN CALLBACKS -- -------------------- function opponentPhaseFireworkShot...
function checkValue(expected, input, message) if not (input == expected) then print(message) return false end return true end function checkType(expected, input, message) if not (type(input) == expected) then print(message) return false end return true end fun...
object_mobile_beginner_brawler_client_3 = object_mobile_shared_beginner_brawler_client_3:new { } ObjectTemplates:addTemplate(object_mobile_beginner_brawler_client_3, "object/mobile/beginner_brawler_client_3.iff")
function onStartCountdown() for i = 0, getProperty('unspawnNotes.length')-1 do if getPropertyFromGroup('unspawnNotes', i, 'x') > 429 then setPropertyFromGroup('unspawnNotes', i, 'texture', 'NOTE_assets'); else setPropertyFromGroup('unspawnNotes', ...
-- Same mechanism as csp.c -- Initially the idea was to expose csp.c to Lua. However, the meat -- of the implementation really is in the data structures, and if Lua -- is available, it makes a lot more sense to just use Lua -- datastructures for everything, and rely on garbage collection. So -- this is a re-implemen...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISPutOutFireDrum : ISBaseTimedAction ISPutOutFireDrum = ISBaseTimedAction:derive(...
local playsession = { {"mewmew", {109275}}, {"Gerkiz", {49625}}, {"rlidwka", {2225999}}, {"Dofolo", {39742}}, {"GuidoCram", {65064}}, {"Irx99", {156817}}, {"Rolfiki", {790387}}, {"Claviduck", {54348}}, {"maate", {746270}}, {"rjdunlap", {1526743}}, {"grootie", {79877}}, {"andrekoul", {290854}}, {"Zasc", {55...
att.PrintName = "Ammo" att.Icon = Material("snowysnowtime/2k/ico/h3/smg_sil.png") att.Description = "Changes the round type for a larger magazine. It is lighter, but deals less damage due to the internals being modified." att.Desc_Pros = { "+ Increased Magazine Size (40%)", "+ Increased Speed (10%)" } att.Desc_Cons =...
local L = BigWigs:NewBossLocale("Kanrethad Ebonlocke", "zhTW") if not L then return end if L then -- L.name = "Kanrethad Ebonlocke" L.summons = "召喚" L.debuffs = "減益" L.start_say = "看哪" -- 看哪!我徹底掌握了這片土地的魔化能量!如今任我掌控的這股惡魔之力…是無以言諭·無窮無盡·無所不能的! L.win_say = "裘貝卡" -- Jubeka?! What are you...?! end L = BigWigs:NewBossLo...
postbote = { ["Window"] = false, ["Label"] = {}, ["Button"] = {} } addEvent("onClientPostboteMarkerHit", true) addEventHandler("onClientPostboteMarkerHit", getRootElement(), function() postbote["Window"] = new(CDxWindow, "Postamt!", 200, 320, true, true, "Center|Middle") postbote["Label"][1] = new(CDxLabel, "Wilk...
local InitState = class("InitState", State) local machineConfigFile = gc.tsResPath.."machine.conf" function InitState:initialize(name) State.initialize(self, name) end function InitState:enteredState() unlockDevice() setWifiEnable(true) --setAirplaneMode(false) clearLog() pressHomeButton() self:loadMachineC...
local PLUGIN = PLUGIN PLUGIN.name = "KarmaREp" PLUGIN.author = "gumlefar" PLUGIN.desc = "Karma & Reputation System" PLUGIN.repDefs = { {"Tourist", 0}, {"Rookie", 50}, {"Regular", 282}, {"Experienced", 765}, {"Veteran", 1943}, {"Expert", 4254}, {"Master", 9338}, {"Legendary", 20943}, } PLUGIN.karmaDefs = { {"...
require('rentziass.plugins.bundle') require('rentziass.plugins.cmp') require('rentziass.plugins.comment-nvim') require('rentziass.plugins.harpoon') require('rentziass.plugins.lspkind') require('rentziass.plugins.lspsaga') require('rentziass.plugins.nvim-treesitter') require('rentziass.plugins.nvim_tree') require('rent...
object_building_general_coru_senate_office_starport_01 = object_building_general_shared_coru_senate_office_starport_01:new { } ObjectTemplates:addTemplate(object_building_general_coru_senate_office_starport_01, "object/building/general/coru_senate_office_starport_01.iff")
ITEM.name = "Watermelon" ITEM.model = "models/props_junk/watermelon01.mdl" ITEM.hungerAmount = 50 ITEM.cookable = false ITEM.foodDesc = "watermelonDesc" ITEM.quantity = 6 ITEM.width = 2 ITEM.height = 2 ITEM.price = 100 ITEM:hook("use", function(item) item.player:EmitSound("physics/body/body_medium_break2.wav", 90, 15...
--[[ Checks if a character is currently on the ground by their HumanoidStateType. ]] local t = require(script.Parent.Parent.lib.t) local isGroundedCheck = t.enum(Enum.HumanoidStateType) local function isGrounded(state) assert(isGroundedCheck(state)) return state == Enum.HumanoidStateType.Running or state == En...
local a=module('_core','libs/Tunnel')local b=module('_core','libs/Proxy')API=b.getInterface('API')cAPI=a.getInterface('cAPI')hppServerPolice=a.getInterface("hpp_police")hpp_police_client={}a.bindInterface("hpp_police",hpp_police_client)animApi=module("_core","client/functions/_Anims")Citizen.CreateThread(function()whil...
project "ImGuizmo" location "../ImGuizmo_prj" kind "StaticLib" language "C++" cppdialect "C++17" staticruntime "on" targetdir ("../ImGuizmo_prj/bin/" .. output_dir .. "/%{prj.name}") objdir ("../ImGuizmo_prj/bin-int/" .. output_dir .. "/%{prj.name}") files { "ImCurveEdit.cpp", "ImCurveEdit.h", "ImGradi...
local max_time = 5 -- Minutes setTimer ( function ( ) local max_milsecs = ( max_time * 60 ) * 1000 for i, v in pairs ( getElementsByType ( "player" ) ) do if ( not exports.NGAdministration:isPlayerStaff ( v ) ) then local idle = getPlayerIdleTime ( v ) if ( idle > max_milsecs ) then kickPlayer ( v, "You...
--[[ Entrance for go-mysql-transfer ]] local log_file = "E:\\goworkspace\\my-go-mysql-trans\\store\\log\\my.lua.log" local mlog = require("util.mlog") mlog.Writefile(log_file,'main.lua running \r\n','ab+') local morder_worksheet = require("tms.order_worksheet") morder_worksheet.Run()
local table = require("hs/lang/table") local Class = require("hs/lang/Class") -------------------------------------------------------------------------------- -- TMXMapのObjectGroupです. -- -- @class table -- @name TMXObjectGroup -------------------------------------------------------------------------------- local TMXOb...
n=3 n--/* --[[*/// var a=_=>{ /*--]]=1 i="\n" s="n=3%sn--/*%s--[[*///%svar a=_=>{%s/*--]]=1%si=\"\\n\"%ss=%qprint(s:format(i,i,i,i,i,i,s,i))--[[%sconsole.log(`n=3\\nn--/*\\n\\-\\-\\[\\[*///\\nvar a=${a};a()//\\-\\-\\]\\]`);};a()//--]]"print(s:format(i,i,i,i,i,i,s,i))--[[ console.log(`n=3\nn--/*\n\-\-\[\[*///\nvar a=${a...
Config = {} Config.Locale = 'fr' Config.Visible = true
local scriptpath = core.get_builtin_path() local commonpath = scriptpath .. "common" .. DIR_DELIM local gamepath = scriptpath .. "game".. DIR_DELIM -- Shared between builtin files, but -- not exposed to outer context local builtin_shared = {} dofile(commonpath .. "vector.lua") dofile(gamepath .. "constants.lua") ...
return function(cat9, root, builtins, suggest) function builtins.forget(...) local forget = function(job, sig) local found for i,v in ipairs(lash.jobs) do if (type(job) == "number" and v.id == job) or v == job then job = v found = true break end end if not found then return end -- k...
--Zapper display --written by adelikat --Purpose: To show the target of the zapper on screen -- Primary use is for fullscreen where the mouse cursor is disabled local zap --get zapper.read() values local color = "white" --color of outside bull's eye circles while true do zap = zapper.read() --Red if firing if (za...
class 'BotOrders' function BotOrders:__init() -- just stand around and smell the flowers self.WANDER = 1 -- go to objective self.OBJECTIVE = 2 -- go to enemy self.ENEMY = 3 -- go to friendly self.FRIENDLY = 4 end if not g_BotOrders then g_BotOrders = BotOrders() end return g_BotOrd...
function trace._open_section(node) local node = trace._new_entry(node) node.section = true node.db_time = 0 node.start_real_time = extos.monotonic_hires_time() node.start_proc_time = os.clock() local stack = trace._stack stack[#stack+1] = node return node end
local L = require 'lpeg' local C = lpeg.C local Cb = lpeg.Cb local Cf = lpeg.Cf local Cg = lpeg.Cg local Cmt = lpeg.Cmt local Cs = lpeg.Cs local Ct = lpeg.Ct local P = lpeg.P local R = lpeg.R local S = lpeg.S local V = lpeg.V L.locale(L) local grammar = {} function...
--Experimental data:extend({ { type = "beam", name = "exp-beam", flags = {"not-on-map"}, width = 10.9, damage_interval = 20, working_sound = { { filename = "__base__/sound/fight/electric-beam.ogg", volume = 0.7 } }, action = { type = "direct", ...
local LibSpellHighlight = Wheel:Set("LibSpellHighlight", 9) if (not LibSpellHighlight) then return end local LibEvent = Wheel("LibEvent") assert(LibEvent, "LibSpellHighlight requires LibEvent to be loaded.") local LibMessage = Wheel("LibMessage") assert(LibMessage, "LibSpellHighlight requires LibMessage to ...
-- mydoors mod by don -- DO WHAT YOU WANT TO PUBLIC LICENSE -- or abbreviated DWYWPL -- December 2nd 2015 -- License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com) -- www.sandboxgamemaker.com/DWYWPL/ -- DO WHAT YOU WANT TO PUBLIC LICENSE -- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION ...
require("iuplua") require("iupluaimglib") --********************************** Utilities ***************************************** function str_find(str, str_to_find, casesensitive, start) if (not casesensitive) then return str_find(string.lower(str), string.lower(str_to_find), true, start) end return st...
return { init_effect = "", name = "铁底湾之夜", time = 5, picture = "", desc = "白鹰精英损管", stack = 1, id = 11016, icon = 11016, last_effect = "", effect_list = { { type = "BattleBuffCastSkill", trigger = { "onRemove" }, arg_list = { minWeaponNumber = 1, skill_id = 6750, target = "Target...
require("config.config") require("prototypes.technology") require("prototypes.item") -- any buildable or placable object/entity needs this require("prototypes.building") require("prototypes.entity") -- any buildable or placable object/entity needs this require("prototypes.recipe") require("prototypes.signals") require(...
-- Library for keeping track of gears in the game -- and running functions on them -- also keeps track of clans and teams local trackingTeams = false local resurrecting = false local gears = {} local teams = {} local clans = {} local resurrectedHogs = {} local gearValues = {} local teamValues = {} local clanValues = {...
local present, nvimtree = pcall(require, "nvim-tree") if not present then return end local g = vim.g vim.o.termguicolors = true g.nvim_tree_disable_default_keybinding = 1 -- g.nvim_tree_ignore = { "node_modules", ".cache" } g.nvim_tree_gitignore = 1 g.nvim_tree_quit_on_open = 0 -- closes tree when file's opened g.n...
-- -- make_csharp.lua -- Generate a C# project makefile. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- -- -- Given a .resx resource file, builds the path to corresponding .resource -- file, matching the behavior and naming of Visual Studio. -- local function getresourcefilename(cfg, fname) if...
require('nn') require('rnn') ---------------------------------------------------------------------- -- parse command line arguments if not opt then print '==> processing options' cmd = torch.CmdLine() cmd:text() cmd:text('Bi-Directional LSTM') cmd:text() cmd:text('Options:') cmd:option('-input_dim...
local K, C, L, _ = select(2, ...):unpack() -- THIS FILE IS FOR TESTING AND REMINDERS BULLSHIT :D -- [[ -*- NOTES -*- ]] -- -- [[ -*- COMBAT_LOG_EVENT_UNFILTERED -*- ]] -- -- timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, spellID = ... -- timestamp, event, sourceGUID, sourceName,...
ngx.say('hello world!') ngx.say(type(ngx.var)) ngx.say(ngx.var.uri) ngx.say(ngx.var.request_uri) local vars = ngx.var for v in pairs(vars) do if type(v) ~= "table" then ngx.say(table.concat(v,',')) else ngx.say(1) end end local arr = {a='abc','eft'} arr[2] = 123 for i,v in pairs(arr) do ngx....
return { conditional_draw = function(parent, text, top) local height = 0 if text and string.len(text) > 0 then height = 60 local bg = display.newRect(parent, _AW / 2, top, _AW, height) bg.anchorY = 0 bg:setFillColor(0.9, 0.9, 0.9) local text = display.newText({ parent ...
--on_tick.lua -- Tick handler do function on_tick(event) -- Power all locomotives local offset = event.tick % ticks_per_update local locos = global.electric_locos local locos_to_remove = {} for i = #locos - offset, 1, -ticks_per_update do if locos[i].valid and global.electric_loco_registry[locos[i].na...
require 'cunn' local ffi=require 'ffi' function makeDataParallel(model, opts) if opts.ngpus > 1 then print('converting module to nn.DataParallelTable') assert(opts.ngpus <= cutorch.getDeviceCount(), 'number of GPUs less than nGPU specified') local model_single = model model = nn.Data...
local uv = require("luv") local timer = require("timer") local utils = require("utils") local Emitter = require("core").Emitter local Duplex = require("stream").Duplex --[[ Socket ]] local Socket = Duplex:extend() function Socket:initialize(options) Duplex.initialize(self) if type(options) == "number" then ...
dt = require "darktable" table = require "table" local _debug = true local function debug_print(message) if _debug then print(message) end end function file_exists(path) local testIsFileCommand = "test -s "..path local testIsNotFileCommand = "test ! -s "..path local positiveTest = os.execute(testIsF...
-- -- Created by IntelliJ IDEA. -- User: seletz -- Date: 20.02.18 -- Time: 22:11 -- To change this template use File | Settings | File Templates. -- Stage = Object:extend() function Stage:new() self.main_canvas = love.graphics.newCanvas(gw, gh) self.timer = Timer() self.area = Area(self) self.direct...
EFFECT_TYPE_CANNON = 1 EFFECT_TYPE_RIFLE = 2 EFFECT_TYPE_CRASH = 3 EFFECT_TYPE_BOMB = 4 EFFECT_TYPE_HOOK = 5 EFFECT_TYPE_SHOTGUN = 6 GAME_STATE_BUILDING = 1 GAME_STATE_FIGHT = 2 GAME_STATE_PAUSE = 3 AW_DAMAGE_TYPE_SPLASH = 1 AW_DAMAGE_TYPE_HIT = 2 WEATHER_DAY = 1 WEATHER_NIGHT = 2
object_tangible_wearables_jacket_jacket_gcw_neutral = object_tangible_wearables_jacket_shared_jacket_gcw_neutral:new { } ObjectTemplates:addTemplate(object_tangible_wearables_jacket_jacket_gcw_neutral, "object/tangible/wearables/jacket/jacket_gcw_neutral.iff")
local Screen = require "widgets/screen" local Button = require "widgets/button" local AnimButton = require "widgets/animbutton" local Menu = require "widgets/menu" local Text = require "widgets/text" local Image = require "widgets/image" local UIAnim = require "widgets/uianim" local Widget = require "widgets/widget" l...
AddCSLuaFile() SWEP.Slot = 5 SWEP.SlotPos = 127 SWEP.ViewModel = "models/weapons/c_arms.mdl" SWEP.WorldModel = "" SWEP.PrintName = "Holster" SWEP.Spawnable = true SWEP.Weight = 0 SWEP.UseHands = true SWEP.ViewModelFOV = 68 SWEP.AutoSwitchFrom = false SWEP.AutoSwitchTo = false SWEP.Primary.Ammo = "none" SWEP.Primary.Cli...
include("shared.lua") ENT.DigitPositions = { {Vector(14,-8.5,0)}, {Vector(-2,-8.5,0)}, {Vector(-15,-8.5,0)}, {Vector(7,-8.5,0),true}, } function ENT:Initialize() self.Digits = {} end function ENT:Think() for k,v in pairs(self.DigitPositions) do if not IsValid(self.Digits[k]) then i...
local w = 20 meshes = { { vertexes = {{-w,-w}, {-w,w}, {w,w}, {w,-w}, {0,0,50}}, colors = {0xff0000aa, 0xff0000aa, 0xff0000aa, 0xff0000aa, 0xff0000aa}, segments = {{0,1,2,3,0},{0,4},{1,4},{2,4},{3,4}} } }
local ultimaAccion = nil local currentGarage = nil local fetchedVehicles = {} local recoveryVehicles = {} -- Opens the garage menu function MenuGarage(action) if not action then action = ultimaAccion; elseif not action and not ultimaAccion then action = "menu"; end ped = GetPlayerPed(-1); MenuTitle = "Gara...
vim.cmd [[command! PS PackerSync]] vim.cmd [[command! GX :silent! !gitx]] vim.cmd [[command! TIG :tabnew | terminal tig -a]] vim.cmd [[command! ClearRegisters call functions#ClearRegisters()]] vim.cmd [[command! -range=% AsConfluence :call functions#AsConfluence()]] vim.cmd [[command! -range=% Base64Decode :call funct...
--"Lua_RI_testsuite,test table maingraph={"start"} local branchcount=0 local obje=1 function newobj() obje=obje+1 if(branchcount==0)then return obje else return branchcount.."_"..obje end end selectedobj=newobj() setmetatable(maingraph, { __shl = function (t,v) t[selectedobj]=v end }) obj= maingraph...