content stringlengths 5 1.05M |
|---|
-- scaffolding entry point for tolua
return dofile("tolua.lua")
|
local singletons = require "kong.singletons"
local _M = {}
function _M.get_providers(provider_type)
local providers = {}
local provider_entities = singletons.dao.auth_providers:find_all({ provider_type = provider_type })
for i, v in ipairs(provider_entities) do
table.insert(providers, { name = v.name, metho... |
workspace "Vortex"
architecture "x86_64"
startproject "Sandbox"
-- Dist: distination
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- include directories relativ... |
-- 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 = 'gql-dealership'... |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
--[[-------------------------------------------------------
NEXTBOT Settings
--]]-------------------------------------------------------
-- Default bot's model
ENT.Model = "models/player/combine_super_soldier.mdl"
-- Default bot's weapon o... |
--------------------------------------------------------------------------------
----------------------------------- DevDokus -----------------------------------
--------------------------------------------------------------------------------
-----------------------------------------------------------------------------... |
local modules = {}
for m in pairs(dofile(arg[1])) do
table.insert(modules, m)
end
table.sort(modules)
for line in io.lines() do
if line == '/* -- ADDMODULE MARKER 1 -- */' then
for _, m in ipairs(modules) do
print('extern PyObject *PyInit_'..m..'(void);')
end
elseif line == '/* -- ADDMODULE MARKER 2 -- */' t... |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.rls = {
default_config = {
cmd = {"rls"};
filetypes = {"rust"};
root_dir = util.root_pattern("Cargo.toml");
};
docs = {
package_json = "https://raw.githubusercontent.com/rust-lang/rls-vscode/master/package.j... |
local t = {}
local m = { a = "and", b = "Li Lei", c = "Han Meimei" }
setmetatable(t, {__index = m}) -- 表{__index = m}作为t的元表
for k,v in pairs(t) do
print("有值吗?")
print(k,"=>",v)
end
print("---------------------")
print(t.b, t.a, t.c)
print("---------------------")
local function add(t1,t2)
--‘#’运算符取表长度
assert... |
StageAPI = { -- this is the core of pretty much everything so please don't hurt it.
Version = 2.0
}
local stageAPIMod = RegisterMod("Stages Api", 1)
local api_mod = AlphaAPI.registerMod(stageAPIMod)
local json = require("json")
-- RNG object for when we need to set seeds.
local rng = RNG()
rng:SetSeed(Random(), ... |
local ffi = require 'ffi'
local typeof = ffi.typeof
local tostring = tostring
local pairs = pairs
local assert = assert
local error = error
local C = ffi.C
local function ffi_error()
return ffi.string(C.strerror(ffi.errno()))
end
ffi.cdef([[
char *strerror(int errnum);
int execvp(const char *path, char *const arg... |
local awful = require("awful")
local gears = require("gears")
local beautiful = require("beautiful")
local changesOnScreenCalled = false
-- General configuration for client decorations
local function renderClient(client, mode)
-- Check if client is already decorated or does not need to be decorated
if client.skip... |
local threads = require 'threads'
local noOfPlayers = 2
local episodes = 10
local pool = threads.Threads(
-- spawned threads
noOfPlayers,
-- Set-up the environment on each thread
function()
-- for some reason 'require' has an unexpected behavior when called
-- from 'threads' to execute a mod... |
#!/usr/bin/env luajit
local grid = require'grid'
local my_grid = assert(grid.new{
scale = 0.05,
xmin = -10, xmax = 10,
ymin = -10, ymax = 10
})
local function set_mid(map, idx)
map[idx] = 127
end
my_grid:bresenham({my_grid.xmin, my_grid.ymin}, {my_grid.xmax, my_grid.ymax})
--
my_grid:bresenham({my_grid.xmi... |
--when the config is loaded, this folder will be checked for files of the same name and run them if they are present |
-- Gen3 U TID printer
local game = 2
local gamename = "N/A: "
function getGame()
a = memory.read_u32_be(0x0000AC, "ROM")
if a == 0x41585645 then
game = 1
gamename = "RUBY: "
elseif a == 0x41585045 then
game = 1
gamename = "SAPP: "
elseif a == 0x42504545 then
game = 0
gamename = "EME... |
-- placeblocks.lua
-- Author: @kitmenke
--
-- Places all blocks in the turtle's inventory directly below itself until
-- the turtle's inventory is completely empty.
--
-- Used in the Sky Factory 2 mod pack along with an Autonomous Activator
-- to hammer the blocks which are placed by the turtle.
--
-------------------... |
local path = (...):sub(1, #(...) - #(".motion.ExpressionMotion"))
local JSON = require(path..".3p.JSON").new() -- new instance
local Luaoop = require(path..".3p.Luaoop")
local AMotion = require(path..".motion.AMotion")
---@class L2DF.ExpressionMotion: L2DF.AMotion
local ExpressionMotion = Luaoop.class("L2DF.Expressio... |
-- * 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) 2008-... |
return function()
local CopyFactory = require(script.Parent.Parent.CopyFactory)
local Copy
beforeEach(function()
Copy = CopyFactory()
end)
describe("Flush", function()
it("respects true", function()
Copy.Flags.Flush = true
local dict = {
sub = {},
}
local _ = Copy(dict)
expect(next(Copy... |
-- Copyright 2004-present Facebook. All Rights Reserved.
-- Main function to evaluate
require('torch')
local tds = require('tds')
local util = require('library.util')
local threads = require('threads')
threads.Threads.serialization('threads.sharedserialize')
local eval = {}
function eval:create(mlp, opt)
local new... |
package.path = "../?.lua;"..package.path
local ffi = require("ffi")
local bit = require("bit")
local zydis = require("lj2zydis.zydis")
local sizeOfCode = 64;
local data = ffi.new("uint8_t[64]",
{
0x0E,0x1F,0xBA,0x0E,0x00,0xB4,0x09,0xCD,0x21,0xB8,0x01,0x4C,0xCD,0x21,0x54,0x68,
0x69,0x73,0x20,0x70,0x72,0x6F,0x... |
function displayItemCompletion()
local itemCompletion = getItemCompletion()
if (itemCompletion <= 9) then
draw.text(218, 1, itemCompletion .. '%')
else
draw.text(215, 1, itemCompletion .. '%')
end
end
|
-- Various functions to convert tags into something more computable
local ipairs = ipairs
local Way = Way
local string = string
module("tags")
--------------- ACCESS ------------------------------------------------------
--
-- Access is converted into an int with increasing degree of accessibility.
--
-- 2 - desig... |
local quit_flag=2
function task()
t=require 'taskman'
me=t.get_my_name()
f=require 'freezer'
while not t.global_flag(quit_flag) do
msg,_,sender = t.wait_message(0.04)
if msg then f.thaw(msg)(sender) end
end
end
local nexttask={
task1='task2',
task2='task3',
task3='task1',
}
t=requ... |
-- conf/access_limit_conn.lua
local limit_conn = require "limit_conn"
-- 对于内部重定向或子请求,不进行限制。因为这些并不是真正对外的请求。
if ngx.req.is_internal() then
return
end
limit_conn.incoming()
|
local renamer = require 'renamer'
local mock = require 'luassert.mock'
local stub = require 'luassert.stub'
describe('health', function()
describe('check', function()
it('should generate error if a required plugin is missing', function()
stub(vim.fn, 'health#report_error').returns()
... |
local CoreGui = game:GetService("CoreGui")
local CorePackages = game:GetService("CorePackages")
local ContextActionService = game:GetService("ContextActionService")
local GuiService = game:GetService("GuiService")
local RobloxGui = CoreGui:WaitForChild("RobloxGui")
local Roact = require(CorePackages.Roact)
local Rod... |
38:49:58.05: Nanobots are now ready to serve
|
function ui.titleAdmin(title)
ui.title(function()
if title then
ui.link { module = "admin", view = "index", content = _"System administration" }
else
ui.tag{ content = _"System administration" }
end
if title then
slot.put ( " » " )
ui.tag { tag = "span", content = title }
e... |
return function()
local PhysicsServiceUtils = require(script.Parent)
it("should throw an error on attempt to modify the export table", function()
expect(function()
PhysicsServiceUtils.NEW_FIELD = {}
end).to.throw()
expect(function()
setmetatable(PhysicsServiceUtils, {})
end).to.throw()
end)
end
|
-- Do not edit! This file was generated by composites/tuner_spec.py
local radio = require('radio')
local jigs = require('tests.jigs')
jigs.TestCompositeBlock(radio.TunerBlock, {
{
desc = "0.2 offset, 0.1 bandwidth, 5 decimation, 256 ComplexFloat32 input, 256 ComplexFloat32 output",
args = {0.2, 0.... |
--[[
Steamburn Awesome WM theme 3.0
github.com/copycat-killer
--]]
local gears = require("gears")
local lain = require("lain")
local awful = require("awful")
local wibox = require("wibox")
local os = { getenv = os.getenv }
... |
---
-- Debug logging support.
--
-- @module radio.debug
-- @tfield bool enabled Debug logging enabled.
local os = require('os')
local io = require('io')
local function getenv_flag(name)
local value = string.lower(os.getenv(name) or "")
return (value == "1" or value == "y" or value == "true" or value == "yes")... |
-- This file contains all callbacks to be registerd (by name) to handle entity placement
-- each callback must conform to the following signature:
--============================================================================--
-- function (entity, surface, creator)
--
-- param entity (LuaEntity): The placed entity
-- ... |
ones = {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", ""}
tens = {"X", "XX", "XXX", "XL", "L", "LX", "LXX", "LXXX", "XC", ""}
array_name = {""}
|
-----------------------------------------------------------------------------
-- IMPORT DIFFERENT MODULE, OPTIONS, DATALOADER, CHECKPOINTS, MODEL, TRAINER
-----------------------------------------------------------------------------
require 'torch'
require 'paths'
local opts_ref = require 'refine/opts_refine'; lo... |
local Q = require 'Q'
local Scalar = require 'libsclr'
local knn = require 'Q/ML/KNN/lua/knn'
local tests = {}
-- testing knn.lua for desired results
tests.t1 = function()
local T = {}
local T_vec_1 = Q.mk_col({10, 20, 30, 40}, "I4")
local T_vec_2 = Q.mk_col({20, 30, 40, 50}, "I4")
local T_vec_3 = Q.mk_col... |
-- mRename...lua
renamer:renameFinish()
return true |
xban = { MP = minetest.get_modpath(minetest.get_current_modname()) }
dofile(xban.MP.."/serialize.lua")
local db = { }
local tempbans = { }
local DEF_SAVE_INTERVAL = 300 -- 5 minutes
local DEF_DB_FILENAME = minetest.get_worldpath().."/xban.db"
local DB_FILENAME = minetest.settings:get("xban.db_filename")
local SAVE... |
--pretty-prints the contents of a table and its elements recursively
--automatically pretty-prints (require "lua_version") and _G, by default
--NOTE: sets are currently only semi-useful; the goal was originally to have one set per stack and traverse them top-to-bottom for every comparison.
--"imports" [[
local _LOAD... |
sandbox1 = {}
gmeta = {}
function gmeta.__index(tbl,key)
return sandbox1[key]
end
function gmeta.__newindex(tbl,key,val)
sandbox1[key] = val
end
setmetatable(_G, gmeta)
function gmetatest1()
if getmetatable(_G) == nil then
print2("its nil")
end
end
|
local Helper = require('spec.helper.helper')
local dummy = { dummy = 'dummy' }
local other = { other = 'other' }
local sentinel = { sentinel = 'sentinel' } -- a sentinel fulfillment value to test for with strict equality
local sentinel2 = { sentinel2 = 'sentinel2' }
local sentinel3 = { sentinel3 = 'sentinel3' }
local... |
require("statemenu")
require("stategame")
require("stategameover")
function love.load()
--variables
state = "MENU"
gameWidth = 816
gameHeight = 480
lives = 0
score = 0
saveFile = "hiscores.txt"
hiscores = {}
entities = {} --collection of entities
love.window.se... |
--
-- Created by IntelliJ IDEA.
-- User: jon
-- Date: 11/5/11
-- Time: 9:48 AM
-- To change this template use File | Settings | File Templates.
--
module "string"
function byte() end
function char() end
function dump() end
function find() end
function format() return "" end
function gmatch() end
function gsub() end
f... |
local Buffer = require("cassandra.cql").buffer
describe("Buffer", function()
-- protocol types (different than CQL types)
local fixtures = {
byte = {1, 2, 3},
int = {0, 4200, -42},
short = {0, 1, -1, 12, 13},
string = {"hello world"},
long_string = {string.rep("blob", 1000), ""},
uuid = {"1... |
#!/usr/bin/env lua
local function lookupify(tb, dst, not_val)
if not dst then dst = tb end
local val = not not_val
for _, v in pairs(tb) do
dst[v] = val
end
return tb
end
local WhiteChars = lookupify{' ', '\n', '\t', '\r'}
local Spaces = lookupify{' ', '\t'}
local EscapeLookup = {['\r'] = ... |
--[[
Copyright(c) 2021 mengyu
* 模块名:
Entry.lua
* 用途:
游戏进入动画入口
* 作者:
mengyu
]]--
local GameManager = Ballance2.Services.GameManager
local GameEventNames = Ballance2.Base.GameEventNames
local GameUIManager = GameManager.GetSystemService('GameUIManager') ---@type GameUIManager
local GameSoundManager = GameManager.G... |
#!/usr/bin/env luajit
local env = setmetatable({}, {__index=_G})
if setfenv then setfenv(1, env) else _ENV = env end
require 'symmath.tests.unit.unit'(env, 'tests/unit/solve')
timer(nil, function()
env.x = var'x'
--[[
I'm having trouble deciding which to use.
only return a single value if it is duplicated?
or is m... |
return
{
HOOK_UPDATED_SIGN =
{
CalledWhen = "After the sign text is updated. Notification only.",
DefaultFnName = "OnUpdatedSign", -- also used as pagename
Desc = [[
This hook is called after a sign has had its text updated. The text is already updated at this
point.</p>
<p>The update may have been ca... |
return Def.Quad {
InitCommand=cmd(FullScreen);
StartTransitioningCommand=cmd(diffusealpha,1;linear,0.2;diffusealpha,0);
};
|
-- Set relative path loader
package.path = package.path .. ";./lib/?.lua"
-- Load dependencies
local colors = require("ansicolors")
local tabular = require("tabular")
|
log("bobmodules")
regroup.group.subgroups("module", {
"pollution-create",
"pollution-clean",
"raw-speed",
"raw-speed-combine",
"green-module",
"green-module-combine",
"raw-productivity",
"raw-productivity-combine",
"case",
"case1",
"case2"
})
regroup.group.insert({
["module"] = {
["beacon"] = {
"bea... |
--------------------------------------------------------------------------------
--! @file TppGadgetUtility.lua
--! @brief ギミック(Gadget)関連のユーティリティ Lua 関数群
--------------------------------------------------------------------------------
TppGadgetUtility = {
-- ギミック共通プラグイン追加
AddGadgetCommonPlugin = function( chara , ani... |
local M = {}
local result = 0
function M.reset()
result = 0
return result
end
function M.set(v)
result = v
return result
end
function M.result()
return result
end
function M.add(amount)
result = result + amount
return result
end
function M.sub(amount)
result = result - amount
return result
end
function ... |
return {
no_consumer = false, -- this plugin is available on APIs as well as on Consumers,
fields = {
-- defailt AA server, a faked one
aasvr = {type = "string", default = "http://10.245.247.180:7612/authorize"}
},
self_check = function(schema, plugin_t, dao, is_updating)
-- perform any custom verif... |
-- Each upgrade swapped costs this much extra evolution time
local kUpgradeSwapGestateTime = 1
local kMinGestationTime = 1 -- same as vanilla
-- Take extra evolution time for each upgrade you swap
local origSetGestationData
origSetGestationData = Class_ReplaceMethod("Embryo", "SetGestationData",
function(self, te... |
local actions = require('telescope.actions')
require('telescope').setup{
defaults = {
vimgrep_arguments = {
'rg',
'--color=never',
'--no-heading',
'--with-filename',
'--line-number',
'--column',
'--smart-case'
},
prompt_prefix = '> ',
selection_caret = '> ',
... |
HOME = os.getenv("HOME")
local g = vim.g
local o = vim.o
g.mapleader = ","
g.python3_host_prog = HOME .. "/.pyenv/shims/python3"
o.colorcolumn = "80"
o.cursorline = true
o.expandtab = true
o.fillchars = "vert: ,stl: ,stlnc: "
o.hlsearch = true
o.incsearch = true
o.number = true
o.relativenumber = true
o.shiftwidth = ... |
-----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Neraf-Najiruf
-- Involved in Quests: Save my Sister
-- !pos -36 2 60 243
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/quests")
local ID = require("scripts/zones/RuLude_Gardens/IDs")
-----------------... |
----------------------------
-- Deathrun --
-- Created by Skeyler.com --
----------------------------
AddCSLuaFile()
DEFINE_BASECLASS("player_default")
local PLAYER = {}
PLAYER.DisplayName = "Deathrun Player"
PLAYER.WalkSpeed = 250 -- How fast to move when not running
PLAYER.RunSpeed = 25... |
function ressourceLoader_load()
imageSquare = love.graphics.newImage("image/square.png")
end
|
local DataStoreService = game:GetService("DataStoreService")
local defaultConfig = {
retryAttempts = 5,
showRetryWarnings = true,
dataStoreService = DataStoreService,
}
local defaultConfigKeys = {}
for key in pairs(defaultConfig) do
table.insert(defaultConfigKeys, key)
end
local function makeInvalidKeyError(key)... |
SceneManager = SceneManager or BaseClass(BaseHotUpdate)
function SceneManager:__init()
if SceneManager.Instance then
ErrorLog("[SceneManager] Attemp to create a singleton twice !")
end
SceneManager.Instance = self
end
function SceneManager:__delete()
SceneManager.Instance = nil
end
function SceneManager:GetCS... |
---@class vm
local vm = require 'vm.vm'
function vm.getLibraryName(source)
if source.special then
return source.special
end
local defs = vm.getDefs(source)
for _, def in ipairs(defs) do
if def.special then
return def.special
end
end
return nil
end
|
local entityLayer = Frame.Frame(Frame.Root)
entityLayer:SetLayer(layer and layer.entities or 0)
local loseTrigger = Command.Event.Create(_G, "Battle.Lost")
local winTrigger = Command.Event.Create(_G, "Battle.Won")
-- repository of all active entities
local entities = {}
local entity_enemies = {}
--[[ ========== BA... |
local run
if not arg[1] then
run = function (dir)
local cmd = 'cd '..dir..' && ldoc --testing . && diff -r doc cdocs'
print(cmd)
os.execute(cmd)
end
elseif arg[1] == 'update' then
run = function (dir)
local cmd = 'cd '..dir..' && ldoc --dir cdocs --testing .'
print(cmd)
os.execute... |
ENT.Contact = "https://space.bilibili.com/3761568/"
ENT.Base = "npc_vj_human_base"
ENT.Type = "ai"
ENT.Author = "Tamill"
ENT.Category = "Anime Bodyguard"
ENT.Purpose = ""
ENT.Instructions = ""
ENT.PrintName = "BRS"
ENT.AssetName = "npc_ab_brs"
ENT.ChineseName = "黑岩射手"
ENT.Web = "http://steamcommunity.com/sharedfiles/f... |
local hit_goal_decorator = require 'custom.hit_goal_decorator'
local observe_goal_decorator = require 'custom.observe_goal_decorator'
local goal_distance_decorator = require 'custom.goal_distance_decorator'
local game = require 'dmlab.system.game'
local timeout = require 'decorators.timeout'
local houseFactory = requir... |
local Terminal = nil
local Trouble = nil
local Todo = nil
local Windows = {}
local autobuild = require('toolwindow.validate')
local api = vim.api
local parent = nil
local function standard_close(plugin)
if plugin ~= nil and plugin.close ~= nil then
plugin.close()
end
end
local function get_tool(name, ... |
ShipItem = {}
function ShipItem:new(posx, posy, isActionnable)
local object = {
x = posx or 0,
y = posy or 0,
actionnable = isActionnable or false,
type = 'none',
nearPlayer = false,
-- for now all items have animation even if not actionnalbe FIXME
switchAnim... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "KeycardSpawner"
util.PrecacheSound('buttons/button9.wav')
util.PrecacheSound('buttons/button11.wav'
)
local MODEL = Model("models/keycardspawner/keycardspawner.mdl")
function ENT:Initialize()
self:SetModel( MODEL... |
net.Receive("PAM_Start", function()
PAM.state = PAM.STATE_STARTED
table.Empty(PAM.maps)
table.Empty(PAM.votes)
table.Empty(PAM.players_wanting_rtv)
PAM.winning_map_id = nil
local map_amount = net.ReadUInt(32)
for index = 1, map_amount do
local mapinfo = {};
mapinfo.id = index
mapinfo.name = n... |
local LSM = LibStub("LibSharedMedia-3.0")
-- Borders
--LSM:Register("border", "Drop Shadow", [[Interface\AddOns\Media_Newsom\Textures\Border_DropShadow.blp]])
-- Statusbars
--LSM:Register("statusbar", "Clean", [[Interface\Addons\Media_Newsom\Textures\Statusbar_Short.blp]])
LSM:Register("statusbar", "Clean (Large)", [... |
slot0 = class("InstagramComment", import("..BaseVO"))
slot0.Ctor = function (slot0, slot1, slot2, slot3, slot4)
slot0.time = slot1.time
slot0.text = slot1.text
slot0.instagram = slot2
slot0.parentComment = slot4
slot0.id = slot1.id
slot0.level = slot3 or 1
slot0.isRoot = false
if not slot0.parentComment then
... |
-- a basic MCP 2.1 implementation in Lua
local mcp = {
_VERSION = 1.0,
}
local function fixminor(str)
local major, minor = string.match(str, "^(%-?%d+)%.?(%d-)$")
return major*1000 + (tonumber(minor) or 0)
end
local function unfixminor(f)
return math.floor(f*0.001) .. "." .. (f % 1000)
end
-- returns the highest ... |
local sleep_time = ...
return Def.ActorFrame{
InitCommand=function(self) self:diffuse(0,0,0,1):visible(false) end,
StartSceneCommand=function(self) self:sleep(sleep_time):queuecommand("Show") end,
ShowCommand=function(self) self:visible(true):smooth(1.5):diffuse(1,1,1,1):sleep(3.35):smooth(1):diffuse(0,0,0,1):queue... |
local init =
function(self)
setmetatable(
self.indents,
{
__index =
function(t, key)
if is_integer(key) then
local value = self.indent_chunk:rep(key)
t[key] = value
return value
end
end,
}
)
end
... |
local _, private = ...
-- Lua Globals --
-- luacheck: globals next
-- [[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ AddOns\Clique.lua ]]
function Hook.CliqueConfig_SetupGUI(self)
for _, row in next, self.ro... |
local layerHandlers = require("layer_handlers")
local utils = require("utils")
local sceneHandler = require("scene_handler")
local selectionUtils = {}
function selectionUtils.getSelectionsForItem(room, layer, item, rectangles)
rectangles = rectangles or {}
local handler = layerHandlers.getHandler(layer)
... |
--[[
Sort a lualept *.cpp file's functions by the order in which
they appear in the ll_register_<Class>() function.
--]]
---
-- Debug enable flag
debug = false
---
-- Leptonica source files "Note(s):" sections from doxygen comments
lept_notes = {}
---
-- copy a file src to dst
-- \param src source filename
-- \par... |
version = 13 -- version info
animatics = {
unlocked = {
"data:animatics/logo.lua",
"data:animatics/1_credits.lua",
"data:animatics/2_trailer.lua",
},
}
testmissiongrid = {
maxmission = 1,
mostrecentsave = "",
scenario = 1,
}
lastcampaign = "tutorial"
lastsplevel = ""
lastmplevel = ""
lastmpgamerules = ""... |
-- Standalone SAF text format to GEDCOM converter
-- Usage:
-- lua gedcom/saftxt.lua NAME.saf
-- Writes the GEDCOM as NAME.ged
--[[ TODO
- Ignore superfluous semicolons.
- Support for multiple marriages.
- More tests and better error message for wrong input.
--]]
-- Determination of gender, surname and parentage
... |
-- IP score is a module that set ip score of specific ip and
-- Default settings
local keystorage_host = nil
local keystorage_port = 0
local metric = 'default'
local reject_score = 3
local add_header_score = 1
local no_action_score = -2
local symbol = 'IP_SCORE'
-- This score is used for normalization of scores from ... |
require 'CLRPackage'
import "System"
import "System.IO"
Console.WriteLine("we are at {0}",Directory.GetCurrentDirectory())
|
local logger = require "logger"
local module = {}
---
-- Given a file name, try to guess the format and load it
--
function module.load (machine, file_name)
print(file_name)
-- We're lazy and rely on the file extension
local ext = file_name:match("%.(%w%w%w)$")
if not ext then
logger.info("Can't recognize file ... |
--[[
Describes an auction scan task to be performed.
Copyright (C) Udorn (Blackhand)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any ... |
#!/usr/bin/env lua
local https = require "ssl.https"
local htmlparser = require "htmlparser"
local pretty = require "pl.pretty"
local out_file = "api_desc"
local function get_interwebz(url)
if not url:find "^https?://" then
url = "https://dev.twitter.com" .. url
end
print("-- fetching " .. url)
... |
function onCreate()
-- background shit
makeLuaSprite('whittyBack', 'bonusWeek/whittyBack', -500, -300);
setLuaSpriteScrollFactor('whittyBack', 0.9, 0.9);
makeLuaSprite('whittyFront', 'bonusWeek/whittyFront', -650, 600);
setLuaSpriteScrollFactor('whittyFront', 0.9, 0.9);
scaleObject('whittyFront', 1.1, 1.... |
local locker_id = ARGV[1]
local lock_key = ARGV[2]
local exclusive = ARGV[3]
if redis.call('EXISTS', locker_id) == 1 then
local actual_lock_key = redis.call('HGET', locker_id, 'key')
local actual_exclusive = redis.call('HGET', locker_id, 'exclusive')
local error_message = "Lock " .. lock_key .. " (exclusive=" ... |
--------------------------------
-- @module BaseFactory
-- @parent_module db
--------------------------------
-- /
-- @function [parent=#BaseFactory] replaceSlotDisplay
-- @param self
-- @param #string dragonBonesName
-- @param #string armatureName
-- @param #string slotName
-- @param #string displayName
-- @param #... |
require('ffi').cdef[==========[
/*===-- clang-c/CXString.h - C Index strings --------------------*- C -*-===*\
|* *|
|* The LLVM Compiler Infrastructure *|
|* ... |
--------------------------------
-- Humanoid arm state
-- (c) 2013 Stephen McGill, Seung-Joon Yi
--------------------------------
local state = {}
state._NAME = ...
local Body = require'Body'
local vector = require'vector'
local movearm = require'movearm'
local fromQ = require'Transform'.from_quatp
local toQ = requi... |
minetest.register_alias("darkage:lamp", "castle_lighting:light")
minetest.register_alias("castle:street_light", "castle_lighting:light")
minetest.register_alias("castle:light", "castle_lighting:light")
minetest.register_alias("castle:chandelier", "castle_lighting:chandelier")
minetest.register_alias("ca... |
-----------------------------------------------------------------------------------------
--
-- shapes.lua
--
-----------------------------------------------------------------------------------------
local color = require 'com.alpabeto.color'
local helper = require 'com.alpabeto.helper'
local shape = require 'com.alpa... |
if redis.call('GET', KEYS[1]) == ARGV[1]
then
redis.call('EXPIRE', KEYS[1], 180)
if redis.call('GET', KEYS[1]) == ARGV[1]
then
return 1
end
return 0
else
return 0
end
|
-- 座標の回転基本
local PI = 3.14159 -- 円周率
local x, y, xd, yd = 0, 0, 0, 0
-- 画面モードのセット
dx.SetGraphMode(640, 480, 16)
-- DXライブラリ初期化処理
function dx.Init()
-- グラフィックの描画先を裏画面にセット
dx.SetDrawScreen(dx.DX_SCREEN_BACK)
-- 最初の座標を設定
x = 100
y = 0
end
-- ループ
function dx.Update()
-- 画面をクリア
dx.ClearDrawScreen()
--... |
--- everything related to making LEDs blink.
--- it serves as a library to everything else
-- pins used for the operators light
local pinOpG, pinOpR, pinOpB = 1, 2, 3
-- the pin that is sometimes connected to an LED on the board
local pinOnBoard = 0
-- pins used for the main light
local pinMainG, pinMainR, pinMainB ... |
local strategies = {}
strategies["idiot"] = (require "lib/strategies/idiot").play
return strategies |
-------------------------------------------------------------------------------
-- ElvUI Mythic+ Datatext By Crackpotx
-------------------------------------------------------------------------------
--[[
MIT License
Copyright (c) 2021 Adam Koch
Permission is hereby granted, free of charge, to any person obtain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.