content stringlengths 5 1.05M |
|---|
w = love.graphics.getWidth();
h = love.graphics.getHeight();
max_acc = 180
max_vel = 60
max_visible_dist = 60
damping = 0.0
min_dist = 18;
mouse_flee_radius = 35
keep_distance = true;
stay_centered = true
adjust_velocity = true
stay_on_display = true
show_visible = false
should_flee = false
boids = {};
function lov... |
--------------------------------------------------------------------------------
-- Vector support --
--------------------------------------------------------------------------------
local delta = wire_expression2_delta
local random = math.random
local Vect... |
if not pcall(require, 'FTerm') then
print('Failed to call FTerm')
return
end
require('FTerm').setup {
dimensions = {
height = 0.9,
width = 0.9
},
border = 'double'
}
local option = {noremap = true, silent = true}
vim.api.nvim_set_keymap('n', '<C-\\>', [[<CMD>lua require("FTerm").to... |
local args = ...
local row = args[1]
local col = args[2]
local Input = args[3]
local bg_color = {0,0,0,0.9}
local divider_color = {1,1,1,0.75}
local af = Def.ActorFrame{
InitCommand=function(self)
self:diffusealpha(0)
end,
SwitchFocusToSongsMessageCommand=function(self)
self:linear(0.1):diffusealpha(0)
end,
... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
SS_Tab("Weapons", "bomb")
SS_WeaponProduct({
name = 'Throatneck Slitter',
description = "A deadly knife capable of killing one person before breaking.",
price = 2000,
model = 'models/weapons/... |
function readScript(file)
local f = io.open(file, "rb")
local content = f:read("*all")
f:close()
return content
end
load(readScript(LIB_PATH.."DivinePred.luac"), "Divine Prediction","bt",_ENV)()
|
local Message = {}
Message.__index = Message
Message.__metatable = false
Message.Class = "Message"
local _scanparam = require("../util/ScanParam")
local _scanurl = require("../util/ScanURL")
local _typeof = require("../util/TypeOf")
local _log = require("../util/Log")
function Message.new(data)
_scanparam({"data"... |
the.HexScale = 64
the.ActiveHex = nil
the.ActiveHexColor = {255, 0, 0, 100}
local function RoundHex(q, r)
local x = q
local z=r-.75--numeros magicos ftw
local y=-x-z
local rx=math.round(x)
local rz=math.round(z)
local ry=math.round(y)
local x_diff = math.abs(rx - x)
local y_diff = math.... |
Player = Ship:extend()
function Player:new(x_start, y_start)
Player.super.new(self, x_start, y_start, dir_start)
self:setColor(COLORS.red)
self.max_speed_base = 160
self.max_speed = self.max_speed_base
self.cruise_speed = 100
self.min_speed = 75
self.boost = 100
self.max_boost = 400
self.over_boosted... |
local Stack = require 'scripts.make.stack'
local Logs = require 'lib.logs'
local Parser = {}
local concat = table.concat
local function apply_macro(macro, argv)
return (macro:gsub("($+)(%d+)", function(esc, i)
local v = argv[tonumber(i)] or ""
if esc:len() % 2 == 1 then
return esc:sub(1, -2) .. v
end
... |
Menu.Spacing()
Menu.Separator()
Menu.Spacing()
Menu.Text("KibbeWater - Grenade Helper")
Menu.Spacing()
Menu.Spacing()
Menu.Spacing()
Menu.Checkbox("Draw Line To Angle", "cHelperDrawLineAngle", true)
Menu.SliderInt("Render Distance", "cHelperRenderDistance", 50, 2000, "", 500)
Menu.Spacing()
Menu.Spacing()
Me... |
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.Range = 1024
function ENT:SetupDataTables()
self:NetworkVar( "Int", 0, "Team" )
self:NetworkVar( "Int", 1, "PropHealth" )
end |
--
-- User: Glastis
-- Date: 15-Sep-19
--
local constant = {}
constant.IMAGE_PATH = 'images/'
constant.IMAGE_PATH_HOME = constant.IMAGE_PATH .. '1484022678_go-home.png'
return constant |
--------------------------------------------------------------------------------
--[[
TouchPoint
A vent that tracks to the touch point.
--]]
--------------------------------------------------------------------------------
local CBE = require("CBE.CBE")
local vent = CBE.newVent({
preset = "burn"
})
local function o... |
local rgph = require "rgph"
local edge_fmt = "%d -- %d [label=%q, color=%q];\n"
local graph_label_fmt = "%d edges, %d vertices, core %d, seed %d, flags %q"
local function dot(file, g, ...)
local seed = g:seed()
--local hash = rgph[g:hash()]
file:write("graph {\n")
for peel, key, h1, h2, h3 in g:edges("peel,key"... |
#!/usr/bin/env tarantool
test = require("sqltester")
test:plan(7)
test:do_catchsql_test(
"pragma-1.3",
[[
PRAGMA kek = 'ON';
]], {
1, "no such pragma: KEK"
})
---
--- gh-2199: SQL default engine pragma
---
test:do_catchsql_test(
"pragma-2.1",
[[
pragma sql_default_engine='creepy';
]], {
1, "Space engin... |
-----------------------------------
--
-- tpz.effect.CHR_DOWN
--
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEffectGain(target, effect)
if ((target:getStat(tpz.mod.CHR) - effect:getPower()) < 0) then
effect:setPower(target:getStat(tpz... |
if CLIENT then
include("shared.lua")
net.Receive("ClientDeathNotify", function()
-- Read the variables from the message
local name = net.ReadString()
local role = tonumber(net.ReadString())
local reason = net.ReadString()
-- Format the number role into a human readable ... |
local utils = require 'mp.utils'
local msg = require 'mp.msg'
local assdraw = require 'mp.assdraw'
local on_windows = (package.config:sub(1,1) ~= "/")
local opts = {
thumbs_dir = on_windows and "%APPDATA%\\mpv\\gallery-thumbs-dir" or "~/.mpv_thumbs_dir/",
auto_generate_thumbnails = true,
generate_thumbnai... |
local insert
insert = table.insert
local config_cache, configs, default_config, merge_set, set, scope_meta, config, reset, run_with_scope, get_env, get
config_cache = { }
configs = { }
default_config = {
server = "nginx",
port = "8080",
secret = "please-change-me",
session_name = "lapis_session",
code_cache =... |
--[[
abstract-to-meta – move an "abstract" section into document metadata
Copyright: © 2017–2020 Albert Krewinkel
License: MIT – see LICENSE file for details
]]
local looking_at_abstract = false
local abstract = {}
function Block (elem)
if looking_at_abstract then
abstract[#abstract + 1] = elem
return {}... |
local test
local testModel
local sphere
local skybox
local time = 0
local testFont
local rt
local rtMat
local camera
local Camera = require "camera"
require "helpers".global()
local changeRot = 0
function _init()
testModel = Model("test.fbx")
testModel:getRootNode():setTransform(Matrix():scale... |
--- === hs.roku ===
---
--- Stuff about the module
local USERDATA_TAG = "hs.roku"
-- local module = require(USERDATA_TAG..".internal")
local module = {}
local xml = require(USERDATA_TAG .. ".qduXML")
local basePath = package.searchpath(USERDATA_TAG, package.path)
if basePath then
basePath = b... |
local Shape = Shape
local M_PI = math.pi
local sqrt = math.sqrt
local s = DisplayShape.new(stage:getSize())
:setLineWidth(30.0)
:setLineCap("butt")
:moveTo(64.0, 50.0)
:lineTo(64.0, 200.0)
:stroke()
:setLineCap("round")
:moveTo(128.0, 50.0)
:lineTo(128.0, 200.0)
:stroke()
:setLineCap("square")
:moveTo(192.0... |
object_tangible_quest_quest_start_ep3_hunt_loot_greyclimber_eye = object_tangible_quest_quest_start_shared_ep3_hunt_loot_greyclimber_eye:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_quest_start_ep3_hunt_loot_greyclimber_eye, "object/tangible/quest/quest_start/ep3_hunt_loot_greyclimber_eye.iff")
|
function AIZSurvivorsInit()
if isModEnabled("Survivors") and RPresetSpawns ~= nil and blAIZSurivors then
print("AIZEnhanced: Found Survivors Mod.");
InitPresetSpawns(); --ensure this is called, if not already, (from Survivors Mod)
else
print("AIZEnhanced: Did Not Find Survivors Mod.");
return;
end
PSI... |
-- LuaLinq - http://code.google.com/p/lualinq/
-- ------------------------------------------------------------------------
-- Copyright (c) 2012, Marco Mastropaolo (Xanathar)
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification,
-- are permitted provided that t... |
fx = {
style = "STYLE_BEAM",
properties = {
property_11 = {
name = "Texture_U_Repeat",
type = "VARTYPE_ARRAY_TIMEFLOAT",
value = {
0,
10,
1,
10,
},
},
property_15 = {
name = "LightCurve",
type = "VARTYPE_ARRAY_TIMEFLOAT",
value = {
0,
2.50000,
1,
3.25000,
},
},
property_18 = {
name = "LengthEpsi... |
return function()
local CorePackages = game:GetService("CorePackages")
local CoreGui = game:GetService("CoreGui")
local InGameMenuDependencies = require(CorePackages.InGameMenuDependencies)
local Roact = InGameMenuDependencies.Roact
local RoactRodux = InGameMenuDependencies.RoactRodux
local Rodux = InGameMenuDep... |
local statement = {}
--local json = require'json'
function statement.vardecl (ast,vm,al)
local str = U.dotype(ast[0]).." ".. U.allocvar(vm,al,ast[1].content)
if ast.len==3 then
str = str .. " = " .. U.expr(ast[2],vm,al)
end
return str..";\n"
end
function statement.expr (ast,vm,al)
local e = U.expr(ast[0],vm,al)
... |
function trynumber(value, base)
return tonumber(value, base) or 0
end
function tryint(value)
return math.round(trynumber(value))
end
function trybool(value)
return (value ~= nil and value ~= false)
end
function trytable(value)
if type(value) ~= "table" then value = {} end
return value
end
|
local PLUGIN = PLUGIN
local backgroundColor = Color(0, 0, 0, 66)
local PANEL = {}
function PANEL:Init()
if (IsValid(ix.gui.teams)) then
ix.gui.teams:Remove()
end
ix.gui.teams = self
self:Dock(FILL)
self.teams = {}
self.teamButtons = {}
self.teamSubpanels = {}
self.teamsPanel = self:Add("ixHelpMenuCate... |
---------------
---- ## A Boundary Plugin Framework for Luvit.
----
---- For easy development of custom Boundary.com plugins.
----
---- [Github Page](https://github.com/GabrielNicolasAvellaneda/boundary-plugin-framework-lua)
----
---- @author Gabriel Nicolas Avellaneda <avellaneda.gabriel@gmail.com>
---- @copyright Bou... |
--[[
Global game state controller
]]
local ctrl = {}
function ctrl.init()
-- Init containers
camera = {}
mouse = {}
-- Init camera
camera.x = 0
camera.y = 0
camera.zoom = 1
-- Init mouse
mouse.x = 0
mouse.y = 0
-- Mouse relative to zoom and camera
mouse.rx = 0
mouse.ry = 0
mouse.wheel = 0
sleep = ... |
require "nn"
mlp=nn.Concat(2);
mlp:add(nn.Linear(5,7))
mlp:add(nn.Linear(5,7))
print(mlp:forward(torch.randn(2, 5)))
|
slot0 = class("PublicGuildMainMediator", import("...base.ContextMediator"))
slot0.ON_COMMIT = "PublicGuildMainMediator:ON_COMMIT"
slot0.UPGRADE_TECH = "PublicGuildMainMediator:UPGRADE_TECH"
slot0.register = function (slot0)
slot0:bind(slot0.ON_COMMIT, function (slot0, slot1)
slot0:sendNotification(GAME.PUBLIC_GUILD... |
-- --entity
require("prototypes.style")
require("prototypes.hotkeys")
-- --items
-- require("prototypes.item.items")
-- --recipies
-- require("prototypes.recipe.recipes") |
InteractiveObjectEx = {
type = "InteractiveObjectEx",
Properties = {
Interaction = {
-- All interactions share a single CGA which loads the geometry (in the case of one interaction this also supplies the ANM)
object_Model = "Objects/prototype/ElevatorDoors/AnimatedElevatorDoors.cga",
-- Old style spec... |
-- Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
module("luci.controller.travelmate", package.seeall)
local util = require("luci.util")
local i18n = require("luci.i18n")
local templ = require("luci.template")
function index()
if not nix... |
--[[
encoding: UTF-8
-- 中文互联网上迄今为止实现最正确、代码最漂亮且效率最高的大写人民币金额转换代码
-- Lua 5.1+ 版本
-- 作者:李维 <oldrev@gmail.com>
-- 版权所有 (c) 2013 李维。保留所有权利。
-- 本代码基于 BSD License 授权。
--]]
module("rmbupper", package.seeall)
local _RMB_DIGITS = {'零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' }
local _SECTION_CHARS = {'', '拾', '佰', '仟', '万'... |
--------------------------------
-- @module ShatteredTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- creates the action with a range, whether of not to shatter Z vertices, a grid size and duration
-- @function [parent=#ShatteredTiles3D] create
-- @param self
-- @param ... |
ReactCurrentOwner = require "ReactCurrentOwner"
do
print(ReactCurrentOwner.current)
ReactCurrentOwner.current = "Fiber"
print(ReactCurrentOwner.current)
ReactCurrentOwner = require "ReactCurrentOwner"
print(ReactCurrentOwner.current)
end |
--逆旋的有顶天
local m=14050020
local cm=_G["c"..m]
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--tohand
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATE... |
local skynet = require "skynet"
local log = require "log"
local M = {}
local runconf = require(skynet.getenv("runconfig"))
local moveconf = runconf.ddz
local MAX_GLOBAL_COUNT = #moveconf.global
local function fetch_global(id)
local index = id % MAX_GLOBAL_COUNT + 1
return moveconf.global[index]
end
local fu... |
-- Note: starting with Redis 5, the replication method described in this section (scripts effects replication) is the default and does not need to be explicitly enabled.
redis.replicate_commands();
local namespace = KEYS[1];
local serviceId = ARGV[1];
local instanceId = ARGV[2];
local instanceIdxKey = namespace .. ':s... |
tamed_huurton = Creature:new {
objectName = "@mob/creature_names:rebel_tamed_huurton",
socialGroup = "rebel",
faction = "rebel",
level = 12,
chanceHit = 0.29,
damageMin = 130,
damageMax = 140,
baseXp = 514,
baseHAM = 1200,
baseHAMmax = 1400,
armor = 0,
resists = {10,10,10,10,10,10,10,-1,-1},
meatType = "me... |
--$Name: Волк, коза и якудза.$
--$Version: 0.1$
instead_version "1.8.1";
require "xact"
require "para"
require "dash"
-- если для объекта не прописана реакция, то реагировать будем так:
game.act = "Ничего не произошло."; -- если нажали на объект на сцене
game.inv = "И откуда это у меня?"; -- если применили объект и... |
--gameLevel2
local LevelBase = require 'gamestates.LevelBase'
local gameLevel2 = LevelBase:extend()
local Player = require 'objects.Player'
local Enemy = require 'objects.Enemy'
local Gate = require 'objects.Gate'
local player=nil
local weapon=nil
local enemy=nil
local gate=nil
ENTITIES={}... |
------------------------
-- Configuration keeper
------------------------
local _M = {}
local sep = "/"
if WIN32 then
sep = "\\"
end
local FILENAME = _USERHOME..sep.."spellchecker.conf"
_M.ON = 2
_M.OFF = 1
function _M:load()
local handle = io.open(FILENAME, "r")
if not handle then return end
for line in ha... |
local pug = {}
pug["!!!"] = "{doctype html}"
return pug
|
---------------------------------------------------------------
-- Copyright 2020 Deviap (https://deviap.com/) --
---------------------------------------------------------------
-- Made available under the MIT License: --
-- https://github.com/deviap/sample-apps/blob/master/LICENSE --
... |
local brick = Instance.new("Part")
brick.BrickColor = BrickColor.new("Brown")
brick.Parent = game.Workspace.acb227
brick.Name = "Right Arm"
brick.Size = Vector3.new(2, 2, 2)
brick.Position = Vector3.new(-5, 1, 17)
brick.Anchored = false
brick.CanCollide = true
brick.Locked = true
brick.Material = "Plastic"
bric... |
local network = {}
function network.isLocalWiFiAvailable()
return CCNetwork:isLocalWiFiAvailable()
end
function network.isInternetConnectionAvailable()
return CCNetwork:isInternetConnectionAvailable()
end
function network.isHostNameReachable(hostname)
if type(hostname) ~= "string" then
echoError... |
--[[
MIT License
Copyright (c) 2018 JWRR.COM
git clone https://github.com/jwrr/lued.git
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 righ... |
local playsession = {
{"liqwid", {1443253}},
{"rlidwka", {1473558}},
{"Dofolo", {204902}},
{"ksb4145", {249716}},
{"rbas333", {905660}},
{"tyssa", {995011}},
{"zzHz", {581511}},
{"greattohave", {321671}},
{"foggyliziouz", {935876}},
{"Morkol", {6212}},
{"Liutio", {708037}},
{"helic99", {1218614}},
{"wezisc... |
a = {}
a.x = 1
a.y = 0
b = {}
b.x = 1
b.y = 0
c = a
print(a == c)
print(a ~= b)
|
local Prop = {}
Prop.Name = "Nº17 Rua Gole de Skol"
Prop.Cat = "House"
Prop.Price = 340
Prop.Doors = {
Vector(563, 407, -142),
Vector(694, 404, -114),
}
GM.Property:Register( Prop ) |
-- If you're not sure your plugin is executing, uncomment the line below and restart Kong
-- then it will throw an error which indicates the plugin is being loaded at least.
--assert(ngx.get_phase() == "timer", "The world is coming to an end!")
-- Grab pluginname from module name
local plugin_name = ({...})[1]:match... |
-- Copyright 2021 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... |
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
local theme = require("beautiful")
local naughty = require("naughty")
local glib = require("lgi").GLib
local dpi = theme.xresources.apply_dpi
local module = {}
local client, screen, mouse = client, screen, mouse
local instan... |
local uv = require "lluv"
local lua = uv.exepath()
local fake = lua .. "123456"
local counter = 0
local proc1
proc1 = uv.spawn({
file = lua;
args = {};
}, function(handle, err, status, signal)
counter = counter + 1
assert(handle == proc1)
assert(err == nil)
assert(status == 0)
end)
assert(proc1)
assert... |
return {'urinaal','urine','urineblaas','urinebuis','urinebuisopening','urinecontrole','urineleider','urinemonster','urineonderzoek','urineren','urinestaal','urinetest','urinevergiftiging','urineverlies','urineweg','urineweginfectie','urinezuur','urinoir','urineproductie','urinekatheter','urinelozing','urinestraal','uri... |
require 'torch'
require 'nn'
require 'optim'
require 'eladtools'
require 'recurrent'
require 'utils.OneHot'
require 'utils.textDataProvider'
-------------------------------------------------------
cmd = torch.CmdLine()
cmd:addTime()
cmd:text()
cmd:text('Training recurrent networks on character-level text dataset')
cmd... |
--[[
[WIP]
Currently, I don't recommend to use it. It may change.
]]
---@class general_util : module
local M = {}
--#region constants
local call = remote.call
--#endregion
-- Events
local on_reload_scenario_event
local on_new_character_event
local on_player_on_admin_surface_event
local on_player_on_scenario_surfa... |
-------------------------------------------------------------------------------
-- Spine Runtimes Software License v2.5
--
-- Copyright (c) 2013-2016, Esoteric Software
-- All rights reserved.
--
-- You are granted a perpetual, non-exclusive, non-sublicensable, and
-- non-transferable license to use, install, ex... |
require('nn')
require('cudnn')
require('inn')
require('detection')
caffeConverter = detection.CaffeModelConverter('./models/VGG16/VGG16_imgnet.lua','/mnt/mag5tb/data/detection/data/imagenet_models/VGG16.prototxt','/mnt/mag5tb/data/detection/data/imagenet_models/VGG16.v2.caffemodel','VGG16.v2','./')
caffeConverter:conv... |
local BREAKINFOFUNC, XPCALLFUNC = require("LuaDebug")("localhost", 7003)
coroutine.start(
function()
while true do
coroutine.wait(0.1)
BREAKINFOFUNC()
end
end)
--主入口函数。从这里开始lua逻辑
function Main()
print("logic start")
end
--场景切换通知
function OnLevelWasLoaded(level)
collectgarbage("collect"... |
-- Project: PonyTiled a Corona Tiled Map Loader
--
-- Loads LUA saved map files from Tiled http://www.mapeditor.org/
local M = {}
local physics = require "physics"
local FlippedHorizontallyFlag = 0x80000000
local FlippedVerticallyFlag = 0x40000000
local FlippedDiagonallyFlag = 0x20000000
local ClearFlag ... |
addEvent("Music:onStreamVerify", true)
addEventHandler("Music:onStreamVerify", resourceRoot, function(streamer)
outputChatBox("#00ff00[Live Stream] #ffffffLive stream is online! Streamer: "..streamer.."#ffffff. M -> Stream to tune in!", root, 255, 255, 255, true)
end) |
---@class CS.FairyGUI.GearDisplay2 : CS.FairyGUI.GearBase
---@field public condition number
---@field public pages String[]
---@type CS.FairyGUI.GearDisplay2
CS.FairyGUI.GearDisplay2 = { }
---@return CS.FairyGUI.GearDisplay2
---@param owner CS.FairyGUI.GObject
function CS.FairyGUI.GearDisplay2.New(owner) end
function ... |
--- === cp.blackmagic.resolve.color.Color ===
---
--- Color Module.
local require = require
--local log = require "hs.logger".new "Color"
local axutils = require "cp.ui.axutils"
local Group = require "cp.ui.Group"
local Tracker = require "cp.blackmagic.r... |
local cqueues = require "cqueues"
local irc = require "ircclient"
local s1 = irc.create_session()
s1:register("connect", function(s) s:join("#test") end)
s1:register("channel", function(s, origin, chan, text)
if text:match("^foo") then
s:msg(chan, "bar")
end
end)
s1:connect{ host = "127.0.0.1", nick = ... |
-- Load CB_DEBUG Value
local CB_DEBUG = rawget(_G, "CB_DEBUG") and _G.CB_DEBUG or false
-- Load Screen Helpers
local Screen = require "helpers/ScreenHelpers"
-- Max Status Handler
local CB_MaxStatus = function(inst)
-- Exit If PlayerHud Missing
if not (Screen.IsHudScreen() or Screen.IsPauseScreen()) then... |
-- #############################################################################
-- ## ##
-- ## Language : German ##
-- ## Locale : DE ... |
/run local items=({1520]=true,[9335]=true,[9333]=true,[9332]=true,[1645]=true,[4599]=true} for b=0,4,1 do for s=1,32,1 do local id=select(10,GetContainerItemInfo(b,s)) if items[id] then PickupContainerItem(b,s) DeleteCursorItem() end end end |
--- Cycle through recently focused clients (Alt-Tab and more).
--
-- Author: http://daniel.hahler.de
-- Github: https://github.com/blueyed/awesome-cyclefocus
local awful = require('awful')
-- local setmetatable = setmetatable
local naughty = require("naughty")
local table = table
local tostring ... |
local x = {
1, 2, 3, 4,
}
for k, v in pairs(x) do
print(k, v)
end
print("done") |
return {
code = 'PARAM_ILLEGAL',
key = "PARAM_ILLEGAL",
} |
local QuestConstants =
{
Tables =
{
{
Name = "QuestTagType",
Type = "Enumeration",
NumValues = 16,
MinValue = 0,
MaxValue = 15,
Fields =
{
{ Name = "Tag", Type = "QuestTagType", EnumValue = 0 },
{ Name = "Profession", Type = "QuestTagType", EnumValue = 1 },
{ Name = "Normal", Type =... |
-- 6Harmonics Qige @ K2E 7S4
-- 2017.03.01
local cmd = require 'six.cmd'
local conf = require 'six.conf'
local fmt = require 'six.fmt'
local ABB = require 'kpi.ABB'
local NW = {}
NW.conf = {}
NW.conf.eth_ifname = 'eth0'
NW.conf.wls_ifname = 'wlan0'
NW.conf.ap_ifname = 'br-lan'
NW.cache = {}
NW.cache._bridge = 0... |
--海造賊-黒翼の水先人
--Ravenwing, the Plunder Patroll Pilot
--Scripted by Kohana Sonogami
function c101104018.initial_effect(c)
--to hand
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(101104018,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATI... |
require("opener").setup({
post_open = {
function(new_dir)
require('fzf-lua').files()
end
},
})
|
object_tangible_meatlump_event_meatlump_bomb_01_03 = object_tangible_meatlump_event_shared_meatlump_bomb_01_03:new {
}
ObjectTemplates:addTemplate(object_tangible_meatlump_event_meatlump_bomb_01_03, "object/tangible/meatlump/event/meatlump_bomb_01_03.iff")
|
local gemm = require("gemm")
local cstdio = terralib.includec("stdio.h")
local stdlib = terralib.includec("stdlib.h")
-- Set number to float in case of Single Float Point tests
local number = double
local function isinteger(x) return math.floor(x) == x end
local llvmprefetch = terralib.intrinsic("llvm.prefetch",{&opaq... |
local Color1 = color(Var "Color1");
local Color2 = color(Var "Color2");
local a1 = LoadActor(Var "File1") .. {
OnCommand= function(self)
self:cropto(SCREEN_WIDTH/2,SCREEN_HEIGHT/2):diffuse(Color1)
:effectclock("music")
-- Explanation in StretchNoLoop.lua.
if self.GetTexture then
self:GetTexture():rate(sel... |
local L = LibStub("AceLocale-3.0"):NewLocale("Grindon_Currency", "enUS", true)
L["PluginName"] = "Currency"
L["Gold"] = "Gold" |
custom_halloween1_outfit = {
{
{objectTemplate = "object/tangible/tcg/series1/wearable_glowing_red_eyes.iff", customizationVariables = {} },
{objectTemplate = "object/tangible/wearables/robe/exar_cultist_hood_up.iff", customizationVariables = {} }
}
}
addOutfitGroup("custom_halloween1_outfit", custom_halloween... |
platformParts:registerNewCase({
id = "_case_1",
quad = "a1"
})
platformParts:registerNewCase({
id = "_case_2",
quad = "a2"
})
platformParts:registerNewCase({
id = "_case_3",
quad = "a3"
})
platformParts:registerNewCase({
id = "_case_4",
quad = "a4"
})
platformParts:registerNewCase({
id = "_cas... |
local night_table = { --name, material, invimg
{'Wood Nightstand', 'wood'},
{'Acacia Wood Nightstand', 'acacia_wood'},
{'Aspen Wood Nightstand', 'aspen_wood'},
{'Pine Wood Nightstand', 'pine_wood'},
{'Jungle Wood Nightstand', 'junglewood'}
}
for i in ipairs (night_table) do
local name = night_table[i][1]
local mater... |
-- Functions for menu creation and manipulation
-- A menu is defined by a table of menu items, which can contain the following fields
-- (none are required):
-- {
-- name = "item", -- menu item text
-- onActivate = func, -- function to be called when the item is clicked
-- submenu = { } -- a submenu to... |
local function spairs(t, order)
local keys = {}
for k in pairs(t) do keys[#keys+1] = k end
if order then
table.sort(keys, function(a,b) return order(t, a, b) end)
else
table.sort(keys)
end
local i = 0
return function()
i = i + 1
if keys[i] then
r... |
AddCSLuaFile("cl_init.lua")
DeriveGamemode("nutscript") |
AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Data Storer"
ENT.WireDebugName = "Data Store"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self.Values = {A... |
local sqlite3 = require("ffi-sqlite3")
local conn = sqlite3.open('my_database.sqlite3')
if not conn then
os.exit(0)
end
conn:exec("CREATE TABLE IF NOT EXISTS my_table(id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, age INTEGER)")
conn:exec("INSERT INTO my_table (name,age) VALUES('adam',50);")
local stmt = conn:p... |
-----------------------------------
-- Area: Maze of Shakhrami
-- Mob: Abyss Worm
-----------------------------------
require("scripts/globals/regimes")
-----------------------------------
function onMobDeath(mob, player, isKiller)
tpz.regime.checkRegime(player, mob, 699, 1, tpz.regime.type.GROUNDS)
tpz.regim... |
---@class QuestChoice
C_QuestChoice = {}
|
-- This first example, maintaining tradition, prints a "Hello World" message.
-- Furthermore it shows:
-- - Using the Sample utility functions as a base for the application
-- - Adding a Text element to the graphical user interface
-- - Subscribing to and handling of update events
require "LuaScripts... |
local typedefs = require "kong.db.schema.typedefs"
return {
name = "kong-signature-and-remove-attr",
fields = {
{ run_on = typedefs.run_on_first },
{ protocols = typedefs.protocols_http },
{ config = {
type = "record",
fields = {
{signature_secret... |
-- ALF implementation for ngx_lua/Kong
-- ALF version: 1.1.0
-- @version 2.0.0
-- @see https://github.com/Mashape/galileo-agent-spec
--
-- Incompatibilities with ALF 1.1 and important notes
-- ==================================================
-- * The following fields cannot be retrieved as of ngx_lua 0.10.2:
-- *... |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeClientDx
local SlipeMtaDefinitions
local SlipeSharedUtilities
local SystemNumerics
System.import(function (out)
SlipeClientDx = Slipe.Client.Dx
SlipeMtaDefinitions = Slipe.MtaDefinitions
SlipeSharedUtilities = Slipe.Shared.Utilities
SystemNume... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.