content stringlengths 5 1.05M |
|---|
kitster_banai_missions =
{
{
missionType = "assassinate",
primarySpawns =
{
{ npcTemplate = "jawa_leader", npcName = "" }
},
secondarySpawns =
{
{ npcTemplate = "jawa_henchman", npcName = "" },
{ npcTemplate = "jawa_henchman", npcName = "" },
{ npcTemplate = "jawa_henchman", npcName = "" }
... |
---------------------------------------------------------------------------------------------------
---desc: Manages saving and loading of a tuning matrix
---------------------------------------------------------------------------------------------------
---@class TuningMatrixSave
local M = LuaClass("TuningMatrixSave"... |
local uv = vim.loop
local a = require('neogit.async')
local wrapper = setmetatable({}, {
__index = function (tbl, action)
if uv[action] then
return a.wrap(uv[action])
end
return nil
end
})
wrapper.read_file = a.sync(function (file)
local err, fd = a.wait(wrapper.fs_open(file, 'r', 438))
if ... |
function init(name,password)
return name,password
end
return init; |
object_intangible_vehicle_hoth_at_st_pcd = object_intangible_vehicle_shared_hoth_at_st_pcd:new {
}
ObjectTemplates:addTemplate(object_intangible_vehicle_hoth_at_st_pcd, "object/intangible/vehicle/hoth_at_st_pcd.iff") |
--------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... |
#!/usr/bin/env lua
-- MoonCL example: flags.lua
cl = require("mooncl")
-- Two alternative equivalent ways to produce a 'devicetypeflags' value:
code1 = cl.DEVICE_TYPE_CPU | cl.DEVICE_TYPE_GPU
code2 = cl.devicetypeflags('cpu', 'gpu')
assert(code1 == code2) -- true
print(code1) --> 3
print(cl.devicetypeflags(code1)) ... |
-- very simple multicast test server that just broadcasts a counter.
-- Demonstrates how to set up a multicast server socket, and how to send
-- data to it.
--
-- Gunnar Zötl <gz@tset.de>, 2013-2015
-- Released under the terms of the MIT license. See file LICENSE for details.
if arg[1] == '6' then
addr = 'ff01::1'
el... |
ITEM.Name = 'Super Small'
ITEM.Price = 1000
ITEM.Model = 'models/props_junk/garbage_glassbottle003a.mdl'
ITEM.NoPreview = true
ITEM.AdminOnly = true
function ITEM:OnEquip(ply, modifications)
ply:SetModelScale(0.5, 1)
end
function ITEM:OnHolster(ply)
ply:SetModelScale(1, 1)
end |
--Millenium Dark Necofear
local s,id=GetID()
function c700010.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcMixN(c,false,false,CARD_NECROFEAR,1,s.ffilter,1)
aux.AddContactFusion(c,s.contactfil,s.contactop,s.splimit)
--change name
local e1=Effect.CreateEffect(c)
e1:SetType(EF... |
function _TitleScene_AddHiScoreItems(toplayer, toptag)
local layertag = toptag + CCTSTL_HiScore;
local spHiScoreTitle = game.CreateSprite(SI_TUI_HiScore_Title, {340, 460});
game.AddSpriteChild(spHiScoreTitle, {toplayer, layertag});
local xorig = 1224;
local xcen = 824;
local ybegin = 260;
local y... |
--[[
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... |
return function (connection, req, args)
local pin, w, h, offset = 1, 140, 28, 0
if connection ~= nil then
dofile('httpserver-header.lc')(connection, 200, 'html')
end
gpio.mode(pin, gpio.INT)
local function pin1cb(level)
print(level)
file.open('led-stick.dat', 'r')
if level == 1 then
offset =... |
-- Copyright 2017-2021 David B. Lamkins <david@lamkins.net>. See LICENSE.
-- Spin LPeg lexer, see https://www.parallax.com/microcontrollers/propeller.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('spin')
-- Whitesp... |
--[[
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... |
--[[
/////// //////////////////
/////// PROJECT: MTA iLife - German Fun Reallife Gamemode
/////// VERSION: 1.7.2
/////// DEVELOPERS: See DEVELOPERS.md in the top folder
/////// LICENSE: See LICENSE.md in the top folder
/////// /////////////////
]]
CDxLabel = inherit(CDxElement)
function CDxLabel:constructor(s... |
local _0_0 = nil
do
local name_23_0_ = "nvim-local-fennel.aniseed.fennel"
local loaded_23_0_ = package.loaded[name_23_0_]
local module_23_0_ = nil
if ("table" == type(loaded_23_0_)) then
module_23_0_ = loaded_23_0_
else
module_23_0_ = require("nvim-local-fennel.aniseed.deps.fennel")
end
module_23_... |
/******************************************************************************\
Player-weapon support
\******************************************************************************/
__e2setcost(2) -- temporary
e2function entity entity:weapon()
if not IsValid(this) then return nil end
if not this:IsPlayer() and ... |
local RadonTransform = {}
local ffi = require'ffi'
local fabs = require'math'.abs
local cos, sin = require'math'.cos, require'math'.sin
local min, max = require'math'.min, require'math'.max
local function clear(self)
-- Size of the zeroing
local n_cells = self.NTH * self.MAXR
local b_size32 = ffi.sizeof'int32_... |
local SchedulerMode = {}
local SchedulerInterface = {}
local M = {
SchedulerMode = SchedulerMode,
SchedulerInterface = SchedulerInterface,
}
local default_wrap = function(t)
return function(f)
table.insert(t, coroutine.create(f))
end
end
function M.scheduler(mode)
local scheduler
... |
-- premake5.lua
workspace "VM"
configurations { "Debug", "Release" }
platforms {"X64"}
project "vm"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
targetdir "build/%{cfg.buildcfg}"
links {"dl", "GL", "glfw"}
files { "src/**.h", "src/**.cpp" }
filter "configurations:Debug"
... |
local Crypto = require('opus.crypto.chacha20')
local Event = require('opus.event')
local Security = require('opus.security')
local Socket = require('opus.socket')
local Util = require('opus.util')
local trustId = '01c3ba27fe01383a03a1785276d99df27c3edcef68fbf231ca'
local function trustConnection(socket)
l... |
--------------------------------------------------------------------------------
-- Box with rheostats (YaS-44V)
--------------------------------------------------------------------------------
-- Copyright (C) 2013-2018 Metrostroi Team & FoxWorks Aerospace s.r.o.
-- Contains proprietary code. See license.txt for addit... |
pg = pg or {}
pg.ShaderMgr = singletonClass("ShaderMgr")
pg.ShaderMgr.Init = function (slot0, slot1)
print("initializing shader manager...")
ResourceMgr.Inst:loadAssetBundleAsync("shader", function (slot0)
slot0.shaders = slot0
slot0()
end)
end
pg.ShaderMgr.LoadShader = function (slot0, slot1, slot2, slot3)
... |
require("client")
local config = gConfig()
--配置pc版本路径后,服务器会自动拉起pc版本进程,并且查杀已运行的进程,建议配置
--路径为绝对路径或者和服务器同级目录的相对路径
config.ClientPath = 'server\\MAXUS_ARMultiplayerCarGame2.exe'
config.GameTime = ClientConfig.Server.GameTime
config.GameBalanceTime=ClientConfig.Server.GameBalanceTime
config.GameBalanceTimeForPad=ClientCo... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by 干冲.
--- DateTime: 2018/3/26 17:27
---
Alert = class("Alert", WindowBase)
local this = Alert
function this:OnWDAwake(uiObj)
self.UIObj = uiObj
self:BindWindow(uiObj)
self:AddButtonEvent()
end
function this:BindWindow(uiObj)
self.Su... |
local sharetable = require("skynet.sharetable")
local _mt = {
__index = function(self, key)
if self.version < self.box.version then
self.box = sharetable.query(self.filename)
end
return self.box[key]
end,
}
local M = {}
function M.share(filename)
sharetable.loadfile(filename)
e... |
--Made by KAITO_KIRO
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"]
Righ... |
ITEM.name = "Ручной фонарь"
ITEM.desc = "Для бойцов старой школы, очень прочный фонарь и, судя по потертостям, довольно-таки старый. \n\nХАРАКТЕРИСТИКИ: \n-технологическое приспособление \n-требует подзарядку"
ITEM.price = 2806
ITEM.exRender = false
ITEM.weight = 0.48
ITEM.class = "weapon_cop_flashlight"
ITEM.we... |
local memarray=require "leda.lmemarray"
local mt,err=leda.getmetatable('leda_memarray*')
if mt then
mt.__wrap=function(array)
local type_t=array:type()
local length=array:length()
local ptr=array:to_ptr()
--print('wraping')
return function()
local memarray=require 'leda.memarra... |
-- Store all random strings read from the file
texts = { }
function init(args)
-- Set random number seed
math.randomseed(os.time())
-- Open the file and read the entire contents.
local file = io.open(args[1], "r");
for line in file:lines() do
table.insert(texts, line)
end
io.close... |
return require('jls.lang.loader').requireOne('jls.net.TcpServer-luv', 'jls.net.TcpServer-socket')
|
function test()
local a = 10
local b = ~a
return b
end
jit("compile", test)
local res = test()
assert(res == ~10)
--[[
function <../tests/26_OP_BNOT.lua:1,5> (4 instructions at 0x1459500)
0 params, 2 slots, 0 upvalues, 2 locals, 1 constant, 0 functions
1 [2] LOADK 0 -1 ; 10
2 [3] BNOT 1 0
3 [4... |
-- Tool to get data
local function get_file(key, value)
if not value then
return { name = key }
elseif type(value) == 'string' then
return { name = key, content = value }
else
return {
name = key,
-- content = value.content or value,
owner = value.owner,
ctime = value.ctime,
}
end
end
lapto... |
require 'main.util'
---@param message string
local function handleMessage (message)
local method, callbackIndex, scheme, path, numHeaders, pos = ('znssn'):unpack(message)
local headers = {}
for _ = 1, numHeaders do
local key, value
key, value, pos = ('ss'):unpack(message, pos)
headers[key] = value
end
---... |
-- Copyright (C) 2013-2014 Kim Alvefur
-- This file is MIT/X11 licensed.
module:set_global();
local digest_algo = module:get_option_string(module:get_name().."_digest", "sha1");
local fingerprints = {};
local function hashprep(h)
return tostring(h):gsub(":",""):lower();
end
local function hashfmt(h)
return h:gsu... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local NP = E:GetModule('NamePlates')
-- Cache global variables
-- Lua functions
local _G = _G
local unpack = unpack
-- WoW API / Variables
local UnitClass = UnitClass
local UnitIsPlayer = UnitIsPlayer
function NP:P... |
_, Protected_by_MoonSecV2, Discord = 'discord.gg/gQEH2uZxUk'
,nil,nil;(function() _msec=(function(o,e,l)local W=e[(0xde8/40)];local J=l[o[(672+-#{86;82,'nil',82,86,(function()return#{('oMPMmM'):find("\80")}>0 and 1 or 0 end)})]][o[((774+-0x27)+-#'iPipeh My God')]];local M=(90-0x56)/((((-0x16+-13)+-0x27)+108)+-#[[xenn... |
if SERVER then
local scores = {}
local roundtime = 305 -- 5 seconds extra cuz of freezetime
pvp.modes.ffa = {
name = "FFA",
loadoutmenu = {}, -- Empty to enable loadoutmenu but not override default settings
spawnpoints = pvp.spawnpointPrefabs.ffa,
hooks = {
PVPModeStarted = function()
scores = {}
... |
-- "point tool"
-- a tool to assist users of lua console commands.
-- each player with the relevant privileges can assign callbacks which will run when this is used.
local callbacks = {}
local setup = function(player)
callbacks[player] = {}
end
minetest.register_on_joinplayer(setup)
local cleanup = function(playe... |
--------------------------
-- Initialize Variables --
--------------------------
RepeatableQuestFilter = {}
RepeatableQuestFilter.name = "RepeatableQuestFilter"
RepeatableQuestFilter.configVersion = 3
RepeatableQuestFilter.controls = {
KillSpree = {
Neutral = {},
AldmeriDominion = {},
Dagge... |
-- dep
-- https://github.com/cloudflare/lua-resty-cookie
local http_handle = require('resty.cookie').new()
-- perf
local setmetatable = setmetatable
local Cookie = {}
function Cookie:new()
local instance = {
}
setmetatable(instance, Cookie)
return instance
end
return Cookie |
function start (song)
end
function update (elapsed)
showOnlyStrums = true
end
function stepHit (beat)
end
function playerTwoTurn()
end
function playerOneTurn()
end
function keyPressed (key)
end
|
local ButtonRoot = script.Parent
local AppRoot = ButtonRoot.Parent
local UIBlox = AppRoot.Parent
local Packages = UIBlox.Parent
local Roact = require(Packages.Roact)
local Cryo = require(Packages.Cryo)
local RoactGamepad = require(Packages.RoactGamepad)
local AlertButton = require(ButtonRoot.AlertButton)
local Primar... |
--[[ $Id: CallbackHandler-1.0.lua 14 2010-08-09 00:43:38Z mikk $ ]]
--[[ $Id: CallbackHandler-1.0.lua 965 2010-08-09 00:47:52Z mikk $ ]]
-- @name CallbackHandler-1.0.lua
-- @release $Id: CallbackHandler-1.0.lua 14 2010-08-09 00:43:38Z mikk $
-- @release $Id: CallbackHandler-1.0.lua 22 2018-07-21 14:17:22Z nevcairiel $
... |
GameoverState = Class{__includes = BaseState}
local sea_top = love.graphics.newImage('graphics/sea_top.png')
local sea_bottom = love.graphics.newImage('graphics/sea_bottom.png')
function GameoverState:update(dt)
if love.keyboard.wasPressed('return') then
gStateMachine:change('title')
end
topSeaSc... |
return {'sindrets/diffview.nvim', opt = true, -- ediff-like diff view
cmd = 'DiffviewOpen',
module_pattern = {
'diffview.*'
},
}
|
function IsPlayerActive(pServerId)
return exports['npc-infinity']:IsPlayerActive(pServerId)
end
function DoesPlayerExist(pServerId)
return exports['npc-infinity']:DoesPlayerExist(pServerId)
end
function GetPlayerCoords(pServerId)
return exports['npc-infinity']:GetPlayerCoords(pServerId)
end
function GetN... |
-- Code created by Kwik - Copyright: kwiksher.com {{year}}
-- Version: {{vers}}
-- Project: {{ProjName}}
--
local _M = {}
local _K = require("Application")
local composer = require("composer")
local Navigation = require("extlib.kNavi")
--
function _M:autoPlay(curPage)
{{#isTmplt}}
local ui = require("components.store... |
local vm = require 'vm'
local util = require 'utility'
local config = require 'config'
local infer = require 'core.infer'
local await = require 'await'
local function formatKey(key)
if type(key) == 'string' then
if key:match '^[%a_][%w_]*$' then
return key
else
... |
local set = require'set'
describe("Testing #set", function()
test("Creating empty set", function()
local s1 = set.new()
assert.same(s1:getAll(), {})
end)
test("Creating set from a list", function()
local t = { 10, 20, 30 }
local s1 = set.new(t)
assert.same(s1:sort(), t)
end)
test("Creating set fr... |
--[[
AN ORIGINAL WORKS BY VALKYRIA.
VERSION: 1.3
************************************************************
Refrain from modifying the code here unless you really know what you are doing.
If you're really enthusiastic on knowing how it works though, fire me a DM on Discord! @valkyria#0001
]]
--
|
onEvent("PlayerRespawn", function(p)
colorNick(p)
end) |
local BulletView=class("BulletView",zf.mvc.ViewBase)
---------------------------
--进入时加载
--这里也可以用于一些初始化操作
--@param
--@return
function BulletView:onEnter(model)
-- print("BulletView:onEnter(model)")
end
return BulletView |
local GPUPS = {}
function GPUPS.Create(numParticles, lifetime, period)
local instance = {
numParticles = numParticles,
lifetime = lifetime,
particleInsertInterval = period,
timeSinceParticleInsert = 0.0,
emitterX = 0.0,
emitterY = 0.0,
emitterZ = 0.0,
scaleX = 0.5,
scaleY = 0.5,
... |
-----------------------------------
-- Area: Al Zahbi
-- NPC: Mihli Aliapoh
-- Type: Waterserpent General
-- !pos -22.615 -7 78.907 48
-----------------------------------
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
player:startEvent(267)
end
function onEventUpdate(player, csid, opti... |
Wander = Class(BehaviourNode, function(self, inst, homelocation, max_dist, times)
BehaviourNode._ctor(self, "Wander")
self.homepos = homelocation
self.maxdist = max_dist
self.inst = inst
self.far_from_home = false
self.times =
{
minwalktime = times and times.minwalktime or 2,
randwa... |
vim.cmd [[
augroup config#ruby
autocmd!
autocmd FileType ruby setlocal ts=2 sts=2 sw=2 norelativenumber nocursorline re=1 foldmethod=syntax
augroup END
]]
|
-- add rules: debug and release
add_rules("mode.debug", "mode.release")
-- add protobuf
add_requires("protobuf-c")
-- add target
target("console_c")
-- set kind
set_kind("binary")
-- add packages
add_packages("protobuf-c")
-- add files
add_files("src/*.c")
add_files("src/*.proto", {rul... |
local super = require "ui.widget"
return class {
typename = "Dropdown",
super = super,
EVT_VALUE_CHANGED = "EVT_VALUE_CHANGED",
ctor = function (self, native)
self.__native = native
super.ctor(self, native:Unwrap())
self.events = unity.events()
self._onValueChan... |
-- Do not edit! This file was generated by blocks/signal/iirfilter_spec.py
local radio = require('radio')
local jigs = require('tests.jigs')
jigs.TestBlock(radio.IIRFilterBlock, {
{
desc = "3 Float32 b taps, 3 Float32 a taps, 256 ComplexFloat32 input, 256 ComplexFloat32 output",
args = {radio.type... |
if ngx then
require "resty.nettle.types.nettle-types"
local random = require "resty.random"
local ffi = require "ffi"
local C = ffi.C
local func = ffi.cast("nettle_random_func *", function(_, length, dst)
C.RAND_bytes(dst, length)
end)
return {
bytes = random.bytes,
context = nil,
func... |
function onLogin(player)
local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!"
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. " Please choose your outfit."
player:sendOutfitWindow()
else
if loginStr ~= "" then
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, ... |
if device.wireless_modem then
requireInjector(getfenv(1))
local Config = require('config')
local config = { }
Config.load('gps', config)
if config.host and type(config.host) == 'table' then
multishell.setTitle(multishell.getCurrent(), 'GPS Daemon')
os.run(getfenv(1), '/rom/programs/gps', 'host', ... |
return {
include = function()
includedirs { "../vendor/rpmalloc" }
end,
run = function()
targetname "rpmalloc"
language "C"
kind "StaticLib"
if os.istarget('windows') then
flags { "LinkTimeOptimization" }
defines {
"ENABLE_THREAD_CACHE=1",
"ENABLE_GLOBAL_CACHE=0",
}
files
{
... |
-- 发送红外数据
function readCan()
return readCanBuf(15)
end |
print('hi, this is test c function\n')
local thinkyoung = require 'thinkyoung'
-- thinkyoung.check(0)
local result = ADD(3, 4)
thinkyoung.check_equal(result, 7)
|
describe("ZO_SavedVars", function()
before_each(function()
-- required to clear up other tests
end)
it("should store new account variables", function()
ZO_SavedVars.accounts = {}
ZO_SavedVars:NewAccountWide(
'savedVariableTable',
'version... |
local M = {}
function M.setup()
require('packer').startup(function()
-- Plugin Manager
use { 'wbthomason/packer.nvim' }
-- LSP manager
use { 'neovim/nvim-lspconfig' }
-- Lua based autocompletion engine
use { 'hrsh7th/nvim-compe' }
-- Code formatter, LSP is not fully equ... |
zombie_torso = class({})
LinkLuaModifier( "modifier_zombie_torso", "modifiers/modifier_zombie_torso", LUA_MODIFIER_MOTION_NONE )
LinkLuaModifier( "modifier_zombie_torso_thinker", "modifiers/modifier_zombie_torso_thinker", LUA_MODIFIER_MOTION_NONE )
----------------------------------------------------------------------... |
-- luacheck: ignore 122
local log = require 'tarantool-lsp.log'
describe("log.fmt", function()
it("handles %_", function()
assert.equal("strong",
log.fmt("%_", "strong"))
assert.equal("nil",
log.fmt("%_", nil))
local t1, t2 = {}, {}
assert.equal(tostring(t1) .. " " .. tostring(t2),
log.fmt("%_ %_", t1... |
-- vim: nospell:sta:et:sw=2:ts=2:sts=2
function collect(t,f)
local out={}
if t then
for i,v in pairs(t) do out[i] = f(v) end end
return out
end
function deepcopy(t)
return type(t) ~= 'table' and t or collect(t,deepcopy) end
Object = {}
function Object:new (o)
o = deepcopy(o) or {}
setmetatable(o,... |
-- Copyright 2014 by Ida Bruhns
--
-- This file may be distributed and/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
--- This is the parent class for initial layout algorithms. It provides ... |
local stub = require("luassert.stub")
local config = require("null-ls.config")
local autocommands = require("null-ls.autocommands")
local handlers = require("null-ls.handlers")
local s = require("null-ls.state")
describe("init", function()
local null_ls = require("null-ls")
it("should expose methods and vari... |
local plugin = {}
function plugin.exec(target, db, newDatabaseName)
local ok = target.changeDatabase(newDatabaseName)
if not ok then
print(string.format("Banco nao encontrado: %s", newDatabaseName))
end
end
return plugin
|
-- local name = "8孽缘や8你远走,我泪流8⒈片空白8Sunny.Girl8与世隔绝v128隔壁房的性感8爱花開丶若相惜8夏末终凄凉。8贪恋你的一切8谁?又能明白我8背影8带刺的女人8你的爱已过期8深度值得深入8太晚8相对浴红衣8纠结8受控在你手里8看不清楚天空安8偷心者8搁浅8至少,想过你8可以,爱8卑鄙小姐8讨嫌8扯淡的骄傲8无知de人们。8素颜仅想有人陪8e色爱情8没有感情8未见萤火虫8庸颜8一个骗子的承诺8花颜8给了我什么8人跟人不一样8我不脆弱8不爱自己8拿青春赌明天8不分、开8金钱泯灭人性28豹纹28自夸。8妩媚28浓妆28把自己逼死、8灰黑色的天空8如今。心已丢8半梦半醒之间8习惯了不习惯8◆◇一种柔情... |
function centerLeft(txt, paddingChar)
local txtLines = string.gmatch(txt, "\n")
local txtCentered = {}
for k, v in ipairs(txtLines) do
txtCentered[k] = v
return string.concat()
end
function textWithBorder(x, y, txt, borderSize, borderColor, borderTxt, separateLinesWithBorder, rounded)
local... |
-- Ala.lua
-- @Author : Dencer (tdaddon@163.com)
-- @Link : https://dengsir.github.io
-- @Date : 5/21/2020, 12:59:07 PM
--
-- Code from https://github.com/alexqu0822/alaTalentEmu/blob/master/alaShared/core.lua
--
---@class ns
local ns = select(2, ...)
local Ala = {}
ns.Ala = Ala
local CODE_TABLE = {}
local REV_C... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:29' 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... |
---
-- Internal helper functions
--
-- class
local SpineUtils = {}
---
-- Wraps the angle.
-- @param angle
-- @return Wrapped angle.
function SpineUtils.wrapAngle(angle)
while angle > 180 do
angle = angle - 360
end
while angle < -180 do
angle = angle + 360
end
return angle
end
fun... |
PongUtilities = {}
function PongUtilities.CopiarTabela(tabelaOriginal)
local tabelaEspelho
if type(tabelaOriginal) == 'table' then
tabelaEspelho = {}
for chaveOriginal, valorOriginal in next, tabelaOriginal, nil do
tabelaEspelho[PongUtilities.CopiarTabela(chaveOriginal)] = PongUtilities.Copia... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
util.AddNetworkString("OpenTerminal")
util.AddNetworkString("TerminalGetNameFromServer")
local ENTName = "TERMINAL"
function ENT:SpawnFunction(ply, tr, classname)
if !tr.Hit then return end
local SpawnPos = tr.HitPos + tr.HitNormal * 16
... |
-- -*- lua -*-
local pkgName = "gcc"
local apps = "/opt/apps/"
local fn = myFileName():gsub("%.lua$","")
local fullVersion = barefilename(fn)
local pkgVersion = fullVersion:match("([0-9]+%.[0-9]+)%.?")
local pkgNameVer = pathJoin(pkgName,pkgVersion)
local modulepath_root = ... |
return "1.2.5"
|
local skynet = require "skynet"
local snax = require "skynet.snax"
local gamesnaxserctrl = nil
skynet.start(function ()
gamesnaxserctrl = snax.newservice("test12_6")
-- skynet.timeout(500, function ()
-- gamesnaxserctrl.post.settips("准备版本更新")
-- end)
skynet.timeout(500, function ()
sky... |
-------------------------------------------------------------------------------
-- Main entry point
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Dependencies
----------------------------------------... |
function SetThemeColours()
--these will reset ANSI colours (alt-6, or game->configure->ansi colours)
SetNormalColour (1,ColourNameToRGB("black"))
SetNormalColour (2,ColourNameToRGB("crimson"))
SetNormalColour (3,ColourNameToRGB("forestgreen"))
SetNormalColour (4,ColourNameToRGB("chocolate"))
SetNormalColour... |
-- This file contains several functions for displaying debug data
local debug = {}
function debug:playerPosition()
love.graphics.setColor(0, 0, 0, 0.7)
love.graphics.rectangle("fill", 16, 16, 660, 220)
local px = player.x
local py = player.y
if px >= 0 then
px = " " .. px
end
i... |
local response = require "shiori.response"
local utils = require "shiori.utils"
local function TRY_CATCH(what)
local status, result = pcall(what.try)
if status then return result
else return what.catch(result)
end
return result
end
return function(EV)
-- SHIORI リクエスト呼び出し
functio... |
script_name("SetTimeAndWeather")
script_description("/set_weather(/sw) - change weather, /set_time(/st) - change time")
script_version("v1.0")
script_authors("Tim4ukys")
script_dependencies("SA-MP v0.3.7 R1", "SA-MP v0.3.7 R3-1", "SA-MP v0.3.DL R1")
local dl = require "SA-MP API.init"
local ffi = require( 'ffi' )
loc... |
return {'luxemburg','luxemburger','luxemburgs','luxemburgse','lux','luxaflex','luxe','luxeappartement','luxeartikel','luxeauto','luxebrood','luxebroodje','luxegoederen','luxehotel','luxehuis','luxehut','luxeleven','luxelingerie','luxemerk','luxepaard','luxepositie','luxeprobleem','luxeproduct','luxetrein','luxewagen','... |
--[[
策略 缚杀计
]]
-- 显示延时
local C_SHOW_DELAY = 0.8
-- 策略命中
local C_ROLESTY_HIT = "ROLESTY_HIT"
local BindingKill = class("BindingKill", import("._StrategyBase"))
-- 构造函数
function BindingKill:ctor(config)
if config then
table.merge(self,config)
end
end
-- 执行函数
function BindingKill:execute(...)
if self.scene == ... |
sgfx = require("sgfx")
ret, err = sgfx.init()
if ret == true then
local desc = {
width = -1,
height = -1,
color = 0x000000FF,
type = 0,
buffer = 1
}
surface, err = sgfx.create_surface(desc)
if surface then
res, x, y = sgfx.get_resolution(surface)
... |
--[[
Valid languages (from gmod's menu): bg cs da de el en en-PT es-ES et fi fr ga-IE he hr hu it ja ko lt nl no pl pt-BR pt-PT ru sk sv-SE th tr uk vi zh-CN zh-TW
You must use one of the above when using translate.AddLanguage
Flood Translation Guideline
1. The language that be translated is your native language.... |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(3)
test:do_execsql_test(
"truncate-1.1",
[[
CREATE TABLE te34 (s1 INT PRIMARY KEY, s2 INT);
INSERT INTO te34 VALUES (1,1);
CREATE TABLE te35 (s1 INT PRIMARY KEY, s2 INT);
INSERT INTO te35 VALUES (1,1);
CREATE TRIGGER te36 BEFORE INSERT ON te34... |
local K = require("game.constants")
local LG = love.graphics
local glitter = require("game.render.gems.glitter")
local gemTweens = require("game.render.gems.tweens")
local gemScale = require("game.render.gems.scale")
local hsl = require("utils.hsl")
local rotateAround = require("utils.love").rotateAround
local unit... |
-- Copyright (c) 2009 Sebastian Nowicki <sebnow@gmail.com>
--
-- 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, ... |
require 'torch'
require 'nn'
require 'optim'
require 'gnuplot'
local tablex = require 'pl.tablex'
local json = require 'cjson'
local c = require 'trepl.colorize'
local net_utils = require 'utils.net_utils'
require 'utils.optim_updates'
require 'utils/DataLoader'
require 'modules.ReportModel'
require 'modules.MultiMode... |
-- A control flow graph with "lifted" expressions
-- HLL Nodes:
-- node := assign({r, e[e]}, e)
-- | jcond({== | e}, l_fallthrough, l_jump)
-- | jmp(l)
-- | return(e)
-- | foreach(r*, e, l_fallthrough, l_jump)
-- | fori (r, e, e, e, l_fallthrough, l_jump)
-- expr := r
-- ... |
-- Variables for door data.
local variables = {
-- Whether or not the door will be disabled.
"disabled",
-- The name of the door.
"name",
-- Price of the door.
"price",
-- If the door is unownable.
"noSell",
-- The faction that owns a door.
"faction",
-- The class that owns a door.
"class",
-- Whether or ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.