content
stringlengths
5
1.05M
metabase "msvc2015_windows" option("msvc", "version", "2015") option("msvconfiguration", "PlatformToolset", "v140") import "msvc_common_windows.lua" import "msvc_common_windowsx86.lua" metabase_end()
-- This file can be loaded by calling `lua require('plugins')` from your init.vim -- https://github.com/wbthomason/packer.nvim#bootstrapping local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then packer_bootstrap = fn.system({'git'...
--銀河眼の極光波竜 -- --"Lua By REIKAI 2404873791" function c100270203.initial_effect(c) --xyz summon aux.AddXyzProcedure(c,nil,10,2,c100270203.ovfilter,aux.Stringid(100270203,0),2,c100270203.xyzop) c:EnableReviveLimit() --CANNOT be tg local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(100270203,1)) e1:SetTy...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceDebug_pb', package.seeall) local BCEDEBUG = protobuf.Descriptor(); local BCEDEBUG_HASHVALUE0_FIELD = protobuf.FieldDescriptor(); local BCEDEBUG_HASHVALUE1_FIELD = protobuf.FieldDescriptor(); local BCEDEBUG_HASHVALUE2_FIELD = pro...
-- local audio_file = "Your Stars.ogg" local audio_file = "ScreenGameOver music (loop).ogg" return THEME:GetPathS("", audio_file)
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg)...
local func = require("invokation.lang.function") describe("function", function() describe(".lookupbyname", function() it("creates a wrapper function that performs method lookup by name", function() local t = {} t.greet = function(name) return "Greetings, " .. name end local gree...
local Packages = script.Parent.Parent.Parent local Roact = require(Packages.Roact) local withTripStatus = require(script.Parent.withTripStatus) local function TripInterface(props) return withTripStatus(function(tripStatus) if tripStatus == nil then return nil end return Roact.createElement("TextLabel", { ...
object_tangible_item_som_lava_beetle_beads = object_tangible_item_som_shared_lava_beetle_beads:new { } ObjectTemplates:addTemplate(object_tangible_item_som_lava_beetle_beads, "object/tangible/item/som/lava_beetle_beads.iff")
dofile("myassert.lua") local a = FIRST local b = SECOND assert(checkenum(a)==TRUE) assert(checkenum(b)==FALSE) print("Enum test OK")
local BasePlugin = require "kong.plugins.base_plugin" local body_filter = require "kong.plugins.response_transformer.body_filter" local header_filter = require "kong.plugins.response_transformer.header_filter" local ResponseTransformerHandler = BasePlugin:extend() function ResponseTransformerHandler:new() ResponseT...
cc = cc or {} ---TileMapAtlas object ---@class TileMapAtlas : AtlasNode local TileMapAtlas = {} cc.TileMapAtlas = TileMapAtlas -------------------------------- --- initializes a TileMap with a tile file (atlas) with a map file and the width and height of each tile in points.<br> ---The file will be loaded using the Te...
local nextTick = require("reactivity.nextTick").nextTick local select, pairs, type, tinsert, tremove, tsort = select, pairs, type, table.insert, table.remove, table.sort local __DEV__ = require("reactivity.config").__DEV__ local ErrorCodes = require("reactivity.ErrorCodes") local reactiveUtils = require("reactivity.rea...
--[[ ****************************************************************** * _____ ___ _ * * ( _ ) ( _`\ _ ( )_ * * | (_) | _ __ ___ | (_(_) ___ _ __ (_) _ _ | ,_) * * | _ |( '__)/'___)`\__ \ /'___)( '__...
local Logger = require("__DedLib__/modules/logger").create() local Table = require("__DedLib__/modules/table") require("util") Migrations = {} Migrations.MOD_NAME = "Generic_Logistic_Chest" function Migrations.handle(data) if data.mod_changes and data.mod_changes[Migrations.MOD_NAME] then local oldVersion = data...
local LoginModel = require 'Model/LoginModel' local luaBehaviour; local transform; local gameObject; --选择角色界面 ChooseRoleView = BaseView:New('ChooseRoleView'); local this = ChooseRoleView; local VoRole = {sex = SexType.Man, nick = ''} --创建角色信息 local PosInfo1 = {pos = {}, scale = {}}; --位置1的坐标与大小 local PosI...
require("constants"); function switch_initialize(thegpio) gpio.mode(gpioid[thegpio],gpio.INPUT,gpio.PULLUP); end function switches_initialization() for i, switch in ipairs(switches) do print("Init SW "..i.." on GPIO"..switch) switch_initialize(switch); end; end function switch_state(thegpio) return g...
-- https://github.com/dot123 -- 场景管理 SceneMgr = {} local currentScene -- 初始化 function SceneMgr:init() end -- 切换账号 function SceneMgr:onReload() end -- 获取当前场景 function SceneMgr:getCurrentScene() return currentScene end -- 加载场景 function SceneMgr:loadScene(sceneName) if sceneName == "GameScene" then ...
ImportTarget("targets/linux.lua") function Target.Execute() target.arch = "x86" target.bits = 32 target.platform = "linux_x86" target.settings.cc.defines:Add("PLATFORM_LINUX") target.settings.cc.defines:Add("PLATFORM_LINUX_X86") target.settings.cc.defines:Add("ARCH_X86") target.settings.cc.defines:Add("A...
if not _G.THREATLIB_LOAD_MODULES then return end -- only load if LibThreatClassic2.lua allows it if not LibStub then return end local ThreatLib, MINOR = LibStub("LibThreatClassic2", true) if not ThreatLib then return end local EBONROC_ID = 14601 local WING_BUFFET_ID = 23339 ThreatLib:GetModule("NPCCore-r"..MI...
if UseItem(194) == true then goto label0 end; do return end; ::label0:: AddItemWithoutHint(194, -1); PlayAnimation(3, 5722, 5748); ModifyEvent(-2, -2, -2, -2, 237, 241, -1, 5722, 5748, 5722, -2, -2, -2); ModifyEvent(-2, 2, -2, -2, 239, -1, -1, -2, -2, -2, -2, -2, -2); jyx2_PlayTimeline("[Timelin...
local F = table.remove(RequiredScript:split("/")) local Hooks = Hooks if F == "weaponfactorymanager" then --Custom weapons crash fix based of Rokk's mod. --I wish I could make a warning dialog for custom weapon crash fix but you'd need to pause the save manager or something.. local orig_unpack = Weapon...
----- XHideMapOverviewCurtainsLayer DefineClass.XHideMapOverviewCurtainsLayer = { __parents = { "XLayer" }, Dock = "ignore", HandleMouse = false, } function XHideMapOverviewCurtainsLayer:Init() HideOverviewMapCurtains(true) end function XHideMapOverviewCurtainsLayer:Done() HideOverviewMapCurtains(false) end
function startGame() currentLevel=1 score=0 gameWon=false gameLost=false numLives=3 initializeLevel(currentLevel) --pauseGame() displayingTitleScreen = false unpauseGame() waitForClick() end function titleScreen() displayingTitleScreen=tru...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] local QuestID = 25 local Quest = Quests[QuestID] Quest.Texts =...
local outText = display.newText("###", display.contentWidth/2, display.contentHeight/2, "agency fb", 150) function doSomething(event) print("Timer has fired") print(event.name) print(event.source) print(event.time) print(event.count) outText.text = event.count end myTimer = timer.pe...
describe("lpjit", function() local allchar = {} for i = 0, 255 do allchar[i + 1] = i end local unpack = unpack or table.unpack allchar = string.char(unpack(allchar)) assert(#allchar == 256) it("works with lpeg.locale().lower", function() local lpeg = require 'lpeg' l...
-- todo: add Apple OpenCL environment vars function findOpenCL_AMD() local amdopenclpath = os.getenv("AMDAPPSDKROOT") if (amdopenclpath) then return true end return false end function findOpenCL_NVIDIA() local nvidiaopenclpath = os.getenv("CUDA_PATH") if (nvidiaopenclpath) then return true end...
--data.lua require("prototypes.item") require("prototypes.entity") require("prototypes.recipe") require("prototypes.technology") require("prototypes.event") require("prototypes.signal")
local PiroGame = require 'PiroGame/PiroGame'; local mb = PiroGame.class('MaterialBody', PiroGame.Entity); local DestEvent = require('Events/DestructionEvent'); function mb:initialize(material, dynamics, meshVerts, x, y, rot, sx, sy, id) PiroGame.Entity.initialize(self, x, y, rot, sx, sy, id); if material ...
local kernel = {} kernel.language = "glsl" kernel.category = "filter" kernel.name = "contrast" kernel.vertexData = { { name = "contrast", default = 1, min = 0, max = 4, index = 0, -- v_UserData.x }, } kernel.fragment = [[ P_COLOR vec4 FragmentKernel( P_UV vec2 texCoord ) { P_COLOR float contrast = ...
local TestCase = {} function TestCase.run(...) print 'VersionInfo test:' print 'Test get_versioninfo(verbose=false):' local brief_verinfo = llbc.get_versioninfo() print(brief_verinfo) print 'Test get_versioninfo(verbose=true):' verbose_verinfo = llbc.get_versioninfo(true) print(v...
return {'sms','smsen','smsje','smsjes','smst','smste','smsten'}
local UA_Locale= { ["Names"] = { [1] = "Unknown Wood I", [2] = "Unknown Wood II", [3] = "Unknown Wood III", [4] = "Unknown Wood IV", [5] = "Unknown Wood V", [6] = "Unknown Wood VI", [7] = "Unknown Wood VII", [8] = "Unknown Wood VIII", [9] = "Unknown Wood IX", [10] = "Unknown Wood X", [11] = "Unk...
local _C = require("constants") local action = require "core/action" winWidth, winHeight = love.graphics.getDimensions() local speedFaktor = 150 local speedFaktorUD = 75 local quard = 16 local player = { posX = 0, posY = 0, width=quard*3, height=quard*6, actions = { walking = nil, grabbing=nil ...
camera = {} camera.x = 0 camera.y = 0 camera.sx = 1 camera.sy = 1 camera.rotation = 0 function camera:set() love.graphics.push() love.graphics.rotate(-self.rotation) love.graphics.scale(1 / self.sx, 1 / self.sy) love.graphics.translate(-self.x, -self.y) end function camera:unset() love.graphics.pop() end f...
--[[ MC-DOS BIOS This BIOS is just a copy of the original BIOS, however, the file it searches for is /boot/boot.lua Flash this onto an empty EEPROM ~Piorjade ]]-- local component_invoke = component.invoke function boot_invoke(address, method, ...) local result = table.pack(pcall(component_invoke, addr...
-- SMOKE & MIRRORS -- -- -- by raja(TheResidentAlien) engine.name = 'Smoke'; g = grid.connect(); rw=g.device.rows; cl=g.device.cols; buttz=0; numb=0; clk=0 --grid mirrorz = {}; for i=1,6 do mirrorz[i]=include 'lib/mirror' end --'mirror'= softcut-based looper module scr = include 'lib/scrn'; prm = include 'lib/prm...
local TestCase = require "wLuaUnit.TestCase" local TestColorFactory = TestCase:extend() TestColorFactory.testClassPath = "ColorFactory" TestColorFactory.dependencyPaths = { { id = "ColorCodeFinder", path = "ColorCodeFinder", ["type"] = "table" }, { id = "Color", path = "Color" } -- Default type is "object" } ...
-------------------------------------------------------------------------------- -- Easy Finite State Machine. -- -- @author Makoto -- @release V3.0.0 -------------------------------------------------------------------------------- -- import local class = require "flower.class" local Logger = require "flower.Logger" l...
local Grid = Base:extend() function Grid:constructor (table) if table then self.table = table else self.table = {} self:generate() end end function Grid:clone () local nt = {} for _, t in ipairs(self.table) do nt[#nt+1] = {unpack(t)} end return Grid(nt) end function Grid:swap (x1, y1, x2, y2)...
local stormStringHash = (require 'ffi.storm').string_hash return function (str) return ('0x%08X'):format(stormStringHash(str)) end
package.path = package.path..";../?.lua" local ffi = require "ffi" local bit = require "bit" local band = bit.band local lshift = bit.lshift local Keyboard = require "Keyboard" local EventLoop = require "EventLoop" test_bit = function(yalv, abs_b) return (band(ffi.cast("const uint8_t *",abs_b)[yalv/8], lshift(1, y...
function onStepIn(creature, item, position, fromPosition) if not creature:isPlayer() then return false end if creature:getStorageValue(item.actionid) == -1 then creature:sendTextMessage(MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.") creature:teleportTo(fromPosition, true) ret...
local str = {} -- Cannot include null byte. local UTF8_char = "[\1-\127\194-\244][\128-\191]*" --[[ ulen Counts UTF-8 characters. Faster than mw.ustring.len. Assumes that the encoding is correct. Unlike mw.ustring.len, does not return nil if encoding is invalid. Does not count the bytes 192, 193, and 245-255. They...
function replaceModel() txd = engineLoadTXD("susa_data/wheels/J2_wheels.txd", 1082 ) engineImportTXD(txd, 1082) dff = engineLoadDFF("susa_data/wheels/wheel_gn1.dff", 1082 ) engineReplaceModel(dff, 1082) dff = engineLoadDFF("susa_data/wheels/wheel_gn2.dff", 1085 ) engineReplaceModel(dff, 1085) ...
local newline_chars = { ['\x0d'] = true, ['\x0a'] = true, } return function(s) assert_string(s) local finish_pos = #s while newline_chars[s:sub(finish_pos, finish_pos)] do finish_pos = finish_pos - 1 end local result = s:sub(1, finish_pos) return result end
local table = require 'ext.table' local class = require 'ext.class' local PingPong = require 'gl.pingpong' local FBO = require 'gl.fbo' local Tex3D = require 'gl.tex3d' -- almost identical to PingPong -- TODO organize better with the above class local PingPong3D = class(PingPong) function PingPong3D:init(args) se...
--[[ Rocket System III: MainModule Authors: Sublivion Created: April 12 2019 https://github.com/Sublivion/Rocket-System-III --]] --[[ MIT License Copyright (c) 2019 Anthony O"Brien (Sublivion) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docum...
--------------------- -- Gruvbox theme -- --------------------- local theme_dir = require("gears.filesystem").get_configuration_dir() .. "themes/default/" local dpi = require("beautiful.xresources").apply_dpi local global = require("global") -- {{{ Main local theme = {} theme.wallpaper = "~/Pictures/Wallpapers/Lon...
local csrf = require 'csrf' local resty_cookie = require 'resty.cookie' local cookie = resty_cookie:new() local csrf_token = csrf.generate_token() local is_secure = ngx.var.http_forwarded_proto == 'https' local ok, err = cookie:set({ key = "XSRF-TOKEN", value = csrf_token, path = "/", secure = is_sec...
-- This file is licensed under the terms expressed in the LICENSE file. local ADDON_NAME = ...; local LibRPMedia = LibStub and LibStub:GetLibrary("LibRPMedia-1.0", true); if not LibRPMedia then return; end -- Upvalues. local ceil = math.ceil; local floor = math.floor; local strformat = string.format; local strgsu...
--[[ addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 0, 250, 319, tocolor(255, 255, 255, 255), true) dxDrawImage(5, 39, 240, 70, ":ilife/res/images/Radio.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(5, 112, 240, 70, ":ilife/res/images/Radio.png", 0, 0, ...
--- -- Dump tool -- Copyright (C) 2013 Zhiqiang Lan (Lindowx) -- @module resty.dump module(..., package.seeall) _VERSION = '0.2.0' html = false local header_sent = false local function test_html() if html and not header_sent then ngx.header["Content-Type"] = "text/html;charset=utf-8" local style...
local opt = vim.o -- Security opt.modelines = 0 -- Title opt.title = true opt.titlestring = "%f%( [%M]%)" -- Mouse opt.mouse = "a" -- Splits opt.splitbelow = true opt.splitright = true -- Visual settings opt.number = true opt.relativenumber = true opt.signcolumn = "yes" -- Whitespace settings opt.wrap = false opt...
if IsAddOnLoaded('GarrisonMissionManager') then return; end --bf@178.com local addon_name, addon_env = ... -- [AUTOLOCAL START] local After = C_Timer.After local C_Garrison = C_Garrison local ChatEdit_ActivateChat = ChatEdit_ActivateChat local CreateFrame = CreateFrame local FONT_COLOR_CODE_CLOSE = FONT_C...
-- luacheck: no global if ... == nil then return dofile './test.lua' end --! array resolve(1,2,3):each(print) --[[OUTPUT 1,2,3 --]] for v in array { 1,2,3 } do print(v) end --[[OUTPUT 1 2 3 --]] for i, v in iter(iter(iter { 1,2,3 })) do print(i, v) end --[[OUTPUT 1,1 2,2 3,3 --]] for v in array{} do print(i, v) e...
-- > WRK_EVENT="path/to/event.json" wrk --threads 10 --connections 50 --duration 30s --script tests/wrk/event.lua http://127.0.0.1:3021/symbolicate function read_file(path) local file, errorMessage = io.open(path, "rb") if not file then error("Could not read the file:" .. errorMessage .. "\n") end local...
local matrix = require "matrix" local complex = require "complex" local symbol = matrix.symbol local mtx, m1,m2,m3,m4,m5, ms,ms1,ms2,ms3,ms4 -- test matrix:new/matrix call function -- normal matrix mtx = matrix {{1,2},{3,4}} assert( tostring(mtx) == "1\t2\n3\t4" ) -- vector mtx = matrix {1,2,3} assert( tostring(mtx) ...
function meta:SendHint() return end
local tbTable = GameMain:GetMod("_ModifierScript") local tbModifier = tbTable:GetModifier("ZT_KKRY") function tbModifier:Enter(modifier, npc) end function tbModifier:Step(modifier, npc, dt) end function tbModifier:UpdateStack(modifier, npc, add) end function tbModifier:Leave(modifier, npc) end function tbMo...
-- Lua 5.1 forward-compatibility layer. -- For background see https://github.com/neovim/neovim/pull/9280 -- -- Reference the lua-compat-5.2 project for hints: -- https://github.com/keplerproject/lua-compat-5.2/blob/c164c8f339b95451b572d6b4b4d11e944dc7169d/compat52/mstrict.lua -- https://github.com/keplerproject/l...
addCommandHandler ( 'getpos', function ( _, round ) if not round then round = 'yes' end local x, y, z = getElementPosition ( localPlayer ) local pos = nil if ( round == 'yes' ) then pos = table.concat ( { math.round ( x, 2 ), math.round ( y, 2 ), math.round ( z, 2 ) }, ", " ); else pos = table.concat ( { x, y,...
HooksModule = HooksModule or class(ModuleBase) HooksModule.type_name = "Hooks" local PRE = "pre" local POST = "post" function HooksModule:Load(config, prev_dir) config = config or self._config local dir = self:GetPath(config.directory, prev_dir) config.pre = NotNil(config.pre, config.type == PRE) for _, h...
local aes = require "resty.aes" local config = require "api-umbrella.proxy.models.file_config" local mongo = require "api-umbrella.utils.mongo" local path = require "pl.path" local resty_random = require "resty.random" local str = require "resty.string" local _M = {} local ENCRYPTION_SECRET = "" local function create...
--[[ attribs.shiftmulti = 5.0 attribs.movemulti = 2.5 attribs.rotmulti = 1/16.0 attribs.invert = false attribs.mousesense = 1.0 attribs.mousewheel = 1.0 attribs.fix = true attribs.keys = { forward,backward,left,right,up,down,fast } -- internal attribs.mdelta attribs.guilock attribs.fixpos = {x,y} attribs.last = {...
local plain = SILE.require("classes/plain"); local diglot = std.tree.clone(plain); SILE.require("packages/counters"); SILE.scratch.counters.folio = { value = 1, display = "arabic" }; SILE.scratch.diglot = {} diglot:declareFrame("a", {left = "8.3%", right = "48%", top = "11.6%", bottom =...
-- this file define the matrix dimentions and will be altered by the run_love.sh script return { lines = 3, collums = 3 }
--[[ OpenComputers Удалённое управление роботом by serafim http://pastebin.com/MY7qcets с защитой от угона при помощи авторизации программа для планшета или пк ! требования: планшет первого уровня, карта wi-fi Edited into english and added piston support -Gladox114 ]]-- local comp = require("component") lo...
print("rdm_commands.lua") concommand.Add( "rdm_tableprint", function () PrintTable(RDMTables) end ) concommand.Add( "rdm_tablereload", function() tableLoad() end ) concommand.Add( "rdm_tablesave", function() tableSave() end ) concommand.Add( "rdm_tabledefault", function() tableDefault() end ) c...
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmmb3_02_svg() local obj = GUI.fromHandle(_obj_newObject...
local mth = math local m_log10 = mth.log10 local m_rand = mth.Rand local rnd = render local SetMat = rnd.SetMaterial local DrawBeam = rnd.DrawBeam local DrawSprite = rnd.DrawSprite local cam = cam local lasermat = Material("arccw/laser") local flaremat = Material("effects/whiteflare")...
Locales['en'] = { -- cloakroom ['cloakroom_menu'] = 'Съблекалня', ['cloakroom_prompt'] = 'Натиснете ~INPUT_CONTEXT~ за достъп до ~y~съблекалнята~s~.', ['wear_citizen'] = 'Цивилни дрехи', ['wear_work'] = 'Работно облекло', -- garage ['spawner_prompt'] = 'Натиснете ~INPUT_CONTEXT~ to access the ~y~Garage~s...
local w = display.contentWidth for i=0,w do display.newCircle(i, 400+100*math.sin(math.rad(i)), 2) end math.randomseed(1) for i=1,10 do print(math.random()) end
--[[Author: Pizzalol, chrislotix Date: 12.02.2015. Modifies the health to simulate pure damage until it becomes lethal at which point we deal the actual pure damage]] function NightmareDamage( keys ) local caster = keys.caster local ability = keys.ability local target = keys.target local target_health = target:...
require 'torch' require 'nn' require 'nngraph' -- local imports local utils = require 'misc.utils' require 'misc.DataLoader' require 'misc.AutoEncoder_text_nostart' require 'misc.optim_updates' local net_utils = require 'misc.net_utils' require 'cutorch' require 'cunn' require 'hdf5' cmd = torch.CmdLine() cmd:text() c...
--[=[ TODO CARDS + Add all gesture actions DECKS + Add all gesture actions ]=]--
-- -*- coding: utf-8 -*- ------------------------------------------------------------------------ -- Copyright © 2011-2015, RedJack, LLC. -- All rights reserved. -- -- Please see the COPYING file in this distribution for license details. ------------------------------------------------------------------------ -- A Lua...
slot0 = class("HoloLivePtPage", import(".TemplatePage.PtTemplatePage")) slot0.OnInit = function (slot0) slot0.super.OnInit(slot0) slot0.charImg = slot0:findTF("charImg", slot0.bg) slot0.numImg = slot0:findTF("numImg", slot0.bg) slot0.chapterImg = slot0:findTF("chapterImg", slot0.bg) slot0.spineCharContainer = sl...
local docs = tup.glob("*.md") tup.foreach_rule( docs, "^ Creating HTML Documentation From %f^ pandoc -s --self-contained -f markdown -t html5 -o '%o' '%f'", { "html/%B.html" } )
local ReplicatedStorage = game:GetService("ReplicatedStorage") local DayTimer = require(ReplicatedStorage.Components.DayTimer) local Roact = require(ReplicatedStorage.Vendor.Roact) local function TextLabel(props) return Roact.createElement("TextLabel", { BackgroundTransparency = 1, LayoutOrder = props.LayoutOrder...
local ast = require "pallene.ast" local ir = require "pallene.ir" local types = require "pallene.types" local util = require "pallene.util" local to_ir = {} local ToIR -- forward declaration function to_ir.convert(module) for _, func in ipairs(module.functions) do local cmds = {} ToIR.new(module,...
-------------------------------------------------------------------------------- -- luasql_common.lua, v0.5.2: DB module for connecting and querying through LuaSQL -- This file is a part of Sailor project -- Copyright (c) 2014 Etiene Dalcol <dalcol@etiene.net> -- License: MIT -- http://sailorproject.org ---------------...
___[[-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-/-..-/-.-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-.-/-.-/-.-/ -.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-/-.-.-/-.-/-.-/-.-/-.-.-/-.-/--.-/--.-/--.-/--.-/-.--/-..-.-/-.-.-/ -.-/-.-/--.--/-.-.-/-.-/--.--/-.-/-.-/-.-/-.-/-.-/-.-/-.-/--.--/--.--/-.-/-.-/-.-/--.--/-.-.-/-.-/ -.-/--.--/--.-/--.-/...
sptbl["pluck"] = { files = { module = "pluck.c", header = "pluck.h", example = "ex_pluck.c", }, func = { create = "sp_pluck_create", destroy = "sp_pluck_destroy", init = "sp_pluck_init", compute = "sp_pluck_compute", }, params = { ...
----------------------------------- -- -- Zone: Northern_San_dOria (231) -- ----------------------------------- local ID = require("scripts/zones/Northern_San_dOria/IDs") require("scripts/globals/events/harvest_festivals") require("scripts/globals/conquest") require("scripts/globals/missions") require("scripts/globals/...
function concatenate(a1, a2) a = {} i = 1 for k, v in pairs(a1) do a[i] = v i = i + 1 end for k, v in pairs(a2) do a[i] = v i = i + 1 end return a end a1 = { "foo", "bar" } a2 = { "baz", "qux" } a = concatenate(a1, a2) for k, v in pairs(a) do print(v) end
local IInput = require("api.gui.IInput") local IConfigMenu = require("api.gui.menu.config.IConfigMenu") local InputHandler = require("api.gui.InputHandler") local UiTheme = require("api.gui.UiTheme") local Ui = require("api.Ui") local Draw = require("api.Draw") local UiWindow = require("api.gui.UiWindow") local ConfigM...
local Fireball = {} function Fireball:onCollision(phase, fixa, fixb, arbiter) if not self.enabled then return end if fixb.class == "Terrain" then if phase == MOAIBox2DArbiter.BEGIN then self:die() end end if fixb.class == "Obstacle" then if phase == MOAIBox2DArbiter.BEGIN then self:d...
-- ----------------------------------------------------------------------------- -- WhileLoop -- ----------------------------------------------------------------------------- local WhileLoop = { ruleName = 'WhileLoop' } -- ----------------------------------------------------------------------------- -- Parse -- -----...
local skynet = require "skynet" local test = require "xunit" local snax = require "skynet.snax" require "skynet.manager" local max_client = 64 local function start_watchdog() local watchdog = skynet.newservice("watchdog") skynet.call(watchdog, "lua", "start", { port = 8888, maxclient = max_cli...
test_run = require('test_run').new() vshard = require('vshard') fiber = require('fiber') calc_metrics = vshard.storage.internal.rebalancer_calculate_metrics build_routes = vshard.storage.internal.rebalancer_build_routes calc_etalon = require('vshard.replicaset').calculate_etalon_balance dispenser = vshard.storage.inter...
return { CALL = 1, REPLY = 2, EXCEPTION = 3, ONEWAY = 4 }
local Promise = require(script.Parent.Promise) local Timer = {} Timer.__index = Timer function Timer.new(Function) return setmetatable({ Function = Function; Active = false; }, Timer) end function Timer:Start(Time: number) self.Active = true self.Time = Time Promise.try(function() while self.Active do ...
-- @Date : 2016-03-08 17:21:23 -- @Author : MiaoLian (mlian@ulucu.com) -- @Version : 1.0 -- @Description : local test = {} function test.routerStartup(self) end function test.routerShutdown(self) local uri = self.request.uri local args = self.request:getParams() local res = { code = 1, ...
ITEM.Name = 'GMOD logo' ITEM.Price = 100 ITEM.Model = 'models/maxofs2d/logo_gmod_b.mdl' ITEM.Bone = 'ValveBiped.Bip01_Pelvis' function ITEM:OnEquip(ply, modifications) ply:PS_AddClientsideModel(self.ID) end function ITEM:OnHolster(ply) ply:PS_RemoveClientsideModel(self.ID) end function ITEM:ModifyClie...
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") util.AddNetworkString("TrackController") local function ShowWindowOnCL(ply,ent) net.Start("TrackController") net.WriteEntity(ent) net.Send(ply) end function ENT:Initialize() self:SetModel("models/metrostroi/signals/clock_time.mdl") end f...
local lpeg = require "lpeg" local util = require "digestif.util" local Manuscript = require "digestif.Manuscript" local Parser = require "digestif.Parser" local bibtex = require "digestif.bibtex" local path_join, path_split = util.path_join, util.path_split local nested_get, nested_put = util.nested_get, util.nested_p...
local packer = require("packer") packer.startup({ function(use) -- Packer 可以管理自己本身 use 'wbthomason/packer.nvim' -- 你的插件 列表 --------------------- colorschemes -------------------- -- tokyonight use("folke/tokyonight.nvim") ------------------------------------------------------- -- nvim-...
local lib = {} --includes local os = require("os") local event = require("event") local serialization = require("serialization") local io = require("io") local log = require("liblog") local drone = require("libdrone") --const local FRAGMENTPATH = "/usr/srv/baas/fragments/" --static local Running = false --[[ {...