content stringlengths 5 1.05M |
|---|
local objects =
{
--Maxime
createObject(4832,1545.6000000,-2382.1000000,21.4000000,0.0000000,90.0000000,90.0000000, 47), --object(airtwer_las, 47), (1, 47),
createObject(4832,1545.6000000,-2398.5000000,21.4000000,0.0000000,90.0000000,90.0000000, 47), --object(airtwer_las, 47), (2, 47),
createObject(6189,1566.40000... |
return {
hr = {
menu_file = "Igra",
menu_file_new = "Nova",
menu_file_load = "Uèitaj nivo...",
menu_file_skip = "Preskoèi nivo",
menu_file_previous = "Prethodni nivo",
menu_file_last_played = "Zadnji pokrenuti nivo",
menu_file_open_data = "Otvori datoteku...",
menu_file_high_scores = "Najbolji rezultat... |
local u = require("utils")
----------
-- Options
----------
-- Show relative line numbers in gutter
vim.opt.number = true
vim.opt.relativenumber = true
-- Don't wrap lines by default
vim.opt.wrap = false
-- Stop folding stuff!
vim.opt.foldenable = false
-- Indentation
vim.opt.expandtab = true
vim.opt.shiftwidth = ... |
local class = require 'code/lib/middleclass'
local Score = class('Score')
function Score:initialize()
self.score = 0
self.target = 20
end
function Score:draw()
love.graphics.setColor(0.1, 0.8, 0.1)
love.graphics.rectangle("fill", 20, const.height_px-300, 50, 200)
love.graphics.setColor(1,1,1)
... |
local http = require "http"
local nmap = require "nmap"
local shortport = require "shortport"
local strbuf = require "strbuf"
description = [[
Checks for SCADA Siemens <code>SIMATIC S7-</code> devices.
The higher the verbosity or debug level, the more disallowed entries are shown.
]]
---
--@output
-- 80/tcp open ... |
require("rc/plugins")
require("rc/options")
require("rc/mappings")
require("rc/cmp")
|
appname="Windows 93"
appsdk="3"
user_permission={
[1] = "ACCESS_COARSE_LOCATION" ;
[2] = "ACCESS_FINE_LOCATION" ;
[3] = "ACCESS_NETWORK_STATE" ;
[4] = "ACCESS_WIFI_STATE" ;
[5] = "INTERNET" ;
[6] = "WRITE_EXTERNAL_STORAGE" ;
} ;
packagename="com.android.Windows93"
template="blank"
appcode="4"
appve... |
require 'torch'
require 'nn'
local hdf5 = require 'hdf5'
local pl = require('pl.import_into')()
torch.setdefaulttensortype('torch.FloatTensor')
-- Some definitions copied from the TensorFlow model
-- Epsilon value used in Batch Normalization
local std_epsilon = 0.0010000000475
local args = pl.lapp [[
-i (string) f... |
-------------------------------------------------------------------------------
-- Serverside access to cursorPos()
-------------------------------------------------------------------------------
local render_library, _ = SF.Libraries.RegisterLocal("render")
--- Gets a 2D cursor position where ply is aiming.
function... |
local xpos = 320 --Mouse X position
local ypos = 240 --Mouse Y position
local kpressed = false --Key is pressed
local movement = {0,0,0,0} --Movement up,down,left,right
local f_curspeed = function() --Get mouse speed
return 200*math.max(xpos*2/640,ypos*2/480)
end
local curspeed = f_curspeed()
local cacursor =... |
--
-- MessageBox example.
--
local MessageBox = require "widget.messagebox"
---@type widget.messagebox
local messagebox = MessageBox(
nil,
"Multiline",
{
"Some multiline message\nTo see how it works."
}
)
messagebox.size.x = 250
messagebox.size.y = 300
messagebox:add_button("Ok")
messagebox:add_button("C... |
insulate("SOPRegister", function()
local sopRegister
local utils
local standardOperatingProcedure
setup(function()
sopRegister = require "audiochecklist.sopregister"
utils = require "audiochecklist.utils"
standardOperatingProcedure = require "audiochecklist.standardoperatingproc... |
--Waypoint Utilities File. Used for adding, removing, and parsing the waypoint db.
function bwuTEST(hello)
print("hello, wow!")
end
--############
--[[In order to call functions for the waypoint object, you must use the ":"
as in object:functionName. If you do not do this and instead use the ".",
it changes the ... |
-- FIXME: autodetect cobscript in gadget instead of defining it here
------------------------------------------------------------------------------------------------------------------------------------------------
-- Improved jumpjets def, enjoy
-- Smoth
-----------------------------------------------------------... |
#!/usr/bin/env luajit
require 'ext'
local ffi = require 'ffi'
require 'ffi.c.unistd'
require 'ffi.c.stdlib'
local dirp = ffi.C.getcwd(nil, 0)
local dir = ffi.string(dirp)
ffi.C.free(dirp)
ffi.C.chdir'../..'
-- honestly what's App used for anyways, beyond the gui?
-- the cl.env ... can I build a solver without app, but... |
data:extend({
{
type="item",
name="AppliedBasicElectronicComponentFactory",
icon="__AppliedGraphics__/graphics/electronics/icons/BasicElectronicComponentFactory.png",
icon_size=32,
subgroup="AppliedBasicElectronicsMachines",
order="",
place_result="AppliedBasicElectronicComponentFactory",
stack_size=50... |
local M = {}
M = {
bg_normal = "#1d2021",
bg_focus = "#504945",
bg_urgent = "#ff0000",
bg_minimize = "#3c3836",
bg_systray = M.bg_normal,
fg_normal = "#aaaaaa",
fg_focus = "#ffffff",
fg_urgent = "#ffffff",
fg_minimize = "#ffffff",
border_normal = "#3c3836",
border_focus =... |
--[[
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,
sublicense, and/or sell copies of... |
require("pl.strict")
local resp = require("resp")
local client = resp.new("localhost", 6379)
local assert_equal = function(a, b)
assert(a == b, tostring(a) .. " ~= " .. tostring(b))
io.write(".")
end
-- RESP encoding
assert_equal("*1\r\n$3\r\nFOO\r\n\r\n", resp.encode("FOO"))
-- RESP status
assert_equal(client:c... |
require 'lev.std'
require 'debug'
screen = lev.screen()
img1 = lev.bitmap(640, 480)
img1:fill_rect(50, 50, 320, 240, lev.color(255, 0, 0, 180))
img1:fill_rect(100, 100, 320, 240, lev.color(0, 0, 255, 180))
img2 = lev.bitmap(648, 480)
img2:clear(lev.color(255, 255, 0))
tran = lev.transition()
tran:set_current(img1)
tr... |
-- mod-version:2 -- lite-xl 2.0
local core = require "core"
local command = require "core.command"
local Doc = require "core.doc"
local function trim_trailing_whitespace(doc)
local cline, ccol = doc:get_selection()
for i = 1, #doc.lines do
local old_text = doc:get_text(i, 1, i, math.huge)
local new_text =... |
/* Due to the amount of servers that have been absolutely braindead in their configuration, allowing assholes like me to write a nice little script to infinitely spawn money, I thought it's high time people used their brains. */
PLUGIN.name = "Spawning money Anti-Abuse"
PLUGIN.author = "Rusty"
PLUGIN.desc = "Prevent p... |
-- Miscellanious functions, v42.06a
--[[
getChange(current,value,mode) - Get the amount changed from the current depending on value and mode, returns a number
permute(tahle) - Takes a table and randomly permutes it, returns the permuted table
changeCounter(counter,amount,extra) - Change the counter by a certain ... |
-----------------------------------
-- Area: Norg
-- NPC: Oruga
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind")
-----------------------------------
local path =
{
-0.016294, -1.251156, -30.703135,
1.135162, -1.295192, -30.737705,
2.267773, -1.620833, -30.756174... |
local replicating_5d_mk4 = {
type = "technology",
name = "replicating-5d-mk4-transport-belt",
localised_name = {"replicating-belts.prefix", {[1] = "replicating-belts.5d-mk4-transport-belt-lower"}},
localised_description = {"replicating-belts.technology-description", {[1] = "replicating-belts.5d-mk4-transpor... |
band_fanfar_outfit = {
{
{objectTemplate = "object/tangible/wearables/shirt/shirt_s05.iff", customizationVariables = {{"/private/index_color_1", 90}} },
{objectTemplate = "object/tangible/wearables/pants/pants_s12.iff", customizationVariables = {} },
{objectTemplate = "object/tangible/wearables/shoes/shoes_s03.... |
function Server_AdvanceTurn_Order(game, order, result, skipThisOrder, addNewOrder)
standing = game.ServerGame.LatestTurnStanding;
CurrentIndex=1;
Order66={};
ZombieID = Mod.Settings.ZombieID;
--ignore unimportent orders TODO
if (Mod.Settings.RandomZombie ==true) then
--ZombieID = FindZombieID(game);
ZombieID ... |
local L = LibStub("AceLocale-3.0"):NewLocale("EPGP", "esMX")
if not L then return end
L["%+d EP (%s) to %s"] = "%+d EP (%s) a %s"
L["%+d GP (%s) to %s"] = "%+d GP (%s) a %s"
--[[Translation missing --]]
--[[ L["'%s' - expected 'on' or 'off', or no argument to toggle."] = ""--]]
--[[Translation missing --]]
--[[ L["'%... |
time = require("time") |
local util = {
table = {},
math = {},
string = {},
file = {}
}
--file
local default_load_func = function(path)
require(path:gsub("%.(.+)", ""))
end
function util.file.recursive_load(folder, load_func)
for _, file_or_folder_name in pairs(love.filesystem.getDirectoryItems(folder)) do
lo... |
ig_assassin_droid = Creature:new {
objectName = "@mob/creature_names:ig_assassin_droid",
socialGroup = "",
faction = "",
level = 21,
chanceHit = 0.33,
damageMin = 220,
damageMax = 230,
baseXp = 1803,
baseHAM = 2400,
baseHAMmax = 3000,
armor = 0,
resists = {125,125,5,5,5,-1,5,-1,-1},
meatType = "",
meatAmo... |
--- Turbo.lua Unit test
--
-- Copyright 2013 John Abrahamsen
--
-- 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 appl... |
local setmetatable = setmetatable
return require 'construct.Map' : derive(function ()
return function (source, self, mode)
source(self)
self.meta = { __mode = mode or 'k' }
setmetatable(self.data, self.meta)
end
end)
|
-----------------------------------
--
-- Zone: South_Gustaberg (107)
--
-----------------------------------
local ID = require("scripts/zones/South_Gustaberg/IDs")
require("scripts/globals/icanheararainbow")
require("scripts/globals/chocobo_digging")
require("scripts/globals/conquest")
require("scripts/globals/mission... |
function onCreate()
-- background shit
makeLuaSprite('exe2stageback', 'exe2stageback', -600, -300);
setScrollFactor('exe2stageback', 0.9, 0.9);
makeLuaSprite('idiot', 'idiot', -650, 600);
setScrollFactor('idiot', 0.9, 0.9);
scaleObject('idiot', 1.1, 1.1);
-- sprites that only load if Low Quality is t... |
require "utils/multistate_animation"
require "scenes/world/movable"
function newMovableHero(world, position)
local heroFilenames = {
"assets/world/animations/upward.png",
"assets/world/animations/downward.png",
"assets/world/animations/leftward.png",
"assets/world/animations/rightward.png"
}
local heroAnima... |
-- A basic library of vector2 operations using only x and y numbers.
local vec2 = {}
local vec2_mt = {} -- only used for __call = new
local acos = math.acos
local atan2 = math.atan2
local sqrt = math.sqrt
local cos = math.cos
local sin = math.sin
local PI = math.pi
local TWO_PI = math.pi*2
-- Mak... |
local playsession = {
{"Gerkiz", {6930}},
{"Mullacs", {449}},
{"Olekplane1", {622071}},
{"kaimix", {745032}},
{"Revar", {718}},
{"RasmusNord", {311201}},
{"AbsoluteZeroIs0K", {17197}},
{"Immo", {221822}},
{"SumerSoft", {27054}},
{"wekkka", {50298}},
{"Giatros", {5283}},
{"Tornado_05", {1244}},
{"Ed9210", {... |
-- Editors:
-- AltiV, January 17th, 2020
LinkLuaModifier("modifier_imba_furion_wrath_of_nature", "components/abilities/heroes/hero_furion", LUA_MODIFIER_MOTION_NONE) -- This is used as intrinsic modifier for variant / IMBAfication
LinkLuaModifier("modifier_imba_furion_wrath_of_nature_aura", "components/abilities... |
require("lsp").setup "go"
|
package("mjson")
set_homepage("https://github.com/cesanta/mjson")
set_description("C/C++ JSON parser, emitter, JSON-RPC engine for embedded systems")
set_license("MIT")
add_urls("https://github.com/cesanta/mjson/archive/refs/tags/$(version).zip",
"https://github.com/cesanta/mjson.git")
... |
WUMA = WUMA or {}
WUMA.ConVars = WUMA.ConVars or {}
WUMA.ConVars.CVarLimits = WUMA.ConVars.CVarLimits or {}
WUMA.ConVars.CVars = WUMA.ConVars.CVars or {}
WUMA.ConVars.ToClient = WUMA.ConVars.ToClient or {}
WUMA.VERSION = "1.2.1"
WUMA.AUTHOR = "Erik 'Weol' Rahka"
--Enums
WUMA.DELETE = "WUMA_delete"
WUM... |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
--
-- As per the sublicensing clause, this file is also MIT/X11 Licensed.
-- ** Copyright (c) 2009-... |
local getAdorneeBasePart = require(script.Parent.getAdorneeBasePart)
local function getAdorneeAlignedSize(adornee: Instance)
if adornee:IsA("Model") then
return select(2, adornee:GetBoundingBox())
elseif adornee:IsA("Humanoid") then
return if adornee.Parent then select(2, (adornee.Parent :: Model):GetBoundingBox... |
--GDB = true
--{{{ history
--15/03/06 DCN Created based on RemDebug
--28/04/06 DCN Update for Lua 5.1
--01/06/06 DCN Fix command argument parsing
-- Add step/over N facility
-- Add trace lines facility
--05/06/06 DCN Add trace call/return facility
--06/06/06 DCN Make it behave when stepping th... |
-- mod-version:2 -- lite-xl 2.0
-- Not perfect, because we can't actually figure out when something closes, but should be good enough, so long as we check the list of open views.
-- Maybe find a better way to get at "Node"?
local core = require "core"
local RootView = require "core.rootview"
local command = require "co... |
minetest.register_chatcommand("createblock", {
params = "material x y z",
description = "Creates block of <material> at (<x>, <y>, <z>)",
func = function(name, param)
local found, _, material, xx, yy, zz = param:find("^(.*)%s+([+-]?%d+)%s+([+-]?%d+)%s+([+-]?%d+)$")
if found == nil then
return
e... |
local cflower = {}
function cflower:collide (with)
self:set_tile_graphics_here(self.tile+1)
self.active = false
end
return cflower
|
local opt = vim.opt
-- Show line numbers
opt.number = true
-- Display long lines as just one line
opt.wrap = false
-- Set the text width for automatic word wrapping to 80 characters
opt.tw = 80
opt.smartcase = true
opt.smarttab = true
opt.smartindent = true
opt.autoindent = true
-- Show a live preview of substitut... |
---
-- @author wesen
-- @copyright 2019 wesen <wesen-ac@web.de>
-- @release 0.1
-- @license MIT
--
local Clause = require("LuaORM/Query/Clause")
local JoinRule = require("LuaORM/Query/Clause/Join/JoinRule")
local TableUtils = require("LuaORM/Util/TableUtils")
---
-- Represents the JOIN clauses for a Query... |
return {
Client = Import("ga.duacord.duacord.Client.Client")
} |
data:add_type {
name = "production_recipe",
fields = {
{
name = "item_id",
type = types.data_id("base.item"),
template = true,
},
{
name = "skill_used",
type = types.data_id("base.skill"),
template = true,
},
{
name = "re... |
#!/usr/bin/lua
require 'std'
for i = 1, 138 do
print(err.strerror(a))
end
|
--************************
--name : SINGLE_AS_FA_01.lua
--ver : 0.1
--author : Kintama
--date : 2004/09/09
--lang : en
--desc : terminal mission
--npc :
--************************
--changelog:
--2004/09/09(0.1): Added description
--************************
function DIALOG()
NODE(0)
G... |
-- temp cache of often used function
local StringFormat = string.format
local function OnConsoleBadges()
local function RequestCallback(sClientBadges)
Print( "--Available Badges--" )
for i, sBadgeRows in pairs( sClientBadges ) do
Print( StringFormat( "Badge-Row %s:", i ))
for _, sBadge in ipairs( sBadgeRows... |
local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local STUB_POST_URL = spec_helper.PROXY_URL.."/post"
local function create_big_data(size)
return string.format([[
{"mock_json":{"big_field":"%s"}}
]], string.rep("*", size))
end
... |
--ZFUNC-iswindowsname-v1
local function iswindowsname( name ) --> res, i
--ZFUNC-buildset-v1
local function buildset( arr )
local res = {}
for _, v in ipairs( arr ) do res[ v ] = true end
return res
end
if #name == 0 then return false, 1 end
local index = string.find( name, [=[[%z<>:"... |
local AddonName, AddonTable = ...
-- Vault of the Wardens
--- https://www.wowhead.com/vault-of-the-wardens
AddonTable.wardens = {
-- Tirathon Saltheril
137532, -- seal-of-saltheril
137524, -- mortar-guard-shoulderplates
137509, -- glaivemasters-studded-grips
137542, -- metamorphosis-spark
13753... |
-----------------------------------------
-- ID: 4892
-- Scroll of Aeroja
-- Teaches the black magic Aeroja
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(498)
end
function onItemUse(target)
target:addSpell(498)
end |
local class = require 'EasyLD.lib.middleclass'
local Playlist = class('Playlist')
function Playlist:initialize(name, type, random)
self.name = name
self.type = type --Type of the stop/play fct (fading etc)
self.list = {}
if EasyLD.music.playlists == nil then
EasyLD.music.playlists = {}
end
EasyLD.music.playli... |
-- -------------------------------------------------------------------------- --
-- Cyber Engine Tweaks Version
-- -------------------------------------------------------------------------- --
local cetVer = tonumber((GetVersion():gsub('^v(%d+)%.(%d+)%.(%d+)(.*)', function(major, minor, patch, wip)
return ('%d.%02d%0... |
return {
{
effect_list = {
{
type = "BattleSkillAddBuff",
casterAniEffect = "",
target_choise = "TargetSelf",
targetAniEffect = "",
arg_list = {
buff_id = 10311
}
},
{
type = "BattleSkillFire",
casterAniEffect = "",
target_choise = "TargetHarmFarthest",
targetAni... |
-- globally defined functions
-- invoke using -- `:lua <function>(...)`
-- note that these require plugins to have been loaded
local async = require("plenary.async")
local notify = require("notify").async
function emptyString(str)
return str == nil or str == ''
end
function runShell(command)
local tmpfile = '/tm... |
local core = require("apisix.core")
local function start_with(str, prefix)
return string.sub(str, 1, string.len(prefix)) == prefix
end
local function end_with(str, suffix)
return suffix == '' or string.sub(str, -string.len(suffix)) == suffix
end
local function split(str, sep)
local splits = {}
if sep... |
--!strict
local Utils = script.Parent
local lerp = require(Utils.Lerp)
---
--[[
h1 [0, 360)
h2 [0, 360)
]]
return function(h1: number, h2: number, t: number, optionalAdjustment: string?): number
local adjustment = optionalAdjustment or "Shorter"
if ((h1 ~= h1) and (h2 == h2)) then
h1 = h2
... |
itemsRequired = {...}
if not turtle then
printError("This isn't a turtle")
return nil
end
--[[
The input is as follows:
input = {
{
name = "Stone", --The name of the item, for display purposes
id = 1, --The item ID
meta = 0, --The metadata of the item, nil if it doesn't mater
... |
-- Neuron is a World of Warcraft® user interface addon.
-- Copyright (c) 2017-2021 Britt W. Yazel
-- Copyright (c) 2006-2014 Connor H. Chenoweth
-- This code is licensed under the MIT license (see LICENSE for details)
--Neuron MinimapIcon makes use of LibDBIcon and LibDataBroker to make sure we play
--nicely with LDB... |
hasDX11 = findDirectX11()
if (hasDX11) then
project "App_DX11ClothDemo"
initDirectX11()
language "C++"
defines { "UNICODE","_UNICODE"}
kind "WindowedApp"
flags { "WinMain" }
targetdir "../.."
includedirs {
"../../src",
"DXUT/Core",
"DXUT/Optional"
... |
local E = unpack(ElvUI) -- Import Functions/Constants, Config, Locales
if E.db["euiscript"].bossnotes ~= true then return end
if GetLocale() == "zhCN" then
E.Raiders_List = {
["阿塔达萨"] = {
{name = "沃卡尔", raiders = "3个图腾必须一起死,图腾死了再打Boss。"},
{name = "莱赞", raiders = "卡视角躲恐惧,被点名跑河道,别踩土堆。"},
{name = "女祭司阿伦扎... |
PetFriendCommand = {
name = "petfriend",
defaultTime = 0.25,
}
AddCommand(PetFriendCommand)
|
local _={}
local startsWith
_.init=function(pow)
startsWith=pow.allen.startsWith
end
-- example: get("bind=","*") returns: "127.0.0.1" from bind=127.0.0.1 cmd param
_.get=function(prefix,fallback)
for k,currentArg in pairs(arg) do
local pos= string.find(currentArg, prefix)
if pos~=nil then
local pref... |
local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB, Localize Underscore
FireMage = E:NewModule("FireMage", 'AceEvent-3.0', 'AceTimer-3.0');
local LSM = LibStub("LibSharedMedia-3.0")
local FS = FireMage
local GetSpellInfo = GetSpellInfo
local select, tostring = select, tos... |
-- =============================================
-- -== Keyboard Cfg ==-
-- =============================================
local bind = vim.api.nvim_set_keymap
local default_opts = { noremap = true, silent = true }
local wk = require("which-key")
-- {{{ Better Movement
-- Move between windows
bind("n", "<c... |
group_push("collection")
project_module("collection")
project_dependency("core", "public")
project_dependency("memory", "public")
project_module_test("collection")
group_pop() |
local thread = require "eaw-abstraction-layer.types.thread"
local metatables = require "eaw-abstraction-layer.core.metatables"
local method = metatables.method
local vararg_method = metatables.vararg_method
local fleet = require "eaw-abstraction-layer.types.fleet"
local function utilities()
--TODO: verify signa... |
-----------------------------------------------------------
-- Binding for IUP v3.12.0
-----------------------------------------------------------
local ffi = require 'ffi'
local jit = require 'jit'
local const = {}
const.name = 'IUP - Portable User Interface'
const.copyright = 'Copyright (C) 1994-20... |
class("Layout", Group) {
} |
return {
Execute = function(args, out, cmdLine)
local cmds = { }
for _,name in ipairs(require "lfs-files") do
local match = name:match("cmd%-(.*)")
if match then
print("CMD: Found command: ", match)
table.insert( cmds, match )
end
... |
#!/usr/bin/env torch
------------------------------------------------------------
-- a simple filter bank
--
-- Clement Farabet
--
require 'xlua'
require 'qt'
require 'qtwidget'
require 'qtuiloader'
require 'qttorch'
require 'image'
local fp_ut = require 'floorplan_utils'
--require 'csvigo'
--require 'utils'
--rep_ut... |
local ch = {}
ch.name = "Challenge2"
ch.version = "2"
ch.maxTrains = 1
ch.startMoney = 25
-- create a new, empty map:
ch.map = challenges.createEmptyMap(10, 7)
-- fill some of the tiles with Rails and Houses:
ch.map[1][1] = "C"
ch.map[1][2] = "C"
ch.map[1][3] = "C"
ch.map[1][4] = "C"
ch.map[3][1] = "C"
ch.map[2][1]... |
-- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
Version 2.5
For the documentation see the corresponding readme.txt or visit
<http://dkolf.de/src/dkjson-lua.fsl/>.
You c... |
require "checkbox.lua"
---@class CheckboxEvent
---@field Create function @생성 이벤트
---@field Destroy function @파괴 이벤트
---@field MouseLButtonUp function @마우스 왼쪽 버튼 눌렀다 땠을 때 이벤트
---@field MouseLButtonDown function @마우스 왼쪽 버튼 눌렀을 때 이벤트
---@field MouseMove function @마우스 움직일 때 이벤트
---@field MouseEnter function @마우스 진입 이벤트
--... |
--天空の聖水
--
--scripted by XyLeN
function c100312053.initial_effect(c)
aux.AddCodeList(c,56433456)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SEARCH+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCountLimit(1,100312053)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c100312053.target)
... |
-- 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... |
module ("mi.util.midevice", package.seeall)
local util = require("mi.miutil")
-- xqDb + deviceinfo --> devices
function update()
local uci = require("luci.model.uci").cursor()
local sqlite = require("lsqlite3")
local db_file = "/etc/xqDb"
local db = sqlite.open(db_file)
local sql_str = string.form... |
--[[
© 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
--]]
CW_SWEDISH = Clockwork.lang:GetTable("Swedish");
CW_SWEDISH["RemoveMapPhysics"] =... |
return {
base00 ="1E1D2D",
base01 ="282737",
base02 ="2f2e3e",
base03 ="383747",
base04 ="414050",
base05 ="bfc6d4",
base06 ="ccd3e1",
base07 ="D9E0EE",
base08 ="DDB6F2",
base09 ="89DCEB",
base0A ="F8BD96",
base0B ="ABE9B3",
base0C ="D9E0EE",
base0D ="96CDFB",
base0E ="F28FA... |
local cock = 0;
local cock2 = 0;
local cock3 = 0;
local cock4 = 0;
function onCreate()
makeLuaSprite('Sky','bsky',-950,-500)
addLuaSprite('Sky',false)
setLuaSpriteScrollFactor('Sky', 0.2, 0.2)
scaleObject('Sky', 1.2, 1.1)
makeLuaSprite('Fire','bfire',-1200,900)
addLuaSprite('Fire',false)
... |
-- ip_whitelist ip白名单 结合redis set 实现
-- author : Annevi
-- date: 2019-9-16
-- 获取用户真实ip
function getIp()
local client_IP = ngx.req.get_headers()["X-Real-IP"]
if client_IP == nil then
client_IP = ngx.req.get_headers()["x_forwarded_for"]
end
if client_IP == nil then client_IP = ngx.var.remote_addr... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
local stringstream = require("string_stream")
local str_decode = require("string_decode")
-... |
server = nil
service = nil
cPcall = nil
Routine = nil
GetEnv = nil
origEnv = nil
logError = nil
--// Special Variables
return function(Vargs, GetEnv)
local env = GetEnv(nil, {script = script})
setfenv(1, env)
local server = Vargs.Server;
local service = Vargs.Service;
local Functions, Admin, Anti, Core, HTTP, L... |
---@class helper
local helper = {}
---Creates response `{result = events.SUCCESS, message = message, data = data}`
---@param message string help info
---@param data any
---@return table
function helper.success(message, data)
end
---Creates response `{result = events.ABORT, message = message}`
---@param message string... |
-----------------------------------
-- Area: Kazham
-- NPC: Khifo Ryuhkowa
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Kazham/IDs")
require("scripts/globals/shop")
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
local stock =
{
... |
local lsp_config = require('lspconfig')
local function on_attach(client, bufnr)
local function buffer_map(...)
vim.api.nvim_buf_set_keymap(bufnr, ...)
end
local opts = {silent = true, noremap = true}
buffer_map('n', '<Leader>D', '<Cmd>lua vim.lsp.buf.declaration()<CR>', opts)
buffer_map('n', '<Leader>d... |
object_tangible_furniture_nym_themepark_nym_themepark_backpack = object_tangible_furniture_nym_themepark_shared_nym_themepark_backpack:new {
}
ObjectTemplates:addTemplate(object_tangible_furniture_nym_themepark_nym_themepark_backpack, "object/tangible/furniture/nym_themepark/nym_themepark_backpack.iff")
|
package.path=package.path .. ";/var/touchelf/scripts/blood/?.lua"
require "core"
-- 血战关数
BLOOD_ROUND=280
-- 血战跳过关数
BLOOD_SKIP_ROUND=250
-- 力战关数
HARD_ROUND=380
-- 力战跳过关数
HARD_SKIP_ROUND=320
-- 存星关数
STAR_ROUND=999
-- 停止关数
STOP_ROUND=9990
-- 最大防御
YELLOW_MAX=0
-- 最大身法
GREEN_MAX=1500
-- 最大内力
BLUE_MAX=800
-- 武力:血量 小于此比例将优先武... |
foo.bar()
|
local lclient = require 'lclient'
local ws = require 'workspace'
local files = require 'files'
local furi = require 'file-uri'
local util = require 'utility'
local fs = require 'bee.filesystem'
local rootPath = LOGPATH .. '/files-associations'
local rootUri = furi.encode(rootPath)
fs.create_directo... |
--CUBLAS 2 MM Multiply
--This function form intializes "CUDAIZE v2" versus "CUDAIZE v1" if you
--call init() and use global variables to specify procedure and loop
--Second parameter is procedure # and third is loop #
init("cp.c", "cenergy_cpu", 0)
dofile("cudaize.lua") --defines custom tile_by_index, copy_to_regis... |
game.Players.LocalPlayer.leaderstats1.Tries.Value = 400 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.