content
stringlengths
5
1.05M
local LRN, parent = torch.class('cudnn.SpatialCrossMapLRN', 'nn.Module') local ffi = require 'ffi' local errcheck = cudnn.errcheck function LRN:__init(size, alpha, beta, k) parent.__init(self) self.size = size or 5 self.alpha = alpha or 1e-4 self.beta = beta or 0.75 self.k = k or 1.0 assert(self.size...
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** require "TimedActions/ISBaseTimedAction" ---@class ISDestroyStuffAction : ISBaseTimedAction ISDestroyStuffAction = ISBaseTimedAction...
-------------------------------------- -------------线上虚拟物品界面------------ -------------------------------------- local InfoWidgetBase = require("hall/backpack/widget/popWnd/InfoWidgetBase"); local InfoWidgetOnlineVirtual = class(InfoWidgetBase,false); InfoWidgetOnlineVirtual.s_layerName = "case_onlineVirtual_use"...
local lu = require 'luaunit' local openssl = require 'openssl' local algor = require'openssl'.x509.algor TestX509Algor = {} function TestX509Algor:testAll() local alg1 = algor.new() --FIXME --assert(alg1:dup() == nil) local alg2 = algor.new() if alg1.equals then assert(alg1:equals(alg2)) assert(alg1...
--; ============================================================ --; Lua Color (Minecraft) --; ============================================================ colorSelect = { ["Mask"] = { colorCode = "ExecuteBatch 1" }, ["Gradient 1"] = { colorCode = "ExecuteBatch 2" }, ["Gradient 2"] = { colorCode...
function data() return { info = { minorVersion = 4, severityAdd = "NONE", severityRemove = "CRITICAL", name = _("name"), description = _("desc"), authors = { { name = "Enzojz", ro...
local ssl_fixtures = require "spec.fixtures.ssl" local helpers = require "spec.helpers" local cjson = require "cjson" local function it_content_types(title, fn) local test_form_encoded = fn("application/x-www-form-urlencoded") local test_json = fn("application/json") it(title.." with application/www-form-urlenc...
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========-- -- -- Purpose: Label class -- --==========================================================================-- class "gui.label" ( "gui.panel" ) local label = gui.label function label:label( parent, name, text ) gui.panel.panel( self, pare...
local L, this = ... this.title = "PAAPI Reference Filesystem Implementation" this.version = "0.1" this.status = "prototype" this.desc = "A no-op module providing a reference API" local lcore = L.lcore local utable = lcore.utility.table local ref_fs local fs_nop = function(name, ...) local arg = {...} local called ...
-- Buildat: extension/__menu/init.lua -- http://www.apache.org/licenses/LICENSE-2.0 -- Copyright 2014 Perttu Ahola <celeron55@gmail.com> local log = buildat.Logger("extension/__menu") local dump = buildat.dump local magic = require("buildat/extension/urho3d").safe local uistack = require("buildat/extension/uistack") lo...
package.path = "src/?.lua;" .. package.path require("busted.runner")() local AdapterProperties = require("exasolvs.AdapterProperties") describe("adapter_properties", function() describe("validates property rule:", function() local tests = { { properties = {EXCLUDED_C...
local PriorityQueue = {} PriorityQueue.__index = PriorityQueue function PriorityQueue.new() return setmetatable({ _items = {}; _counts = setmetatable({}, { __index = function() return 0 end }); _first = 0; Count = 0; }, PriorityQueue) end function PriorityQueue:Enqueue(item, priority) local index = 1 for...
-- Enable highligting for folders and both file icons and names vim.g.nvim_tree_highlight_opened_files = 3 -- Main setup require'nvim-tree'.setup { auto_close = true, disable_netrw = false, diagnostics = { enable = true, }, -- Do not show hidden files by default (can be toggled by `H`) ...
script.Parent.Parent.Close.MouseButton1Click:Connect(function() script.Parent.Parent.Visible = false end) script.Parent.Parent.Show.OnClientEvent:Connect(function() script.Parent.Parent.Visible = true end) local Minimal = game:GetService("ReplicatedStorage"):WaitForChild("Minimal") local DragModule = require(Minim...
local class = require("pl.class") ---@class MobManager local M = class() function M:_init() self.mobs = {} end function M:addMob(mob) self.mobs[mob] = true end function M:removeMob(mob) mob.effects:clear() local room = mob.room if room then room.area:removeNpc(mob) room:removeNpc(mob, true) end ...
config = { type = 'Ez', unit = 'mil', frequency = Parameter{label='Frequency (Hz)', min=60e9, max=90e9, default=70e9}, mesh_edge_length = Parameter{label='Mesh edge length', min=4, max=50, default=30}, mesh_refines = 0, excited_port = 1, depth = 10000 -- Close to free space } ParameterDivider() ...
local threadHandler = require('threadHandler') local request = require('drive.file.request') local lib = nil local home = nil function Run(input, output) threadHandler.ReceiveMessages(input, output, ProcessRequest) end function ProcessRequest(req) if req.type == request.INIT then -- Lua's default io ...
TriggerEvent('es:addGroupCommand', 'tp', 'admin', function(source, args, user) TriggerClientEvent("esx:teleport", source, { x = tonumber(args[1]), y = tonumber(args[2]), z = tonumber(args[3]) }) end, function(source, args, user) TriggerClientEvent('chatMessage', source, "SYSTEM", {255, 0, 0}, "Insuf...
local ane = {} local pce = { name = "shot", path = "assets/spr/shot/enShot.png", width = 32, height = 32, imgX = 16, imgY = 16, originX = 16, originY = 16, attachPoints = { center = {x = 16,y = 16} }, animations = ane } return pce
--[[ Pixel Vision 8 - Debug Tool Copyright (C) 2016, Pixel Vision 8 (http://pixelvision8.com) Created by Jesse Freeman (@jessefreeman) Please do not copy and distribute verbatim copies of this license document, but modifications without distributing is allowed. ]]-- -- Load in the editor framework script to acc...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="dns-prefetch" href="https://github.githubassets.com"> <link rel="dns-prefetch" href="https://avatars0.githubusercontent.com"> <link rel="dns-prefetch" href="https://avatars1.githubusercontent.com"> <link rel="dns-prefetch" hre...
----------------------------------- -- -- Zone: RuLude_Gardens (243) -- ----------------------------------- local ID = require("scripts/zones/RuLude_Gardens/IDs") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/quests") ----------------------------------- function onIni...
return function(RealObject) local wrapped, Custom; local Childs = setmetatable({}, { __index = function(t, k) --print("__index of Childs:", t, k) local stat, val = pcall(function() return RealObject[k] end) if stat then if type(val) == "function" then -- return a wrapper return function(a, .....
-- ... clojure.lua
--- --- Generated by EmmyLua(https://github.com/EmmyLua) --- Created by shuieryin. --- DateTime: 12/01/2018 9:14 PM --- function learningCurve(X, y, Xval, yval, lambda) --LEARNINGCURVE Generates the train and cross validation set errors needed --to plot a learning curve -- [error_train, error_val] = ... ...
return function(_, players) for _, player in pairs(players) do if player.Character then player:LoadCharacter() end end return ("Respawned %d players."):format(#players) end
-- magiczockerOS - Copyright by Julian Kriete 2016-2021 -- My ComputerCraft-Forum account: -- http://www.computercraft.info/forums2/index.php?showuser=57180 local term, peripheral, fs = term or nil, peripheral, fs local to_complete = {"isDir", "isReadOnly", "getSize", "getFreeSpace", "getDrive"} local to_complete_ = {...
local m, s, o local openclash = "openclash" local uci = luci.model.uci.cursor() local fs = require "luci.openclash" font_red = [[<b style=color:red>]] font_off = [[</b>]] bold_on = [[<strong>]] bold_off = [[</strong>]] m = Map(openclash, translate("Servers manage and Config create")) m.pageaction = false s = m:se...
-- schema.lua local challenges = require "kong.plugins.caesar-challenge.challenges" local typedefs = require "kong.db.schema.typedefs" return { name = "caesar-challenge", fields = { { config = { type = "record", fields = { { challenge = { type = "string", ...
--[[ Opisy pojazdów ]]-- veh_desc = {} veh_desc[400] = "Już w latach 80 amerykańska myśl techniczna poszła o krok dalej i stworzyła wóz który będzie nadawał się idealnie fanów jazdy offroad jak i pojemnej rodzinki z przedmieść. Landstalker to Jeep o stosunkowo małych wymiarach oraz małych osiągach, jego silnik ledwo ...
--[[ Stores global variables for current server. You can access variable to different script! ====================================================================== USAGE EXAMPLE: local JavaScript = require(path to this module); -- You can fill with asset id of main module local process = Java...
-- This file is generated by proto-gen-lua. DO NOT EDIT. -- The protoc version is 'v3.19.2' -- The proto-gen-lua version is 'Develop' return { name = [[google/protobuf/api.proto]], package = [[google.protobuf]], dependency = { [[google/protobuf/source_context.proto]], [[google/protobuf/type...
local Socket , Address = require"t.net".sck, require"t.net".adr local Protocol , Type = require"t.Net.Socket.Protocol", require"t.Net.Socket.Type" local Family = require"t.Net.Family" local t_type , t_assert ...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(83) --!./tcltestrunner.lua -- 2008 Feb 6 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- ...
require('areas') local creature = require('creature') -- The caravan has no fixed location, appearing instead on one of the -- outer island tiles. local caravan_locs = {{6, 53}, {8, 53}, {7, 52}, {7, 54}} local coords = caravan_locs[RNG_range(1, #caravan_locs)] local creatures_csv = "" local creature_list = {{"carava...
AddCSLuaFile() local DbgPrint = GetLogging("MapScript") local MAPSCRIPT = {} MAPSCRIPT.PlayersLocked = false MAPSCRIPT.DefaultLoadout = { Weapons = { "weapon_physcannon", }, Ammo = { }, Armor = 60, HEV = true, } MAPSCRIPT.InputFilters = { ["pod_ready_counter"] = { "Kill" }...
-- Copyright 2016 krunkathos -- -- 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 t...
--author Himanshu Sharma local App42ExceptionRequest = require("App42-Lua-API.App42ExceptionRequest") local App42Log = require("App42-Lua-API.App42Log") local JSON = require("App42-Lua-API.JSON") local Util = {} function Util:buildQueryString(queryParams) local stringRequest = "" for stringKey, stringValue in sor...
local skynet = require 'skynet' local snax = require 'skynet.snax' local cjson = require 'cjson' local CMD = {} function CMD.add(server) if string.len(server.host) < 8 then return nil, "Incorrect IP" end if tonumber(server.port) == nil then return nil, "Incorrect Port" end if string.len(server.srvid) < 18 th...
local Prop = {} Prop.Name = "Shady Apartment 2-106 Cosmos St" Prop.Cat = "Apartments" Prop.Price = 750 Prop.Doors = { Vector( -3880, -7329, 177.28100585938 ), Vector( -4184, -7249, 175 ), Vector( -4272, -7329, 175 ), } GM.Property:Register( Prop )
local tunpack, pairs, next, type, select, getmetatable, setmetatable = table.unpack or unpack, pairs, next, type, select, getmetatable, setmetatable local functions local LootMT -- Memoization local allowmemoize = ALLOW_MEMOIZE == nil and true or ALLOW_MEMOIZE local function memoize( closure, mode ) if not allowme...
local oop = medialib.load("oop") local mediaregistry = medialib.load("mediaregistry") local Service = oop.class("Service") function Service:on(event, callback) self._events = {} self._events[event] = self._events[event] or {} self._events[event][callback] = true end function Service:emit(event, ...) for k,_ in pa...
--- --- File: lua_clx.lua --- --- This file implements the tgs actions for CLX devices --- --- --- --- clx_device = {} clx_device.ssh_stream = {} -- -- register common code drivers -- clx_device.ECHO = common_device_code.ECHO clx_device.TIME_DELAY = common_device_code.TIME_DELAY clx_device.PING = co...
PipeController = {} PipeController.__index = PipeController function PipeController:new() local pipeController = {} setmetatable(pipeController, PipeController) pipeController.list = {} pipeController.maxStep = 64 pipeController.step = 32 pipeController.speed = 2 return pipeController e...
-- sfinv/init.lua dofile(minetest.get_modpath("sfinv") .. "/api.lua") -- Load support for MT game translation. local S = minetest.get_translator("sfinv") sfinv.register_page("sfinv:crafting", { title = S("Crafting"), get = function(self, player, context) return sfinv.make_formspec(player, context, [[ image[0...
local VisualFile = class('VisualFile') function VisualFile:Initialize(filename) self.filenameText = love.graphics.newText(love.graphics.getFont(), filename) self.width = self.filenameText:getWidth() self.height = self.filenameText:getHeight() end function VisualTicker:drawCentered(x, y) love.graph...
ENT.Spawnable = false ENT.AdminSpawnable = false include('shared.lua') function ENT:Think() end
function Start() print("Program start"); end function Update() print("Program updating") end function End() print("Program end") end
require "app.runtime.Event" require "app.runtime.AnimateManager" require "app.runtime.Audio" require "app.runtime.EventManager" require "app.runtime.RuntimeData" require "app.runtime.NetWork" require "app.runtime.NetWorkEvent"
local MainWindow = class("MainWindow", import(".BaseWindow")) function MainWindow:ctor(name, params) MainWindow.super.ctor(self, name, params) end function MainWindow:initWindow() MainWindow.super.initWindow(self) self:getUIComponent() end function MainWindow:getUIComponent() local window_ = self.window_.transfor...
--File is using the old RPP map format, thus we add a function for backward compatibility for this file only local _c=createObject local function createObject(m,x,y,z,a,b,c,i,d,lod) local t if lod then t=_c(m,x,y,z,a,b,c,true) else t=_c(m,x,y,z,a,b,c) end if d then setElementDimension(t,d) end if i then ...
--- This module provides connector to ETCD local M = {} local uri = require 'net.url' local fiber = require 'fiber' local fun = require 'fun' local log = require 'log' local json = require 'json' local base64 = { encode = require 'digest'.base64_encode, decode = require 'digest'.base64_decode, } local http = require...
local M = {} require 'globals' setmetatable(M, { __index = function(self, k) local mt = getmetatable(self) if mt[k] then return mt[k] end local ok, x = pcall(RELOAD, 'utils.' .. k) if not ok then error('Missing utils module ' .. k .. ' Error: ' .. x...
object_draft_schematic_dance_prop_prop_double_ribbon_spark_r_s02 = object_draft_schematic_dance_prop_shared_prop_double_ribbon_spark_r_s02:new { } ObjectTemplates:addTemplate(object_draft_schematic_dance_prop_prop_double_ribbon_spark_r_s02, "object/draft_schematic/dance_prop/prop_double_ribbon_spark_r_s02.iff")
local level = BaseLevel:extend({ txlimit = 3136 }) function level:constructor (fromPipe) self:load('level1map.lua', {146/255,144/255,1}, fromPipe or false) Sounds.mainTheme:play() end return level
--- @class unknown @ unknown type --- The player abandons a skill. --- [https://wowpedia.fandom.com/wiki/API_AbandonSkill] --- @param skillLineID number @ The Skill Line ID (can be found with API GetProfessionInfo()) --- @return void function AbandonSkill(skillLineID) end --- Acccept the area Spirit Healer's resurrec...
broj1 = 10 - math.random(19); broj2 = 10 - math.random(19); if (broj1 == broj2) then if (broj1 == 0) then broj1 = 5 broj2 = -5 else broj1 = - broj1 end else if (broj1 > 0 and broj2 > 0) then broj2 = - broj2 end end diff = broj1 - broj2 ...
if GetObjectName(GetMyHero()) ~= "Riven" then return end require('MapPositionGOS') require('Inspired') require('DeftLib') require('DamageLib') local RivenMenu = MenuConfig("Riven", "Riven") RivenMenu:Menu("Combo", "Combo") RivenMenu.Combo:Boolean("Q", "Use Q", true) RivenMenu.Combo:Boolean("W", "Use W", true) RivenMe...
object_mobile_tcg_familiar_tie_fighter = object_mobile_shared_tcg_familiar_tie_fighter:new { } ObjectTemplates:addTemplate(object_mobile_tcg_familiar_tie_fighter, "object/mobile/tcg_familiar_tie_fighter.iff")
local Application = dofile(_G.spoonPath.."/application.lua") local actions = { find = Application.createMenuItemEvent("Find", { focusAfter = true }), newEvent = Application.createMenuItemEvent("New Event", { focusAfter = true }), newCalendar = Application.createMenuItemEvent("New Calendar", { focusAfter = t...
#!/usr/local/bin/lua -i function newpoly (coef) return function (x) local value = coef[0] or 0 for exponent,coeficient in ipairs(coef) do value = value + (coeficient * (x^exponent)) end return value end end function test() local f = newpoly({[0]=3,0,1}) print...
--[[ Filename: DebugClassS.lua Author: Sam@ke --]] DebugClassS = {} function DebugClassS:constructor(parent) self.coreClass = parent mainOutput("DebugClassS was loaded.") end function DebugClassS:updateFast() end function DebugClassS:updateSlow() end function DebugClassS:destructor() mainOutput("Debug...
function Player_OnEnterWorld(event, plr) if plr:HasAura(69127) == true then plr:RemoveAura(69127) end if plr:GetMapId() == 631 then if (plr:HasAura(69127) == false) then SetDBCSpellVar(69127, "c_is_flags", 0x01000) plr:CastSpell(69127) end end end RegisterServerHook(4, "Player_OnEnterWorld")
--{blocks={{1238066, {11.547, 0}, command={}},{1238068},{1238067, {-11.547, 0}, 3.142, command={blueprint={blocks={{1238067, {11.547, 0}, command={}}}}}}}}
naboo_capper_spineflap_escort_neutral_none = Lair:new { mobiles = {{"spineflap_queen",1},{"spineflap_handmaiden",2},{"spineflap_guard",3}}, spawnLimit = 15, buildingsVeryEasy = {}, buildingsEasy = {}, buildingsMedium = {}, buildingsHard = {}, buildingsVeryHard = {}, buildingType = "none", } addLairTemplate("na...
local K = unpack(select(2, ...)) local Module = K:NewModule("DelayGMOTD", "AceEvent-3.0", "AceTimer-3.0") local _G = _G local pairs = pairs local string_len = string.len local table_insert = table.insert local table_remove = table.remove local CHAT_FRAMES = _G.CHAT_FRAMES local ChatFrame_SystemEventHandler = _G.ChatF...
-- scripts.lua ------------------------------------------ -- example for register capture dll ------------------------------------------ local captureList = { "demoCap", -- demoCap.dll } local PS_SPEED_UNKNOWN = 0 local PS_SPEED_LOW = 1 local PS_SPEED_FULL = 2 local PS_SPEED_HIGH = 3 local PS_SPEED_S...
function BossModel_BionicCommando(player, BossData) -- Minimum Required local BossCharacter = BossCreateStartRound(BossData, "boss-vs-players-assets::BionicCommando") player:Possess(BossCharacter) -- End minimum required end Package.Export("BossModel_BionicCommando", BossModel_BionicCommando)
----------------------------------------- --additional dirt sprites functionality-- ----------------------------------------- --this is an updated More Dirt Sprites functionality by piber20 https://steamcommunity.com/sharedfiles/filedetails/?id=1201700604 but only dirt, womb, scarred, and flooded sprites as to be consi...
do --- rref points into invariant part 1 local x,y=1,2; for i=1,100 do x=x+y; y=i end assert(y == 100) end do --- rref points into invariant part 2 local x,y=1,2; for i=1,100.5 do x=x+y; y=i end assert(y == 100) end do --- rref points into invariant part 3 local x,y=1,2; for i=1,100 do x,y=y,x end assert(...
local sd = _G.source_directory local libd = _G.library_directory local Items = { items = {} } function Items:newItem(x, y, w, h, name, consumable) local item = { x = x, y = y, w = w, h = h, name = name, consumable = consumable or false, dropped = true } self.items[#self.items+1] = item...
-- --[[ ---> 普通基于SQL脚本形式的数据查询适配器 -------------------------------------------------------------------------- ---> 参考文献如下 -----> -------------------------------------------------------------------------- ---> Examples: -----> --]] -- -------------------------------------------------------------------------------------...
----------------------------------- -- Area: Oldton Movalpolos -- NPC: Koblakiq -- Type: NPC Quest -- !pos -64.851 21.834 -117.521 11 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) player:startEvent(13) end function onEventUpdate(player, csid, option...
return { init_effect = "", name = "中飞BOSS用buff2", time = 0, color = "yellow", picture = "", desc = "", stack = 1, id = 8783, icon = 8783, last_effect = "plane_bosseffect_red", effect_list = {} }
local BulletChar = require "bosses/lekkerchat/projectiles/bulletchar" local BulletCharPercentage = BulletChar:extend("BulletCharPercentage") BulletCharPercentage.ySpeed = 400 function BulletCharPercentage:new(x, y, part) BulletCharPercentage.super.new(self, x, y) if part then self.isPart = true self:setImage("...
ys = ys or {} slot1 = ys.Battle.BattleUnitEvent slot2 = ys.Battle.BattleConfig slot3 = ys.Battle.BattleConst slot4 = class("BattleSubCharacter", ys.Battle.BattlePlayerCharacter) ys.Battle.BattleSubCharacter = slot4 slot4.__name = "BattleSubCharacter" slot4.Ctor = function (slot0) slot0.super.Ctor(slot0) end slot4.Ad...
workspace "Fluffy" architecture "x64" configurations{ "Debug", "Release", "Dist" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "FluffyEngine" location "FluffyEngine" kind "SharedLib" language "C++" targetdir ("bin/" .. outputdir .. "/%{prj.name}") objdir ("bin-int/" .. out...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = { PlaceObj('RewardFunding', { 'Amount', "<funds>", }), }, Effects = {}, Enables = { "Masterpiece_PeriodicFunding", }, NotificationText = T(11042, --[[StoryBit Masterpiece_PeriodicFunding Notifica...
--于冥界的征战 function c54363163.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(54363163,1)) e1:SetCategory(CATEGORY_TOGRAVE) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,54363163+EFFECT_COUNT_CODE_OATH) e1:SetCost(c54363163.co...
local att = {} att.name = "skin_ws_mosinclean" att.displayName = "Clean Wood" att.displayNameShort = "Clean" att.isBG = true att.statModifiers = {} if CLIENT then att.displayIcon = surface.GetTextureID("atts/skin_ws_mosinclean") att.description = {[1] = {t = "Clean wood finish for your weapon.", c = CustomizableWea...
local cmp = require "cmp" require "cmp_nvim_lsp" require "cmp_buffer" require "cmp_path" require "cmp_nvim_lua" require "cmp_calc" require "cmp_emoji" require "cmp_nvim_ultisnips" local tabnine = require "cmp_tabnine" tabnine:setup { max_lines = 100, max_num_results = 5, sort = true, } local kind_icons = { T...
-- Gallery.lua -- Defines the main entrypoint to the Gallery plugin --- The main list of galleries available -- Is both an array of gallery objects and a map (gallery name -> gallery object) g_Galleries = {}; --- The per-world per-player list of owned areas. Access as "g_Areas[WorldName][PlayerName]" -- Each su...
local _ENV = mkmodule('plugins.buildingplan') --[[ Native functions: * void setSetting(string name, boolean value) * bool isPlanModeEnabled(df::building_type type, int16_t subtype, int32_t custom) * bool isPlannableBuilding(df::building_type type, int16_t subtype, int32_t custom) * bool isPlannedBuilding(df::bu...
--DEPENDENCIES --whatever is used here idk lol local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local clickable_container = require('widget.clickable-container') local dpi = require('beautiful').xresources.apply_dpi local icons = require('themes.icons') local colors = requi...
for i,v in ipairs({ {9339,-242.2,2600.8999,71.2,0,0,0,1,666,85, false}, {4585,-262.2998,2594.6006,-29.3,0,0,0,1,666,85, false}, {9339,-242.2,2574.8,71.2,0,0,0,1,666,85, false}, {9339,-255.2002,2575.5,71.2,0,0,270,1,666,85, false}, {9339,-281.20001,2575.5,71.2,0,0,270,1,666,85, false}, {9339,-271...
local wet_html=require("wetgenes.html") local sys=require("wetgenes.www.any.sys") local json=require("wetgenes.json") local dat=require("wetgenes.www.any.data") local users=require("wetgenes.www.any.users") local fetch=require("wetgenes.www.any.fetch") local img=require("wetgenes.www.any.img") local log=require...
local lfs = require 'lfs' local path = require 'path' local zip = require 'brimworks.zip' local FS = require 'packagemanager/fs' local Misc = require 'packagemanager/misc' -------- DirectoryView local DirectoryView = {} DirectoryView.__index = DirectoryView function DirectoryView:_getAbsFilePath( filePath,...
oil = require "oil" iorfile, killfile = ... oil.main(function() orb = oil.init{ flavor = "cooperative;corba;corba.ssl;kernel.ssl", options = { server = { security = "required", ssl = { key = "certs/server.key", certificate = "certs/server.crt", cafile = "certs/myca.crt", }, }, ...
aurum.wings = {} b.dofile("item.lua") b.dofile("flight.lua") b.dofile("api.lua") b.dofile("wear.lua")
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ --- -- @section subsection {Hyperedges} -- -- @en...
require('onmt.init') local tester = ... local beamSearchTest = torch.TestSuite() function beamSearchTest.beamSearch() local transitionScores = { {-math.huge, math.log(.6), math.log(.4), -math.huge}, {math.log(.6), -math.huge, math.log(.4), -math.huge}, {-math.huge, -math.huge,...
require"sc.Compilesynth" -- has some common synthdefs SynthDef("formantVoice2", {out=0, gate=1, freq=60, amp=0.3,pan=0, voiceGain=1.0, noiseGain=0.0,sweepRate=0.01},function () local f = Control.names({'f'}).kr(Ref{ 400, 750, 2400, 2600, 2900 }); local q = Control.names({'q'}).kr(Ref{ 0.1, 0.10666666666667, 0.041666...
local RunService = game:GetService("RunService") local Stories = script.Parent.Parent.Parent.Parent local Packages = Stories.Parent.Parent local Roact = require(Packages.Roact) local UIBloxConfig = require(Stories.UIBloxStorybookConfig) local Gamepad = require(Packages.RoactGamepad) local InputManager = require(Pack...
-- local M = {} ---@return string,string local function checkReturn(ret) if ret ~= '' then return ret:gsub('\\', '/') end local err = lstg.FileDialog:getLastError() if err == 'cancel' then --return else print(string.format('got error in FileDialog: %s', err)) --retur...
--proc/cursor: cursor resources. setfenv(1, require'winapi') require'winapi.winuser' ffi.cdef[[ HCURSOR LoadCursorW( HINSTANCE hInstance, LPCWSTR lpCursorName); int ShowCursor(BOOL bShow); BOOL SetCursorPos(int X, int Y); BOOL SetPhysicalCursorPos(int X, int Y); HCURSOR SetCursor(HCURSOR hCursor); BOOL GetCu...
require("prototypes.entity.entities") require("prototypes.item.item") require("prototypes.recipe.recipe") require("prototypes.signal.signal") require("prototypes.technology.technology")
quest_paper = { use = function(player) --local width = 20 --local height = 15 local width = 15 local height = 20 local item = player:getInventoryItem(player.invSlot) player:paperpopup(width, height, item.note) end }
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- F I N A L C U T P R O A P I -- -----------------------------------------------------------------------------...
--邀请好友模块 local layerBase = require("games/common2/module/layerBase"); local InviteLayer2 = class(layerBase, false); InviteLayer2.ctor = function(self) super(self, nil); local localseat = PlayerSeat.getInstance():getMyLocalSeat(); if self.m_viewConfig[localseat] then self:addView(localseat,self.m_viewCon...
--------------------------------------------------------------------------------- -- -- Prat - A framework for World of Warcraft chat mods -- -- Copyright (C) 2006-2018 Prat Development Team -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public Licen...