content stringlengths 5 1.05M |
|---|
local AddonName, AddonTable = ...
-- Halls of Reflection
AddonTable.hor = {
-- Falric
50290, -- Falric's Wrist-Chopper
49827, -- Ghoulslicer
50291, -- Soulsplinter
49830, -- Fallen Sentry's Hood
50293, -- Spaulders of Black Betrayal
49829, -- Valonforth's Tarnished Pauldrons
49832, -- E... |
local require = using("BodyEditor.Script")
local CCDirector = require("CCDirector")
local oVec2 = require("oVec2")
local CCLayer = require("CCLayer")
local CCMenu = require("CCMenu")
local CCNode = require("CCNode")
local CCDrawNode = require("CCDrawNode")
local ccColor4 = require("ccColor4")
local CCClipNode = require... |
--***********************************************************
--** THE INDIE STONE **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
---@class ISAddWaterFromItemAction : ISBaseTimedAction
ISAddWaterFromItemAction = ISBaseTim... |
--[[----------------------------------------------------------------------------
ADOBE SYSTEMS INCORPORATED
Copyright 2007 Adobe Systems Incorporated
All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
with the terms of the Adobe license agreement accompanying it. I... |
local remi = minetest.setting_getbool("remove_items") or false
local crea = minetest.setting_getbool("creative_mode")
local drop = function(pos, itemstack)
-- is remove_items enabled?
if remi == true then
return
end
local obj = core.add_item(pos, itemstack:take_item(itemstack:get_count()))
if obj then
-- ... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('PushInfo_pb')
PUSHINFO = protobuf.Descriptor();
local PUSHINFO_TYPE_FIELD = protobuf.FieldDescriptor();
local PUSHINFO_SUB_TYPE_FIELD = protobuf.FieldDescriptor();
local PUSHINFO_TIME_FIELD = protobuf.FieldDescriptor();
P... |
-----------------------------------------------------------------------
-- Fern Zapata
-- https://github.com/fernzi/dotfiles
-- Awesome Window Manager - Default Bar
-----------------------------------------------------------------------
local awful = require('awful')
local gears = require('gears')
local wibox = requir... |
local liluat = require("liluat")
local m = require("match")
local function build_template(template_text)
return liluat.compile(template_text)
end
local function render(template, vars)
return liluat.render(template, vars)
end
local function new_stencil(aux, aliases)
aux = aux or {}
aliases = aliases or {}
... |
local AceGUI = LibStub('AceGUI-3.0');
local lsm = LibStub('AceGUISharedMediaWidgets-1.0');
local media = LibStub('LibSharedMedia-3.0');
MaxDps = LibStub('AceAddon-3.0'):NewAddon('MaxDps', 'AceConsole-3.0', 'AceEvent-3.0', 'AceTimer-3.0');
MaxDps.Textures = {
['Ping'] = 'Interface\\Cooldown\\ping4',
['Star'] = 'Inte... |
import('GlobalVars')
options = {
{ key = "escape", name = "Return", loc = "Xsera/MainMenu" },
{ key = "x", name = "Console", loc = "Xsera/ConsoleDrawer" },
{ key = "t", name = "Tu... |
-----------------------------------
-- Area: Promyvion - Vahzl
-- NM: Propagator
-----------------------------------
require("scripts/globals/missions")
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("maxBabies",2)
end
function onMobDeath(mob, player, isKiller)
local momma = mo... |
--- Track a current part, whether it be a model or part
-- @classmod TrackCamera
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local CameraState = require("CameraState")
local SummedCamera = require("SummedCamera")
local TrackCamera = {}
TrackCamera.ClassName = "TrackCamera"... |
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 10,
"version_minor", 3,
}),
},
"title", "Oxygen Management",
"id", "ChoGGi_OxygenManagement",
"steam_id", "2497163542",
"pops_any_uuid", "d8195d02-e409-44... |
--[[
Press ESCAPE to go into normal mode, in this mode you can move around using the "modal+" keybindings
you find at the bottom of this file. Press I to go back to insert mode. While this plugin is inspired
by vim, this is not a vim emulator, it only has the most basic movement functions that vim does.
Additionally, ... |
TOOL.Category = "Constraints"
TOOL.Name = "#tool.hydraulic.name"
TOOL.Command = nil
TOOL.ConfigName = nil
TOOL.ClientConVar[ "group" ] = "1"
TOOL.ClientConVar[ "width" ] = "3"
TOOL.ClientConVar[ "addlength" ] = "100"
TOOL.ClientConVar[ "fixed" ] = "1"
TOOL.ClientConVar[ "speed" ] = "64"
TOOL.ClientConVar[ "mate... |
-- two library
-- meshopt 3rdparty module
meshopt = dep(nil, "meshopt")
kind "StaticLib"
includedirs {
path.join(TWO_3RDPARTY_DIR, "meshoptimizer", "src"),
}
files {
path.join(TWO_3RDPARTY_DIR, "meshoptimizer", "src/**.cpp"),
}
configuration {}
|
local ent_meta = FindMetaTable 'Entity'
function ent_meta:prevent_transmit(target, should_prevent)
if IsValid(target) then
self:SetPreventTransmit(target, should_prevent)
for k, child in ipairs(self:GetChildren()) do
if IsValid(child) then
child:prevent_transmit(target, should_prevent)
e... |
--!A cross-platform build utility based on Lua
--
-- 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... |
--------------------------------------------------------------------------------------------------------------------
-- Local functions
-- Turns an item list (as returned by inv:get_list) into a form more easily used by crafting functions
local function itemlist_to_countlist(itemlist)
local count_list = {}
for _, st... |
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "0.2"};
dot_style = {["font_size"] = "40"}
text_style = {["font_size"] = "16"}
answ = {4, 10, 9, 8, 18}
out = lib.math.random_shuffle(answ)
ind = math.random(5)
for i = 1,5 do
if (o... |
Harmony.ui.settingsWindow = {}
Harmony.ui.settingsWindow.buttons = {}
Harmony.ui.settingsWindow.container = nil
Harmony.ui.settingsWindow.rows = {}
function Harmony.ui.settingsWindow.addButton(name, display, funcName, row)
if Harmony.ui.settingsWindow.buttons[name] then return Harmony.ui.settingsWindow.buttons[nam... |
--[[
/ \ _____ __| _/ ____ \______ \ ___.__. ____ / \ _____ _______ | | __ ____ ________
/ \ / \ \__ \ / __ | _/ __ \ | | _/< | | / _ \ / \ / \ \__ \ \_ __ \| |/ /_/ __ \ \___ /
/ Y \ / __ \_/ /_/ | \ ___/ | | \ \___ | ( <_> )/ Y ... |
victorQuestnCantinaConvoTemplate = ConvoTemplate:new {
initialScreen = "",
templateType = "Lua",
luaClassHandler = "victorQuestnCantinaConvoHandler",
screens = {}
}
init_on_rival_quest = ConvoScreen:new {
id = "init_on_rival_quest",
leftDialog = "@conversation/victor_questn_cantina:s_dcb68f7c", -- Yeh, I 'ave wh... |
local obj = nil;
local tid_update = -1;
local tid_timer = -1;
local timer = libs.timer;
local server = libs.server;
local fs = libs.fs;
local ready = false;
------------------------
-- BOOTSTRAP --
------------------------
events.create = function ()
file_curr = fs.temp();
end
events.destroy = functi... |
-- Base16 {{ scheme-name }} color
-- Author: {{ scheme-author }}
-- to be use in your theme.lua
-- symlink or copy to config folder `local color = require('color')`
local M = {}
M.base00 = "#272822" -- ----
M.base01 = "#383830" -- ---
M.base02 = "#49483e" -- --
M.base03 = "#75715e" -- -
M.base04 = "#a59f85" -- +
M.b... |
sohei_flurry_of_blows = class( AbilityBaseClass )
LinkLuaModifier( "modifier_sohei_flurry_self", "abilities/sohei/sohei_flurry_of_blows.lua", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_special_bonus_sohei_fob_radius", "abilities/sohei/sohei_flurry_of_blows.lua", LUA_MODIFIER_MOTION_NONE )
-----------------... |
localdatabasenode = nil;
id = "";
function setId(n)
id = n;
end
function onInit()
if User.isLocal() then
registerMenuItem("Export character", "goto", 3);
end
end
function setLocalNode(node)
-- Debug.console("indetityselectionlist.lua: setLocalNode. node " .. node.getNodeName());
localdata... |
-- Copyright (c) 2017-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the 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.
--
--[[
--
-- init file for t... |
vim.api.nvim_set_var('vimwiki_list', {{ path = '~/.local/share/vimwiki' }})
|
--******************************************************************************************************
-- Combined B+I model
--******************************************************************************************************
function CreateEmotionModel_BI(InGPU,IMGSizes)
require 'cudnn'
require 'cunn'
... |
magic = class("magic")
function magic:init()
self.lifetime = 0.5
self.t = 0
self.x = math.floor(7+math.random()*188)*scale
self.y = math.floor(88+math.random()*12)*scale
self.color = {202/255+(math.random()-.7)*0.2, 170/255+(math.random()-.7)*0.2, 209/255+(math.random()-.7)*0.2}
end
function magic:upda... |
local mod = DBM:NewMod("d285", "DBM-WorldEvents", 1)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 17257 $"):sub(12, -3))
mod:SetCreatureID(23682, 23775)
--mod:SetModelID(22351)--Model doesn't work/render for some reason.
mod:SetZone()
mod:SetReCombatTime(10)
mod:RegisterCombat("combat")
... |
shallow_torton = Creature:new {
objectName = "@mob/creature_names:shallow_torton",
socialGroup = "torton",
faction = "",
level = 19,
chanceHit = 0.32,
damageMin = 190,
damageMax = 200,
baseXp = 1257,
baseHAM = 4500,
baseHAMmax = 5500,
armor = 0,
resists = {5,5,5,-1,-1,-1,-1,125,-1},
meatType = "meat_carniv... |
-- MIT License
-- Copyright (c) 2018 Christian Wahl
-- 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, modify, ... |
-- trail_emg
-- trail_emg_upg
return {
["trail_emg"] = {
usedefaultexplosions = false,
spikes = {
air = true,
class = [[explspike]],
count = 3,
ground = true,
water = true,
properties = {
alpha ... |
local DF = _G ["DetailsFramework"]
if (not DF or not DetailsFrameworkCanLoad) then
return
end
local _
local _rawset = rawset --> lua local
local _rawget = rawget --> lua local
local APIHelpFunctions = false
local HelpMetaFunctions = {}
local get_members_function_index = {}
HelpMetaFunctions.__index = function... |
-- Copyright 2021 Kafka-Tarantool-Loader
--
-- 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... |
ESX = nil
OrganizationsTable = {}
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
LegalJobs = {
{
name = "doj",
organizationName = "Department Of Justice"
},
{
name = "psycholog",
organizationName = "Psycholog"
},
{
name = "cardealer",
organizationName = "Broker"
},... |
resolutions = {
nes = {
width = 256,
height = 240,
},
-- 4:3
vga = {
width = 640,
height = 480,
},
svga = {
width = 800,
height = 600,
},
xga = {
width = 1024,
height = 768,
},
-- 8:9
wvga = {
width = 768,
height = 480,
},
-- 16:9
fwvga = {
width ... |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function LoadSkin()
-- MainFrame
TradeSkillFramePortrait:Kill()
TradeSkillFrame:StripTextures(true)
S:SetBD(TradeSkillFrame... |
local modules = require(game:GetService("ReplicatedStorage"):WaitForChild("modules"))
local network = modules.load("network")
return {
--> identifying information <--
id = 22;
--> generic information <--
name = "Blue Potion";
rarity = "Common";
image = "rbxassetid://2528903811";
description = "A magic... |
function onCreate()
end
function opponentNoteHit()
setProperty("health", getProperty('health') - .0015)
end
|
local wip = { s = "solid", l = "ledge", w = "water", a = "acid", b = "buoy", L = "ledgewet" }
function start()
ApplyTiles(wip, 0, 0, [[
ssssssssssssssssssss
ssssssssssssssssssss
ssssssssssssssssssss
ssssssssssssssssssss
ssssssss......s....s
ssssssss......s....s
ssssssss......s....s
ssssssss......s....s
s......s......... |
local Scalar = require 'libsclr'
local T = {}
-- Q.is_sorted(x) : checks the sort order of a given input vector(i.e. x)
-- Return value:
-- sort_order: 'asc' or 'desc'
-- else returns nil (i.e. input vector not sorted)
-- Convention: Q.is_sorted(vector)
-- 1) vector : a vector... |
local xx = 300;
local yy = 600;
local xx2 = 430;
local yy2 = 650;
local ofs = 25;
local followchars = true;
local del = 0;
local del2 = 0;
function onCreate()
-- background shit
makeLuaSprite('theSky', 'sky', -1900, -400);
addLuaSprite('theSky', false);
makeLuaSprite('buildings', 'buildings', -800, -2... |
playSound("Your Sound Location") --Copy this and set your sound location. Like: Assests\shout.wav
--So if you want to play that Shout.wav then you can use
playSound("Assests\shout.wav") -- Copy and paste in your code. And use 'if' statements to play this sound when you want to. |
--[[
More Blocks: crafting recipes
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
minetest.register_craft({
output = "default:stick",
recipe = {{"default:dry_shrub"},}
})
minetest.register_craft({
output = "default:stick",
recipe = {{"... |
-- =============================================================
-- Copyright Roaming Gamer, LLC. 2009-2015
-- =============================================================
-- =============================================================
-- License
-- =======================================... |
local c = require('onedark.colors')
local colors = {
bg = c.bg0,
fg = c.fg,
red = c.red,
green = c.green,
yellow = c.yellow,
blue = c.blue,
purple = c.purple,
cyan = c.cyan,
gray = c.grey
}
local one_dark = {
inactive = {
a = {fg = colors.gray, bg = colors.bg, gui = 'bol... |
--====================================================================--
-- dmc_utils.lua
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_utils.lua
--====================================================================--
--[[
Copyright (C) 2011-2013 David McCuskey. All Right... |
include( "shared.lua" )
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = true
SWEP.CSMuzzleFlashes = true
SWEP.ViewModelFOV = 74
SWEP.ViewModelFlip = false
SWEP.PrintName = "wiltOS Duel Dome Placer"
SWEP.Slot = 5
SWEP.Slotpos = 5
function SWEP:DrawHUD()
draw.SimpleText( "PRIMARY FIRE: Place Duel Dome ( Center ) ... |
--
-- Author bt0r
-- Twitch : bt0r
-- Twitter : biiitor
--
files {
'files/loader.html',
'files/js/loader.js',
'files/css/loader.css',
'files/sound/intro.ogg',
'files/img/background/1.jpg',
'files/img/background/2.jpg',
'files/img/background/3.jpg',
'files/img/background/4.jpg',
'file... |
function AttributesPlugin:PostCreateCharacter(player, char, char_data)
for k, v in pairs(Attributes.get_stored()) do
local attribute = Attributes.find_by_id(k)
local att = Attribute.new()
att.attr_id = k
att.value = char.attributes[k] or attribute.min
table.insert(char.attributes, att)
end
... |
local modname = minetest.get_current_modname()
minetest.register_node(modname..":fire", {
description = "Fire",
drawtype = "firelike",
tiles = {{name = "nodes_fire.png", animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
}}},
groups = {unbreakable = 1},
walkable = false,
... |
#!/usr/bin/env ljwm
-- Small wmutils killw clone using ljwm
local args = {...}
local function usage()
print("Usage: killw [-p] <wid> [wid..]")
os.exit(1)
end
if #args == 0 then usage() end
local wids = {}
local parent = false
for i=1, #args do
local n = args[i]
if n == "-p" then
parent = true
else
table.ins... |
local students = {"William", "Sophie", "Robert"}
function setup()
customTableInsert(students, "Emily")
print(unpack(students))
end
function customTableInsert(table, newData)
-- Getting index info
local currentIndex = #table
local newIndex = currentIndex + 1
-- Setting new data
table[n... |
AddCSLuaFile()
Photon.XML = {}
local function parseargs(s)
local arg = {}
string.gsub(s, "([%-%w]+)=([\"'])(.-)%2", function (w, _, a)
arg[w] = a
end)
return arg
end
local function collect(s)
local stack = {}
local top = {}
table.insert(stack, top)
local ni,c,label,xarg, empty
local i, j = 1, 1
while tru... |
local _, ns = ...
--[[
The "Tag-System"
Possible:
$cur - Shows the current hp of the unit > 53,4k
$max - Shows the maximum hp of the unit > 105,3k
$deficit - Shows the deficit value > -10k
$perc - Show ... |
object_draft_schematic_space_chassis_player_gunship_neutral = object_draft_schematic_space_chassis_shared_player_gunship_neutral:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_space_chassis_player_gunship_neutral, "object/draft_schematic/space/chassis/player_gunship_neutral.iff")
|
-- THIS FILE IS AUTOMATICALLY GENERATED.
--
-- Changes to this file will be discarded, ignored, and every other negative
-- word you can come up with that has the same overall meaning.
--
-- This file is licensed under the terms expressed in the LICENSE file.
--
-- Client Version: 2.5.2.40892
-- Build Config: 45f53cdda... |
-- PERSISTENT GAME/LEVEL STATE MANAGER
-- Size of the GPS in bytes.
#define GPS_SIZE 32
PS={
-- GPS (Global Persistent State). Array of GPS_SIZE bytes.
gps=nil,
-- KF (kill flags) for each level. Indexed by level#.
-- kf[lvlN] is a list of bytes that represent the kill flags.
-- Bits are counted from LEAST to M... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
util.AddNetworkString("LiteTool.TextPlacements.RequestData")
util.AddNetworkString("LiteTool.TextPlacements.RespondData")
function ENT:Initialize()
self:SetModel("models/hunter/plates/plate1x1.mdl")
self:SetRenderMode(RENDERMODE_TRANSALPH... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
local PLAYER = FindMetaTable("Player")
local entity = FindMetaTable("Entity")
function PLAYER:GetLocation()
return self:GetDTInt(0) or 0
end
function PLAYER:GetLastLocation()
return self.LastLocation or -1
end
functi... |
--------------------------------------------------------------------------------
-- 0020-common_env.lua: DSL FSM builder tests for common_env
-- This file is a part of le-dsl-fsm project
-- Copyright (c) LogicEditor <info@logiceditor.com>
-- Copyright (c) le-dsl-fsm authors
-- See file `COPYRIGHT` for the license.
----... |
local _0_0 = nil
do
local name_0_ = "telescope.__extensions.lispdocs"
local module_0_ = nil
do
local x_0_ = package.loaded[name_0_]
if ("table" == type(x_0_)) then
module_0_ = x_0_
else
module_0_ = {}
end
end
module_0_["aniseed/module"] = name_0_
module_0_["aniseed/locals"] = ((m... |
function constructor(key, arg1, arg2)
if key ~= nil then
system.setItem(key, {intVal=arg1, stringVal=arg2})
end
end
function set(key, arg1, arg2)
contract.event("set", key, arg1, arg2)
system.setItem(key, {intVal=arg1, stringVal=arg2})
end
function get(key)
return system.getItem(key)
end
function check... |
class 'GUIModChangelog' (Window)
local kTextureName = "*changelog_webpage_render"
GUIModChangelog.URL = "https://ghoulofgsg9.github.io/Ghouls-Balance-Mod/"
GUIModChangelog.titleText = "Ghouls Balance Mod"
function GUIModChangelog:Initialize()
Window.Initialize(self)
self:SetWindowName("Changelog")
self:SetInitial... |
local bundle = require('luvi').bundle
local function readKl(fileName)
local str = bundle.readfile(fileName)
local isDigit = {}
for i = 0, 9 do
isDigit[tostring(i)] = true
end
local string = "string"
local list = "list"
local atom = "atom"
local stack = { {} }
local reading = list
for i = 1,... |
local Root = script.Parent.Parent.Parent
local CorePackages = game:GetService("CorePackages")
local PurchasePromptDeps = require(CorePackages.PurchasePromptDeps)
local Roact = PurchasePromptDeps.Roact
local AutoResizeList = require(script.Parent.AutoResizeList)
local ItemPreviewImage = require(script.Parent.ItemPrevi... |
local _M = {}
_M.NORET = {}
_M.SUCCESS = 0
_M.FAIL = 1
_M.LOGIN_AGENT_ERR = 2
_M.LOGIN_AGENT_LOAD_ERR = 3
_M.NOT_ENOUGH_AGENT = 4 -- 没有足够的agent
_M.NOT_AUTHED = 5 -- 没有授权怎么afk
return _M |
--
--版权所有:{company}
-- Author:{author}
-- Date: {time}
--
local {moduleName} = class("{moduleName}")
function {moduleName}:ctor()
end
--desc:
--Author:{author}
--date:{time}
function {moduleName}:buttonClick(sender)
end
function {moduleName}:test1()
end
return {moduleName} |
local match_stage_info_detail=
{
name="match_stage_info_detail",type=0,typeName="View",time=0,x=0,y=0,width=450,height=180,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignTopLeft,
{
name="stageNameView",type=0,typeName="View",time=0,x=0,y=0,width=170,height=30,visible=1,fillParentWidth=0,fillParentHe... |
return block
{
name="platform_2dof",
license="MIT",
meta_data="",
port_cache=true,
configurations= {
{ name="joint_velocity_limits", type_name="double", min=2, max=2 },
{ name="initial_position", type_name="double", min=2, max=2 },
},
ports = {
{ name="pos", out_type_name="doubl... |
---
-- @module drawing
local types = require("luaplot.types")
local iterators = require("luaplot.iterators")
local colors = require("constants.colors")
local Plot = require("luaplot.plot")
local PlotIteratorFactory = require("luaplot.plotiteratorfactory")
local DistanceLimit = require("luaplot.distancelimit")
local Pl... |
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
-- TODO: STOP MESSING WITH APP.Tiles and do the stuff properly!!
local APP = AR... |
local RemortList = stateMainForm:GetChildChecked( "RemortList", false )
local RemortSize = RemortList:GetChildChecked( "RemortList", false )
local p = RemortSize:GetPlacementPlain()
p.alignX = WIDGET_ALIGN_BOTH
p.alignY = WIDGET_ALIGN_BOTH
p.sizeX = 500
p.sizeY = 320
p.posY = 20
RemortSize:SetPlacementPl... |
function cond2int (x)
return math.tointeger(x) or x
end
|
local skynet = require "skynet"
local protopack = require "rpc.protopack"
local socket = require "skynet.socket"
local baseobj = require "base.baseobj"
function NewAgentObj(...)
return CAgent:New(...)
end
CAgent = {}
CAgent.__index = CAgent
inherit(CAgent, baseobj)
function CAgent:New(fd, account)
local o = ... |
local function exists(key)
local count = box.space.$name:count(key)
return count ~= 0
end
box.schema.func.create('exists', {if_not_exists = true})
box.schema.user.grant('$login', 'execute', 'function', 'exists',{ if_not_exists= true})
|
vim.opt.directory = vim.fn.expand("$XDG_CACHE_HOME/nvim")
function _G.safe_require(module)
local ok, result = pcall(require, module)
if not ok then
vim.notify(string.format("Error requiring: %s", module), vim.log.levels.ERROR)
return ok
end
return result
end
require("my.plugins")
require("my.general")... |
local utils = {}
function utils.find_free_index(t)
local found
local max_index = table.maxn(t)
for i = 1, max_index do
if not t[i] then
found = i
break
end
end
if not found then
return max_index + 1
end
return found
end
function utils.make_callable(cls,... |
local AddComponentAction = AddComponentAction
GLOBAL.setfenv(1, GLOBAL)
local function target_test_fn(target)
return ( target:HasTag("_inventoryitem") and
not (
target:HasTag("INLIMBO") or
target:HasTag("NOCLICK") or
target:HasTag("catchable") or
target:HasTa... |
---@type table<string, module>
local modules = {}
local SMD_mode = settings.startup["SMD_mode"].value
if SMD_mode == "fancy_text" then
modules.show_my_damage = require("models/SMD_fancy_text")
elseif SMD_mode == "simple_floating_text" then
modules.show_my_damage = require("models/SMD_simple_floating_text")
end
-- ... |
--[[
Edit this file in order to enable models for statically-linked functions.
Models drastically reduce path explosion at the expense of more complex expressions.
Suppose that the binary you want to analyze contains at address 0x1234 a function
that computes a standard CRC32 checksum. To enable the model for the CRC3... |
FACTION.name = "Administration"
FACTION.description = "Members of the Combine Civil Authority serving mankind through an authoritarian corruption of government."
FACTION.color = Color(255, 200, 100, 255)
FACTION.models = {
"models/ug/new/citizens/female_01.mdl",
"models/ug/new/citizens/female_02.mdl",
"models/ug/ne... |
local Files = require('orgmode.parser.files')
local function format()
local line = vim.fn.line('.')
local ok, item = pcall(Files.get_closest_headline, line)
if not ok or not item then
return 1
end
if item.logbook and item.logbook.range:is_in_line_range(line) then
return item.logbook:recalculate_esti... |
local gl = require 'glua'
local primitive = {}
local plane = {
-- vertex -- normal -- tex coord
-1, -1, 0, 0, 0, 1, 1, 1,
1, -1, 0, 0, 0, 1, 0, 1,
1, 1, 0, 0, 0, 1, 0, 0,
1, 1, 0, 0, 0, 1, 0, 0, -- dup
-1, 1, 0, 0, 0, 1, 1, 0,
-1, -1, 0, 0, 0, 1, 1, 1, --... |
-- Remove empty bob's techs
bobmods.lib.tech.remove_prerequisite('cobalt-processing', 'chemical-processing-1')
bobmods.lib.tech.remove_prerequisite('cobalt-processing', 'electrolysis-1')
bobmods.lib.tech.remove_prerequisite('lithium-processing', 'electrolysis-1')
bobmods.lib.tech.replace_prerequisite('lithium-processin... |
----------------------------------------------------------------
-- Copyright (c) 2012 Klei Entertainment Inc.
-- All Rights Reserved.
-- SPY SOCIETY.
----------------------------------------------------------------
local util = include( "modules/util" )
local array = include( "modules/array" )
local mathutil = includ... |
-- Copyright (C) idevz (idevz.org)
local brz_tools = require "resty.breeze.tools"
local floor = require "math".floor
local ffi = require "ffi"
local C = ffi.C
local breeze = ffi.load("breeze")
ffi.cdef([[
typedef enum {
StringType = 0x3f,
DirectStringMinType = 0x00,
DirectStringMaxType ... |
sgs.ai_chaofeng.Shengxuandashen = 9 ,
|
feature("#79 task invisible after minimizing UI", function()
before_scenario(function()
when(todo, "should_show_maximize_button"):then_return(true)
todo.minimize_main_frame(game.players[1])
end)
after_scenario(function()
todo.should_show_maximize_button:revert()
-- clear a... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by hartnett.
--- DateTime: 2019/11/10 21:40
---
local ngx = ngx
local string = string
local http = require("resty.http")
local core = require("apisix.core")
local fetch_local_conf = require("apisix.core.config_local").local_conf
local config = fetch... |
---
-- base/field.lua
--
-- Fields hold a particular bit of information about a configuration, such
-- as the language of a project or the list of files it uses. Each field has
-- a particular data "kind", which describes the structure of the information
-- it holds, such a simple string, or a list of paths.
--
-- The ... |
---
--- Generated by Luanalysis
--- Created by marcelo.
--- DateTime: 20/01/2021 17:15
-----
function my_super_function( arg1, arg2 )
print(arg2)
return arg1 + arg2
end
--local tablew = {
-- nome = "Marcelo",
-- sobreNome = {
-- teste = "teste",
-- teste2 = {
-- value = "value2... |
Player=game:GetService("Players").LocalPlayer
Character=Player.Character
PlayerGui=Player.PlayerGui
Backpack=Player.Backpack
Torso=Character.Torso
Head=Character.Head
Humanoid=Character.Humanoid
m=Instance.new('Model',Character)
LeftArm=Character["Left Arm"]
LeftLeg=Character["Left Leg"]
RightArm=Character["Right... |
-- Usage written 12/9/2021
local time_service = require(script.TimeService)
local current_time = time_service.time('est')
local current_date = time_service.date()
print('Current Time:', current_time)
print('Current Date:', current_date) |
--[[
2 October 2020
FrozenDroid:
- Added error handling to all event handler and scheduled functions. Lua script errors can no longer bring the server down.
- Added some extra checks to which weapons to handle, make sure they actually have a warhead (how come S-8KOM's don't have a warhead field...?)
28 October... |
local util = require "res.util"
local res = require "res.res"
local logger = require "common.Logger"
local UnityObjectDestroy = UnityEngine.Object.Destroy
local table_insert = table.insert
local pairs = pairs
--------------------------------------------------------
--- res之下是Cache,内部实现类,是资源的cache
--- 一个资源的生命周... |
ccs = ccs or {}
---ActionRotationFrame object
---@class ActionRotationFrame : ActionFrame
local ActionRotationFrame = {}
ccs.ActionRotationFrame = ActionRotationFrame
--------------------------------
---Changes rotate action rotation.<br>
---param rotation rotate action rotation.
---@param rotation float
---@return Ac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.