content stringlengths 5 1.05M |
|---|
function event_spawn(e)
eq.set_next_hp_event(90);
end
function event_combat(e)
if (e.joined == true) then
eq.stop_timer("depop");
else
eq.start_timer("depop", 1800000) -- 30 mins
end
end
function event_hp(e)
if (e.hp_event == 90) then
e.self:TempName("Zordak Ragefire");
... |
-------------------------------------------------------------------------------
-- Dominos Config Localization
-- English (Default)
-------------------------------------------------------------------------------
local L = LibStub("AceLocale-3.0"):NewLocale("Dominos-Config", "enUS", true)
L.ActionBarBehavior = "Actio... |
-- TODO:
-- - Write a description.
-- we might want to merge this with char.lua...
if(select(4, GetAddOnInfo("Fizzle"))) then return end
local _E
local slots = {
"Head", "Neck", "Shoulder", "Shirt", "Chest", "Waist", "Legs", "Feet", "Wrist",
"Hands", "Finger0", "Finger1", "Trinket0", "Trinket1", "Back", "MainHand"... |
--=============================================================================--
-- Addon: CAF
-- Author: SnakeSVx
-- Version: 0.1
--
--
--=============================================================================--
local table = table
local setmetatable = setmetatable
local type = type
local tostring = ... |
if not modules then modules = { } end modules ['font-mps'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
local concat = tabl... |
function love.conf(t)
-- Love settings
t.title = "HumanTECH"
t.version = "0.8.0"
t.author = "joshbothun@gmail.com"
t.identity = nil
t.console = false
t.screen.width = 1000
t.screen.height = 720
t.screen.fullscreen = false
t.screen.vsync = false
t.screen.fsaa = 0
-- modules
t.modules.joys... |
/*
Copyright (c) 2021 TidalDevs
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMA... |
--- 服务器代码入口
--- @script Server Main Function
--- @copyright Lilith Games, Avatar Team
--- @author Yuancheng Zhang
Server:Run()
|
local music = nil;
local ambientMusic = "";
local isAmbient = false;
local doors = {};
local bridges = {};
local plugs = {};
bridge0 = scene:getObjects("bridge0")[1];
bridge1 = scene:getObjects("bridge1")[1];
bridge2 = scene:getObjects("bridge2")[1];
function startMusic(name, crossfade)
local newMusic = audio:crea... |
local AddonName, AddonTable = ...
AddonTable.tailoring = {
-- Cloth Armour
154685,
154686,
154687,
154689,
154690,
154691,
154692,
154697,
161978,
161979,
161981,
161982,
161983,
161984,
161987,
-- Bandages
158381,
-- Misc
159791,
}
|
-- Application/command launcher. Example config:
--
-- config.launcher = {
-- mash = {"cmd", "ctrl"},
-- bindings = {
-- { key = "B", application = "Google Chrome" }
-- { key = "X", commmand = "/usr/bin/rsync ..." }
-- }
-- }
local notify = require 'hs.notify'
local application = require '... |
function onCreate()
-- skyline
makeLuaSprite('skyline', 'hankBG/Skyline', -250, -450);
-- city
makeLuaSprite('city', 'hankBG/City', -300, -380);
-- railroad
makeLuaSprite('railroad', 'hankBG/Railroad', -300, -380);
--ground
makeLuaSprite('ground', 'hankBG/Ground', -400, -450);
addLuaSprite('... |
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Plasma = require(ReplicatedStorage.Plasma)
return function(target)
local root = Plasma.new(target)
local connection = RunService.Heartbeat:Connect(function()
Plasma.start(root, function()
Plasm... |
sets = {}
sets.pre_action = {}
sets.pre_action.FC = {
}
sets.idle = {
}
filter_action = function(act)
end
pre_action = function(act)
end
mid_action = function(act)
end
post_action = function(act)
end |
vim.wo.fcs = "eob: "
vim.cmd("autocmd BufUnload <buffer> call timer_start(1, { tid -> execute('lua SetRoot(\"git_worktree\")')})")
|
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
function onGetFormulaValues(player, level, maglevel)
return -3, -5
end
combat:setCallback(CALLBACK_PARAM... |
local Zlog = require "Zlibs.class.Log"
local Point = require "Zlibs.class.Point"
local Size = require "Zlibs.class.Size"
local math = require "Zlibs.class.math"
local type = require "Zlibs.tool.type"
-- local Rect = require "Zlibs.class.Rect"
local obj = {}
local funcValues = {}
-- 魔术变量接口_插件用
obj._magicValues = funcVa... |
/*---------------------------------------------------------------------------
F4 menu tab modification module.
---------------------------------------------------------------------------*/
if true then return end -- REMOVE THIS LINE TO ENABLE THIS MODULE
local url = "http://wiki.darkrp.com/index.php/Main_Page"
local ... |
--
-- Created by IntelliJ IDEA.
-- User: Kunkka
-- Date: 6/30/17
-- Time: 16:14
-- To change this template use File | Settings | File Templates.
--
-- instance run on Mac or Android platform
local instanceRun = {}
-- must init this in main.lua before require any other modules
function instanceRun:init(androidPackageN... |
return function()
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local AssetTypeCursor = require(script.Parent.AssetTypeCursor)
local SetAssetTypeCursor = require(Modules.AvatarExperience.AvatarEditor.Actions.SetAssetTypeCursor)
it("should be unchanged by other actions"... |
describe("Table heap", function()
local table_heap = require("data_structures.table_heap")
local shuffle = require("random.shuffle")
local list = {}
for index = 1, 100 do
list[index] = index
end
shuffle(list)
local heap = table_heap.new()
for index = 1, #list do
heap:push(list[index])
end
for index = 1, ... |
import "com"
ps = com.CreateObject("Photoshop.Application")
ps.open("f:\\pictures\\tosort6\\IMG_0471.jpg")
|
--[[
CanvasBufferedWidget is a *mostly* drop-in replacement for Widget that
differs from Widget in that painting is buffered to a canvas before the
screen.
This allows, e.g., complex drawing logic to be done less often than once
per frame in cases where there isn't always something to update ev... |
local player = ECS.Component("player")
return player
|
local utils = require 'utils'
-- part 1
local function part1(input)
local sum = 0
for i = 1, #input do
local curr_val, next_val, p
curr_val = input:sub(i, i)
p = (i == #input) and 1
or i + 1
next_val = input:sub(p, p)
if curr_val == next_val then
sum = sum + ton... |
#!/usr/bin/env lua
--[[
# USAGE:
Full Build
----------
./build.lua
Partial Build (includes dependancies)
-------------------------------------
./build.lua ART.Paint ART.Widget
--]]
require "luarocks.require"
require "json"
-- table.include ()
-- includes a value in a table if not already present
function tab... |
local standardVolumeOutput = 0.3;
local hasPlayerLoaded = false
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
hasPlayerLoaded = true
end)
RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
hasPlayerLoaded = false
end)
RegisterNetEvent('InteractSound_CL:PlayOnOne', function(soundFile, s... |
assert(Config, 'Need a pre-existing Config table!')
--NUC #1 (N1bot): 192.168.123.101
--NUC #2 (N2bot): 192.168.123.102
--Super NUC #1 : 192.168.123.103
--#N5bot
--Velodyne #2: 192.168.124.202:2369
--Velodyne #1: 192.168.124.201:2368
--Velodyne #4: 192.168.124.204:2371
--N4bot
--Velodyne #3: 192.168.124.208:2370
-... |
--[[
NPCCampBehavior - Player Proximity
by: standardcombo
v0.9.0
Works in conjunction with NPCSpawner and expects it as a sibling script.
Camp Behavior
The camp's behavior is driven by the scripts 'NPCSpawner' and
'NPCCampBehavior_PlayerProximity'. These scripts define "When" and "How" to spa... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:26' using the latest game version.
NOTE: This file should only be used as IDE support; it should NOT be distributed with addons!
****************************************************************************
CONTENTS OF THIS FILE IS COPYRI... |
local x = 1
local y = 2
local z = 69
local a = 420
print(x + y)
print(x / y)
print(y * a)
print(a % z)
print(1 / 0)
print(0 / 0)
print(-1 / 0)
local function approx(x)
return math.floor((x * 1000) + 0.5) / 1000
end
print(approx(1 / 3))
print(approx(3 / 5))
print(approx(-1 / 9)) |
local M = {}
M.description = 'Neovim TUI'
M.wants = {
'target.basic',
}
return M
|
local Tunnel = module("_core", "lib/Tunnel")
local Proxy = module("_core", "lib/Proxy")
API = Proxy.getInterface("API")
cAPI = Tunnel.getInterface("API")
dbAPI = Proxy.getInterface("API_DB")
local houses = {
-- price_dollar, price_gold
["house:1"] = {200.0, 80.0},
["house:2"] = {200.0, 80.0},
["house:... |
local QDEF = QuestDef.Define
{
qtype = QTYPE.EVENT,
act_filter = EscapeTheBogUtil.ETBActFilter,
process_fighter = function(quest, fighter)
if table.arraycontains(quest.param.opfor or {}, fighter.agent) and not (fighter.agent:GetContentID() == "GROUT_LOOT_CLUSTER" or fighter.agent:GetContentID() == ... |
local account = require('account')
local channel = require('core.channel')
local client_data_items = require('client_data.items')
local packet = require('packet')
local resources = require('resources')
local server = require('shared.server')
local string = require('string.ext')
local struct = require('struct')
local ta... |
local lfs = require "lfs"
local eqg = require "luaeqg"
local obj = require "gui/obj"
require "gui/loader"
dir = {}
function assert(result, msg)
if result then return result end
io.stdout:write(msg .. "\n")
io.flush()
end
function error_popup(msg)
io.stdout:write(msg .. "\n")
io.flush()
end
function log_write(... |
for line in io.lines(arg[1]) do
if #line > 0 then
local sep, m = line:find(";"), {}
for i in line:sub(sep):gmatch("%d+") do
if m[i] then
print(i)
break
end
m[i] = true
end
end
end
|
--[[
██╗░░░██╗░█████╗░██████╗░░██████╗░██╗░░░██╗██╗████████╗███████╗
██║░░░██║██╔══██╗██╔══██╗██╔════╝░██║░░░██║██║╚══██╔══╝╚════██║
╚██╗░██╔╝███████║██████╔╝██║░░██╗░██║░░░██║██║░░░██║░░░░░███╔═╝
░╚████╔╝░██╔══██║██╔══██╗██║░░╚██╗██║░░░██║██║░░░██║░░░██╔══╝░░
░░╚██╔╝░░██║░░██║██║░░██║╚██████╔╝╚██████╔╝██║░░░██║░░... |
includeFile("tangible/wearables/armor/rebel_battle/armor_rebel_battle_belt.lua")
includeFile("tangible/wearables/armor/rebel_battle/armor_rebel_battle_belt_gcw.lua")
includeFile("tangible/wearables/armor/rebel_battle/armor_rebel_battle_bicep_l.lua")
includeFile("tangible/wearables/armor/rebel_battle/armor_rebel_battle_... |
help([[
stitcher
]])
local base = "/n/groups/lsp/o2/apps/stitcher/"
local pkgName = myModuleName()
local fullVersion = myModuleVersion()
load("java")
append_path("PATH", pathJoin(base, fullVersion, "/bin/"))
whatis("Name: ".. pkgName)
whatis("Version: " .. fullVersion)
whatis("Category: tools")
whatis("De... |
local ffi = require "ffi"
require "khrplatform"
ffi.cdef[[
typedef void *EGLNativeDisplayType;
typedef void *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
]]
require "bcm_host"
ffi.cdef[[
typedef struct {
DISPMANX_ELEMENT_HANDLE_T element;
int width; /* This is necessary because dispmanx ele... |
local S=physio_stress.intllib
function physio_stress.hud_init(player,col)
return
end
function physio_stress.hud_update(player, col, value)
return
end
if minetest.get_modpath("hudbars") then
hb.register_hudbar('exhaustion', 0xffffff, S("Exhaustion"), {
bar = 'physio_stress_hudbars_bar.png^[colorize:#aa778... |
Main = {
peds = {},
}
function Main:Toggle(value)
self.isActive = value
if value then
self:Update()
else
self:Destroy()
end
end
function Main:Update()
local coords = GetFinalRenderedCamCoord()
for ped, text in pairs(self.peds) do
if not DoesEntityExist(ped) or not IsEntityVisible(ped) or #(GetEntityCoo... |
local easy_recipes = settings.startup["Factorissimo2-easy-recipes"].value
local multiplier = easy_recipes and 1 or 10
--[[
Modify
-ingredients
]]
data:extend({
-- Factory buildings
{
type = "recipe",
name = "space-factory-3",
enabled = false,
energy_required = 60,
ingredients = {{"se-space-platform-plat... |
require 'nngraph'
require 'loadcaffe'
local cmd = torch.CmdLine()
cmd:option('-modelfile', 'models/VGG_ILSVRC_16_layers.caffemodel', 'Model used for perceptual losses')
cmd:option('-protofile', 'models/VGG_ILSVRC_16_layers_deploy.prototxt', 'prototxt of the perception model')
cmd:option('-style_weight', 1e0)
cmd:opti... |
item_greater_power_treads = class(ItemBaseClass)
LinkLuaModifier( "modifier_item_greater_power_treads", "items/farming/greater_power_treads.lua", LUA_MODIFIER_MOTION_NONE )
--------------------------------------------------------------------------------
function item_greater_power_treads:GetAbilityTextureName()
lo... |
Telegram = Telegram or {}
if SERVER then
include("telegram/cfg.lua")
include("telegram/lib/logs.lua")
include("telegram/lib/admin.lua")
include("telegram/lib/get.lua")
include("telegram/commands.lua")
timer.Create("Telegram", Telegram.Config.Delay, 0, Telegram.GetChats)
end |
return {
source = {
type = 'dist',
location = 'https://www.kernel.org/pub/linux/utils/util-linux/v2.23/util-linux-2.23.2.tar.xz',
sha256sum = '7c4042bd91f621250d7b3b2f34e3b11921a32c7f080c149dcc0c7ce62a8a7cac'
},
patches = {
'util-linux-2.23.2.patch'
},
build = {... |
local E, L, V, P, G = unpack(select(2, ...)) -- Import Functions/Constants, Config, Locales
local RU = E:GetModule('RaidUtility')
--Lua functions
local _G = _G
local unpack, ipairs, pairs, next = unpack, ipairs, pairs, next
local tinsert, wipe, sort = tinsert, wipe, sort
local strfind = strfind
--WoW API / Variables
l... |
----utility functions
local function save_data(filename,...)
local file,err = io.open(filename,"w")
if not file then error(err) end
for i=1, select('#', ...) do
local data = select(i, ...)
file:write(data)
end
file:close()
end
----------------------------------------
local function ... |
-- Copyright (c) 2021 wzhengsen
-- 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, merge, publish, distr... |
-- https://phelipetls.github.io/posts/async-make-in-nvim-with-lua/
local M = {}
local util = require("go.utils")
local log = util.log
function M.make(...)
local args = { ... }
local lines = {}
local errorlines = {}
local winnr = vim.fn.win_getid()
local bufnr = vim.api.nvim_win_get_buf(winnr)
local makeprg ... |
local exports = {}
local serialized_table_token = '@@lua_table@@'
local json = require 'dkjson'
---
-- @param value
-- @return string
---
local serialize = function(value)
if type(value) == 'table' then
value = serialized_table_token .. json.encode(value)
end
return value
end
---
-- @param value ... |
local luview = require 'luview'
local lunum = require 'lunum'
local shaders = require 'shaders'
local window = luview.Window()
local box = luview.BoundingBox()
local points = luview.PointsSource()
local colors = luview.FunctionMapping()
local pntens = luview.PointsEnsemble()
local shader = shaders.load_shader("lamb... |
local simplex_noise = require 'tools.simplex_noise'
local Event = require 'utils.event'
biter_battles_terrain = {}
--no need to constantly work out each chunk
local radius = 24 --starting pond radius
local radsquare = radius*radius
local ore_amount = 1400
local ores = {"copper-ore", "iron-ore", "stone", "coal", "u... |
MainColor = "Bright blue"
Name = "xSoulStealerx"
Plrs = game:GetService("Players")
me = Plrs[Name]
char = me.Character
Modelname = "xDragon"
PetName = "xDragon"
Toolname = "Dragon"
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
necko = CFrame.new(0, 1, 0, -1, ... |
test_run = require('test_run').new()
--
-- gh-5435: make sure the new limbo owner commits everything there is left in
-- the limbo from an old owner.
--
SERVERS = {'election_replica1', 'election_replica2', 'election_replica3'}
test_run:create_cluster(SERVERS, "replication", {args='2 0.4'})
test_run:wait_fullmesh(SER... |
local M = {}
function M.seconds(amount)
local co = coroutine.running()
assert(co, "You must run this from within a coroutine")
timer.delay(amount, false, function()
coroutine.resume(co)
end)
coroutine.yield()
end
function M.eval(fn, timeout)
local co = coroutine.running()
assert(co, "You must run this from w... |
class "job.hos" ("job")
local hos = job.hos
hos.title = "Head of Security"
hos.access = {
"security", "sec_doors", "brig", "armory", "court", "weapons",
"forensics_lockers", "morgue", "maint_tunnels", "all_personal_lockers",
"research", "engine", "mining", "medical", "construction", "ma... |
return nil --TODO
|
--[[
]]
-- [[ LAPIS MODULES ]]
local DB = require "lapis.db"
local APPLICATION = require("lapis.application")
local MODEL = require("lapis.db.model").Model
--[[ ETC MODULES ]]
local ParamUtil = require "ParamUtil"
local Builder = require "ResponseBuilder"
--[[ GLOBAL LAPIS CONSTANTS ]]
local RESPOND_TO = APPLICATIO... |
-- Source: https://wiki.wemos.cc/products:d1_mini_shields:oled_shield
-- font_10x20,font_6x10,font_7x13,font_8x13,font_9x15,font_chikita
print("\n display_oled.lua hv180729.1133 \n")
pin_sda = 12
pin_scl = 11
disp_sla = 0x3c
function init_OLED(sda, scl)
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.... |
vTable = {
[ 'Overwatch by Aurora Systems' ] = {
[1] = { "Tracer's Pulse Gun" , "Uzi" , "overwatch/overwatch_micro_uzi.dff" , "overwatch/overwatch_micro_uzi.txd" , 352, "893KB" , true},
[2] = { "Pharah's Rocket Launcher" , "Rocket Launcher" , "overwatch/overwatch_rocketla.dff" , "overwatch/overwatch_rocketl... |
--[[
Pixel Vision 8 - Flag Example
Copyright (C) 2017, Pixel Vision 8 (http://pixelvision8.com)
Created by Jesse Freeman (@jessefreeman)
This project was designed to display some basic instructions when you create
a new game. Simply delete the following code and implement your own Init(),
Update() and Dra... |
describe("util.smqueue", function()
local smqueue
setup(function() smqueue = require "util.smqueue"; end)
describe("#new()", function()
it("should work", function()
local q = smqueue.new(10);
assert.truthy(q);
end)
end)
describe("#push()", function()
it("should allow pushing many items", function()
... |
--succ it hard
print("Hello world!")
wait()
Player = game:GetService("Players").LocalPlayer
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
Humanoid = Character.Humanoid
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
Rig... |
local input = require'neogit.lib.input'
local M = {
value = '',
confirmed = true
}
input.get_user_input = function (_)
return M.value
end
input.get_user_input_with_completion = function (_, _)
return M.value
end
input.get_confirmation = function (_, _)
return M.confirmed
end
return M
|
local PLUGIN = PLUGIN
PLUGIN.name = "Tying"
PLUGIN.author = "Shavargo"
PLUGIN.description = "Ported from HL2RP; Adds the ability to tie players."
ix.lang.AddTable("english", {
tying = "Tying...",
unTying = "Untying...",
isTied = "Tied",
fTiedUp = "You have been tied up.",
fBeingTied = "You are being tied up.",
... |
ITEM.name = "Flare gun"
ITEM.description = "A flare gun used for long-distance communication."
ITEM.class = "weapon_vj_flaregun"
ITEM.model = "models/vj_weapons/w_flaregun.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.iconCam = {
pos = Vector(5, 0, 30),
ang = Angle(90, 0, 0),
fov = 45,
}
ITEM.price = 100 |
local specs = require "specs"
specs.setup {
show_jumps = true,
min_jump = 30,
popup = {
delay_ms = 0, -- delay before popup displays
inc_ms = 12, -- time increments used for fade/resize effects
blend = 30, -- starting blend, between 0-100 (fully transparent), see :h winblend
width = 25,
winhl... |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
--[[ Copyright (c) 2012 Stephen Baker
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, merge, publish, distribute,... |
require("startup").setup({ theme = 'startify' })
|
-- This comment enforces unit-test coverage for this file:
-- coverage: 0
http = require 'summit.http'
menu = require 'summit.menu'
speech = require 'summit.speech'
json = require 'json'
inspect = require "inspect"
log = require "summit.log"
category_names = { 'u.s.', 'world', 'sports', 'business', 'technology', 'sc... |
-- local json = require "json"
function f (a)
return a + 5
end
function setup_camera()
return 34
end
function f2(a, b, c)
return a, b, c
end
clear_screen()
clear_screen()
clear_screen()
load_project(5);
print "hello world"
function tick(elapsed)
print "elapsed"
end
function setup_scene()
en... |
local lgi = require 'lgi'
local Gtk = lgi.Gtk
local stylesheet_template = [[
GtkLabel {
color: %s;
}
GtkButton GtkLabel {
color: %s;
}
]]
local cssprovider = Gtk.CssProvider()
local window = Gtk.Window {
width_request = 500,
height_request = 300,
title = 'CSS',
Gtk.Box {
orientation = 'VERTICAL',
... |
local config = require 'config'
local u = require 'utilities'
local api = require 'methods'
local plugin = {}
function trim(str)
local s = str:gsub('^%s*(.-)%s*$', '%1')
return s
end
function plugin.onTextMessage(msg, blocks)
if blocks[1] == 'shout' then
if not blocks[2] then
message = "*Avaliable... |
-- KEYS只指定客户号
-- ARGV[]格式为:用户信息数据个数N,
-- 用户信息数据1键,用户信息数据1值,......,用户信息数据N键,用户信息数据N值,
-- 账户1,账户1信息数据个数M1,
-- 账户1信息数据1键,账户1信息数据1值,......,账户1信息数据M1键,账户1信息数据M1值,
-- 账户2,账户2信息数据个数M2,
-- 账户2信息数据1键,账户2信息数据1值,......,账户2信息数据M2键,账户2信息数据M2值,
... |
--[[ Copyright (c) 2018 Optera
* Part of Re-Stack
*
* See LICENSE.md in the project directory for license information.
--]]
SelectItemByEntity("reactor", settings.startup["ReStack-reactor"].value)
SelectItemByEntity("assembling-machine", settings.startup["ReStack-crafting-machine"].value)
SelectItemByEntity... |
--Made by Lagx#2413--
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-19, 32, 253)
for i = 1, 50 do
while wait() do
local Loc = CFrame.new(-24.374, 33.1, 253.669)
for i, ChosenPlayer in pairs(game.Players:GetPlayers()) do
if ChosenPlayer.Name ~= game:GetService("Players").LocalPlayer.Name the... |
--[[
LuiExtended
License: The MIT License (MIT)
--]]
local UnitFrames = LUIE.UnitFrames
local PetNames = LUIE.Data.PetNames
local zo_strformat = zo_strformat
local g_FramesMovingEnabled = false -- Helper local flag
local nameDisplayOptions = { "@UserID", "Character Name", "Character Name @Us... |
local awful = require('awful')
local gears = require('gears')
local config_dir = gears.filesystem.get_configuration_dir()
local colorschemes_dir = os.getenv('HOME') .. '/.config/awesome/themes/colorschemes/'
local xresources = require('beautiful.xresources')
local dpi = xresources.apply_dpi
local Themes_path = c... |
function test()
print( "hello" )
end
|
GM = GM or GAMEMODE
local PLUGIN = {}
timer.Simple(1, function()
OUTFIT_REGISTERED = {
-- EXTENDED ENHANCED CITIZEN SUPPORT
efemale = {
{
name = "model",
},
{
name = "face",
outfits = function(entity)
local faces = {}
local mdl = entity:GetModel()
local woo = OUTFIT_DATA[mdl:lower()]
... |
-- Taken from https://github.com/RockManEXEZone/MMBN-Table-Files/blob/master/done/bn3-utf8.tbl
local TEXT_TABLE = {
[" "] = 0x0 ,
["0"] = 0x1 ,
["1"] = 0x2 ,
["2"] = 0x3 ,
["3"] = 0x4 ,
["4"] = 0x5 ,
["5"] = 0x6 ,
["6"] = 0x7 ,
["7"] = 0x8 ,
["8"] = 0x9 ,
["9"] = 0xA ,
A = 0xB ,
B = 0xC ,... |
object_draft_schematic_armor_component_armor_assault_segment = object_draft_schematic_armor_component_shared_armor_assault_segment:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_armor_component_armor_assault_segment, "object/draft_schematic/armor/component/armor_assault_segment.iff")
|
juggernaut_basic_attack = class({})
LinkLuaModifier("modifier_juggernaut_basic_attack_stacks", "abilities/heroes/juggernaut/juggernaut_basic_attack/modifier_juggernaut_basic_attack_stacks", LUA_MODIFIER_MOTION_NONE)
function juggernaut_basic_attack:GetCastPoint()
if IsServer() then
return self:GetCaster():GetAttack... |
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local naughty = require("naughty")
local lain = require("lain")
local http = require("socket.http")
local json = require("JSON")
local ltn12 = require("ltn12")
local secrets = require("sec... |
slot0 = class_C("Component", ClassLoader:aquireClass("Entity"))
slot0.onCreate = function (slot0)
slot0.super.onCreate(slot0)
slot0:addProperty("owner")
end
slot0.onLoad = function (slot0)
return
end
slot0.onUnload = function (slot0)
return
end
slot0.onReset = function (slot0)
return
end
return slot0
|
-- minetest/creative/init.lua
creative = {}
local player_inventory = {}
local creative_mode = minetest.setting_getbool("creative_mode")
-- Create detached creative inventory after loading all mods
creative.init_creative_inventory = function(owner)
local owner_name = owner:get_player_name()
player_inventory[owner_na... |
local icons = require('ky.ui').icons
local signs = { Error = icons.error, Warn = icons.warn, Hint = icons.hint, Info = icons.info }
for type, icon in pairs(signs) do
local hl = 'DiagnosticSign' .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
vim.diagnostic.config {
severity_sort = t... |
local Effect = require("mod.elona.api.Effect")
local Rand = require("api.Rand")
local Gui = require("api.Gui")
local Event = require("api.Event")
local Chara = require("api.Chara")
local ElonaMagic = require("mod.elona.api.ElonaMagic")
local I18N = require("api.I18N")
local Enum = require("api.Enum")
local RANGE_BOLT ... |
local PANEL = {}
--[[---------------------------------------------------------
Function: Init
-----------------------------------------------------------]]
function PANEL:Init()
--> Variables
self.color = windowsSettings.data.scheme()
end
--[[---------------------------------------------------------
... |
local pairs = pairs
local smatch = string.match
local slen = string.len
local http = require("resty.http")
local json = require("orange.utils.json")
local encode_base64 = ngx.encode_base64
local string_format = string.format
local lor = require("lor.index")
local socket = require("socket")
local orange_db = require("or... |
-- A solution contains projects, and defines the available configurations
solution "sdl2template"
configurations { "Debug", "Release"}
flags { "Unicode" , "NoPCH"}
projectName = "sdl2template"
sourcePath = "src"
binPath = "bin"
-- A project defines one build target
project (projectName)
kind "Co... |
NewFileModal = {}
NewFileModal.__index = NewFileModal
function NewFileModal:Init()
local _renameModal = {} -- our new object
setmetatable(_renameModal, NewFileModal) -- make Account handle lookup
local width = 224
local height = 72
_renameModal.canvas = NewCanvas(width, height)
local displaySize = Disp... |
-- Base neovim configuration
local Options = require('configuration.options')
local StatusLine = require('configuration.statusline')
return {
Options = Options,
StatusLine = StatusLine,
setup = function()
-- Configure neovim options
Options.setup()
-- Enable custom statusline
StatusLine.setup()
... |
-- language specific higlights
local lush = require("lush")
local base = require("codeschool.base")
local M = {}
M = lush(function()
return {
jsxTagName {base.CodeschoolAqua},
jsxComponentName {base.CodeschoolGreen},
jsxCloseString {base.CodeschoolFg4},
jsxAttrib {base.CodeschoolYellow},
jsxEqua... |
local versionMajor = "2"
local versionMinor = "2"
--[[
Original by Dustpuppy
Modified & Extended by MMaster
Gui functions
Needs a screen tier 2 or tier 3
All x, y coordinates are relative to the gui, not the screen
------------------------------------------------------------------------
... |
--
-- Copyright(c) 2010-2015 Intel Corporation.
-- Copyright(c) 2016-2018 Viosoft Corporation.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- * Redistributions of source code must ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.