content stringlengths 5 1.05M |
|---|
vim.opt_local.isfname:append('@-@')
|
local Promise = require(script.Parent.Parent.Parent.Promise)
local SinglePromiseEvent = {}
SinglePromiseEvent.__index = SinglePromiseEvent
function SinglePromiseEvent.new(executor)
local self = setmetatable({
_listener = nil,
}, SinglePromiseEvent)
local function fire()
if self._listener then
coroutine.wra... |
-- Phoenix Project © 2016
SWEP.VElements = {
["mag"] = { type = "Model", model = "models/arxweapon/ventil_magazin.mdl", bone = "a_mag", rel = "", pos = Vector(-2.597, 2, 4), angle = Angle(0, 0, -94.676), size = Vector(1.1, 1.404, 1.1), color = Color(255, 255, 255, 255), surpresslightning = false, material = "", skin... |
TTS.Admin.commands.Register( 'gag' )
:SetDescription('Gag')
:SetRequiredAttrs({ 'player', 'length', 'idrule' })
:SetOptionalAttrs({ 'reason' })
:SetLogType('gag', ':user_id-0 выдал гаг :user_id-1 на :length :idrule (:reason)')
:SetPermissions({ 'ap-locks', 'gag' })
:SetSingleTarget( true )
:SetDeclinatio({
{
'... |
local LoadingView = {}
function LoadingView:Start()
local ref = self.gameObject:GetComponent(typeof(CS.SGK.UIReference));
self.progressBar = ref:Get("progress", typeof(CS.UnityEngine.UI.Slider));
self.messageLabel = ref:Get("message", typeof(CS.UnityEngine.UI.Text));
self.loading = ref:Get("LoadingView");
self.Dlg... |
-----------------------------------
-- Area: Riverne - Site A01
-- Mob: Carmine Dobsonfly
-----------------------------------
local ID = require("scripts/zones/Riverne-Site_A01/IDs");
require("scripts/globals/status");
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(tpz.mobMod.SUPERLINK... |
return Def.ActorFrame {
CurrentSongChangedMessageCommand=function(self)
local song = GAMESTATE:GetCurrentSong();
if song then
-- self:setaux(0);
self:playcommand("TweenOn");
elseif not song and self:GetZoomX() == 1 then
-- self:setaux(1);
self:playcommand("TweenOff");
end;
end;
-- Def... |
object_draft_schematic_armor_component_armor_core_assault_basic = object_draft_schematic_armor_component_shared_armor_core_assault_basic:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_armor_component_armor_core_assault_basic, "object/draft_schematic/armor/component/armor_core_assault_basic.iff")
|
--[[
Launchcontrol Extension for VLC
Copyright 2017 Funjack
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... |
return {
{title = "Flower Image", scene = "samples/flower_image_sample"},
{title = "Flower SheetImage", scene = "samples/flower_sheetimage_sample", openAnime = "crossFade", closeAnime = "crossFade"},
{title = "Flower MovieClip", scene = "samples/flower_movieclip_sample", openAnime = "popIn", closeAnime = "p... |
tilemap=require('tilemap')
require('maptool')
require('camera')
--地图在屏幕上显示的左上角x,y坐标
tilemap._X,tilemap._Y=-80,-180
tilemap._rot=0
tilemap._sx=1
tilemap._sy=1
quadtable={}
player={}
player.X=400
player.Y=300
player.rot=0
player.sx=1
player.sy=1
speed=300
function love.load()
image=love.graphics.newImage("assets/" .. t... |
----------------------------------------------------------------------------
--- A notification square icon.
--
-- This widget is a specialized `wibox.widget.imagebox` with the following extra
-- features:
--
-- * Honor the `beautiful` notification variables.
-- * Restrict the size avoid huge notifications
-- * Provide... |
local _M = {}
local show_n_lines = 5
local function get_source(info)
local defined_in_file = 1 == info.source:find '@'
if not defined_in_file then return '\n' end
local from_no = info.currentline - show_n_lines
local to_no = info.currentline + show_n_lines
local number_len = #tostring(to_no)
loca... |
local t = Def.ActorFrame{
GridSelectedMessageCommand=function(self)
self:stoptweening()
SOUND:StopMusic()
self:sleep(0.4)
self:queuecommand("PlayMusic")
end,
PlayMusicCommand=function(self)
local song = GAMESTATE:GetCurrentSong()
if song then
SOUN... |
local cjson = require('cjson').new()
local cqueues = require 'cqueues'
local tcheck = require 'tcheck'
local xerror = require 'tulip.xerror'
cjson.encode_escape_forward_slash(false)
local function stdout_logger(t)
io.write(cjson.encode(t) .. '\n')
end
local function make_file_logger(path)
local fd = xerror.must(... |
local jsonutil = require 'stuart.util.json'
--[[
Helper methods for loading models from files.
--]]
local M = {}
-- Returns URI for path/data using the Hadoop filesystem
function M.dataPath(path)
return path .. '/data'
end
--[[
* Load metadata from the given path.
* @return (class name, version, metadata)
--... |
--[[
Countdown State
Author: Colton Ogden
cogden@cs50.harvard.edu
Counts down visually on the screen (3,2,1) so that the player knows the
game is about to begin. Transitions to the PlayState as soon as the
countdown is complete.
]]
CountdownState = Class{__includes = BaseState}
-- takes 1 sec... |
object_tangible_collection_rock_glowing_08 = object_tangible_collection_shared_rock_glowing_08:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rock_glowing_08, "object/tangible/collection/rock_glowing_08.iff") |
object_tangible_collection_col_dust_durni_09 = object_tangible_collection_shared_col_dust_durni_09:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_col_dust_durni_09, "object/tangible/collection/col_dust_durni_09.iff") |
data:extend(
{
{
type = "item",
name = "substation-mk2",
icon_size = 32,
icon = "__FactorioExtended-Power__/graphics/icons/substation-mk2.png",
flags = {"goes-to-quickbar"},
subgroup = "fb-energy-transfer",
order = "a[substation-mk2]-e",
place_result = "substation-mk2",
stack_size = 50
},
{
type = "i... |
local timer_seconds = THEME:GetMetric(Var "LoadingScreen","TimerSeconds");
return Def.ActorFrame {
InitCommand=function(self) self:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y) end,
-- Fade
Def.Quad {
InitCommand=function(self) self:scaletoclipped(SCREEN_WIDTH,SCREEN_HEIGHT) end;
OnCommand=function(self)
self:diffuse... |
-- $Id$
--
-- All rights reserved. Part of the ALua project.
-- Detailed information regarding ALua's license can be found
-- in the LICENSE file.
--
module("alua.task", package.seeall)
require("alua.channel")
-- Mailbox for scheduled messages (created below)
local tasks
local function dispatch()
local tmp = {}... |
ngx.header['Access-Control-Allow-Origin'] = '*'
ngx.header['Access-Control-Allow-Methods'] = 'GET, POST, OPTIONS'
ngx.header['Access-Control-Allow-Headers'] = 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'
ngx.header['Access-Control-Expose-Headers'] = 'Content-Length,Content-Rang... |
--
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Dataloader f... |
variant = variant or 'debug';
local cc = require 'forge.cc' {
identifier = 'cc_${platform}_${architecture}';
platform = operating_system();
bin = root( ('%s/bin'):format(variant) );
lib = root( ('%s/lib'):format(variant) );
obj = root( ('%s/obj'):format(variant) );
include_directories = {
... |
function doMove()
-- Left movement
if love.keyboard.isDown('left') then
x = x - speed
if enableWindowMove == true then
winX = winX - speed
end
if enableAccel == true then
speed = speed + accelAmount
end
end
-- Right movement
if love.keyboard.isDown('right') then
x = x + speed
if enableWi... |
local song_prop_funcs= {
prof_favor_inc= function(pn)
change_favor(pn_to_profile_slot(pn), gamestate_get_curr_song(), 1)
end,
prof_favor_dec= function(pn)
change_favor(pn_to_profile_slot(pn), gamestate_get_curr_song(), -1)
end,
mach_favor_inc= function(pn)
change_favor("ProfileSlot_Machine", gamestate_get_cu... |
local betonMarker = 0
local betonCreatedMarkers = {}
local betonRota = {
{ 2288.396484375, -2071.4833984375, 13.385972976685 , false },--1
{ 2205.9013671875, -2154.52734375, 13.3828125 , false },--1
{ 2092.5908203125, -2107.5712890625, 13.32084941864 , false },--1
{ 1971.5078125, -2107.2705078125, 13.3828125 , fals... |
DefineClass.Factory = {
__parents = { "ResourceProducer", "ElectricityConsumer", "Workplace",},
}
DefineClass.ElectronicsFactory = {
__parents = { "Factory" },
resource_produced1 = "Electronics",
}
function ElectronicsFactory.OnCalcProduction_Electronics(producer, amount_to_produce)
return MulDivRound(producer.pa... |
--[[
DualPriority
A dual-threaded priority call queue for Lua.
Usage:
Once the API has been required, setup the number of queues needed (queues can be added during runtime)
Adding queues is as easy as typing "queue.add(priority)". The priority is the level of priority to use (lower is more prioritized)
To... |
--
-- Copyright 2021 Andreas MATTHIAS
--
-- This work may be distributed and/or modified under the
-- conditions of the LaTeX Project Public License, either version 1.3c
-- of this license or (at your option) any later version.
-- The latest version of this license is in
-- http://www.latex-project.org/lppl.txt
-- an... |
--# assume global class CUSTOM_LORDS_MODEL
--# assume global class CUSTOM_LORDS_ATTRIBUTE_PANEL
--# assume global class CUSTOM_LORDS_TRAIT_FRAME
--# assume global class CUSTOM_LORDS_ART_PANEL
--# assume global class CUSTOM_LORDS_OPTIONS_FRAME
--# type global CUSTOM_LORDS_EVENT =
--# "LORD_TYPES_CHANGE" | "SELECTED_LO... |
ACF.RegisterWeaponClass("GL", {
Name = "Grenade Launcher",
Description = "Small and light, grenade launchers allow you to fire huge amounts of explosives into an area at the cost of poor accuracy and small magazine size.",
Sound = "acf_base/weapons/grenadelauncher.mp3",
Model = "models/launcher/4... |
--[[
this file is going to be for mining out entire tunnels/mineshafts, in 64*64/4*L/R format
]]--
--[[
2 large chests are behind the starting position of the turtle.
--]]
--[[
==TODO=={
* torch and fuel source definition
}
]]--
--</headers>
function autodetect
sides = {"front","back","left","right","top","bottom"}... |
local mod = DBM:NewMod(1836, "DBM-Party-Legion", 11, 860)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17077 $"):sub(12, -3))
mod:SetCreatureID(114462)
mod:SetEncounterID(1964)
mod:SetZone()
--mod:SetUsedIcons(1)
--mod:SetHotfixNoticeRev(14922)
--mod.respawnTime = 30
mod.noNormal = tru... |
package.path = package.path .. ";lualinqmutable.lua"
package.path = package.path .. ";lualinq.lua"
local lualinqmutable = require ("lualinqmutable")
local lualinq = require ("lualinq")
local array = {}
local dictionary = {
a = {
{ name="john", surname="snow" },
{ name="elizabeth", surname="taylor" },
},
... |
local swayboi = false
local camerabeat = false
function update (elapsed)
local currentBeat = (songPos / 1000)*(bpm/60)
if lockzoom then
setCamZoom(1)
end
if swayboi then
for i=0,7 do
setActorX(_G['defaultStrum'..i..'X'] + 8 * math.sin((currentBeat + i*0.25) * math.pi), i)
setActorY(_G['defaultStrum'..i..... |
require("advancedLua")
local component = require("component")
local computer = require("computer")
local image = require("image")
local buffer = require("doubleBuffering")
local GUI = require("GUI")
local fs = require("filesystem")
local unicode = require("unicode")
local MineOSPaths = require("MineOSPaths")
local Min... |
-- MIT License
--
-- Copyright (c) 2020 moo-sama
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, m... |
--[[!
\file
\brief Este es un módulo que da soporta a la orientación a objetos en lua.
(polimorfismo y herencia).
Ejemplos.
\code
-- Crear una clase foo y una instancia de esta.
foo = class();
local newInstance = foo();
\endcode
\code
-- Lo mismo que el anterior ejemplo pero indicando un inicializador d... |
local M = {}
function M.setup()
-- Duh.
vim.cmd[[colorscheme tokyonight]]
end
return M
|
local core = require 'core.completion'
local files = require 'files'
local catch = require 'catch'
EXISTS = {'EXISTS'}
local function eq(a, b)
if a == EXISTS and b ~= nil then
return true
end
local tp1, tp2 = type(a), type(b)
if tp1 ~= tp2 then
return false
end
if tp1 == 't... |
local task = redis.call('LPOP', KEYS[1])
if not task then
return nil
end
local task_key = string.format("%s:active:%s:%s:%s", ARGV[1], ARGV[2], ARGV[3], task)
redis.pcall('SADD', KEYS[2], task_key)
redis.pcall('SET',
task_key,
task,
"EX", ARGV[4])
return task
|
-------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file data_storage.lua
--! @brief gener... |
---------------------------------------------------
-- Lunar Cry
-- Fenrir gives accuracy and evasion down status effects to target.
---------------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/global... |
--------------------------------
-- @module Layer
-- @extend Node
-- @parent_module cc
--------------------------------
-- @function [parent=#Layer] create
-- @param self
-- @return Layer#Layer ret (return value: cc.Layer)
--------------------------------
-- @function [parent=#Layer] getDescription
-- @par... |
-- Treesitter
-- An advanced, incremental alternative to syntax parsing for programming
-- languages.
require "nvim-treesitter.configs".setup {
ensure_installed = "maintained", -- one of "all", "maintained" (parsers with maintainers), or a list of languages
-- ignore_install = {"javascript"}, -- List of parsers to... |
minetest.register_chatcommand("protection_memoize_clear", {
description = "Clears the protection cache",
privs = { server = true },
func = function()
protection_memoize.invalidate_all()
return true, "Invalidated protection cache"
end
})
minetest.register_chatcommand("protection_memoize_enable", {
d... |
music = "shyzu.ogg"
function start()
out = Portal:new{x=2, y=6}
female = Object:new{x=2, y=3, anim_set="shyzu_female", person=true, direction=DIRECTION_SOUTH}
end
function stop()
end
function update(step)
if (out:update()) then
change_areas("shyzu", 8, 16, DIRECTION_SOUTH)
end
end
function activate(activator,... |
--
-- DICOM Web Viewer (DWV) lua script for integration in a Conquest PACS server.
--
-- Usage:
-- 1. copy this file onto your web server
-- 2. in the 'dicom.ini' of your web server, create the dwv viewer:
-- >> [dwv-simple]
-- >> source = dwv-mobile.lua
-- And set it as the default viewer:
-- >> [webdefaults]
-- >> ..... |
-- Don't show any numbers inside terminals
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]]
-- File extension specific tabbing
vim.cmd [[ autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 ]] |
-- lua script that can be added to an object in Tabletop Simulator to load spirits generated with this tool.
function onLoad() LoadData() end
local data = nil
local json_url = nil
function LoadData() startLuaCoroutine(self, "LoadDataCo") end
function LoadDataCo()
if (json_url == nil) then
local table = se... |
#!/usr/local/bin/lua
print("Hello World!") |
local name, _FishMaster = ...;
_FishMaster.settings.audio = {
name = function()
return "Sound";
end,
type = "group",
order = 1,
args = {
override = {
name = "Override audio",
type = "toggle",
order = 1,
set = function(info, val)
... |
local smelting_interval = 1
local smelting_chance = 1
local forming_interval = 1
local forming_chance = 1
minetest.register_alias("smelting_slag", "ks_terrain:dolomite_gravel")
-- register smelting abms for bauxite
minetest.register_abm({
neighbors = {"group:smelter"},
nodenames = {"ks_terrain:dolomite_with_bauxit... |
-- This is a server sided input library for void.
-- This library assists with input issues on void.
local RunService = game:GetService("RunService")
assert(RunService:IsServer(), "Please run binder on the server. No reason to use it on the client!")
local api = {}
api.__index = api
type AmongUsInputReader = {
conta... |
if GameHelpers.Combat == nil then
GameHelpers.Combat = {}
end
---@alias GameHelpersCombatGetCharactersFilter string|'"None"'|'"Player"'|'"Ally"'|'"Enemy"'|'"Neutral"'
---@alias GameHelpersCombatGetCharactersFilterCallback fun(character:EsvCharacter, combatId:integer, teamId:integer, initiative:integer, stillInCombat:... |
--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.
... |
AddEvent("OnPlayerSkydiveCrash", function()
CallRemoteEvent("parachute:disable")
end) |
local Vector = require("src/helper/Vector")
local
Asteroid, Body, Color, DrawableCircle, Drawable, JustSpawned, Particle, SpawnMe = Component.load(
{"Asteroid", "Body", "Color", "DrawableCircle", "Drawable", "JustSpawned", "Particle", "SpawnMe"}
)
local AsteroidSpawnSystem = class("AsteroidSpawnSystem", System... |
function getPlayerDiamound(player)
local diamantes = 0
local count = getElementData(player, "VDBG.Diamantes" )
if player and count then
diamantes = count
end
return diamantes or 0
end
function givePlayerDiamound(player,amount)
local login = getElementData ( player, "AccountData:Username")
if login and amount t... |
function getPlayerDiamound(login)
local diamantes = 0
for _, p in pairs ( getElementsByType ( "player" ) ) do
if ( getAccountName ( getPlayerAccount ( p ) ) == login ) then
count = getElementData(p, "VDBG.Diamantes" )
diamantes = count
foundPlayer = true;
break;
end
end
if ( not foundPlayer ) the... |
local dkjson = require "dkjson"
local _M = {}
function _M.new()
return setmetatable({}, { __index = _M })
end
function _M.encode(_, data)
return dkjson.encode(data)
end
function _M.decode(_, string)
local data, _, err = dkjson.decode(string)
return data, err
end
return _M
|
-- coding: utf-8
local Shared = ...
local op = Shared.OpCodes
local Msg, ErrMsg, pack, ExpandEnv = Shared.Msg, Shared.ErrMsg, Shared.pack, Shared.ExpandEnv
local MacroDirs = Shared.MacroDirs
local F = far.Flags
local type = type
local string_find, string_sub = string.find, string.sub
local band, bor = bit.band, bit.b... |
local page = 1
local pages = {
{
header="Credits",
body="darkness #1\nfeatures audio from the film 5 Centimeters per Second\n\ndarkness #3\nfeatures a photograph of Earth that I can no longer track down the source of :(\n\ndarkness #6\nfeatures video from YouTube user maxxlover's channel\n\ndarkness #8\nfeatures v... |
cli_args = {}
local optionless = {
"--help",
"--datadir",
}
local shorts = {
['-h'] = '--help',
['-hh'] = '--helpinfo',
['-k'] = '--keyfile',
['-d'] = '--datafile',
['-D'] = '--datadir',
['-m'] = '--mode',
['-f'] = '--file',
['-l'] = '--length',
['-p'] = '--pattern',
}
local in_table = function(query, tbl... |
return {
tag = 'window',
summary = 'Check if the window is created.',
description = 'Returns whether the desktop window is currently created.',
arguments = {},
returns = {
{
name = 'present',
type = 'boolean',
description = 'Whether a window is created.'
}
},
notes = 'Most of the... |
-- Copyright 2016 Google Inc, NYU.
--
-- 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 agree... |
require('Comment').setup({
---Add a space b/w comment and the line
---@type boolean|fun():boolean
padding = true,
---Whether the cursor should stay at its position
---NOTE: This only affects NORMAL mode mappings and doesn't work with dot-repeat
---@type boolean
sticky = true,
---Lines ... |
local app = app
local Env = require "Env"
local Class = require "Base.Class"
local ChainBase = require "Chain.Base"
local HeaderSection = require "Chain.HeaderSection"
local FooterSection = require "Chain.FooterSection"
local EmptySection = require "Chain.EmptySection"
local Busy = require "Busy"
local ply = ap... |
local util = require("tests.test_util")
describe("treesitter rust", function()
it("parses all symbols correctly", function()
util.test_file_symbols("treesitter", "./tests/treesitter/rust_test.rs", {
{
kind = "Module",
name = "mod_1",
level = 0,
lnum = 1,
col = 0,
... |
local gl = require('galaxyline')
local status_line = {}
local colors = {}
colors.fg = function ()
if vim.g.vscode_style == "dark" then return '#ffffff' else return "#343434" end
end
colors.bg = function ()
if vim.g.vscode_style == "dark" then return '#252526' else return "#f3f3f3" end
end
colors.green = function... |
local api = vim.api
local fn = vim.fn
local cmd = vim.cmd
local sprior
local sgroup
local sname
local Sign = {}
function Sign:new()
local obj = {}
setmetatable(obj, self)
self.__index = self
obj.items = {}
return obj
end
function Sign:place(lnum, bufnr)
bufnr = bufnr or api.nvim_get_current_b... |
gameNpcs.setOrder = function(npcName)
local npc = gameNpcs.characters[npcName]
local image = npc.image
local type = npc.type
local x = npc.x
local y = npc.y
local character = gameNpcs.orders
local order = table.randomKey(recipes)
--TFM.chatMessage('O escolhido é: '..npcName)
character.orderList[npcName] = {ord... |
local function new()
local accelerometer
local joysticks = love.joystick.getJoysticks()
for i, joystick in ipairs(joysticks) do
if joystick:getName() == "Android Accelerometer" then
accelerometer = joystick
end
end
local function get_axis_x()
return accelerometer:getAxis(1)
end
local function ... |
if mods['pyrawores'] and mods['pyhightech'] then
data:extend({
{
type = "technology",
name = "electric-boiler-mk1",
--prerequisites = {"automation"},
icon = "__electric_water_boiler__/graphics/icons/boiler1.png",
icon_size = 64,
effects =
{
{
type = "unlock-recipe",
recipe = "electric-boiler-mk1"
},
},
unit =... |
local select, tostring = select, tostring;
local io_write = io.write;
module "logger"
local function format(format, ...)
local n, maxn = 0, #arg;
return (format:gsub("%%(.)", function (c) if c ~= "%" and n <= maxn then n = n + 1; return tostring(arg[n]); end end));
end
local function format(format, ...)
local n, m... |
LevelLoadingScreenGuiScript.old__init = LevelLoadingScreenGuiScript.old__init or LevelLoadingScreenGuiScript.init
function LevelLoadingScreenGuiScript:init(scene_gui, res, progress, base_layer)
self:old__init(scene_gui, res, progress, base_layer)
local title_text = "ESPERE"--managers.localization:text("debug_loadin... |
--@brief 包含基础文件
local function loadBaseRequire()
require("EngineCore/config");
require("coreex/systemex");
require("coreex/coreex");
require("coreex/drawingex");
require("uiex/uiex")
require("uilibs/richText")
require("common/nativeEvent");
require("hall/gameData/regionConfigDat... |
local M = {}
local function setup_edit()
require("Comment").setup({ mappings = { extra = false } })
require("todo-comments").setup({
keywords = {
FIX = {
icon = " ", -- icon used for the sign, and in search results
color = "error", -- can be a hex color, or a named color (see below)
... |
//________________________________
//
// NS2 Combat Mod
// Made by JimWest and MCMLXXXIV, 2012
//
//________________________________
// combat_GUIUpgradeChamberDisplay.lua
local HotReload = CombatGUIUpgradeChamberDisplay
if(not HotReload) then
CombatGUIUpgradeChamberDisplay = {}
ClassHooker:Mixin("CombatG... |
local cjson = require("cjson")
local cjson_s = require("cjson.safe")
local inspect = require("inspect")
local string = string
local ipairs = ipairs
local pairs = pairs
local type = type
-- BEGIN Nginx test harness
local ngx = {}
function ngx.log(level, message)
print(level .. ": " .. messa... |
---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local sslCo... |
--[[
-- Copyright(c) 2018-2025, All Rights Reserved
-- Created: 2018/12/21
--
-- @file wireless.lua
-- @brief wifi网络接口封装
-- @version 0.1
-- @history 修改历史
-- \n 2018/12/21 0.1 创建文件
-- @warning 没有警告
--]]
local l_sys = require("l_sys")
local util = require("base.util")
local cjson = require("cjson")
local util_ex... |
local utils = require 'utils'
local ms = require 'memscan'
-- Utility functions
local globals = df.global
local global_addr = dfhack.internal.getAddress
local os_type = dfhack.getOSType()
local rdelta = dfhack.internal.getRebaseDelta()
local vbias = 0
if os_type == 'windows' then vbias = -4 end
local l... |
object_mobile_selonian_female_06 = object_mobile_shared_selonian_female_06:new {
}
ObjectTemplates:addTemplate(object_mobile_selonian_female_06, "object/mobile/selonian_female_06.iff")
|
-- 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'
local protobuf = require "protobuf.protobuf"
local registry = require "protobuf.registry"
local google_protobuf_any_pb = require "google.protobuf.any_pb"
local google_protobuf_source_c... |
--[[
Utillity functions for handling command-line parameters.
They each take a list of possible arguments(like lua's arg table),
a name for the argument(without the -- prefix), and a default value.
If the argument is found, a value of the correct type(boolean, string or number),
and the index in the arg table is return... |
-- add target
target("pdcurses")
-- make as a static library
set_kind("static")
-- add includes directory
add_includedirs("pdcurses", {public = true})
-- add the common source files
add_files("pdcurses/pdcurses/*.c", "pdcurses/win32/*.c")
-- add defines
add_defines("PDC_WIDE")
... |
--[[ LICENSE HEADER
MIT Licensing
Copyright © 2017 Jordan Irwin
See: LICENSE.txt
--]]
local worldpath = core.get_worldpath()
local ownedpath = worldpath .. '/owned'
-- Spawns an entity & writes meta data to world directory
local function spawn(entity)
end
|
format_version = "1.0"
rtc_bindings = {
{ source = "/environment/system_sample_rate", dest = "/global_rtc/init_instance" },
{ source = "/environment/instance_id", dest = "/global_rtc/init_instance" },
}
global_rtc = {
init_instance = function(source_property_path, instance_id)
local new_no = jbox.make_na... |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
local Clockwork = Clockwork;
local COMMAND = Clockwork.command:New("PluginLoad");... |
-- robot.lua
local controls = require("controls")
local lcd = require("lcd")
local wpilib = require("wpilib")
local pairs = pairs
module(..., package.seeall)
local TELEOP_LOOP_LAG = 0.005
-- Declarations
local watchdogEnabled = false
local feedWatchdog, enableWatchdog, disableWatchdog
local teleop
local controlM... |
--クラインアント
--Kleinant
--Scripted by Eerie Code
function c45778242.initial_effect(c)
--increase stats
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(c45778242.atkcon)
e1:SetTarget(aux.Ta... |
cc.exports.XGVersionUpdate = {
VersionCode = 2,
} |
module 'character'
CLASS: EventParticle ( CharacterActionEvent )
:MODEL{
Field 'particle': asset( 'particle_system' )
}
CLASS: TrackParticle ( CharacterActionTrack )
:MODEL{}
|
local canvas = {}
canvas.__index = canvas
function canvas.new(name, x, y, width, height)
local self = setmetatable({}, canvas)
self.position = {x, y}
self.target = love.graphics.newCanvas(width, height)
self.name = name
return self
end
function canvas:renderTo(func)
if self.name == "right... |
-- MISCELLANEOUS
-- The update rate, i.e. run every UpdateRate calls to Update method.
-- Set to 1 to update every call.
-- Setting to e.g. 10 means to run every 10th call.
-- Smaller means more responsive, but also means more processor usage.
UpdateRate = 4
|
// ======= Copyright (c) 2003-2012, Unknown Worlds Entertainment, Inc. All rights reserved. =====
//
// lua\EventTester.lua
//
// Created by: Brian Cronin (brianc@unknownworlds.com)
//
// EventTester is a tool to help ensure gameplay events are triggered during play testing.
// Gameplay code is scanned during load... |
term = {}
number1 = 4111 + math.random(5888)
number2 = 2111 + math.random(number1 - 3000)
result = number1 - number2
term[1] = math.random(1000) + 700;
term[2] = math.random(number2 - 2000) + 300;
term[3] = math.random( 1000) + 1500;
term[4] = math.random(number2 - 1000) + 900;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.