content stringlengths 5 1.05M |
|---|
object_draft_schematic_space_capacitor_elite_capacitor = object_draft_schematic_space_capacitor_shared_elite_capacitor:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_capacitor_elite_capacitor, "object/draft_schematic/space/capacitor/elite_capacitor.iff")
|
local self = {}
GLib.Lua.StackTrace = GLib.MakeConstructor (self)
function self:ctor (levelCount, frameOffset, stackCaptureOptions)
levelCount = levelCount or math.huge
frameOffset = frameOffset or 0
frameOffset = 4 + frameOffset
stackCaptureOptions = stackCaptureOptions or GLib.Lua.StackCaptureOptions.None
sel... |
json = require './lua/json'
function sum(incomingData)
dataTable = json.decode(incomingData)
return tostring(tonumber(dataTable[1]) + tonumber(dataTable[2]))
end
function mul(incomingData)
dataTable = json.decode(incomingData)
return tostring(tonumber(dataTable[1]) * tonumber(dataTable[2]))
end |
VariantResearch =
{
vgr_bomberimprovedbombs =
{
VGR_BOMBERIMPROVEDBOMBS_HYP0,
VGR_BOMBERIMPROVEDBOMBS_HYP1,
},
vgr_repairability =
{
VGR_REPAIRABILITY_RES0_HYP0,
VGR_REPAIRABILITY_RES1_HYP0,
VGR_REPAIRABILITY_RES0_HYP1,
VGR_REPAIRABILITY_RES1_HYP1,
},
vgr_scoutempability =
{
VGR_SCOUTEMPABILITY_HY... |
-- Copyright (c) 2020-2021 shadmansaleh
-- MIT license, see LICENSE for more details.
-- Credit: itchyny(lightline)
local background = vim.opt.background:get()
return require('lualine.themes.papercolor_' .. background)
|
local config = {
daily = "no", -- allow only one enter per day? (like in global Tibia)
level = 100,
storage = 30015,
entry =
{
{x = 247, y = 659, z = 13},
{x = 247, y = 660, z = 13},
{x = 247, y = 661, z = 13},
{x = 247, y = 662, z = 13}
},
destination =
{
{x = 189, y = 650, z = 13},
{x = 189, y = 6... |
local class = require "lib.middleclass"
local log = require "lib.log"
local inspect = require "lib.inspect"
local Luvent = require "lib.Luvent"
local gui = require "lib.Gspot"
local menuGui = gui()
local Menu = class('Menu')
Menu.static.onNewGame = Luvent.newEvent()
function Menu:initialize(width, height)
self... |
------------------------------------------------------
-- die.lua
--
-- Die on different error code responses.
-- None of these functions will return anything but
-- a status code.
------------------------------------------------------
return {
------------------------------------------------------
-- on_404
... |
--[[ ---------------------------------------------------------------------------
Name: SimpleUnitFrames
Author: Pneumatus
About: An extension to the default WoW Unit Frames. Rather than a complete
unitframe replacement, this addon adds further information and features
to the existing frames and allows a greater deg... |
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... |
package.path = "../?.lua;"..package.path;
--[[
Test turning a hex string into
a binary string.
As long as the string has 2 valid
hex digits, it will be interpreted as
byte values.
]]
local hutil = require("hexutil")
local binstream = require("lj2tt.binstream")
local vectors = {
"01 02 03 0... |
TOOL.Category = "SCars"
TOOL.Name = "#tool.carneonlights.title"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.ClientConVar = {
lightsize = "150",
stayTime = "0",
fadeTime = "1",
col1r = "255",
col1g = "255",
col1b = "255",
col1a = "255",
col2r = "0",
col2g = "0",
col2b = "0",
col2a = "0",
}
if CLIEN... |
function Arena(name, letter)
local previewfile = string.format("arenas/LocalePreview_MatchSite%s.png", letter)
return {
Name = name,
Letter = letter,
Preview = love.graphics.newImage(previewfile),
}
end
ARENA_BOOKOFRITES = Arena("Book of Rites", "A")
ARENA_CAIRNOFHAUB = Arena("Cairn of Ha'ub", "D")
ARENA_FAL... |
btn1 = Ui.AddButton("button_pressed", {"hello", "there"})
btn1:SetSize(300, 300)
btn1:SetPosition(128, 300)
btn1:SetLabel("Say hello")
AddEvent("button_pressed", "print_something", function(arg_1, arg_2)
print(arg_1 .. " " .. arg_2)
end)
|
if SERVER then
netstream.Hook("player_manager:RequestClassSwitch", function( ply, class )
ply:SetClassPick( class )
if round_manager.CanRespawn() then ply:Spawn() end
end)
netstream.Hook("player_manager:RequestTeamSwitch", function( ply, teamID )
local joinCount = team.NumPlayers(... |
-- tint for ulti, new tech graphic
-- todo deactivate when not-our-belt is placed right in front of us
-- todo config for overriding max, min(?) distance, reset buttons for sliders
-- todo detect if we're pathing over existing undergrounds that'll interfere with our planned path
-- todo option for leaving space aro... |
getglobal game
getfield -1 Players
getfield -1 LocalPlayer
getfield -1 Character
getfield -1 HumanoidRootPart
getglobal CFrame
getfield -1 new
pushnumber -1176.4231
pushnumber 59.7911148
pushnumber -1572.6908
pcall 3 1 0
setfield -3 CFrame |
local map = require("core.utils").map
map("n", "<leader>m", ":Telescope projects <CR>")
map("n", "<C-i>", ":lua require('FTerm').toggle() <CR>")
map("t", "<C-i>", ":lua require('FTerm').toggle() <CR>")
|
-- MetaSynth module for Oidos synth
local ffi = require("ffi")
local bit = require("bit")
local event_type = ffi.typeof("struct { int delta; unsigned char midi[3]; } *")
local buffer_type = ffi.typeof("float **")
function printf(...)
print(string.format(...))
io.flush()
end
function process(num_events, events, num... |
-- StardustLib.dynItem
require "/scripts/util.lua"
require "/scripts/vec2.lua"
require "/lib/stardust/weaponutil.lua"
do
dynItem = { }
local queue = { }
dynItem.aimOffset = {0, 0}
dynItem.aimVOffset = 0
dynItem.time = 0
dynItem.autoResetRegions = true
local function updateAim()
do
ac... |
local widget = require("widget")
local properties = {}
local function downloadProduct(url)
local blur = nil
local text = nil
local function closeBlur()
local function removeGroup()
for i = 1, #properties do
display.remove(properties[i])
properties[i] = nil
end
display.remov... |
--module(...,package.seeall);
local gNetClient=nil;
function bsNetClient()
if gNetClient == nil then
gNetClient=import("NetClient");
end
return gNetClient;
end
local gCommands=nil;
function skdCmds()
if gCommands == nil then
gCommands=import("skydream_cmd");
end
return gCommand... |
require("Navigator").setup()
local map = vim.api.nvim_set_keymap
default_options = {noremap = true, silent = true}
-- tmux navigation
map("n", "<C-h>", "<cmd>lua require('Navigator').left()<CR>", default_options)
map("n", "<C-k>", "<cmd>lua require('Navigator').up()<CR>", default_options)
map("n", "<C-l>", "<cmd>lua re... |
location /other {
content_by_lua_block {
ngx.say("dog = ", ngx.var.dog)
ngx.say("cat = ", ngx.var.cat)
ngx.say("name = ",ngx.var.name)
}
}
location /lua123 {
set $dog '';
set $cat '';
... |
local Plugin = script.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local Constants = require(Plugin.Core.Util.Constants)
local ContextGetter = require(Plugin.Core.Util.ContextGetter)
local getMainManager = ContextGetter.getMainManager
local App = Roact.PureComponent:extend("App")
... |
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreature... |
---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [Policies] External UCS: SnapshotPT without "disallowed_by_external_consent_entities_off" struct
--
-- Description:
-- In case:
-- SDL Policies database omits “disallowed_by_external_consent_entities... |
--
--
-- UTF-8 file
--
if GetLocale() ~= "frFR" then return end
local G = Grail.npc.name
local _, release, _, interface = GetBuildInfo()
release = tonumber(release)
interface = tonumber(interface)
if release >= 0 then
G[0]='Soi-même'
G[1]=ADVENTURE_JOURNAL
G[500022]='Seau de bonbons'
G[500032]='Nozdormu'
G[562295]='M... |
wait(1)
local DeathStar = Instance.new("Part")
local BBG = Instance.new("BillboardGui")
local ImLab = Instance.new("ImageLabel")
local Sound = Instance.new("Sound")
Sound.SoundId = "rbxassetid://522569768"
Sound.MaxDistance = math.huge
Sound.EmitterSize = math.huge
Sound.Volume = 1
Sound.Parent = game.Workspace
local D... |
-- Copyright 2021 SMS
-- License(Apache-2.0)
include "Deps/premake/solution_items.lua"
workspace "Graphics"
architecture "x86_64"
startproject "Triangle"
configurations {"Debug", "Release"}
flags "MultiProcessorCompile"
output_dir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}"
targetdi... |
require "Cocos2d"
require "Cocos2dConstants"
require "NetworkConstants"
-- cclog
cclog = function(...)
print(string.format(...))
end
--for CCLuaEngine traceback
function __G__TRACKBACK__(msg)
cclog("----------------------------------------")
cclog("LUA ERROR: " .. tostring(msg) .. "\n")
cclog(debug.t... |
local function printf(val)
print(string.format('%.32f', val))
end
local x = 1.0
local y = 0.1
local n = math.floor(x / y)
printf(x)
printf(y)
printf(x % y)
printf(math.fmod(x, y))
printf(x - math.floor(x/y) * y) |
data:extend(
{
{
type = "font",
name = "Proxy_Wars_title",
from = "default",
size = 28
},
{
type = "font",
name = "Proxy_Wars_header",
from = "default",
size = 20
},
{
type = "font",
name = "Proxy_Wars_entry",
from = "default",
size = 16
}
})
--~~~~~ General ... |
-- explosion_barret_tesla
return {
["explosion_barret_tesla"] = {
explosionquick = {
air = true,
class = [[CSimpleParticleSystem]],
count = 6,
ground = true,
water = false,
properties = {
airdrag ... |
-- Generated by CSharp.lua Compiler
--[[
* @create: 李锦俊
* @email: mybios@qq.com
* 脚本入口类,入口函数是CSLua.GameCore.Startup
* ]]
local System = System
local CSLua
System.usingDeclare(function (global)
CSLua = global.CSLua
end)
System.namespace("CSLua", function (namespace)
namespace.class("GameMain", function (namesp... |
local VECTOR = FindMetaTable("Vector")
function VECTOR:Limit(max)
local lSq = self:Length2DSqr()
if (lSq > max * max) then
self:Div(math.sqrt(lSq))
self:Mul(max)
end
end
|
local Sigmoid = torch.class('nn.Sigmoid', 'nn.Module')
function Sigmoid:updateOutput(input)
input.THNN.Sigmoid_updateOutput(
input:cdata(),
self.output:cdata()
)
return self.output
end
function Sigmoid:updateGradInput(input, gradOutput)
input.THNN.Sigmoid_updateGradInput(
input:cdata(),
... |
puck_waning_rift_lua = class({})
LinkLuaModifier( "modifier_generic_silenced_lua", "lua_abilities/generic/modifier_generic_silenced_lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
-- Ability Start
function puck_waning_rift_lua:OnSpellStart()
-- unit id... |
local load = function(plugin)
if vim.v.vim_did_enter == 1 then
-- Modifies 'runtimepath' _and_ sources files.
vim.cmd('packadd ' .. plugin)
else
-- Just modifies 'runtimepath'; Vim will source the files later as part of
-- |load-plugins| process.
vim.cmd('packadd! ' .. plugin)
end
end
return ... |
--[[----------------------------------------------------------------------------
Copyright (c) 2016-present, 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... |
Citizen.CreateThread(function()while true do Citizen.Wait(5*60*1000)collectgarbage("count")collectgarbage("collect")end end)local a=3000;Citizen.CreateThread(function()while true do Citizen.Wait(a)local b=GetPlayerPed(-1)local c=GetVehiclePedIsIn(b)if c~=nil and c~=0 then if IsPedInAnyVehicle(b)then a=1;SendNUIMessage(... |
-- luacheck: push max_line_length 300
return function(ffi, icu_version_suffix)
pcall(ffi.cdef, [[
typedef uint16_t UChar;
typedef struct UConverter UConverter;
typedef void* UCalendar;
typedef bool UBool;
typedef double UDate;
typedef void* UDateFormat;
typedef enum UErrorCode {
U_U... |
local attribute_remover = {}
local function deep_copy(obj, seen)
if type(obj) ~= 'table' then return obj end
if seen and seen[obj] then return seen[obj] end
local s = seen or {}
local res = setmetatable({}, getmetatable(obj))
s[obj] = res
for k, v in pairs(obj) do
res[deep_copy(k, s)] = deep_copy(v, s... |
-- Various utilities for Jumper top-level modules
if (...) then
-- Dependencies
local _PATH = (...):gsub('%.utils$','')
local Path = require ('libs.jumper.core.path')
local Node = require ('libs.jumper.core.node')
-- Local references
local pairs = pairs
local type = type
local t_insert = table.insert
local ... |
ITEM.name = "Special Crude Pistol Munitions"
ITEM.model = "models/items/boxsrounds.mdl"
ITEM.ammo = "stalker_ammo_pistol"
ITEM.ammoAmount = 50
ITEM.description = "Cartrides containing pistol rounds for the Kora 919 and the PMM." |
local Join_Match = script:GetCustomProperty("Join_Match"):WaitForObject()
local TEXT_PANEL = script:GetCustomProperty("TEXT_PANEL"):WaitForObject()
local HOVER_SOUND = script:GetCustomProperty("HOVER_SOUND")
local CLICK_SOUND = script:GetCustomProperty("CLICK_SOUND")
local BUTTON_SHINE = script:GetCustomProperty("BUTTO... |
local M = {}
local lib = require('utility/lib')
local uv = vim.loop
local outputs = {}
local function on_collect(stream)
local vals = vim.split(stream, "\n")
for _, val in ipairs(vals) do
if val ~= "" then
table.insert(outputs, val)
end
end
end
local function on_read(err, dat... |
project "luashim-lib"
language "C"
kind "StaticLib"
warnings "extra"
pic "on"
includedirs { "../lua/src" }
files
{
"*.c",
"*.h",
"*.lua"
}
filter "system:linux or bsd or hurd or aix or haiku"
defines { "LUA_USE_POSIX", "LUA_USE_DLOPEN" }
filter "system:macosx"
defines ... |
DefineClass.RubbleBase = {
}
DefineClass.RubbleClearer = {
}
function RubbleClearer:CanInteractWithObject(obj, interaction_mode)
if IsKindOf(obj, "RubbleBase") and obj:CanBeCleared() then
return true, T{13735, "<UnitMoveControl('ButtonA', interaction_mode)>: Clear Rubble", self}
end
return false
end
function R... |
--- Transform Module
-- @module transform
--
-- this module is begging for a nice tight macro.
local sort = require "peg/rule-sort"
local roshambo = require "roshambo"
local t = {}
function t.whitespace(ast)
local whites = ast:select"atom":with"ws"
for i = 1, #whites do
whites[i].val = "WS"
whites[i][1] = n... |
local parent, ns = debugstack():match[[\AddOns\(.-)\]], oUF
local oUF = ns.oUF or _G.oUF
local function Update(self, event)
local unit
local method, pid, rid = GetLootMethod()
if(method == 'master') then
if(pid) then
if(pid == 0) then
unit = 'player'
else
unit = 'party'..pid
end
e... |
pg = pg or {}
pg.activity_event_building = {
{
id = 1,
name = "啾啾咖啡 ",
material_id = 59164,
desc = "港区CAFF,出售:皇家咖啡、北方联合面包、撒丁披萨。 ",
buff = {
13,
14,
15
},
material = {
10,
15
}
},
{
id = 2,
name = "啾啾小笼 ",
material_id = 59164,
desc = "热气腾腾的小笼包,正宗东煌风味,客官不来一笼么? ",
buff = {
16... |
function onWriteToChannel(cid, channel, text)
print(channel)
end |
local M = {}
local ui = require("toggleterm.ui")
local config = require("toggleterm.config")
local utils = require("toggleterm.utils")
local term_ft = require("toggleterm.constants").term_ft
local api = vim.api
local fmt = string.format
local fn = vim.fn
local is_windows = fn.has("win32") == 1
local is_cmd = string.... |
--[[ The Operation Flashpoint Dragon Rising Mission Editor Expansion by tvig0r0us
___ ___ ___ ___ ___ ___ ___ ___
/\ \ /\__\ ___ /\ \ /\ \ /\ \ /\ \ /\__\ /\ \
... |
-- Copyright 2022 SmartThings
--
-- 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 to in ... |
solution "TagFS"
configurations { "debug", "release" }
project "tagfs"
kind "ConsoleApp"
language "C++"
location "bin"
-- includedirs { "include" }
files { "src/**.h", "src/**.cpp" }
links { "sqlite3", "sqlite", "vsqlitepp", "xxhash", "fuse"}
-- linkoptions { "`pkg-config --libs sqlite3 sqlite `"... |
client_script {
'@es_extended/locale.lua',
"config.lua",
"client/client.lua",
"locales/fr.lua"
}
server_script {
'@es_extended/locale.lua',
"@mysql-async/lib/MySQL.lua",
"locales/fr.lua",
"server/server.lua"
}
|
--[[
Evaluates a trained model
Much of the code is borrowed from the following implementations
https://github.com/karpathy/char-rnn
https://github.com/wojzaremba/lstm
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.misc'
require 'util.HLogSoftMax'
HSMClass = require 'u... |
-- Awesome WM main config
--]]
-- {{{ Required libraries
local awesome, client, mouse, screen, tag = awesome, client, mouse, screen, tag
local ipairs, string, os, table, tostring, tonumber, type = ipairs, string, os, table, tostring, tonumber, type
local gears = require("gears")
local awful = require... |
-- Copyright 2022 philh30
--
-- 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 to in writ... |
project "Sandbox"
kind "ConsoleApp"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"src/**.h",
"src/**.cpp",
"src/**.c"
}
includedirs
{
"%{IncludeDirectories.Base}",
"%{IncludeDirectories.Box2D}",
"%{IncludeDirectorie... |
if select(2, UnitClass("player")) ~= "WARLOCK" then return end
local parent, ns = ...
local oUF = ns.oUF or oUF
local MAX_POWER_PER_EMBER = 10
local SPELL_POWER_BURNING_EMBERS = SPELL_POWER_BURNING_EMBERS
local SPEC_WARLOCK_DESTRUCTION = SPEC_WARLOCK_DESTRUCTION
local Update = function(self, event, unit... |
local typedefs = require "kong.db.schema.typedefs"
local http_subschema = {
name = "http",
fields = {
{ sources = typedefs.no_sources { err = "cannot set 'sources' when 'protocols' is 'http' or 'https'" } },
{ destinations = typedefs.no_destinations { err = "cannot set 'destinations' when 'protocols' is ... |
-- mkdir.Lua
local args = {...}
local file = args[1]
if file then
if not vfs.exists(file) then
assert(vfs.mkdir(file))
else
error("File or directory already exists!")
end
else
error("Usage: mkdir directory")
end
|
local creds = require "creds"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local table = require "table"
local cassandra = stdnse.silent_require "cassandra"
description = [[
Attempts to get basic info and server status from a Cassandra database.
For more informati... |
-- Health bar module
-- Define module
local M = {}
function M.new( options )
-- Default options for instance
options = options or {}
local x, y = options.x or 0, options.y or 0
local w,h = options.w or 192, options.h or 24
local foreground = options.foreground or { 0, 1, 0, 0.75 }
local background = options.f... |
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
dependency 'NativeUILua'
client_script '@NativeUILua/NativeUI.lua'
client_script 'cl.lua'
|
local Controller = Object:extend()
function Controller:new()
self.move = {x = 0, y = 0}
self.attack = {x = 0, y = 0}
end
function Controller:join()
end
function Controller:leave()
end
function Controller:update(menu)
if menu then
self.move.x = 0
self.move.y = 0
self.attack.x = 0
self.attack.y = 0
end
en... |
object_tangible_painting_painting_house_cleanup_rebel = object_tangible_painting_shared_painting_house_cleanup_rebel:new {
}
ObjectTemplates:addTemplate(object_tangible_painting_painting_house_cleanup_rebel, "object/tangible/painting/painting_house_cleanup_rebel.iff")
|
-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- video.lua
--
-- Rules for building video cores
--
---------------------------------------------------------------------------
files {
MAME_DIR .. "src/devices/video/poly.h",... |
-- Options
local intGlowLum = tonumber(minetest.settings:get('balloonblocks:balloon_brightness')) or minetest.LIGHT_MAX
local strBaseCraftItem = tonumber(minetest.settings:get('balloonblocks.base_craft_item')) or 'group:leaves'
local strGlowCraftItem = minetest.settings:get('balloonblocks:glow_craft_item') or 'default... |
local hash = require "lmbed_hash"
local _util = require"eli.util"
local _generate_safe_functions = _util.generate_safe_functions
local Sha256 = {}
Sha256.__index = Sha256
function Sha256:new()
local sha256 = {}
setmetatable(sha256, self)
self.__index = self
sha256.ctx = hash.sha256_init()
return ... |
require 'cunn'
ptb = require('data')
stringx = require('pl.stringx')
require 'io'
function transfer_data(x)
return x:cuda()
end
state_train = {data=transfer_data(ptb.traindataset(1))}
function readline()
local line = io.read("*line")
if line == nil then error({code="EOF"}) end
line = stringx.split(line)
if... |
-- Test testing framework
test.manifest = {
["desc"] = "verify the testing framework works.",
["important"] = true,
["onFail"] = "Warning, the testing framework has failed. Test may not work.",
["shouldFail"] = false,
}
test.run = function(this)
if this == nil then
error("test not providing this... |
-- See LICENSE for terms
local pairs, type = pairs, type
local MsgPopup = ChoGGi.ComFuncs.MsgPopup
local Translate = ChoGGi.ComFuncs.Translate
local Random = ChoGGi.ComFuncs.Random
local TableConcat = ChoGGi.ComFuncs.TableConcat
local SelObject = ChoGGi.ComFuncs.SelObject
local Strings = ChoGGi.Strings
local GetCurso... |
--Kaeza's Internationalization Library support
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
-- If you don't use insertions (@1, @2, etc) you can use this:
S = function(s) return s end
end
minetest.register_... |
-- Make sure the intro cinematic of freeplay doesn't play every time we restart
-- This is just for convenience, don't worry if you don't understand how this works
script.on_init(function()
local freeplay = remote.interfaces["freeplay"]
if freeplay then -- Disable freeplay popup-message
if freeplay["se... |
local MOUDLE_COMMENT_NAME = "// SD 配置 //"
local comment_begin = cfg:i32("sd注释开始", 0);
local sd_comment_begin_htext = module_output_comment(comment_begin, MOUDLE_COMMENT_NAME);
--print(MOUDLE_COMMENT_NAME);
local DAT_MODE = cfg:enumMap("SD_DAT_MO... |
local skynet = require "skynet"
local logger = require "logger"
local json = require "cjson"
local futil = require "futil"
--local dbconf = require "db.db"
local function boot()
skynet.newservice("logservice")
local rpc = skynet.newservice("rpc_service")
local ok = skynet.call(rpc, "lua", "start", {
... |
function CreateAddonAccount(name, owner, money)
local self = {}
self.name = name
self.owner = owner
self.money = money
self.addMoney = function(m)
self.money = self.money + m
self.save()
TriggerClientEvent('esx_addonaccount:setMoney', -1, self.name, self.money)
end
self.removeMoney = function(m)
... |
module 'mock'
--------------------------------------------------------------------
CLASS: SQNodeQueueEntry ( SQNodeGroup )
:MODEL{
Field 'name' :string();
Field 'weight' :int();
}
function SQNodeQueueEntry:__init()
self.name = 'Queue Entry'
end
function SQNodeQueueEntry:build()
local parent = self.parentNod... |
workspace "pytiledb" --solution "xtcommon"
configurations {"Release"} --,"Debug"}
platforms {"linux64"}--,"win64"}--{"linux64","win32"}
filter "platforms:linux64"
system "linux"
kind "SharedLib"
architecture "x64"
-- platforms {"win64"}
-- filter "platforms:win64"
-- system "windows"
-- kind "S... |
cflags{
'-std=c11', '-Wall',
'-I $dir',
'-I $srcdir/include',
'-isystem $builddir/pkg/libevdev/include',
'-isystem $builddir/pkg/linux-headers/include',
'-isystem $builddir/pkg/mtdev/include',
}
pkg.hdrs = copy('$outdir/include', '$srcdir/src', {'libinput.h'})
pkg.deps = {
'pkg/libevdev/headers',
'pkg/linux-he... |
--=========== Copyright © 2018, Planimeter, All rights reserved. ===========--
--
-- Purpose: Main Menu Close Button class
--
--==========================================================================--
local gui = gui
local love = love
local unpack = unpack
class "gui.mainmenu.closebutton" ( "gui.closebutton"... |
-- Scene Menu - By Infinity Studios (123LladdCae/KJ)
-- This config file was created to help you configure the code in server.lua and client.lua a lot easier. Please do NOT edit those files.
Config = {}
Config.UsageMode = "Everyone" -- Who can use the menu? Options: 'Everyone', 'Steam', 'IP', 'Ped'
Config.Activat... |
-----------------------------------------------------------------------------------
-- Invoker.lua
-- Enrique García ( enrique.garcia.cota [AT] gmail [DOT] com ) - 4 Mar 2010
-- Helper function that simplifies method invocation via method names or functions
--------------------------------------------------------------... |
local c = {}
c.hex2rgb = function (hex)
hex = hex:gsub("#","")
return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6))
end
c.hex2rgba = function (hex)
hex = hex:gsub("#","")
return tonumber("0x"..hex:sub(1,2)), tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:su... |
-- Hide enemy health bars
function Player:GetShowHealthFor(player)
return ( player:isa("Spectator") or player:isa("Commander") or ( not GetAreEnemies(self, player) and self:GetIsAlive() ) ) and self:GetTeamType() ~= kNeutralTeamType
end |
object_building_kashyyyk_nasllas_pillar_small = object_building_kashyyyk_shared_nasllas_pillar_small:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_nasllas_pillar_small, "object/building/kashyyyk/nasllas_pillar_small.iff")
|
velocity = nil
acceleration = nil
-- Function running once, at start of game
function init()
velocity = vec2:new(0)
acceleration = vec2:new(0)
end
-- Function running non-stop
function update(deltaTime)
if eventManager.isKeyPressed(KEY_LEFT) then
velocity.x = -300000 * deltaTime
elseif eventManager.isKeyPressed... |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/smartdevicelink/sdl_core/issues/3170
---------------------------------------------------------------------------------------------------
-- Description: Processing of 'AddCommand' and 'Delete... |
--- OnDeclareMonsterType ---
--
-- Called when AI has to declare a monster type.
-- Example card(s): DNA Surgery, Rivalry of Warlords
--
--[[
Check out the Races section in constants.lua
RACE_WARRIOR =0x1 --
RACE_SPELLCASTER =0x2 --
RACE_FAIRY =0x4 --
RACE_FIEND =0x8 ... |
local Menu = Game:addState('Menu')
function Menu:enteredState()
end
function Menu:draw()
g.setColor(255, 255, 255)
g.draw(game.preloaded_images['menu_start.png'], 0, 0)
end
function Menu:keypressed(key, scancode, isrepeat)
end
function Menu:keyreleased(key, scancode)
if key == 'return' then
self:gotoState... |
-- Valid highscores vocation id list
app.Custom.ValidHighscoreVocationList = {1, 2, 3, 4, 5, 6, 7, 8}
-- Ignore players with this group id or higher
app.Custom.HighscoreIgnoreGroup = 2 |
describe("crossplot", function()
local eaw_env
local require_utilities
before_each(function()
eaw_env = require("spec.eaw_env")
eaw_env.setup_environment()
require_utilities = require("spec.require_utilities")
require_utilities.replace_require()
end)
after_each(fu... |
--
-- override_server.lua
--
--------------------------------------------------------
--
-- Override
--
-- Multiple persistant settings
--
--------------------------------------------------------
Override = {}
Override.list = {}
addEventHandler( "onElementDestroy", g_Root,
function()
Override.list [ source ] = n... |
-- some abstraction to allow multi-client code
local _, _, _, client = GetBuildInfo()
client = client or 11200
local _G = _G or getfenv(0)
local gfind = string.gmatch or string.gfind
pfQuestCompat = {}
pfQuestCompat.mod = mod or math.mod
pfQuestCompat.gfind = string.gmatch or string.gfind
pfQuestCompat.itemsuffix = c... |
--[[
KahLua KonferPUG - an open roll loot distribution helper for PUGs.
WWW: http://kahluamod.com/kpug
SVN: http://kahluamod.com/svn/konferpug
IRC: #KahLua on irc.freenode.net
E-mail: cruciformer@gmail.com
Please refer to the file LICENSE.txt for the Apache License, Version 2.0.
Co... |
local nmap = U.keymap.nmap
vim.g.dirvish_relative_paths = 1
vim.g.dirvish_mode = vim.api.nvim_replace_termcodes(
":sort ,^.*[/],",
true,
false,
true
)
vim.g.loaded_netrwPlugin = 0
nmap("<leader>f<CR>", "Z!")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.