content stringlengths 5 1.05M |
|---|
local AddonName, Addon = ...
local Dominos = LibStub('AceAddon-3.0'):GetAddon('Dominos')
function Addon:CreateClass(...)
return Dominos:CreateClass(...)
end
-- returns a function that generates unique names for frames
-- in the format <AddonName>_<Prefix>[1, 2, ...]
function Addon:CreateNameGenerator(prefix)
... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* client\widgets\admin_screenshot.lua
*
* Original File by lil_Toady
*
**************************************]]
aScreenShot = {
Form = nil
}
function aScreenShot.Open()
local sx, sy = guiGetScreenSize()
if (not aSc... |
object_mobile_coa_lag_elite_hum_m2 = object_mobile_shared_coa_lag_elite_hum_m2:new {
}
ObjectTemplates:addTemplate(object_mobile_coa_lag_elite_hum_m2, "object/mobile/coa_lag_elite_hum_m2.iff")
|
local _, ADDON = ...
------------------------------------------------------------
-- Console/Definitions.lua:
-- 1 = Druid, 2 = Hunter, 3 = Mage, 4 = Paladin, 5 = Priest, 6 = Rogue, 7 = Shaman, 8 = Warlock, 9 = Warrior
-- 1 = Tank, 2 = Melee, 3 = Ranged, 4 = Heal
---------------------------------------------... |
function imprimirRes()
a = 10
while( a < 20 )
do
print("value of a:", a)
a = a+1
end
end
print(imprimirRes()) |
local Object = require 'libs.classic'
local Grid = Object:extend()
local empty = { skin = "", colour = "" }
function Grid:new()
self.grid = {}
self.grid_age = {}
for y = 1, 24 do
self.grid[y] = {}
self.grid_age[y] = {}
for x = 1, 10 do
self.grid[y][x] = empty
self.grid_age[y][x] = 0
end
end
end
fu... |
modifier_tombstone_vision_dummy = class({})
--------------------------------------------------------------------------------
function modifier_tombstone_vision_dummy:IsPurgable()
return false
end
--------------------------------------------------------------------------------
function modifier_tombstone_vision_du... |
-- Helper functions
function angleBetween(x1, x2, y1, y2)
return math.atan2(y1 - y2, x1 - x2)
end
function distanceBetween(x1, y1, x2, y2)
return math.sqrt((y2 - y1)^2 + (x2 - x1)^2)
end
-- Zombies functions
function getZombieRandomPosition()
local side = math.random(1, 4)
if side == 1 then return math.random... |
local util = require("__bzcarbon__.data-util");
local graphite_category = "advanced-crafting"
if mods["space-exploration"] then
graphite_category = "pulverising"
end
if mods.Krastorio2 then
graphite_category = "crushing"
end
data:extend({
{ type = "recipe-category", name = "diamond-synthesis"},
})
data:extend(... |
--[[
MIT License
Copyright (c) 2018 David Bollinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... |
local log = require("hs.logger").new("guiscan")
local dialog = require("cp.dialog")
local fcp = require("cp.apple.finalcutpro")
local plugins = require("cp.apple.finalcutpro.plugins")
local just = require("cp.just")
local insert, remove = table.insert, table.remove
local format = string.format
... |
local DoubleTrouble = {}
DoubleTrouble.scriptName = "DoubleTrouble"
DoubleTrouble.cellDir = tes3mp.GetModDir() .. "/cell/"
DoubleTrouble.defaultConfig = {
minimumCopies = 3,
maximumCopies = 7,
creatures = {
"ascended_sleeper", "ash_ghoul", "ash_slave", "ash_zombie", "ash_zombie_fgaz", "corprus_st... |
local util = require 'lspconfig.util'
-- https://clangd.llvm.org/extensions.html#switch-between-sourceheader
local function switch_source_header(bufnr)
bufnr = util.validate_bufnr(bufnr)
local clangd_client = util.get_active_client_by_name(bufnr, 'clangd')
local params = { uri = vim.uri_from_bufnr(bufnr) }
if ... |
require("gameData/gameData");
require("core/dict");
require("common/base64");
--比赛奖励和规则信息
local MatchDetailData = class(GameData);
MatchDetailData.Delegate = {
onResponseMatchDetail = "onResponseMatchDetail";
};
MatchDetailData.ctor = function(self)
end
MatchDetailData.dtor = function(self)
... |
local equipmentModule = {}
local NetworkService = require "utils.NetworkService"
local EventManager = require 'utils.EventManager'
local equipCofig = require "config.equipmentConfig"
local playerModule = require "module.playerModule"
local HeroScroll = require "hero.HeroScroll"
local _allPlayerEquipMentTab = {}
lo... |
return PlaceObj("ModDef", {
"dependencies", {
PlaceObj("ModDependency", {
"id", "ChoGGi_Library",
"title", "ChoGGi's Library",
"version_major", 9,
"version_minor", 6,
}),
},
"title", "Add 5 Times The Resource To Deposits",
"version", 6,
"version_major", 0,
"version_minor", 6,
"id", "ChoGGi_Add5T... |
Player = game:GetService("Players").LocalPlayer -- grg instead of putting your name u can just put LocalPlayer in it
Character = Player.Character
PlayerGui = Player.PlayerGui
Backpack = Player.Backpack
Torso = Character.Torso
Head = Character.Head
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
R... |
local t = require('luatest')
local http_lib = require('http.lib')
local g = t.group()
g.test_template_1 = function()
t.assert_equals(http_lib.template("<% for i = 1, cnt do %> <%= abc %> <% end %>",
{abc = '1 <3>&" ', cnt = 3}),
' 1 <3>&" 1 ... |
-- Problem : To print Pascal's Triangle
local n = io.read("*n")
local c
for l = 1,n do
c=1
for x = 1,l do
io.write(c," ")
c=(c*(l-x)/x)
end
io.write("\n")
end
|
--
-- Syntax Highlighting for C/C++
--
--
-- Require our helper-library
--
local lpeg_utils = require( "lpeg_utils" )
--
-- This file is a Lua module.
--
local mymodule = {}
--
-- The result we return to the caller.
--
local retval = ""
--
-- Helper to add the colour.
--
function add( colour, str )
length = s... |
-- Helpers to create Comms conversations
Comms = Comms or {}
--- creates a CommsScreen
--- @param self
--- @param npcSays string what the NPC says (aka longish text)
--- @param howPlayerCanReact table[CommsReply] possible answers of the player
--- @return CommsScreen
Comms.newScreen = function(self, npcSays, howPlayer... |
local require = require
local spec = require "cp.spec"
local expect = require "cp.spec.expect"
local describe, it = spec.describe, spec.it
local class = require "middleclass"
local lazy = require "cp.lazy"
local prop = require "cp.prop"
-- local log = require "hs.logger"... |
local _, NS = ...
local DRList = LibStub("DRList-1.0")
-- How long a diminishing return lasts.
NS.DR_TIME = DRList:GetResetTime()
-- Border/text indicator colors
NS.DR_STATES_COLORS = {
{ 0, 1, 0, 1 }, -- applied 1, green
{ 1, 1, 0, 1 }, -- applied 2, yellow
{ 1, 0, 0, 1 }, -- applied 3, red
}
----------... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:27' 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... |
-- Default configuration for Love2D experiments.
--
-- By Chris Herborth (https://github.com/Taffer)
-- MIT license, see LICENSE.md for details.
function love.conf(t)
-- "Native" window size matches the Switch. Some day, I'd like to port
-- things there.
t.window.title = 'Expriment 5 - Image Fades'
t.w... |
-- coding: utf-8
--[[
-- PLEASE DO "NOT" EDIT THIS FILE!
-- This file was automatically created.
--
-- If you won't to apply correction go to:
-- http://rom.curseforge.com/addons/dailynotes/localization/
--]]
return
{
--[[Translation missing --]]
--[[ ["AAHFILTER"] = "Daily-Items. With /<min_xp>/<max_level> (optiona... |
local fs = {}
local utils = require "luacheck.utils"
fs.has_lfs, fs.lfs = pcall(require, "lfs")
local function ensure_dir_sep(path)
if path:sub(-1) ~= utils.dir_sep then
return path .. utils.dir_sep
end
return path
end
if utils.is_windows then
function fs.split_base(path)
if path:match("^%a... |
local dictionary = {}
local fs = require("fs")
local utility = require("./utility")
local logger = require("./logger")
local markovStrings = "markov.txt"
-- PS: `lines` in asrielborg are treated as `sentences`
-- Proceed with caution. I mean it.
function dictionary.load()
logger.log("info", "Loading di... |
-- FIXME hack
function Metrostroi.GetEnergyCost(kWh)
return kWh*0.08
end
--Not sure about the quirks related to shared convars like this
CreateConVar("metrostroi_train_requirethirdrail",1,FCVAR_ARCHIVE,"Whether or not Metrostroi trains require power from the third rail")
CreateConVar("metrostroi_debugger_updat... |
-------------
--- Nodes ---
-------------
-- Ver 1.0 --
local SF = draconis.string_format
----------------------------
-- Scorched/Frozen Blocks --
----------------------------
local material_types = {"scorched", "frozen"}
for _, material in pairs(material_types) do
local frozen = 0
if ... |
local path = "games/common/animation/highest_score/highest_score_num_pin.png"
local highest_score_num_pin_map = {
["num_efect2.png"] = {
file=path,
x=2,y=2,
width=125,height=105,
rotated=true
},
["num_efect7.png"] = {
file=path,
x=129,y=2,
width=125,height=105,
rotated=true
},
["num_efect8.png"]... |
local View = {}
View.new = function()
local obj = {}
obj.show = function() end
obj.hide = function() end
return obj
end
return View |
package.path = "?.lua;test/lua/errors/?.lua"
require 'args'
-- arg type tests for io library functions
local f
-- io.close ([file])
banner('io.close')
f = io.open("abc.txt", "w")
checkallpass('io.close', { { f } })
checkallerrors('io.close', { notanil }, 'bad argument')
-- io.input ([file])
banner('io.input')
f = io... |
require("stringutil")
require("shared/src/codeframe")
describe('compiler: codeframe', function()
local source = ():trim()
test('line near top', function()
local keyStart = source:find()
local keyEnd = keyStart + #()
expect(generateCodeFrame(source, keyStart, keyEnd)):toMatchSnapshot()
end
)
test(... |
--- === cp.apple.fcpxml.compoundClip ===
---
--- FCPXML Document Compound Clip Object.
---
--- This extension was inspired and uses code based on [Pipeline](https://github.com/reuelk/pipeline).
--- Thank you Reuel Kim for making something truly awesome, and releasing it as Open Source!
local log = require("... |
-- _ _
-- | | (_)
-- _ __ ___ _ __ | |_ _____ __ _ ___ ___
-- | '__/ _ \ '_ \| __|_ / |/ _` / __/ __|
-- | | | __/ | | | |_ / /| | (_| \__ \__ \
-- |_| \___|_| |_|\__/___|_|\__,_|___/___/
require('rentziass.utils')
require('rentziass.plugins')
require('rentziass.lsp')
-- ... |
local util = require 'lspconfig.util'
-- common jsonnet library paths
local function jsonnet_path(root_dir)
local paths = {
util.path.join(root_dir, 'lib'),
util.path.join(root_dir, 'vendor'),
}
return table.concat(paths, ':')
end
return {
default_config = {
cmd = { 'jsonnet-language-server' },
... |
Manhunt = setmetatable({}, RaceMode)
Manhunt.__index = Manhunt
Manhunt:register('Manhunt')
Manhunt.modeOptions = {
duration = 5 * 60 * 1000,
respawn = 'timelimit',
respawntime = 5,
autopimp = false,
autopimp_map_can_override = false,
}
Manhunt.name = 'Manhunt'
Manhunt.VictimTeamName = "Victim"
Manhunt.VictimCol... |
-- This file is a working script that demonstrates the basic syntax of the Lua scripting language.
-- This is a one-line comment. You can put these at the ends of lines too.
--[[
This is a multiline comment.
Everything between the two surrounding symbols will be ignorned
by Lua.
]]--
-- variables can be de... |
local lush = require("lush")
local hsl = lush.hsl
local sea_foam = hsl(208, 80, 80) -- Try presing C-a and C-x
local sea_crest = hsl(208, 90, 30) -- to increment or decrement
local sea_deep = hsl(208, 90, 10) -- the integers used here.
local sea_gull = hsl("#c6c6c6") -- as as string, preceeded with a #
local sea... |
HP = GameObject:extend()
function HP:new(area, x, y, opts)
HP.super.new(self, area, x, y, opts)
local direction = table.random({-1, 1})
self.x = gw/2 + direction*(gw/2 + 48)
self.y = random(16, gh - 16)
self.w, self.h = 12, 12
self.shape = HC.rectangle(self.x, self.y, self.w, self.h)
self... |
function plaque_visited(plaque_hash)
client:simple_dialog("You have visited a plaque!")
return "I've informed the client"
end |
local Events = require "scripts/ToolKit/events"
local Utilities = require "scripts/ToolKit/utilities"
local EnableElementButton =
{
Properties =
{
Debug = true,
Element = EntityId()
}
}
function EnableElementButton:OnActivate()
Utilities:InitLogging(self, EnableElementButton)
self.b... |
local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local json = require "cjson"
local jwt_encoder = require "kong.plugins.jwt.jwt_parser"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local PAYLOAD = {
iss = nil,
nbf = os.time(),
iat = os.time(),
exp = os.time... |
-- Inspired by https://github.com/jasoncodes/dotfiles/blob/master/hammerspoon/control_escape.lua
len = function(t)
local length = 0
for k, v in pairs(t) do
length = length + 1
end
return length
end
return {
init = function ()
send_escape = false
prev_modifiers = {}
... |
-- This file is for use with Corona Game Edition
--
-- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData()
--
-- This file is automatically generated with TexturePacker (http://texturepacker.com). Do not edit
-- $TexturePacker:SmartUpdate:8c2fffd927964b621784... |
local function round(x)
return math.floor(x + 0.5)
end
local pkg2sum = {}
local pkg2n = {}
for line in io.stdin:lines() do
if line:match("%[done%]") then
local _, pkg, _, _, time = assert(line:match("(%[done%]) +([^ ]+) +([^ ]+) +([^ ]+) KiB +([^ ]+)"))
local minutes, seconds = assert(time:mat... |
local actions = require('telescope.actions')
local actions_set = require('telescope.actions.set')
local conf = require('telescope.config').values
local finders = require('telescope.finders')
local from_entry = require('telescope.from_entry')
local path = require('plenary.path')
local pickers = require('telescope.picker... |
module 'mock'
CLASS: Stat ()
:MODEL{}
function Stat:__init( data )
self.values = {}
self.changeListeners = {}
self.changeSignals = {}
self.allowNotifyChanges = true
self.globalChangeSignal = false
self.globalChangeListenerList = {}
self.changeListeners[ '*' ] = self.globalChangeListenerList
if data then s... |
function make_fire( x, y )
return { t = "fire"
; x = x or 0
; y = y or 0
; lines = {}
; updated = 0
}
-- TODO collision
-- TODO type of fire
end
function display_fire( f )
local length = 10
local mid = math.floor( length / 2 ... |
--[[
nick-h@yandex.ru
https://github.com/nick-nh/qlua
MESA Adaptive Moving Averages by John F. Ehlers
]]
_G.load = _G.loadfile or _G.load
local maLib = load(_G.getWorkingFolder().."\\Luaindicators\\maLib.lua")()
local logFile = nil
--logFile = io.open(_G.getWorkingFolder().."\\LuaIndicators\\MESA.txt", "w")
... |
local M = {}
--- Searches a window handle by given buffer handle.
-- @param buffer: A buffer handle.
-- @returns number: A window handle.
function M.vim_buf_get_win(buffer)
buffer = buffer or 0
if buffer == 0 then
return vim.api.nvim_get_current_win()
end
for _, window in ipairs(vim.api.nvim_li... |
package.path = "../?.lua;" .. package.path
local rawterm = require("rawterm")
local carriageOut = false -- Whether to disable '\n' -> '\r\n' translation
rawterm.enableRawMode({
signals = false, -- Disables terminal processing of Ctrl+C etc
carriageOut = carriageOut
})
local function isControlChar(c)
if ty... |
----------------------------------------------------------------------------------------------------
-- Simple logger class.
--
-- @author Makoto
-- @release V3.0.0
----------------------------------------------------------------------------------------------------
local Logger = {}
--- Log level.
Logger.LOG_LEVELS = ... |
--[[---------------
--LuaBit v0.4
--modified to work in Lua 4 by Mikali
-------------------
--a bitwise operation lib for lua.
--http://luaforge.net/projects/bit/
--How to use:
-------------------
-- bit.bnot(n) -- bitwise not (~n)
-- bit.band(m, n) -- bitwise and (m & n)
-- bit.bor(m, n) -- bitwise or (m | n)
-- bi... |
--[[
This file contains the basic ffi interface to libusb-1.0.so
With it, you can access all the functions. All the required
enums are in this file, but all the constants are in the
libusb.lua file, along with several of the enums
--]]
local ffi = require("ffi")
local libc = require("libc") -- ssize_t and other s... |
--- Cassandra cluster client module.
-- Cluster module for OpenResty.
-- @module resty.cassandra.cluster
-- @author thibaultcha
-- @release 1.3.3
local resty_lock = require 'resty.lock'
local cassandra = require 'cassandra'
local cql = require 'cassandra.cql'
local update_time = ngx.update_time
local cql_errors = cql... |
local m = string.match
local gsub = string.gsub
local log = logger "edgesParseLog.txt"
function parseEdgesData(tbl)
parseTrainerEdges(tbl)
parsePokeEdges(tbl)
end
local edgeCategories = {"Crafting", "Pokémon Training", "Combat", "Other"}
function parseEdge(e, kind)
local edge = {}
edge.name = e.name
-- edge.... |
--This is to make it easy to switch between the original resources.lua and resources_py.lua, the autogenerated file.
require("resources_py") |
ENT.Type = "anim";
ENT.Base = "base_gmodentity";
ENT.PrintName = "NPC Vendor";
ENT.Author = "TOWER";
ENT.Contact = "support@towerdevs.xyz";
ENT.Purpose = "NPC Vendor.";
ENT.Information = "Press E to interact with.";
ENT.Category = "Tower HL2RP";
ENT.Model = "models/player/group02/male_02.mdl";
ENT.AdminOnly = true;
EN... |
-- language specific higlights
local lush = require("lush")
local base = require("codeschool.base")
local styles = require("codeschool.settings").styles
local M = {}
M = lush(function()
return {
clojureKeyword {base.CodeschoolBlue},
clojureCond {base.CodeschoolOrange},
clojureSpecial {base.CodeschoolOra... |
-----------------------------------
--
-- Zone: Pashhow_Marshlands (109)
--
-----------------------------------
local ID = require("scripts/zones/Pashhow_Marshlands/IDs")
require("scripts/globals/icanheararainbow")
require("scripts/globals/chocobo_digging")
require("scripts/globals/conquest")
require("scripts/globals/m... |
--[[--
ui.newfield.button{
TODO
}
Button for a form
--]]--
function ui.newfield.button(args)
local attr = args.attr
attr.class = "rst-btn"
if args.mode and args.mode == "primary" then
attr.class = attr.class .. " rst-btn--primary"
end
if attr.disabled then
attr.class = attr.class .. " rst-btn--... |
---@class DefaultClothing
DefaultClothing = {}
-- These are the names of clothing xml files, not item types.
DefaultClothing.Pants = {
hue = { "Trousers_DefaultTEXTURE_HUE" },
texture = { "Trousers_DefaultTEXTURE" },
tint = { "Trousers_DefaultTEXTURE_TINT" },
}
DefaultClothing.TShirt = {
texture = { "Tshirt_Defa... |
Config = {}
Config.DrawDistance = 100.0
Config.MarkerType = 1
Config.MarkerSize = { x = 1.5, y = 1.5, z = 1.0 }
Config.MarkerColor = { r = 50, g = 50, b = 204 }
Config.EnablePlayerManagement = true
Config.EnableArmoryManagement ... |
--[[
Name: low_level_speed_test-dio.lua
Desc: This example will output a digital waveform on as fast as possible
Note: In most cases, users should throttle their code execution using the
functions: "LJ.IntervalConfig(0, 1000)", and "if LJ.CheckInterval(0)"
On a T7 (FW 1.0282) this examp... |
local query = require 'lusty-store-mongo.query'
local connection = require 'lusty-store-mongo.store.mongo.connection'
return {
handler = function(context)
local q, m = query(context.query)
local col = connection(lusty, config)
local count = col:count(q)
return count
end
}
|
--@ commonstargets commons control getvectorangle planarvector dodge3d evasion avoidance6dof
-- Drop AI module
DodgeAltitudeOffset = nil
DropTargetID = nil
-- Global that downstream modules can check
DropAI_Closing = false
function DropAI_GatherTargets()
local TargetsByPriority = {}
local TargetsById = {}
f... |
return {'ophaal','ophaalbrug','ophaaldienst','ophaalgordijn','ophaalnet','ophaalsysteem','ophakken','ophakker','ophakkerij','ophalen','ophaler','ophaling','ophanden','ophangbeugel','ophangen','ophanging','ophangpunt','opharken','ophebben','ophef','opheffen','opheffing','opheffingsnorm','opheffingsuitverkoop','ophefmake... |
-- 当攻击请求无法匹配到特定插件时,匹配默认插件
local resp = rock.resp
resp.set_header("Content-Type", "text/html; charset=utf-8")
resp.html(404, "default_404")
return |
require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 2,["7"] = 2,["8"] = 4,["9"] = 4,["10"] = 6,["11"] = 6,["12"] = 6,["13"] = 6,["14"] = 6,["16"] = 6,["17"] = 30,["18"] = 31,["19"] = 33,["20"] = 27,["26"] = 11,["35"] = 16,["44"] = 24,["48"] = 36,["49"] = 37,["50"]... |
SKILL.name = "Focus Fire"
SKILL.LevelReq = 10
SKILL.SkillPointCost = 3
SKILL.Incompatible = {
}
SKILL.RequiredSkills = {
}
SKILL.icon = "vgui/skills/Dow2_sm_focused_fire.png"
SKILL.category = "Support"-- Common Passives, Warrior, Stealth, Lore of Light, Dark Magic
SKILL.slot = "AOE" -- ULT, RANGED, MELEE, AOE, PASS... |
isStarting = true
name = "Level_1"
local nameIVT = INSPECTOR_VARIABLE_TYPE.INSPECTOR_STRING
nameIV = InspectorVariable.new("name", nameIVT, name)
NewVariable(nameIV)
-- Called each loop iteration
function Update(dt)
if (isStarting == true) then
startTime = os.time()
endTime = startTime+2
i... |
--
-- Author: Dubpub
-- Date: 10/12/2015
-- Time: 10:52 PM
--
local ContrabandList = {
2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 28, 29, 30, 32, 33, 37, 42, 43, 44, 45, 46, 47
}
function Create()
local Prisoners = this.GetNearbyObjects("Prisoner", 1000);
for Priso... |
return {
summary = 'Get a control point of the Curve.',
description = 'Returns a control point of the Curve.',
arguments = {
{
name = 'index',
type = 'number',
description = 'The index to retrieve.'
}
},
returns = {
{
name = 'x',
type = 'number',
description = '... |
local selected = nil
local function onPawnSelected(pawn)
selected = pawn
end
local function onPawnDeselected(pawn)
selected = nil
end
modApi.events.onPawnSelected:subscribe(onPawnSelected)
modApi.events.onPawnDeselected:subscribe(onPawnDeselected)
modApi.events.onGameExited:subscribe(onPawnDeselected)
local func... |
xxxxxxxxxxxxxxxxxx:xxxxxxxxxxxxxxxxxxx(args .. "wwwwwwwwwwwwwwww" ..
"wwwwwwwwwwwwwwww",
args .. "wwwwwwwwwwww" .. "wwwwwwwwwwww" ..
"wwwwwwwwwwww" .. "wwwwwwwwwwww" ..
... |
local F = far.Flags
-- assuming "Show directories first" option is set
-- description="Find an upper non-directory item";
-- area="Shell"; key="CtrlShiftHome";
local function JumpToNonDir()
local pInfo = panel.GetPanelInfo(1)
if pInfo then
local lower, upper = 1, pInfo.ItemsNumber
while upper-lower >= 2 do... |
local Prop = {}
Prop.Name = "Nº400 Rua do Trabalhador"
Prop.Cat = "House"
Prop.Price = 340
Prop.Doors = {
Vector(-810, -1300, -5.7186999320984),
Vector(-883, -1005, -5.71875),
Vector(-1028, -1303, -5.7187600135803),
}
GM.Property:Register( Prop ) |
--加强的影魔
local m=14060017
local cm=_G["c"..m]
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
function cm.activate(e,tp,eg,ep,ev,... |
local Replicant = require(script.Parent.Parent.Replicant)
-- class Array extends Replicant
local statics, members = Replicant.extend()
--[[ Syntaxtic sugar is not yet supported.
local metatable = {
__index = function(self, k)
local m = members[k]
if m then
return m
end
return self:Get(k)
end,
__newi... |
-- Copyright (C) K8sCat<k8scat@gmail.com>
-- https://open.work.weixin.qq.com/api/doc/90000/90135/90664
local json = require("cjson")
local jwt = require("resty.jwt")
local http = require("resty.http")
local ngx = require("ngx")
local ok, new_tab = pcall(require, "table.new")
if not ok or type(new_tab) ~= "function" t... |
local tilesize = require "lib.tilesize"
local tilequad = require "lib.tilequad"
local Timer = require "lib.hump.timer"
local randomselect = require "lib.randomselect"
local Image = require "lib.image"
local Entity = require "gameobjects.entity"
local NotFound = require "gameobjects.types.notfound"
local Item = funct... |
local L = BigWigs:NewBossLocale("The MOTHERLODE!! Trash", "frFR")
if not L then return end
if L then
L.tester = "Expert en armement"
L.assassin = "Tueur à gages"
L.jockey = "Jockey mécanique"
L.earthshaper = "Sculpte-terre de la KapitalRisk"
L.stonefury = "Fureur-de-Pierre"
L.assistant = "Assistant irresponsable"... |
-- semi-implicit Euler integration method
local Vector=require("vector")
function integrate(object,t,dt)
local netForce=Vector(0,0)
for _,force in pairs(object.forces) do
netForce=netForce+force.f
end
local linearAcceleration=netForce*object.shape.invMass
object.linearVelocity=object.linea... |
lp_api = {}
lp_api.http = minetest.request_http_api()
lp_api.url = minetest.settings:get("lp_api.url") or "http://localhost:8003"
lp_api.channel_id = minetest.settings:get("lp_api.channel_id") or "minetest"
lp_api.timeout = minetest.settings:get("lp_api.timeout") or 30
-- For secure connect set header value (Authorizat... |
-- NormanYang
-- 2015年12月7日
-- 命令管理器
local setmetatable = setmetatable
local insert = table.insert
local Controller = {};
local this = Controller;
this.__index = this;
--命令管理类初始化--
function Controller.Init()
log('Controller.Init----->>>');
return setmetatable({commandList = {}, viewCommandList = {}}, this);
end
... |
--[[
© 2020 TERRANOVA do not share, re-distribute or modify
without permission of its author.
--]]
ITEM.name = "American MRE";
ITEM.model = "models/mre_box_t3/mre_box_t3.mdl";
ITEM.width = 2;
ITEM.height = 1;
ITEM.description = "An American mealkit, and boy, they know how to eat.";
ITEM.permit = "consumables";
ITEM.... |
require 'xlua'
require 'lmdb'
local DataProvider = require 'DataProvider'
local config = require 'Config'
function ExtractFromLMDBTrain(data)
require 'image'
local reSample = function(sampledImg)
local sizeImg = sampledImg:size()
local szx = torch.random(math.ceil(sizeImg[3]/4))
loca... |
local level = require('src.scenes.level')
local _loadProgress = function (game)
local chunk = love.filesystem.load('trispace.sav')
local levelIndex = chunk()
game.scenes:push(level(levelIndex))
end
local draw = function (self, screen)
local c1 = math.sin(math.pi * self.phaser) * 0.3 + 0.66
local c2 = math.s... |
Config = {}
local StringCharset = {}
local NumberCharset = {}
for i = 48, 57 do table.insert(NumberCharset, string.char(i)) end
for i = 65, 90 do table.insert(StringCharset, string.char(i)) end
for i = 97, 122 do table.insert(StringCharset, string.char(i)) end
Config.RandomStr = function(length)
if length > 0 the... |
return {
fadeOut = 1.5,
mode = 3,
noWaitFade = true,
once = true,
id = "XINGCHEN2",
fadeType = 1,
fadein = 1.5,
scripts = {
{
stopbgm = true,
mode = 1,
sequence = {
{
"小小的勇气\n\n<size=45>二 LIVE「平行四界」</size>",
1
}
}
},
{
mode = 2,
blackBg = true,
say = "星尘演唱会现场"
},
... |
local tonumber = tonumber
local type = type
local pairs = pairs
local tinsert = table.insert
local tsort = table.sort
local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame
local Gladdy = LibStub("Gladdy")
local LibAuraDurations = LibStub("LibAuraDurations-1.0")
local L = Gladdy.L
Gladdy.default... |
--[[
Name: cl_init.lua
For: SantosRP
By: TalosLife
]]--
include "shared.lua"
local colBlack = Color( 0, 0, 0, 255 )
ENT.RenderGroup = RENDERGROUP_BOTH
function ENT:Initialize()
end
function ENT:OnRemove()
end
function ENT:DrawBar( intX, intY, intW, intH, colColor, intCur, intMax )
surface.SetDrawColor( colBlack... |
-- e is the Entity being assembled.
-- cuteness and legs are variables passed in
local VALID_SHAPES = {["TRIANGLE"] = true, ["SQUARE"] = true, ["PENTAGON"] = true}
function get_shape_vertices(shape, scale, rotation)
local units = 10
units = units * scale
local vertices = {}
if shape == "TRIANGLE" then
-- ... |
-- MIT License
--
-- Copyright (c) 2020 Maxim Biro <nurupo.contributions@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... |
local SP
local S
local desk
local ddistance = 100000
local distance = 200
local totaldistance = 50
local newtarget
local plr = game.Players.LocalPlayer
local char = plr.Character
local work = game:GetService("workspace")
wait(math.pi/2)
for i,v in pairs(work:GetChildren()) do
if v.Name == s... |
forward = "w"
back = "s"
left = "a"
right = "d"
up = "r"
down = "f"
fo = false
ba = false
le = false
ri = false
u = false
d = false
player = game.Players.xSoulStealerx
character = player.Character
torso = character.Torso
hopper = Instance.new("HopperBin")
hopper.Parent = player.Backpack
hopper.Name = "Fly"
script.Pa... |
return {
{
name = "2015-08-03-132400_init_response_ratelimiting",
up = [[
CREATE TABLE IF NOT EXISTS response_ratelimiting_metrics(
api_id uuid,
identifier text,
period text,
period_date timestamp without time zone,
value integer,
PRIMARY KEY (api_id, iden... |
--[[ Copyright (c) 2017 David-John Miller AKA Anoyomouse
* Part of the Warehousing mod
*
* See License.txt in the project directory for license information.
--]]
data:extend(
{
{
type = "technology",
name = "warehouse-research",
icon = "__Warehousing__/graphics/research/warehouse-research.png",
icon_size = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.