content stringlengths 5 1.05M |
|---|
local get_digit = (function()
local numbers = {
[0] = { 1, 2, 3, 5, 6, 7 },
[1] = { 3, 6 },
[2] = { 1, 3, 4, 5, 7 },
[3] = { 1, 3, 4, 6, 7 },
[4] = { 2, 3, 4, 6 },
[5] = { 1, 2, 4, 6, 7 },
[6] = { 1, 2, 4, 5, 6, 7 },
[7] = { 1, 3, 6 },
[8] = { 1, 2, 3, 4, 5, 6, 7... |
--/run dofile("interface/addons/DungeonLoots/lua/worldmap.lua")
local me = DL.worldmap
local lastmapID = GetCurrentWorldMapID()
function me.Show(instance, npc)
if instance then
WorldMapFrame:Show()
if npc then
if DL.tbls.instance[instance] then
for i=1,#DL.tbls.instance[instance].boss do
if DL.tbls.i... |
local util = require 'lua_util'
context("Lua util - callback_from_string", function()
local cases = {
{'return function', 'return function(a, b) return a + b end'},
{'function', 'function(a, b) return a + b end'},
{'plain ops', 'local c = select(1, ...)\nreturn c + select(2, ...)'},
}
local fail_cas... |
-- import
local Config = require "candy.Config"
--------------------------------------------------------------------------------
-- MOAI SDK
--------------------------------------------------------------------------------
-- Setting the FPS
MOAISim.setStep ( 1 / 60 )
-- Setting of the operation of the Loop... |
object_mobile_nova_orion_employee_05 = object_mobile_shared_nova_orion_employee_05:new {
}
ObjectTemplates:addTemplate(object_mobile_nova_orion_employee_05, "object/mobile/nova_orion_employee_05.iff")
|
local _, nMainbar = ...
nMainbarMouseoverMixin = {}
function nMainbarMouseoverMixin:OnLoad()
self.bar = self:GetParent()
end
function nMainbarMouseoverMixin:OnShow()
if ( not self:IsMouseOver() ) then
self.bar:SetAlpha(self.minAlpha)
end
end
function nMainbarMouseoverMixin:OnEnter()
self.bar... |
-- UDVDevice.lua
local libudev = require("libudev_ffi")
local UDVListIterator = require("UDVListIterator")
local libc = require("libc")
local UDVDevice = {}
setmetatable(UDVDevice, {
__call = function(self, ...)
return UDVDevice:new(...)
end,
})
local UDVDevice_mt = {
__index = UDVDevice;
}
function UDVDevic... |
slot0 = class("NewYearShrinePage", import("...base.BaseActivityPage"))
slot0.MAX_COUNT = 7
slot0.OnInit = function (slot0)
slot0.progressTpl = slot0:findTF("ProgressTpl")
slot0.progressTplContainer = slot0:findTF("ProgressList")
slot0.progressUIItemList = UIItemList.New(slot0.progressTplContainer, slot0.progressTpl... |
function plugindef()
-- This function and the 'finaleplugin' namespace
-- are both reserved for the plug-in definition.
finaleplugin.Author = "Jacob Winkler"
finaleplugin.Copyright = "2022"
finaleplugin.Version = ".1"
finaleplugin.Date = "1/30/2022"
return "Run Script", "Run Script", "Opens and executes a... |
local Observer = require("reactivex.observer")
local ReplaySubject = require("reactivex.subjects.replaysubject")
local Subscription = require("reactivex.subscription")
local Observable = require("reactivex.observable")
local Observer = require("reactivex.observer")
local Subscription = require("reactivex.subscription"... |
function __property_init()
registerpropertycallback("Navigation Mesh", "Generate", "updateNavmeshProperty(%d)")
end
function updateNavmeshProperty(entityId)
updatenavmesh(entityId)
end |
-----------------------------------
-- Area: Windurst Waters
-- NPC: Zelala
-- Type: Map Marker
-- !pos 169.855 -1.295 -3.238 238
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
player:startE... |
TeamManager = Observable:extends{}
function TeamManager:init()
self:super('init')
self.teamIDCount = 0
self.teams = {}
self.__isWidget = Script.GetName() == "LuaUI"
end
function TeamManager:addTeam(team, teamID)
if teamID == nil then
teamID = self.teamIDCount + 1
end
team.id = tea... |
local Plugin = script.Parent.Parent.Parent.Parent
local Libs = Plugin.Libs
local Roact = require(Libs.Roact)
local BorderedFrame = Roact.PureComponent:extend("BorderedFrame")
BorderedFrame.defaultProps = {
BorderColor3 = Color3.new(0, 0, 0),
BackgroundColor3 = Color3.new(1, 1, 1),
Size = UDim2.new(0, 100, 0, 100)... |
--[[-------------------------------------------------------------------
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or no... |
group "Tests/Basic"
SetupTestProject("Basic") |
--[[
-- -- 遍历node-node表,完成关系级联
-- 工作流初始化函数,函数需要两个入参,具体模型可查看例子中的模板格式
-- task_code 表示该初始化一个工作流之后,该工作流属于哪一个任务
-- task_temp 任务模板格式,结构如下
-- makeNodeCode 用于生成nodecode唯一编码的lua函数
-- 0 发起,1 结束,2 审核,3 工作,4 通知,默认节点为发起 ,
-- -- coefficient 操作人存在系数,由其他系统得出,没有的关键字表示默认1.0
local task_note_type={
node_start=0,
node_end=1,
... |
object_mobile_selonian_female_09 = object_mobile_shared_selonian_female_09:new {
}
ObjectTemplates:addTemplate(object_mobile_selonian_female_09, "object/mobile/selonian_female_09.iff")
|
-- Grab all the map names which reside in the keys of GlobalMap and SubstituteMaps tables,
-- to form a list of *all* map names to return.
--
-- This is for the destination suggestions.
local globalMap = require("core/Pathfinder/Maps/GlobalMap")()
local substituteMaps = require("core/Pathfinder/Maps/MapExceptions/Subs... |
local bossintrostate = states.state:extend()
function bossintrostate:begin()
loader.load("assets/global/objects/bosses/stick_man.png", "stick_man", "texture")
loader.load("assets/misc/star_field.png", "star_field", "texture")
loader.load("assets/misc/star_field_one.png", "star_field_one", "texture")
load... |
--[[ Element: Cast Bar
THIS FILE HEAVILY MODIFIED FOR USE WITH SUPERVILLAIN UI
]]
--GLOBAL NAMESPACE
local _G = _G;
--LUA
local unpack = _G.unpack;
local select = _G.select;
local assert = _G.assert;
local error = _G.error;
local print = _G.print;
local pairs = _G.pairs;... |
local M = {
MAX_COMPLETION_LINES = 5
}
local DEBUG_COMPLETE = true
local debug_complete
local debug_complete_file
local debug_ts
if DEBUG_COMPLETE then
debug_ts = require('textadept-vi.vi_util').tostring
debug_complete = function(text)
if debug_complete_file == nil then
debug_complete_fi... |
--- Python-style list class. <p>
-- Based on original code by Nick Trout.
-- <p>
-- <b>Please Note</b>: methods that change the list will return the list.
-- This is to allow for method chaining, but please note that <tt>ls = ls:sort()</tt>
-- does not mean that a new copy of the list is made. In-place (mutable) method... |
Task.Wait() -- Wait a tick for players to connect
local player = Game.GetLocalPlayer()
_G.timer = 60
_G.finish = 0
function Tick()
Task.Wait(1)
if _G.timer > 0
then _G.timer = _G.timer -1
end
if _G.timer == 0
then _G.finish = 1
end
UI.PrintToScreen(tostring (_G.timer))
end |
local ScrappingMachineUI =
{
Name = "ScrappingMachineUI",
Type = "System",
Namespace = "C_ScrappingMachineUI",
Functions =
{
{
Name = "CloseScrappingMachine",
Type = "Function",
},
{
Name = "DropPendingScrapItemFromCursor",
Type = "Function",
Arguments =
{
{ Name = "index", Type = "nu... |
local Player = game:GetService("Players").LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local ECS = ReplicatedStorage:WaitForChild("ecs-client")
-- Loading in all our systems (i would make a sys-loader for this!)
local camerasystem = requi... |
package.path = "../src/?.lua;src/?.lua;" .. package.path
pcall(require, "luarocks.require")
local redis = require 'redis'
local params = {
host = '127.0.0.1',
port = 6379,
}
local client = redis.connect(params)
client:select(15) -- for testing purposes
local replies = client:pipeline(function(p)
p:ping(... |
local st = GS.new()
local base = (...):gsub('%.', '/') .. '/'
local duration_show_splash = 1 -- in seconds
local color_fg = {255,255,255}
local color_bg = {0,0,0}
local cell_width = 23
local cell_height = 23
local cell_spacing = 3
local callbacks = {}
function callbacks.after(f) callbacks.after = f end
--... |
function love.conf(t)
t.window.width = 1024
t.window.height = 700
t.modules.joystick = false
t.modules.physics = false
end
|
local tag = "spawn_log"
local c, w, g = Color(0, 255, 255), Color(255, 255, 255), Color(192, 192, 192)
local function Log(event, ply, ...)
MsgC(c, "[", event, "] ")
Msg(ply, " ")
MsgC(...)
Msg("\n")
end
local prev
local function NoVectorDecimals(vec)
vec = vec:gsub("(%d+).%d*", "%1")
return vec
end
local func... |
---@class TelescopeBookmarksState
---@field os_name string
---@field os_homedir string
---@class TelescopeBookmarksConfig
---@field full_path boolean
---@field selected_browser string
---@field url_open_command string
---@field url_open_plugin string
---@field firefox_profile_name string
---@class Bookmark
---@field ... |
local say = require("say")
local assert = require("luassert")
local util = require("luassert.util")
local function in_range(state, arguments)
if arguments[3] < arguments[1] then return false end
if arguments[3] > arguments[2] then return false end
return true
end
say:set("assertion.in_range.positive", "Ex... |
local obj = {}
obj.__index = obj
-- Metadata
obj.name = "Citrix Viewer Spoon"
obj.version = "1.0"
obj.author = "Bruno Navert"
obj.license = "MIT"
obj.homepage = "https://github.com/brunon/CitrixViewer.spoon"
-- PID of Citrix Viewer app
obj.citrixPid = nil
obj.callbackFunction = nil
local function citrixStarted(pid)
... |
data:extend{
{
type = "item-subgroup",
name = "waste",
group = "intermediate-products",
order = "dc"
}
,
{
type = "item-subgroup",
name = "raw-materials",
group = "insane-materials",
order = "ff"
}
,
{
type = "item-subgr... |
Locales['de'] = {
['shop'] = 'geschäft',
['shops'] = 'geschäfte',
['press_menu'] = 'drücke ~INPUT_CONTEXT~ um auf das Geschäft zuzugreifen.',
['bought'] = 'you just bought ~y~%sx~s~ ~b~%s~s~ for ~r~$%s~s~',
['not_enough'] = 'du ~r~hast nicht~s~ genug geld: %s',
['player_cannot_hold'] = 'you do ~r~not~s~ have enou... |
class("CancelCommonFlagCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.ConnectionMgr.GetInstance():Send(11021, {
flag_id = slot1:getBody().flagID
}, 11022, function (slot0)
if getProxy(PlayerProxy) then
slot2 = slot1:getData()
slot2:CancelCommonFlag(slot0)
slot1:updatePlayer(slot2)
en... |
local skynet = require "skynet"
local cluster = require "cluster"
skynet.start(function ()
-- body
--cluster.open "db1"
local sdb = cluster.query("db","sdb")
local mysqldb = cluster.query("db1","mysqldb")
print("......sdb= ",sdb)
print("......mysqldb",mysqldb)
local proxy = cluster.proxy("db",sdb)
local my... |
local user_dao = require("core.dao.admin_user_dao")
local decode_base64 = ngx.decode_base64
local resty_sha256 = require("resty.sha256")
local str = require("resty.string")
local pwd_secret ="e5wkxfu73z2rc3tydn6613mmviicbbpq"
local string_gsub = string.gsub
local _M ={}
local function encode(s)
local sha256 = re... |
local _,L = ...
if GetLocale()=="esMX" then
end
|
-- coding: utf-8
--[[
-- PLEASE DO "NOT" EDIT THIS FILE!
-- This file is generated by script.
--
-- If you want to apply corrections visit:
-- http://rom.curseforge.com/addons/charplan/localization/
--]]
Charplan.L =
{
}
Charplan.L.STAT_SHORTS =
{
}
Charplan.L.STAT_NAMES =
{
}
|
local JSON = require('JSON')
local parser = clink.arg.new_parser
local la5_args_cache = {}
local cwd = clink.get_cwd()
function JSON:assert () end -- luacheck: no unused args
local function register_parser(la5_parser)
local artisan_parser = parser({ 'artisan'..la5_parser })
la5_parser:disable_file_matching()... |
local view = require("models/cameraModel")
local geometry = {}
geometry.panel = 300
geometry.hexres = 64
geometry.center = {}
function geometry.setSize(newSize)
geometry.hexres = newSize
end
function geometry.recountDimensions()
geometry.itemsFitX=math.floor(width/geometry.hexres/2)
geometry.itemsFitY=math.floor(... |
local util = require'util'
local function handler(self, source, destination, args, domain)
local query = util.urlEncode(args:gsub(' ', '_'))
domain = domain or 'en'
util.simplehttp(
string.format('https://%s.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro=&explaintext=&redirects=1&titles=%s... |
vim.o.background = "light"
vim.g.modus_cursorline_intense = 1
vim.g.modus_green_strings = 1
vim.g.modus_termtrans_enable = 1
vim.g.modus_yellow_comments = 1
|
--[[
HOW TO MAKE YOUR BOT
Thank you for choosing egg bot to startup and make your bot. Before you begin, I will explain how this bot is orginized so you
can begin adding all the fun stuff you want! As a note, I highly encorage to chamge as much as you want, don't feel that you are limited by what I offer.
You ... |
object_static_worldbuilding_building_echo_base_rec_sign = object_static_worldbuilding_building_shared_echo_base_rec_sign:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_building_echo_base_rec_sign, "object/static/worldbuilding/building/echo_base_rec_sign.iff") |
function Sulfuron_FireBolt(Unit, event, miscunit, misc)
Unit:FullCastSpellOnTarget(23331, Unit:GetClosestPlayer())
end
function Sulfuron_FireShield(Unit, event, miscunit, misc)
Unit:FullCastSpellOnTarget(24573, Unit:GetClosestPlayer())
end
function Sulfuron_Charge(Unit, event, miscunit, misc)
Unit:FullCastSpellOnT... |
local _, C = unpack(select(2, ...))
local BAR_FADER = {
fadeInAlpha = 1,
fadeInDuration = 0.2,
fadeOutAlpha = 0,
fadeOutDelay = 0,
fadeOutDuration = 0.2,
}
C.Bars = {
BarMargin = 6,
BarPadding = 0,
Bar1 = {
size = 34,
fader = nil
},
Bar2 = {
size = 34,
fader = nil
},
Bar3 = {
size = 34,
fad... |
-- -------------------------------------------------------------------------- --
-- 在输入法改变时进行提示
hs.keycodes.inputSourceChanged(function()
local currentSourceID = hs.keycodes.currentSourceID()
-- 如果当前 SourceID 和上一 SourceID 相同,不进行提示
if currentSourceID == lastSourceID then
return
end
-- 提示当... |
object_tangible_loot_generic_deed_shared_generic_deed = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/generic_deed/shared_generic_deed.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_loot_generic_deed_shared_generic_deed, "object/tangible/loot/generic_deed/shared_generic_d... |
-- MIT https://github.com/kikito/ansicolors.lua/blob/master/ansicolors.lua
local a={reset=0,bright=1,dim=2,underline=4,blink=5,reverse=7,hidden=8,black=30,red=31,green=32,yellow=33,blue=34,magenta=35,cyan=36,white=37,blackbg=40,redbg=41,greenbg=42,yellowbg=43,bluebg=44,magentabg=45,cyanbg=46,whitebg=47}local b=string.c... |
file_player_group_list = io.open ("packages/"..GetPackageName().."/Data/player_group_list.json" ,"r+")
file_player_white_list = io.open ("packages/"..GetPackageName().."/Data/player_white_list.json" ,"r+")
file_player_ban = io.open ("packages/"..GetPackageName().."/Data/player_ban.json" ,"r+")
AddEvent("OnPackageStart... |
ys = ys or {}
slot1 = ys.Battle.BattleConst.UnitType
ys.Battle.BattleCannonBulletFactory = singletonClass("BattleCannonBulletFactory", ys.Battle.BattleBulletFactory)
ys.Battle.BattleCannonBulletFactory.__name = "BattleCannonBulletFactory"
ys.Battle.BattleCannonBulletFactory.Ctor = function (slot0)
slot0.super.Ctor(sl... |
--[[
Play a menu allowing the caller to accept, listen to, or re-record a
greeting.
]]
-- The name of the recorded greeting.
greeting = args(1)
-- Mailbox info.
mailbox = storage("login_settings", "mailbox_number")
mailbox_directory = profile.mailboxes_dir .. "/" .. mailbox
return
{
{
action = "play_phrase... |
--[[
Small implementation of a JSON file reader.
]]
_libs = _libs or {}
_libs.json = true
_libs.tablehelper = _libs.tablehelper or require 'tablehelper'
_libs.stringhelper = _libs.stringhelper or require 'stringhelper'
local files = require 'filehelper'
_libs.filehelper = _libs.filehelper or (files ~= nil)
json = {}
... |
local event = require("__flib__.event")
local migration = require("__flib__.migration")
-- the migrations table - this will probably go into its own file
local migrations = {
-- each function will be run when upgrading from a version older than it
-- for example, if we were upgraing from 1.0.3 to 1.1.0, the last t... |
force(tonumber("5") + 1, 7) -- EXPECT SOURCE_CHANGE 1:16 "6"
|
-- commandline script that cleans a PATH variable by removing duplicates.
-- this belongs to 'setlua.bat' in case it is ran multiple times.
-- call as: "lua setlua_clean.lua <env-var-name>"
-- NOTE: this code must be able to run on ALL Lua versions
local var = assert(arg[1], "Name of environment variable to clean was... |
-- __ __
-- __ _____ ______ __/ /_ _______ _____ ____/ /_____ ____
-- / // / _ \/ __/ // / / // /___/ |/|/ / _ \/ __/ '_/ -_) __/
-- \_,_/_//_/_/ \_,_/_/\_, / |__,__/\___/_/ /_/\_\\__/_/
-- /___/
--
-- Name: unruly-worker
-- License: Unl... |
ENT.Base = "dronesrewrite_base"
ENT.Type = "anim"
//ENT.PrintName = "DF 'Defender'"
ENT.PrintName = "Defender"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Category = "Drones Rewrite"
ENT.UNIT = "DF"
ENT.Weight = 350
ENT.Model = "models/dronesrewrite/defender/defender.mdl"
ENT.FirstPersonCam_pos = Vector(34, 0... |
local rex = require "rex_posix"
local _M = {}
local lexemes = {
{
type = "operator",
pattern = "[+-/*=^÷−%]"
},
{
type = "symbol",
pattern = "[a-zA-Z]+[a-zA-Z0-9]*"
},
{
type = "number",
pattern = "([0-9]+|[0-9]+\\.[0-9]*)"
},
{
type = "parenthesis",
pattern = "[()]"
},
{
type = "separator... |
-- Plugin: neokeys
-- Author: q9w
-- License: BSD 3-Clause License
-- Source: https://github.com/q9w/neokeys
local function setup()
local opts = {
nowait = true, noremap = true, silent = true
}
-- Set leader
vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', opts)
vim.g.mapleader = ' '
... |
--------------------------------------------------------------------
CLASS: ParticleSystem ()
:MODEL {
Field 'config' :asset( 'particle_.+' ) :getset( 'Config' );
Field 'inheritTransform' :boolean();
}
function ParticleSystem:__init( config )
self._system = false
-- self:setConfig( config )
self.emitters = ... |
--[[
ScatWave implementation of Scattering Network
Written by Edouard Oyallon
Team DATA ENS
Copyright 2015
]]
require 'torch'
scatwave = {} -- define the global ScatNet table
scatwave.network_2d_bfs = require 'scatwave.network_2d_bfs'
scatwave.network_2d_bfs_o = require 'scatwave.network_2d_bfs_o... |
object_mobile_smuggler_fence_diala = object_mobile_shared_smuggler_fence_diala:new {
}
ObjectTemplates:addTemplate(object_mobile_smuggler_fence_diala, "object/mobile/smuggler_fence_diala.iff")
|
--
-- Created by IntelliJ IDEA. Copyright (C) 2017 Hanks
-- User: hanks
-- Date: 2017/5/26
-- A news app
--
require "import"
import "android.widget.*"
import "android.content.*"
import "android.view.View"
import "android.support.v4.view.ViewPager"
import "android.support.design.widget.TabLayout"
import "androlua.adapt... |
--- Item
-- @classmod Item
local Item = {
_class = "Item"
}
setmetatable(Item, {__index = require("stdlib/data/data")})
function Item:_get(item, item_type)
return self:get(item, item_type)
end
Item:set_caller(Item._get)
Item._mt = {
type = "item",
__index = Item,
__call = Item._get,
__tostrin... |
local lpeg = require('lpeg')
-- example CSV grammar from http://www.inf.puc-rio.br/~roberto/lpeg/#CSV
local csv_field = '"' * lpeg.Cs(((lpeg.P(1) - '"') + lpeg.P'""' / '"')^0) * '"' +
lpeg.C((1 - lpeg.S',\n"')^0)
local csv_record = csv_field * (',' * csv_field)^0 * (lpeg.P'\n' + -1)
local head... |
class("SelectFleetCommanderCommand", pm.SimpleCommand).execute = function (slot0, slot1)
slot2 = slot1:getBody()
slot5 = slot2.commanderId
slot6 = slot2.callback
slot7 = getProxy(FleetProxy):getFleetById(slot3)
slot9 = slot7:getCommanders()
if not slot7:getCommanderByPos(slot4) or slot8.id ~= slot5 then
slot10... |
--[[
Use the source, Luke!
Copyright (C) 2014-2021 Gary V. Vaughan
]]
local _ENV = require 'std.normalize' {
'luke._base',
'luke.configure',
'luke.environment',
'luke.platforms',
'std.functional',
'type.context-manager',
}
local function has_anykey(t, keylist)
return any(map(keylist, function(... |
local name = "car_road_master"
local definition = ...
definition.description = "Road Master car"
definition.inventory_image = "inv_car_brown.png"
definition.wield_image = "inv_car_brown.png"
definition.textures = {"road_master.png"}
vehicle_mash.register_vehicle("vehicle_mash:"..name, definition)
|
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
-- This file is automaticly generated. Don't edit manualy!
-- !!!!!!!!!!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!!!!!!!
---@class C_BlackMarketInfo
C_BlackMarketInfo = {}
|
local broadsock_client
local broadsock_server
local mock = require "deftest.mock"
local mock_factory = require "test.mock_factory"
return function()
describe("broadsock client and server", function()
local function create_callbacks()
local callbacks = {}
function callbacks.on_custom_message() end
functio... |
local IHud = require("api.gui.hud.IHud")
local IInput = require("api.gui.IInput")
local InputHandler = require("api.gui.InputHandler")
local WidgetContainer = require("api.gui.WidgetContainer")
local MainHud = class.class("MainHud", IHud)
MainHud:delegate("input", IInput)
function MainHud:init()
self.input = Input... |
local function ChangeUser(msg)
local text = msg.content_.text_
if ChatType == 'sp' or ChatType == 'gp' then
if text then
tdcli_function({ID = "GetUser",user_id_ = msg.sender_user_id_},function(arg,result)
if result.id_ then
local Rio = DevRio:get("RaumoTeam:User"..result.id_)
if not result.username_ then
if Rio the... |
AddCSLuaFile()
DEFINE_BASECLASS( "base_anim" )
ENT.PrintName = "TV: Label"
ENT.Author = "raubana"
ENT.Information = ""
ENT.Category = "Tunnel Vision"
ENT.Editable = true
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_OPAQUE
function ENT:SetupDataTables()
self:NetworkVar( "Bo... |
---------------------------------------------------------------------------------------------------
-- Proposal: SDL 0180 Broaden Choice Uniqueness
--
-- Description:
-- Mobile shall be able to send a CreateInteractionChoiceSet RPC where two choices within the
-- choice set have identical menuName values.
--------... |
local code_action_cache = {}
local ctx
local function preview(action)
local res = {}
local syntax
local function render_preview(lines, hl_syn)
vim.fn['clap#preview#show_lines'](lines, hl_syn, -1)
vim.fn['clap#preview#highlight_header']()
end
if action.edit ~= nil and action.edit.cha... |
object_draft_schematic_furniture_furniture_chair_jedi_dark_s01 = object_draft_schematic_furniture_shared_furniture_chair_jedi_dark_s01:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_furniture_furniture_chair_jedi_dark_s01, "object/draft_schematic/furniture/furniture_chair_jedi_dark_s01.iff")
|
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_hoodwink_... |
--[[
Title: Wallet
Author(s): big
Date: 2019.01.23
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local Wallet = NPL.load("(gl)Mod/WorldShare/database/Wallet.lua")
------------------------------------------------------------
]]
local Utils = NPL.load("(gl)Mod/WorldShare/... |
-----------------------------------
-- Area: Western Adoulin
-- NPC: Shipilolo
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'A Certain Substitute Patrolman'
-- 'Fertile Ground'
-- 'The Old Man and the Harpoon'
-- 'Wayward Waypoints'
... |
local luaunit = require("luaunit")
local luacs = require("luacs")
TestParser = {}
function parse(selectors_group)
local events = {}
local listener = {}
listener.on_start_selectors_group = function(self)
table.insert(events, "start_selectors_group")
end
listener.on_end_selectors_group = function(self)
... |
local Flame = Class('Flame', Skill)
Flame.static.image = love.graphics.newImage('assets/sprites/Projectiles/hd_flame_0.png')
Flame.static.grid = Anim8.newGrid(64, 64, Flame.static.image:getDimensions())
Flame.static.particle_image = love.graphics.newImage('assets/sprites/flare/corona.png')
function Flame:initialize(... |
local parser = require("parser")
local _dump = require("pl.pretty").dump
describe("parser", function ()
context("very basics", function ()
it("should parse a fact", function ()
parser.parse("(p (a) (b (c))).")
end)
it("should parse a rule", function ()
parser.parse("(:RULE (... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('atlasdata_pb')
ATLASDATA = protobuf.Descriptor();
local ATLASDATA_GROUPID_FIELD = protobuf.FieldDescriptor();
local ATLASDATA_FINISHID_FIELD = protobuf.FieldDescriptor();
ATLASDATA_GROUPID_FIELD.name = "groupid"
ATLASDATA... |
-- Greatest subsequential sum finding algorithms implementation
-- See: http://en.wikipedia.org/wiki/Maximum_subarray_problem
-- Computes the largest sub-sequential sum using kadanes algorithm
-- s : a given sequence
-- returns : the sum of the largest subsequence found
-- returns : the starting index of the lar... |
local GameScene = class("GameScene", cc.load("mvc").ViewBase)
local protoTypes = require("ProtoTypes")
local packetHelper = require "PacketHelper"
local CommonLayer = require("CommonLayer")
local Constants = require("Constants")
local UIHelper = require("UIHelper")
function GameScene:onCreate()
UIHelper.createS... |
--[[
@author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com>
@copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com>
@license MIT
]]--
local jobs={
["tuner-sf"]={
code="tuner-sf",
desc="-",
desc2="Praca Tunera",
positionMarker={-2272.03, -159.40, 35.32},
text="* Nie jesteś zatrudniony(a) jako tune... |
local _2afile_2a = "fnl/conjure/remote/transport/bencode/init.fnl"
local _2amodule_name_2a = "conjure.remote.transport.bencode"
local _2amodule_2a
do
package.loaded[_2amodule_name_2a] = {}
_2amodule_2a = package.loaded[_2amodule_name_2a]
end
local _2amodule_locals_2a
do
_2amodule_2a["aniseed/locals"] = {}
_2amo... |
local api = vim.api
api.nvim_set_keymap('n', '<Leader>ln', '<Cmd>lua require("jonz94.line-number").toggle()<CR>', { noremap = true })
|
hp = 3000
attack = 520
defense = 300
speed = 100
mdefense = 350
luck = 75
strength = ELEMENT_NONE
weakness = ELEMENT_NONE
function initId(id)
myId = id
end
function start()
preloadSpellSFX("MachineGun")
end
function get_action(step)
return COMBAT_CASTING, "MachineGun", 1, getRandomPlayer()
en... |
--- Simple file operations.
--
-- This module provides actions to handle simple filesystem operations.
--
-- @module file
-- @author Chad Phillips
-- @copyright 2011-2015 Chad Phillips
--- The filesystem handler (default).
--
-- The default handler for the file module. This handles file operations on
-- the local fil... |
local t = require("ds18b20")
local pin = 3 -- gpio0 = 3, gpio2 = 4
local function readout(temps)
if t.sens then
print("Total number of DS18B20 sensors: ".. #t.sens)
for i, s in ipairs(t.sens) do
print(string.format(" sensor #%d address: %s%s", i,
('%02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X'):fo... |
local moon = require("moon")
local cluster = require("moon.cluster")
local M = {}
function M.call(name, cmd, ...)
local config = config.get_service(name)
if config then
local data = { cluster.call(string.format( "server_%d", config.sid),name,cmd, ...) }
return table.unpack(data)
else
... |
---
-- @module log
--
local _COPYRIGHT = "Copyright (C) 2013-2016 Alexey Melnichuk";
local _VERSION = "0.1.7-dev"
local table = require "table"
local string = require "string"
local date = require "date"
local destroy_list = {}
local loggers_list = setmetatable({},{__mode = 'k'})
local emptyfn = fu... |
require 'common'
require 'event_single'
require 'event_battle'
require 'event_misc'
require 'event_gen'
require 'event_extra'
|
local package = {
Name = "API",
Description = "Reveals specific API methods to remote",
Author = "7kayoh",
Class = "Plugin",
Category = "Server",
Target = {}
}
local allowedRequests = {
"getAdminLevel",
"getAdminStatusWithUserId",
"checkUserAdmin",
}
local dLog = nil
function packa... |
--[[
Credit to einsteinK.
Credit to Stravant for LBI.
Credit to the creators of all the other modules used in this.
Sceleratis was here and decided modify some things.
einsteinK was here again to fix a bug in LBI for if-statements
--]]
local waitDeps = {
'FiOne';
'LuaK';
'LuaP';
'LuaU';
'LuaX';
'LuaY'... |
-- clock.lua (based on pdfclock.c)
RADIUS=200
MARGIN=20
p:begin_page(2 * (RADIUS + MARGIN), 2 * (RADIUS + MARGIN))
p:translate(RADIUS + MARGIN, RADIUS + MARGIN)
p:setcolor("both", "rgb", 0, 0, 1)
p:save()
-- minute strokes
p:setlinewidth(2)
for alpha = 0,360-6,6 do
p:rotate(6)
p:moveto(RADIUS, 0)
p:line... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.