content stringlengths 5 1.05M |
|---|
TestCloth =
{
Properties=
{
mass = 5,
density = 200,
fileModel="Objects/testcloth.cgf",
gravity={x=0,y=0,z=-9.81},
damping = 0,
max_time_step = 0.025,
sleep_speed = 0.1,
thickness = 0.06,
friction = 0,
max_safe_step = 0.4,
stiffness = 500,
damping_ratio = 0.9,
air_resistance = 0,
wind = ... |
local install_path =
vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.fn.execute(
'!git clone https://github.com/wbthomason/packer.nvim '
.. install_path
)
end
vim.api.nvim_exec(
[[
augroup Packer
autocmd!
autocmd BufWrite... |
--[[
PUC-Rio
INF1405 - Construção de Sistemas 2015.2
Professor Edmundo Torreão
Gabriel de Quadros Ligneul 1212560
Exploradores de Andrômeda
main.lua
--]]
local Game = require "Game"
local Window = require "Window"
function love.load()
Game.init()
love.window.setMode(Window.WIDTH, Wind... |
---@class excel1
---@field id string @id全局唯一
---@field test1 number @测试整型
---@field test2 number @测试浮点型
---@field excel2 excel2 @测试外部链接,第一行Key为表名
---@field test3 json @json类型测试
---@field test4 string @中文测试
|
test = require 'u-test'
common = require 'common'
--Bug 35915673 Disabling websocket tests due to websocket.org no longer in service
test.skip = true
test.testWebsocketSend = function()
print("testWebsocketSend")
HCInitialize();
HCWebSocketCreate();
HCWebSocketConnectAsync();
end
function OnHCWebSoc... |
---@class InventoryItemFactory : zombie.inventory.InventoryItemFactory
InventoryItemFactory = {}
---@public
---@param arg0 short
---@return InventoryItem
---@overload fun(itemType:String)
---@overload fun(arg0:String, arg1:Food)
---@overload fun(itemType:String, useDelta:float)
---@overload fun(itemType:String, useDel... |
fx = {
style = "STYLE_BEAM",
properties = {
property_16 = {
name = "LineDistance",
type = "VARTYPE_FLOAT",
value = -1,
},
property_15 = {
name = "WidthEpsilon",
type = "VARTYPE_FLOAT",
value = 0,
},
property_09 = {
name = "Texture_U_Offset",
type = "VARTYPE_ARRAY_TIMEFLOAT",
value = {
0,
0,
1,
0,
}... |
-----------------------------------
-- Area: Apollyon SE
-- Mob: Inhumer
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local mobID = mob:getID();
if (mobID ==16933025) then -- tim... |
local source = {}
source.new = function()
return setmetatable({
running_job_id = 0,
timer = vim.loop.new_timer(),
}, { __index = source })
end
source.complete = function(self, request, callback)
local q = string.sub(request.context.cursor_before_line, request.offset)
local pattern = re... |
local Command = VH_CommandLib.Command:new("Bring", VH_CommandLib.UserTypes.Admin, "Teleport the player(s) to you.", "")
Command:addArg(VH_CommandLib.ArgTypes.Plrs, {required = true, notSelf = true})
Command:addAlias({Prefix = "!", Alias = {"bring", "bringfreeze"}})
Command.Callback = function(Sender, Alias, Targets)
... |
--[[
* The `Matter.SAT` module contains methods for detecting collisions using the Separating Axis Theorem.
*
* @class SAT
]]--
-- TODO: true circles and curves
import 'matter/geometry/Vertices'
import 'matter/geometry/Vector'
local SATOverlapAxes,
SATFindSupports,
SATProjectToAxis
SAT = {}
SAT.__index = SAT
--... |
local web_req, web_resp = require 'lj.web.req', require 'lj.web.resp'
local web_route = require 'lj.web.route'
local util = require 'lj.web.util'
local lrender, strf = util.lrender, util.strf
--[[
:new {listen=80, server_name=''}
.env
:route {path, fn, method='*' | 'get|post', path_as_pcre=false, comment=nil, name=... |
-----------------------------------
-- Area: Apollyon CS
-- Mob: Dee Wapa the Desolator
-----------------------------------
require("scripts/globals/limbus");
-----------------------------------
function onMobSpawn(mob)
mob:setMobMod(tpz.mobMod.SUPERLINK, mob:getShortID());
end;
function onMobEngaged(mob,target)... |
function CreateThing(thing)
table.insert(ThingList, thing)
return thing
end
-- create parent class for all thing objects stored in ThingList
function NewThing(x,y,z)
local t = {}
t.x = x
t.y = y
t.z = z
t.xSpeed = 0
t.ySpeed = 0
t.zSpeed = 0
t.modelID = -1
t.model = nil
... |
-- Scenes for Solar2D by ponywolf
-- define module
local M = {}
-- local
local list = {}
local stage = display.getCurrentStage()
-- public
-- scene has it's own stage
M.stage = display.newGroup()
stage:insert(M.stage)
-- scene has an always on top overlay group
M.overlay = display.newGroup()
M.overlay._isRenderer =... |
name = "ebike"
vehicle_types = { "vehicle", "bicycle" }
speed = 25
speed_profile = {
["primary"] = { speed = speed, access = true },
["primary_link"] = { speed = speed, access = true },
["secondary"] = { speed = speed, access = true },
["secondary_link"] = { speed = speed, access = true },
["terti... |
ITEM.name = "Empty Plastic Jug"
ITEM.desc = "An empty plastic jug"
ITEM.model = "models/props_junk/garbage_milkcarton001a.mdl"
ITEM.width = 1
ITEM.height = 1
ITEM.money = {1, 4}
|
--------------------------------------------------------------------------------
-- All the models, materials, sounds belong to their corresponding authors. Permission is granted to only distribute these models through Garry's Mod Steam Workshop and the official Metrostroi GitHub accounts for use with Garry's Mod and M... |
----- Includes ----------
include_file("_BaseNpc.lua")
include("Npc")
----- Init Functions ----
function OnInit(this)
-- Values
this:add_localized_string_value("Name", "{{FlexField_Name_LangKey}}")
{{FlexField_UnusedFields}}
{{Npc_HasItems_Start}}-- Inventory
{{Npc_Inventory}}
... |
subfactory_list = {}
-- ** LOCAL UTIL **
local function toggle_archive(player)
local player_table = data_util.get("table", player)
local ui_state = player_table.ui_state
local archive_open = not ui_state.flags.archive_open -- already negated right here
ui_state.flags.archive_open = archive_open
l... |
----------------------------------------------------------------------------
-- main module.
--
-- Copyright (C) 2018-2019 kakacoding Games CO., LTD. All rights reserved.
----------------------------------------------------------------------------
-- 描述这个文件或模块是干什么的,比如“这个模块是用来展
-- 示文件头格式的”,需保证用任何字体也不要超过线
---------------... |
-----------------------------------
-- NPC: _0s8 (Wooden Gate)
-- Area: Sacrarium
-- Involved in Mission: Secrets of Worship
-- !pos 45.500 -1.500 10.000 28
-----------------------------------
local ID = require("scripts/zones/Sacrarium/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
----... |
local Action = require(script.Parent.Action)
return Action(
"RopeCursorSet",
function(cursor)
return {
lockTo = cursor.lockTo,
lockDistance = cursor.lockDistance,
gridSize = cursor.gridSize
}
end
)
|
terr = peripheral.find("terraformer");
file = io.open("biomeList.csv", "a");
for id = 0, 255 do
local name = terr.getBiomeName(id);
print(id, name);
if name then
file:write(id .. "," .. name, "\n");
end
sleep(0.05);
end
file:close();
|
local common = require("celediel.NoMoreFriendlyFire.common")
local currentConfig
local defaultConfig = {stopDamage = true, stopCombat = true, debugLevel = common.logLevels.no, ignored = {}}
local this = {}
this.getConfig = function()
currentConfig = currentConfig or mwse.loadConfig(common.modConfig, defaultConfig... |
------------------------------------------------
----[ PARSER ]-----------------------------
------------------------------------------------
// Majority of script learned from aVoN's INI parser
SS.Parser = {} -- Parser
// Load
function SS.Parser:New(File)
local Table = {}
setmetatable(Table, self)
self.__in... |
ITEM.name = "5.7x28 Ammo"
ITEM.model = "models/gmodz/ammo/57x28.mdl"
ITEM.ammo = "5.7x28MM"
ITEM.ammoAmount = 25
ITEM.maxRounds = 60
ITEM.description = "Ammo box that contains 5.7x28 mm caliber"
ITEM.price = 10000
ITEM.rarity = { weight = 38 } |
--[[This module allows you to perform common mathematical operations on matrices.]]
local matrix = require "matrix"
local cmath={}
--Calculates and returns the natural log of input parameter
function cmath.log(parameter)
local ty=type(parameter)
if(ty=="table") then
local result = matrix.new(parameter.size[1],para... |
--[[
TheNexusAvenger
Flashes a part locally, such as to be a hint.
--]]
local TweenService = game:GetService("TweenService")
return function(Part)
--Clone the part.
local ClonedPart = Part:Clone()
ClonedPart.Color = Color3.new(1,1,1)
ClonedPart.Material = "Neon"
ClonedPart.Transparency = 1
Cl... |
local AS = unpack(AddOnSkins)
function AS:Blizzard_Friends()
AS:SkinFrame(FriendsFrame)
FriendsFrameIcon:SetPoint('TOPLEFT', FriendsFrame, 'TOPLEFT', 0, 0)
FriendsFrameIcon:SetTexture([[Interface\AddOns\AddOnSkins\Media\Icons\Bnet]])
hooksecurefunc(FriendsFrameIcon, 'SetTexture', function(self, texture)
if textu... |
-- Calcolo efficacia tipi per i tipi glitch ad uso esclusivamente interno
-- Non calcola i danni di una mossa di tipo glitch, permette solo di calcolare
-- i danni di un certo tipo di mossa contro un Pokémon con tipi glitch
local et = require('EffTipi-1')
local tab = require('Wikilib-tables')
local etg = {}
local s... |
local theme={colors={normal={blue={0.0,0.0,0.82745098039216,1},green={0.12156862745098,0.71764705882353,0.07843137254902,1},cyan={0.007843137254902,0.67058823529412,0.91764705882353,1},white={0.75294117647059,0.75294117647059,0.75294117647059,1},red={0.86666666666667,0.035294117647059,0.027450980392157,1},magenta={0.27... |
local function isPrime(number)
if number < 2 then
return false
elseif number == 2 then
return true
else
for i = 2, number-1, 1 do
if number % i == 0 then
return false
end
end
return true
end
end
io.write("Write a number: ")... |
minetest.register_node("tutorial:geschenk_gem",{
description = "Gift (gem dragon)",
is_ground_content = true,
tiles = {"tutorial_geschenk_gem.png"},
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
drop = {
max_items = 1,
items = {
{items = {"tutorial:gem_fragment"},rarity = 2.5},
... |
funcs = {
PRIVMSG = function(line)
local client = NewUser(line.Source)
return "<" .. client.Nick .. "> " .. line.Args[2]
end,
JOIN = function(line)
local client = NewUser(line.Source)
return sprintf("--> %s [%s@%s] joined %s", client.Nick, client.User,
client.Host, line.Args[1])
end,
PAR... |
-- Language file for trAInsported. Make a copy of this to translate into your own language.
-- Please don't change the order of the entries in this file.
FONT_BUTTON = love.graphics.newFont( "UbuntuFont/Ubuntu-B.ttf", 17 )
FONT_BUTTON_SMALL = love.graphics.newFont( "UbuntuFont/Ubuntu-B.ttf", 16 )
LNG.menu_mode_... |
local prof_iter = function(prof)
local pos = 0
return function()
pos = pos + 1
if prof[pos] then return prof[pos][1], prof[pos][2] end
end
end
local printprof = function(prof)
for key, val in prof_iter(prof) do
if type(val) == "table" then
if type(val[1]) == "table" then
local t = {}
for _, nam... |
--Automatically generated by SWGEmu Spawn Tool v0.12 loot editor.
brackaset_plating_segment = {
minimumLevel = 0,
maximumLevel = -1,
customObjectName = "",
directObjectTemplate = "object/tangible/component/armor/armor_segment_chitin_brackaset.iff",
craftingValues = {
{"armor_special_type",0,0,0},
{"armor_effe... |
--print "Loading interface controllers in Lua"
require "InterfaceController"
require "DetailController"
require "SpearmanController"
require "MapController"
require "NotificationController"
|
--//
--[[
Thanks for using AstrealDev's Custom Chat System
This is the Loader file which loads in everything needed
for my Custom Chat System. No need to edit anything here :)
This is licensed under the Apache 2.0 license meaning you ma... |
local utils = require "mp.utils"
local msg = require 'mp.msg'
local https = require "ssl.https"
local lunajson = require "lunajson"
local socket = require "socket"
local cover_filenames = { "cover.png", "cover.jpg", "cover.jpeg",
"folder.jpg", "folder.png", "folder.jpeg",
... |
object_tangible_sign_player_wod_sm_banner_sign_02 = object_tangible_sign_player_shared_wod_sm_banner_sign_02:new {
}
ObjectTemplates:addTemplate(object_tangible_sign_player_wod_sm_banner_sign_02, "object/tangible/sign/player/wod_sm_banner_sign_02.iff")
|
local on_attach = require('lsp_on_attach').on_attach
local Path = require'plenary.path'
--[[
This is taken from nlua.vim (https://github.com/tjdevries/nlua.nvim)
because I couldn't quite get nlua.nvim working with the lua language server
installed into the right place. So I manually install the lua server and then
tak... |
function SpawnPoints()
return {
chef = {
{ worldX = (-9) + 46, worldY = (29) + 23, posX = 252, posY = 79, posZ = 1 },
{ worldX = (-9) + 46, worldY = (29) + 23, posX = 246, posY = 265, posZ = 0 },
{ worldX = (-9) + 47, worldY = (29) + 23, posX = 231, posY = 60, posZ = 0 },
{ worldX = (-9) + 47, ... |
slot2 = "TouristLoginTipsPopupView"
TouristLoginTipsPopupView = class(slot1)
TouristLoginTipsPopupView.ctor = function (slot0)
slot6 = "csb/common/PopUpTouristLoginTips.csb"
ClassUtil.extends(slot2, slot0, AbstractZoomPopupView, true)
end
TouristLoginTipsPopupView.onBtnClick = function (slot0, slot1, slot2)
if sl... |
local PluginRoot = script.Parent.Parent.Parent.Parent
local Roact = require(PluginRoot.Libs.Roact)
local MainContext = Roact.createContext()
local MainManagerController = Roact.Component:extend("MainManagerController")
function MainManagerController:init()
local mainManager = self.props.mainManager
self.mainManage... |
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local enum = require("enum")
local str_decode = require("string_decode")
--
-- Python Pickle format serializes Python o... |
package.path = package.path .. ";data/scripts/lib/?.lua"
include ("stringutility")
local ranks_table = {}
ranks_table[0] = "Untrained"
ranks_table[1] = "Professional"
-- if not provided, return 0 for untrained
function getRank(r)
if not r then
return 0
end
local min_dist = nil
local min_rank = nil
for k, v in... |
object_tangible_loot_misc_echo_base_token = object_tangible_loot_misc_shared_echo_base_token:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_misc_echo_base_token, "object/tangible/loot/misc/echo_base_token.iff")
|
-- This is a generated file
-- Do not modify it, unless you know exactly what you are doing
ModId = "5d2cfb0f-649a-4eac-a757-648de613c18a"
IdMap = {
{ "GP_OVERRIDE_PART_LIST_10189600", "BUILDING_PART_COST_LIST", "febe43ff-5de4-4f7a-991b-e049975c8af2" },
{ "GP_OVERRIDE_PART_LIST_11077377", "BUILDING_PART_COST... |
object_tangible_loot_creature_loot_collections_mosaic_frieze_05 = object_tangible_loot_creature_loot_collections_shared_mosaic_frieze_05:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_mosaic_frieze_05, "object/tangible/loot/creature/loot/collections/mosaic_frieze_05.iff")
|
local class = {}
local physics = require( "physics" )
local screenSize = require( "libs.screenSize" )
local colours = require( "libs.colours" )
-- forward declarations and other locals
local screenW, screenH, halfW, halfH = screenSize.screenW, screenSize.screenH, screenSize.halfW, screenSize.halfH
--this clas... |
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
{ RequestToken = "https://api.twitter.com/o... |
local xx = -90;
local yy = -80;
local xx2 = 952.9;
local yy2 = 350;
local ofs = 50;
local followchars = true;
local del = 0;
local del2 = 0;
local angleshit = 1;
local anglevar = 1;
function onUpdate(elapsed)
function onMoveCamera(focus)
if focus == 'boyfriend' then
-- called when the camera fo... |
local function create_icon(name, number_icon_layer)
return angelsmods.functions.add_icon_layer(angelsmods.functions.get_object_icons(name), number_icon_layer)
end
data:extend({
{
type = "recipe",
name = "liquid-plastic-abs",
category = "advanced-chemistry",
subgroup = "petrochem-solids",
energy_required =... |
local components = require("components")
return function(e, rng, type)
local pose = e:get(components.pose)
if pose then
local choices = pose.deaths.all or type and pose.deaths and pose.deaths[type]
if choices then
local choice = choices[rng:random(#choices)]
pose.moved = false
pose.walkTimer = 0
pose... |
local NPC = NPC or {}
NPC.Scoreboard = {}
NPC._Scoreboard = {}
NPC._Scoreboard.PlayersS = {}
NPC._Scoreboard.RecentS = {}
RegisterServerEvent('npc-scoreboard:AddPlayer')
AddEventHandler("npc-scoreboard:AddPlayer", function()
local identifiers, steamIdentifier = GetPlayerIdentifiers(source)
for _, v in pairs(i... |
---@class LuaManager.GlobalObject : zombie.Lua.LuaManager.GlobalObject
---@field outStream FileOutputStream
---@field inStream FileInputStream
---@field inFileReader FileReader
---@field inBufferedReader BufferedReader
---@field timeLastRefresh long
---@field private timSortComparator LuaManager.GlobalObject.TimSortCom... |
--[[
Copyright 2019 Manticore Games, Inc.
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, merge, publish, distri... |
ITEM.name = "Union Light";
ITEM.cost = 50;
ITEM.model = "models/props_combine/combine_light001a.mdl";
ITEM.category = "Utilities"
ITEM.noBusiness = true
ITEM.description = "A Union Light capable of illuminating large areas.";
ITEM.functions.Place = {
OnRun = function(item)
local client = item.player
local trace = ... |
--[[
node9 build configuration: the output of premake5 on this is a
multiplatform Makefile
When you invoke 'premake gmake' you just tell premake to build a makefile for gmake.
If you have gmake on Windows, MacOS and Linux, you can use premake gmake for all
platforms. I... |
-- ***************************************************************
--
-- Copyright 2013 by Sean Conner. All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or modify it
-- under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either ... |
GM.JobPaydayInfo[TEAM_BUSDRIVER] = {"for having the patience to drive citizens around.", 75}
GM.JobEquips[TEAM_BUSDRIVER] = function ( Player )
end
function GM.BusDriver_Join ( Player )
if (Player:HasBlacklist(GAMEMODE.teamToBlacklist[TEAM_BUSDRIVER])) then return end
if (!Player:NearNPC(22)) then return end
if ... |
--!strict
local Types = require(script.Parent.Parent.Types)
local spec: Types.Spec = function(practModule, describe)
local withContextProvider = (require :: any)(practModule.withContextProvider)
local Symbols = (require :: any)(practModule.Symbols)
describe('withContextProvider', function(it)
it(... |
local HIDDEN = {"passwordType", "sql"}
function onSay(cid, words, param, channel)
for _, str in ipairs(HIDDEN) do
if(param:find(str) ~= nil) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Config value \"" .. value .. "\" does not exists.")
return true
end
end
local value = getC... |
-- premake utilitiy functions
-- removes the nil entries from tables like {nil,nil,a,b,c}, that were created using (bBlaEnabled and "Bla" or nil)
function RemoveNilsFromArray (arr)
local res = {}
for k,v in pairs(arr) do -- pairs lists all non-nil entries, whereas ipairs only lists the first n numerical ones until ... |
-------------------------------------------------------------------------------
-- Mob Framework Mod by Sapier
--
-- You may copy, use, modify or do nearly anything except removing this
-- copyright notice.
-- And of course you are NOT allow to pretend you have written it.
--
--! @file crack_entity.lua
--! @brief crack... |
local cpu_freq = wibox.widget.textbox()
cpu_freq.font = "Panton 7"
local cpu_icon = wibox.widget{
layout = wibox.container.margin,
top = 0,
right = 0,
left = 20,
bottom = 0,
{
widget = wibox.widget.textbox,
font = "Panton 14",
text = "",
opacity = 0.5
},
}... |
--[[
Title: Permission
Author(s): big
CreateDate: 2020.05.22
ModifyDate: 2021.10.18
place: Foshan
Desc:
use the lib:
------------------------------------------------------------
local Permission = NPL.load('(gl)Mod/WorldShare/cellar/Permission/Permission.lua')
---------------------------------------------------------... |
ACT_VM_FIDGET_EMPTY = ACT_VM_FIDGET_EMPTY or ACT_CROSSBOW_FIDGET_UNLOADED
ACT_VM_BLOWBACK = ACT_VM_BLOWBACK or -2
local ServersideLooped = {
[ACT_VM_FIDGET] = true,
[ACT_VM_FIDGET_EMPTY] = true,
--[ACT_VM_IDLE] = true,
--[ACT_VM_IDLE_EMPTY] = true,
--[ACT_VM_IDLE_SILENCED] = true
}
local IdleBlendTime = 0.0
loc... |
MoneyToastAddOn = { };
MoneyToastAddOnGlobalConfig = {
animationDuration = 5,
}
local gb = MoneyToastAddOn;
local _currentBalance = 0;
local loaded = false;
local frameVisible = false;
local deltaBalance = 0;
local animations = { };
function gb:OnEvent(event)
if event == "ADDON_LOADED" and not loaded then
g... |
project "lib_png"
kind "StaticLib"
language "C"
local D="./fixed"
files { D.."/*.cpp" , D.."/*.c" , D.."/*.h" }
excludes { D.."/pngtest.c" , D.."/example.c"}
links { "lib_z" }
defines { "PNG_STATIC" , "PNG_NO_CONSOLE_IO" }
includedirs { "." , "../lib_z" }
KIND{}
|
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... |
workspace "Dern"
architecture "x64"
startproject "Dern"
configurations
{
"Debug",
"Release",
"Dist"
}
flags
{
"MultiProcessorCompile"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
include "Dern"
|
local __exports = LibStub:NewLibrary("ovale/simulationcraft/text-tools", 80300)
if not __exports then return end
local tonumber = tonumber
local setmetatable = setmetatable
local rawset = rawset
local type = type
local tostring = tostring
local pairs = pairs
local format = string.format
local gsub = string.gsub
local u... |
local Spell = { }
Spell.Description = [[
Like in every game about
magic.
]]
Spell.FlyEffect = "hpw_fireballspell"
Spell.ImpactEffect = "hpw_fireballimpact"
Spell.OnlyWithSkin = { "Hands" }
Spell.Category = HpwRewrite.CategoryNames.Fight
Spell.CreateEntity = false
Spell.ShouldSay = false
Spell.SecretSpell = true
Spe... |
-- credits: Aibo@#mta.scripting@irc.gtanet.com
function simple_table_compare(t1,t2) local i = 1 while i <= math.max(#t1, #t2) do if t1[i] ~= t2[i] then return false end i = i + 1 end return true end
-- Compatibility: Lua-5.1
function split(str, pat)
local t = {} -- NOTE: use {n = 0} in Lua-5.0
local fpat = "(.-... |
Talk(0, "嗨!你叫什么名字,一个人躲在这深山中做什么?", "talkname0", 1);
Talk(9, "我叫张无忌,你怎么也进来了?", "talkname9", 0);
Talk(0, "我是无意间找到这地方的.喂,你是不是有自闭症啊?还是一个人躲在深山中练仙术呀.", "talkname0", 1);
Talk(9, "自闭症?那是什么病啊?胡伯伯的医书中并没有提过此病症.其实,我是中了玄冥神掌的寒毒,是一种不治之症.", "talkname9", 0);
Talk(0, "可是我看你脸色很好啊,不像是快死的人.", "talkname0", 1);
Talk(9, "我也觉得奇怪?按理说,我应该在几年前就应死的... |
local x = 0
local xspeed = 40
return {
draw = function()
lutro.graphics.setColor(255, 0, 0)
lutro.graphics.rectangle("fill", x, 100, 100, 80)
end,
update = function(dt)
x = x + xspeed * dt
if x + 100 > 640 then
xspeed = -40
elseif x < 0 then
xspeed = 40
end
end
}
|
-- hooks.lua - Hooks
-- This file is under copyright, and is bound to the agreement stated in the EULA.
-- Any 3rd party content has been used as either public domain or with permission.
-- © Copyright 2016-2017 Aritz Beobide-Cardinal All rights reserved.
ARCPhone.Loaded = false
hook.Add( "ARCLib_OnPlayerFul... |
local Gio = require("lgi").Gio
local Gtk = require("lgi").Gtk
local gobject = require("gears.object")
local gtable = require("gears.table")
local setmetatable = setmetatable
local ipairs = ipairs
local icon_theme = { mt = {} }
function icon_theme:choose_icon(icons_names)
local icon_info = Gtk.IconTheme.choose_ico... |
g_relaxation_house_loot_deed = {
description = "Relaxation House Blueprint",
minimumLevel = 0,
maximumLevel = 0,
lootItems = {
{itemTemplate = "relaxation_house_loot_deed", weight = 10000000}
}
}
addLootGroupTemplate("g_relaxation_house_loot_deed", g_relaxation_house_loot_deed)
|
--[[
Based on the Alcubierre 1997 "The appearance of coorindate shocks in hyperbolic formalisms of General Relativity".
This is also a 1D version of the 3D formalism in the Alcubierre 2008 book "Introduction to 3+1 Numerical Relativity" on the chapter on hyperbolic formalisms.
a_x,t + (alpha f K_xx / gamma_xx),x = 0
... |
local World = require(script.Parent)
return function()
local bindableEvent
local world
local testInstance
SKIP()
beforeEach(function()
bindableEvent = Instance.new("BindableEvent")
world = World.new("test")
testInstance = Instance.new("Part")
end)
afterEach(function()
world:destroy()
bindableEvent:de... |
require("class")
local function Test()
local a = class("a2")
function a:new()
self.a = 1
self.b = 2
end
function a:add()
self.a = self.a + self.b
end
local b = class("b2",a)
function b:new()
a.ctor(self)
self.c = 10
end
local a1 = a:new()... |
require("gitsigns").setup({
signs = {
add = { hl = "GitGutterAdd", text = "▌" },
change = { hl = "GitGutterChange", text = "▌" },
delete = { hl = "GitGutterDelete", text = "▌" },
topdelete = { hl = "GitGutterDelete", text = "▌" },
changedelete = { hl = "GitGutterChange", text = "▌" },
},
numhl = false,
ke... |
local mt = {}
mt.__index = mt
mt.__name = 'markdown'
mt._splitLine = false
local function checkSplitLine(self)
if not self._splitLine then
return
end
self._splitLine = nil
if #self == 0 then
return
end
self[#self+1] = '\n---'
end
local function splitString(str, delimiter)
... |
AddCSLuaFile("shared.lua")
AddCSLuaFile("cl_init.lua")
include("shared.lua")
function ENT:Initialize()
self.Entity:SetModel("models/props/cs_assault/moneypallet.mdl")
self.Entity:SetSolid(SOLID_VPHYSICS)
self.Entity:SetMoveType(SOLID_VPHYSICS)
self.Entity:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetUseType(SIMPLE... |
--MoveCurve
--B_30101/curve_RushF curve_RushF
return
{
filePath = "B_30101/curve_RushF",
startTime = Fixed64(0) --[[0]],
startRealTime = Fixed64(0) --[[0]],
endTime = Fixed64(104857600) --[[100]],
endRealTime = Fixed64(629146) --[[0.6]],
isZoom = false,
isCompensate = false,
curve = {
[1] = {
time = 0 --[... |
return {'afvaardigen','afvaardiging','afvaart','afvagen','afval','afvalaanbod','afvalbak','afvalbedrijf','afvalbeheer','afvalbeleid','afvalberg','afvalberging','afvalbranche','afvalcontainer','afvaldepot','afvalemmer','afvalheffing','afvalhoop','afvalhout','afvalinzameling','afvallen','afvaller','afvallers','afvallig',... |
ssid = "Act Network"
pass = "gupt@1234"
reset_button = 11
gpio.mode(reset_button, gpio.INPUT)
fan = 0 -- fan control
gpio.mode(fan, gpio.OUTPUT)
gpio.write(fan, gpio.LOW)
light = 2 -- light control
gpio.mode(light, gpio.OUTPUT)
gpio.write(light, gpio.LOW) |
local meta = FindMetaTable("Player")
function meta:dropDRPWeapon(weapon)
if GAMEMODE.Config.restrictdrop then
local found = false
for k,v in pairs(CustomShipments) do
if v.entity == weapon:GetClass() then
found = true
break
end
end
... |
local entry_display = require "telescope.pickers.entry_display"
local bubbles = require "octo.ui.bubbles"
local utils = require "octo.utils"
local M = {}
function M.gen_from_issue(max_number, print_repo)
local make_display = function(entry)
if not entry then
return nil
end
local layout, columns
... |
local feature = require('fur.feature')
local ui = feature:new('ui')
ui.source = 'lua/features/ui.lua'
local treesitter = feature:new('treesitter')
treesitter.plugins = {
{
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
config = function()
require('nvim-treesitter.configs').setup({
e... |
local Util = require( 'lctags.Util' )
local log = require( 'lctags.LogCtrl' )
local clang = require( 'libclanglua.if' )
local Split = {}
local function isNeedPassAddress( info )
if info.directPassFlag then
return false
end
return not info.arrayAccess and
(info.addressAccess or info.setAccess or in... |
-- Players Buffs & Debuffs, used by StatusAuraNewPredictor.lua
-- Grid2Options.PlayerBuffs total: 766 generated: 02/01/15 14:07:35
Grid2Options.PlayerBuffs = {
[""] = { 175222,175219,92725,175220,175218,120954,110660,101291,74245,102667,106664,75170,156426,101293,114108,102664,96206,160900,107988,104267,
165824,1152... |
Talk(9, "我义父好可怜,一个人不知道在荒岛上过的怎么样,真想见他一面.", "talkname9", 0);
do return end;
|
local bit = require('bit')
local chat = require('chat')
local list = require('list');
local os = require('os')
local settings = require('settings')
local string = require('string')
local table = require('table')
local defaults = {
format = '[%H:%M:%S]',
color = 0xCF,
}
local timestamp_format
do
local ban... |
-- ARGV: name, id, time
local name, id, time = unpack(ARGV);
if redis.call('srem', 'job.stalled:'..name, id) == 0 then
return {'Job not stalled', id};
end
redis.call('lpush', 'job.ids:'..name, id);
redis.call('zadd', 'job.published:'..name, time, id);
return {false, id}
|
local gc = Var "GameCommand";
local Lew = 1;
local Wario = {0,0,0,0};
local bigTextWidth;
local bigText = gc:GetText()
local bigTextColor = ModeIconColors[gc:GetName()]
local expTextWidth;
local expText;
if bigText == "Oni" then
expText = THEME:GetString("ScreenSelectPlayMode", "SurvivalExplanation")
else
expT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.