content stringlengths 5 1.05M |
|---|
--[[
Name: "sh_shawn_thompson_glock.lua".
Product: "HL2 RP".
--]]
local ITEM = {};
-- Set some information.
ITEM.base = "weapon_base";
ITEM.name = "Shawn Thompson's Glock";
ITEM.model = "models/weapons/w_pist_glock18.mdl";
ITEM.weight = 1.5;
ITEM.uniqueID = "shawn_thompson_glock";
ITEM.weaponClass = "weapon_glock";
I... |
local dlt = require('dlt._env')
local M,parent = torch.class('dlt.Model',dlt)
function M:__init(modelCreate,name,save)
self.name = name or 'model'
self.shouldSave = (save == nil) and true or save
if torch.type(self.name) ~= 'string' then
dlt.log:error('Model name must be a string.')
end
... |
class 'platform'
local AI_FALLING = 0
local AI_RIDING = 1
local ST_OFF = -1
local ST_ON = 1
local DIR_AUTO = -1
local DIR_LEFT = 1
local DIR_LEFT_UP = 2
local DIR_UP = 3
local DIR_UP_RIGHT = 4
local DIR_RIGHT = 5
local DIR_RIGHT_DOWN = 6
local DIR_DOWN = 7
local DIR_DOWN_LEFT = 8
local RAIL_DIAGON... |
--
--[[
---> 插件处理器基础类
--------------------------------------------------------------------------
---> 参考文献如下
-----> /
-- from https://github.com/Mashape/kong/blob/master/kong/plugins/base_plugin.lua
-----------------------------------------------------------------------------------------------------------------
--[[
--... |
require 'pl'
local __FILE__ = (function() return string.gsub(debug.getinfo(2, 'S').source, "^@", "") end)()
package.path = path.join(path.dirname(__FILE__), "..", "lib", "?.lua;") .. package.path
require 'sys'
require 'w2nn'
local iproc = require 'iproc'
local reconstruct = require 'reconstruct'
local image_loader = re... |
#!/bin/sh
_=[[
exec lua "$0" "$@"
]]
--[[============================================================
--=
--= LuaPreprocess command line program
--= by Marcus 'ReFreezed' Thunström
--=
--= Requires preprocess.lua to be in the same folder!
--=
--= License: MIT (see the bottom of this file)
--= Website: http://luapr... |
--this = SceneNode()
function create()
-- local islands = this:getRootNode():findAllNodeByNameTowardsLeaf("*island*")
--
-- for i=0, islands:size()-1, 1 do
-- generateFallingDustAndGravel(islands:item(i))
-- end
return false
end
function generateFallingDustAndGravel(island)
local list = island:findAllNodeB... |
local self = {}
GLib.Resources.ResourceCache = GLib.MakeConstructor (self)
function self:ctor ()
self.LastAccessTimes = {}
self.NeedsSaving = false
self:LoadLastAccessTimes ()
timer.Create ("GLib.Resources.ResourceCache.PruneCache", 300, 1,
function ()
self:PruneCache ()
end
)
concommand.Add ("glib_... |
local app_helpers = require "lapis.application"
return {
{
name = "2018-09-28_init_group_names",
up = [[
CREATE TABLE IF NOT EXISTS group_names(
id uuid,
"group" text,
created_at timestamp without time zone default (CURRENT_TIMESTAMP(0) at time zone 'utc'),
PRIMARY KEY (... |
local module = require(4631311072)
local password = 4312
module.MainFunction(password) |
mappings = {
{ name = "value", device="Logitech RumblePad 2 USB", control="X"},
} |
-- Setup vars that are user-dependent. Can override this function in a sidecar file.
function user_setup()
state.OffenseMode:options('Normal', 'Acc', 'Hybrid')
state.HybridMode:options('Normal', 'Evasion', 'PDT')
state.WeaponskillMode:options('Normal', 'Acc', 'Mod')
state.CastingMode:options('Normal', ... |
if not SYSPATH then return end
local meta = class("BagActor", Yi.Actor)
function meta:listInterests()
return {
Event.EVENT_BAG_OPEN, self.action_open_bag,
}
end
function meta:onRegister()
end
function meta:action_open_bag(msg)
puts("title: open bag")
puts(msg)
puts(__("role bag initilize %s", "grid 8*8"))
... |
-- the first program in every language
print("Hello world, from ".._VERSION.."!\n")
|
local numbered_stages= {
Stage_1st= true,
Stage_2nd= true,
Stage_3rd= true,
Stage_4th= true,
Stage_5th= true,
Stage_6th= true,
Stage_Next= true,
}
function thified_curstage_index(on_eval)
local cur_stage= GAMESTATE:GetCurrentStage()
local adjust= 1
-- hack: ScreenEvaluation shows the current stage, but it ne... |
--- testMqtt
-- @module testMqtt
-- @author ??
-- @license MIT
-- @copyright openLuat.com
-- @release 2017.10.24
require "mqtt"
module(..., package.seeall)
-- 这里请填写修改为自己的IP和端口
local host, port = "lbsmqtt.airm2m.com", 1884
-- 测试MQTT的任务代码
sys.taskInit(function()
while true do
while not socket.isReady() do s... |
platform "Windows"
option("msvconfiguration", "CharacterSet", "NotSet")
--4996 'stricmp': The POSIX name for this item is deprecated. TODO - fix this
option("msvccompile", "DisableSpecificWarnings", "4996")
defines
{
MB_DLMALLOC,
}
files
{
"../external/dlmalloc-2.8.6/dlmalloc.cpp",
"src/platform/windo... |
local lute = require("lute.lute")
-- Some default/example runners
--lua
-- Doesn't use write_command bc lua code can just be ran w/in nvim
-- If a lua runtime is intalled on your system,
-- There's no reason that lua can't be run using write_command
lute.new_runner(
"lua",
"%.lua$",
function (filename)
retu... |
OfflinePunishment = {
edit = {},
button = {},
window = {},
label = {},
radiobutton = {}
}
OfflinePunishment.window[1] = guiCreateWindow(111, 49, 573, 511, "", false)
guiWindowSetSizable(OfflinePunishment.window[1], false)
guiSetVisible(OfflinePunishment.window[1],false)
OfflinePunishment.label[1] =... |
local states = {}
states.menu = require("src/states/MenuState")
states.controls = require("src/states/ControlsState")
states.battle = require("src/states/BattleState")
states.level = require("src/states/LevelState")
states.gameOver = require("src/states/GameOverState")
return states |
AddCSLuaFile("cl_init.lua")
AddCSLuaFile("sh_playerweight.lua")
AddCSLuaFile("sh_weightmanager.lua")
include("sv_database.lua")
include("sh_weightmanager.lua")
include("sh_playerweight.lua")
include("sv_message.lua")
CreateConVar("ttt_karma_increase_weight", "0", FCVAR_ARCHIVE + FCVAR_NOTIFY, "Enables karma increased... |
local _HYPER = {'cmd,ctrl,alt,shift,f19'}
-- local _HYPER = {'f19'}
local log = hs.logger.new('hyper.lua', 'debug')
hs.hotkey.bind(_HYPER, '=', hs.caffeinate.startScreensaver)
-- Launch apps with Hyper key
hyperModeAppMappings = {
{ 'b', 'Google Chrome' }, -- B-rowser
{ 'c', 'Slack' }, -- C-hat
{ 'e', '/Applic... |
--- String operation extensions
-- @module string.lua
local metafuncs = {}
---- Add strings together with `+` operator
-- @within Metatable functions
-- @string s a thing
-- @string other athing
-- @usage "abc" + "cde" => "abccde"
function metafuncs.add(s, other) return s .. other end
---- Slice a string into a sm... |
HTM.BarWidth = 198;
-- Creates the GUI
function HTM:CreateGui()
-- Main Frame
do
self.frame = CreateFrame("Frame", "HTMFrame", UIParent);
self.frame:SetPoint("CENTER", UIParent, "CENTER");
self.frame:SetWidth(225);
self.frame:SetHeight(141);
self.frame:EnableMou... |
table.insert(_G.test_loadorder, "FANCY")
|
--https://github.com/narc0tiq/evoGUI/blob/master/evoGUI.lua
require "clone"
if not cssa_gui then cssa_gui = {} end
if not cssa_clone then cssa_clone = {} end
-- EVENTS
function cssa_gui.new_player(event)
local player = game.players[event.player_index]
cssa_gui.create_menu_icon(player)
end
function cssa_gu... |
--------------------------------------------------------------------------------
-- Copyright (c) 2006-2013 Fabien Fleutot and others.
--
-- All rights reserved.
--
-- This program and the accompanying materials are made available
-- under the terms of the Eclipse Public License v1.0 which
-- accompanies this distribut... |
local dlmenu = {}
local term = require("term")
local palette = require("palette")
local fs = require("filesystem")
local event = require("event")
local w, h = term.gpu().getResolution()
local xoffset = math.floor(w/8)
local yoffset = math.floor(h/8)
-- actual window width & height
local ww, wh = math.floor(w-xoffset-w... |
local ipairs = ipairs
local table_insert = table.insert
local table_sort = table.sort
local pcall = pcall
local require = require
require("orange.lib.globalpatches")()
local ck = require("orange.lib.cookie")
local utils = require("orange.utils.utils")
local config_loader = require("orange.utils.config_loader")
local da... |
object_intangible_vehicle_walker_at_st_walker_pcd = object_intangible_vehicle_shared_walker_at_st_walker_pcd:new {
}
ObjectTemplates:addTemplate(object_intangible_vehicle_walker_at_st_walker_pcd, "object/intangible/vehicle/walker_at_st_walker_pcd.iff") |
local nmap = require "nmap"
local coroutine = require "coroutine"
local stdnse = require "stdnse"
local table = require "table"
local packet = require "packet"
local ipOps = require "ipOps"
local string = require "string"
local target = require "target"
local knx = require "knx"
description = [[
Discovers KNX gateways... |
x = dofile('wheel.lc')
ws2812.set_brightness(1)
tmr.alarm(1,100,1,function () x.single() end)
--tmr.alarm(1,100,1,function () x.wave(0.1) end)
--tmr.stop(1)
--r,g,b=ws2812.hsv2rgb(0.334,1,1);print(r,g,b)
--r,g,b=ws2812.hsv2rgb(1,1,1);print(r,g,b)
--r,g,b=ws2812.hsv2rgb(0.5,1,1);print(r,g,b)
--ws2812.write(4,string.char... |
object_tangible_collection_beetle_young_cave = object_tangible_collection_shared_beetle_young_cave:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_beetle_young_cave, "object/tangible/collection/beetle_young_cave.iff") |
return {
map_id = 10001,
id = 1335001,
stages = {
{
stageIndex = 1,
failCondition = 1,
timeCount = 300,
passCondition = 1,
backGroundStageID = 1,
totalArea = {
-80,
20,
90,
70
},
playerArea = {
-80,
20,
45,
68
},
enemyArea = {},
fleetCorrdinate = {
... |
local json = require("cjson")
local kongPathWhitelist = {}
kongPathWhitelist.PRIORITY = 2400
local kong = kong
local ngx = ngx
local function match(source,target, regex)
if regex then
local from = ngx.re.find(source, target)
if from == 1 then
return true
end
end
if not ... |
-------------------------------------------------------------------------------
-- Coordinate transformation
-------------------------------------------------------------------------------
function getTransform(center, scale, rot, res)
local h = 200 * scale
local t = torch.eye(3)
-- Scaling
t[1][1] = r... |
local ArkadiusTradeToolsSales = ArkadiusTradeTools.Modules.Sales
local MASTER_WRIT_TYPE_BLACKSMITHING = 1
local MASTER_WRIT_TYPE_TAILORING = 2
local MASTER_WRIT_TYPE_WOODWORKING = 3
local MASTER_WRIT_TYPE_ENCHANTING = 4
local MASTER_WRIT_TYPE_ALCHEMY = 5
local MASTER_WRIT_TYPE_PROVISIONING = 6
local MA... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterNetEvent('esx_policedog:hasClosestDrugs')
AddEventHandler('esx_policedog:hasClosestDrugs', function(playerId)
local target = ESX.GetPlayerFromId(playerId)
local src = source
local inventory = target.inventory
for i = 1, ... |
if SERVER then
function NPCOTHER(ply)
cinemaCast()
end
util.AddNetworkString("Instructeur")
util.AddNetworkString("NPCACT")
resource.AddSingleFile("materials/icon.png")
player_manager.AddValidModel( "Zeldris", 'adiris' );
list.Set( "PlayerOptionsModel", "Zeldris", 'adiris' );
hook.Add("PlayerSay", "MenuPri... |
function module(modname,...)
end
require "util"
util = {}
util.table = {}
util.table.deepcopy = table.deepcopy
util.multiplystripes = multiplystripes
|
local path = string.sub(..., 1, string.len(...) - string.len(".hooks.onUpdate"))
local context = require(path.. ".core.stack")
---Sets a callback on any updatefor the current element (can have multiple)
---Use this to get logic outside of rendering function
---@param callback function
return function (callback)
local... |
return {'dek','dekbed','dekbedje','dekbedovertrek','dekbeplating','dekblad','dekbord','dekdoorvoer','deken','dekenaal','dekenaat','dekenij','dekenkist','dekgeld','dekglaasje','dekhengst','dekhut','dekken','dekker','dekking','dekkingsaankoop','dekkingsfout','dekkingsgebied','dekkingsgraad','dekkingspakket','dekkingsperc... |
-- This web page shows relevant configuration for the Conquest - OpenClinica link
-- mvh 20120826
-- To let this work put this in dicom.ini in the cgi-bin folder
--[[
# DefaultPage
[DefaultPage]
source = *.lua
[OpenClinica]
Source=(local)
PatientIDkeep=cookie
AnonymizeOn=transmission
TargetServer=m.v.herk@ftp-rt.nki.... |
Talk(22, "小兄弟,我看你武功不错,你我二人一起称霸这江湖,如何?", "talkname22", 0);
Talk(0, "你武功那么差,我看你还是安份一点.", "talkname0", 1);
Talk(22, "上回是老朽是太轻敌了,你还想试试看吗?", "talkname22", 0);
if AskBattle() == true then goto label0 end;
do return end;
::label0::
if TryBattle(38) == true then goto label1 end;
Dead();
do return end;
:... |
local _stringformat = string.format
local _unpack = unpack
--create single hexastore
local createHexastore = function(subject,predicate,object)
return {
0,_stringformat("spo||%s||%s||%s",subject,predicate,object),
0,_stringformat("sop||%s||%s||%s",subject,object,predicate),
0,_stringformat(... |
local lanes = require "lanes"
lanes.configure{ with_timers = false}
-- Lua 5.1/5.2 compatibility
local table_unpack = unpack or table.unpack
-- this lane eats items in the linda one by one
local eater = function( l, loop)
-- wait for start signal
l:receive( "go")
-- eat data one by one
for i = 1, loop do
local ... |
{
pass =
{
files = {"SolidColorMesh.vsh", "SolidColorMesh.fsh"}
}
} |
----------------------------------------
-- Sassilization
-- http://sassilization.com
-- By Sassafrass / Spacetech / LuaPineapple
----------------------------------------
UNIT.Name = "Catapult"
UNIT.Model = "models/mrgiggles/sassilization/catapult.mdl"
UNIT.Iron = 38
UNIT.Food = 50
UNIT.Gold = 5
UNIT.Supply... |
if mods["Krastorio2"] then
-- allow nuclear fuel in kr-nuclear-locomotive
data.raw.locomotive["kr-nuclear-locomotive"].burner.fuel_categories = {"uranium-mix", "plutonium-mix", "thorium-mix"}
nuclear.recipe.disable({"nuclear-fuel-cell"})
-- overwrite uranium processing according to NO
data.raw.recipe["ura... |
local ns, queue, id = ARGV[1], ARGV[2], ARGV[3]
local count = redis.call('LREM', ns..':'..queue..':receiving', 1, id)
if redis.call('SISMEMBER', ns..':'..queue..':consuming', id) == 1 then
if count == 1 and redis.call('SISMEMBER', ns..':'..queue..':queued_ids', id) == 0 then
redis.call('SADD', ns..':'..qu... |
local na = #ARGV
local cnt = 10
local level = redis.LOG_NOTICE
local m = nil
local table_exists = function(t)
if (1 == redis.call('sismember', '_T_N_', t)) then
return true
end
return false
end
local find_pk = function(t)
local pkd = string.format('_T_[%s]_C_PK_', t)
local cd = redis.call... |
project "Freetype-GL"
language "C"
kind "StaticLib"
staticruntime "on"
targetdir ("%{prj.location}/bin/" .. outputdir)
objdir ("%{prj.location}/bin-int/" .. outputdir)
files
{
"src/**.c",
"src/**.h",
}
includedirs
{
"%{wks.location}/TerranEngine/v... |
-- Highlight the active buffer/view.
local line_number_back = buffer.style_back[_SCINTILLA.constants.STYLE_LINENUMBER]
local current_line_back = buffer.caret_line_back
local function active()
local buffer = buffer
buffer.style_back[33] = current_line_back
buffer:set_fold_margin_colour(1, current_line_back)
bu... |
--[[
ExtendedManager.lua
--]]
local ExtendedManager, dbg = Manager:newClass{ className='ExtendedManager' }
--[[
Constructor for extending class.
--]]
function ExtendedManager:newClass( t )
return Manager.newClass( self, t )
end
--[[
Constructor for new instance object.
--]]
function ... |
better_caves = {}
better_caves.schematics = {}
better_caves.biomes = {}
better_caves.settings = {}
dofile(minetest.get_modpath("better_caves_api") .. "/settings.lua")
--API functions
better_caves.register_biome = function(biomedef)
table.insert(better_caves.biomes, biomedef)
end
better_caves.register_node_id = f... |
-- @description Save Stretch Markers
-- @author Aaron Cendan
-- @version 1.0
-- @metapackage
-- @provides
-- [main] . > acendan_Save stretch markers in selected items as named project markers.lua
-- @link https://aaroncendan.me
-- @about
-- * This script goes hand-in-hand with acendan_Restore stretch markers in sel... |
#!/usr/bin/env lua
local abort_on_error = false
local loadstring = loadstring or load
local tlast = require "typedlua.tlast"
local tlparser = require "typedlua.tlparser"
local tltype = require "typedlua.tltype"
local tlchecker = require "typedlua.tlchecker"
local tlcode = require "typedlua.tlcode"
local typedlua = ... |
#!/usr/bin/env tarantool
local t = require('luatest')
local g = t.group('websocket.handshake')
local handshake = require('websocket.handshake')
g.test_checksum = function()
local sec_websocket_key = "dGhlIHNhbXBsZSBub25jZQ=="
local accept = handshake.sec_websocket_accept(sec_websocket_key)
t.assert_equals(a... |
local t = Def.ActorFrame{
GainFocusCommand=function(s) MESSAGEMAN:Broadcast("EASY") end;
-- Information panel
LoadActor(THEME:GetPathG("","_shared2ndMIX/GameMode/speaker"))..{
GainFocusCommand=cmd(linear,0.2;zoom,1;diffuse,color("1,1,1,1"));
LoseFocusCommand=cmd(stoptweening;linear,0.2;zoom,0.75;diffuse,col... |
local text_original = LocalizationManager.text
function LocalizationManager:text(string_id, ...)
return string_id == "PBC_NAME" and "PBC"
or string_id == "PBC_DESC" and "Decreases your recoil, increases your fire rate and your overall durability. Speed is greatly reduced though."
or string_id == "PBC_NAME_PK1" and "Ar... |
function event_combat(e)
if (e.joined == true) then
e.self:Emote("become submerged in the murky waters below.");
eq.depop_with_timer();
end
end
|
local bin = vim.fn.stdpath("data") .. "/lspinstall/cpp/clangd/bin/clangd"
local lsp_config = require("lsp")
if vim.fn.filereadable(bin) == 0 then require("lspinstall").install_server("cpp") end
require'lspconfig'.clangd.setup { cmd = { bin, "--background-index" }, on_attach = lsp_config.common_on_attach }
|
local students = {}
function addStudent(studentName, studentClass)
table.insert(
students,
{
name = studentName,
class = studentClass,
times_late = 0
}
)
end
addStudent("Nicole", "H1") |
local action_utils = require('code_action_menu.utility_functions.actions')
local StackingWindow = require('code_action_menu.windows.stacking_window')
local function format_summary_for_action(action, index)
vim.validate({ ['action to format summary for'] = { action, 'table' } })
local formatted_index = ' [' .. ind... |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_requirements/issues/10
-- Use case: https://github.com/smartdevicelink/sdl_requirements/blob/master/detailed_docs/resource_allocation.md
-- Item: Use Case 3: Alternat... |
-----------------------------------------------------------------------------------------------------------------------
-- BATTERY --
--------------------------------------------------------------------------------------------... |
-- Global variables
outputdir = "%{cfg.buildcfg}_%{cfg.system}_%{cfg.architecture}"
inputdir = "%{prj.name}/src"
-- Workspace definition (applies to all projects)
workspace "MoteEmu"
configurations { "Debug", "Release" }
platforms { "x86", "x64" }
language "C++"
targetdir ("bin/" .. outputdir .. "/%{p... |
require('keyboard') -- Load Hammerspoon bits from https://github.com/jasonrudolph/keyboard
-- Make Hammerspoon accessible via the command line
-- http://www.hammerspoon.org/docs/hs.ipc.html
require("hs.ipc")
--------------------------------------------------------------------------------
-- Load Hammerspoon bits from... |
sc0tt_lucky_driveby = {}
sc0tt_lucky_driveby.ped = GetPlayerPed(-1) --Please dont edit
sc0tt_lucky_driveby.player = PlayerId() --Please dont edit
sc0tt_lucky_driveby.kmh = 100 -- Up to wich speed you can shoot
|
local val,err = nyagos.commonprefix{ "ABC123" , "ABCCCC" }
if not val or val ~= "ABC" then
os.exit(1)
end
local val,err = nyagos.commonprefix()
if val then
os.exit(1)
end
local val,err = nyagos.commonprefix(1)
if val then
os.exit(1)
end
|
-----------------------------------------------------------------------
-- FILE: luaotfload-init.lua
-- DESCRIPTION: part of luaotfload / font loader initialization
-- REQUIREMENTS: luatex v.0.80 or later; packages lualibs
-- AUTHOR: Philipp Gesang (Phg), <phg@phi-gamma.net>, Marcel Krüger
----------... |
--[[
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... |
StartState = Class{__includes = BaseState}
function StartState:init(params)
self.name = "StartState"
self.background = params.background or Background(MENU_BACKGROUND)
gSounds['music-title-screen']:setLooping(true)
gSounds['music-title-screen']:play()
self.menu = Menu {
y = VIRTUAL_HE... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('NB:getUsergroup', function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
local group = xPlayer.getGroup()
cb(group)
end)
function getMaximumGrade(jobname)
local result = MySQL.Sync.fetchAll("SEL... |
-- grabbed from the rojo plugin: https://github.com/rojo-rbx/rojo/blob/master/plugin/src/Components/FitGrid.lua
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local common = ReplicatedStorage.common
local lib = ReplicatedStorage.lib
local util = common.util
local Roact = require(lib.Roact)
local Dicti... |
#!/usr/bin/env tarantool
local tap = require('tap')
local uri = require('uri')
local function test_parse(test)
-- Tests for uri.parse() Lua bindings.
-- Parser itself is tested by test/unit/uri_parser unit test.
test:plan(56)
local u
u = uri.parse("scheme://login:password@host:service"..
... |
table.insert(emojichatHTML, [===["flag","nation","country","banner"],char:"🇺🇿",fitzpatrick_scale:!1,category:"flags"},vanuatu:{keywords:["vu","flag","nation","country","banner"],char:"🇻🇺",fitzpatrick_scale:!1,category:"flags"},vatican_city:{keywords:["vatican","city","flag","nation","country","banner"],char:"🇻🇦",... |
#!/usr/bin/lua
if arg[ 1 ] ~= "L" then
package.path = ""
end
local finally = require( "finally" )
local function create_a( raise )
if raise then error( "error in create a" ) end
local name
local o = {
close = function()
print( "-", "close a", name )
end
}
name = tostring( o )
print( "+",... |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSP... |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
AddCSLuaFile( "player_spawn.lua" )
include( "shared.lua" )
include( "player_spawn.lua" )
----------------------
----------------------
function GM:ShowTeam()
local ply = player.GetAll()[1]
net.Start("Spawn_Menu")
net.Send(ply)
end
f... |
local log = require('lib.bussiness.log')
local userLib =require('lib.bussiness.user')
local config = require('lib.config.config')
local levelAction = {}
levelAction.typeLevel = nil
levelAction.levelNumber = nil
levelAction.user = nil
levelAction.isStarted = false
levelAction.game = {}
levelAction.game.hp = 0
levelActi... |
float=script()
float.spos=vec3()
float.Init=function()
float.spos=ent.pos
end
float.Update=function()
ent.pos=float.spos+vec3(0,1*math.sin(Time.time),0)
end
speechrate=8
player=script()
speeches={}
player.Init=function()
stime=0
cam=findEntity('camera');speech=findEntity('speech')
ent.rigidBody... |
local key = ModPath .. ' ' .. RequiredScript
if _G[key] then return else _G[key] = true end
local max_players = tweak_data.max_players
function BaseNetworkSession:amount_of_alive_players()
local count = 0
local peers_all = self._peers_all
for i = 1, max_players do
local peer = peers_all[i]
if peer and alive(pe... |
local A = {}
A.defaults = {
def1 = "Default 1 for A",
def2 = 7,
def3 = 9
}
A.event_types = {
}
function A:testA()
return "Function called that is defined in A."
end
return A
|
--[[
TheNexusAvenger
Handles the server-side broom.
--]]
local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local TweenService = game:GetService("TweenService")
local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local SwingSound = Handle:WaitForChild("SwingSound")
... |
--
-- Definitions for buttons in NewTaskbar and right click menus for custom commands.
--
--This table defines a list of custom command ID's, NewTaskbar button names, and right click menu display names for all custom commands in the game.
--NOTE: commandID must be a number between 0 and 31 and must match the numb... |
--------------------------------------------------------------------------------
-- 表示オブジェクトの位置やサイズのレイアウトを更新する為のクラスです.
-- このクラスでは、Box形式のオブジェクトを水平、垂直方向に配置する事が可能です.
--------------------------------------------------------------------------------
-- import
local table = require "hp/lang/table"
local class... |
function genTransportBelts(inputs)
--Set name
local transportBeltName = inputs.copy.name.preName .. "transport-belt" .. inputs.copy.name.postName
local undergroundName = inputs.copy.name.preName .. "underground-belt" .. inputs.copy.name.postName
local splitterName = inputs.copy.name.preName .. "splitter... |
mineunit("core")
local protected_nodes = {}
function mineunit:protect(pos, name_or_player)
assert(type(name_or_player) == "string" or type(name_or_player) == "userdata",
"mineunit:protect name_or_player should be string or userdata")
local name = type(name_or_player) == "userdata" and name_or_player:get_player_n... |
local Color = require("Lib/StdLib/ConsoleColor");
local Route = require("Lib/Toolkit/Route");
local Style = require("Lib/Toolkit/Stylesheet");
local Package = obe.Package;
local Functions = {};
function getPackageList()
local parser = Vili.ViliParser.new();
parser:parseFile("Package/Packages.vili");
local... |
export type Spring = {
Target: Vector3;
Position: Vector3;
Velocity: Vector3;
Mass: number;
Force: number;
Damping: number;
Speed: number;
Shove: (self: Spring, force: Vector3) -> ();
Update: (self: Spring, deltaTime: number) -> ();
new: (mass: number, force: number, damping: number, speed: number) -> (Spri... |
--[[
Mark a mailbox as set up in the database.
]]
-- Mailbox info.
mailbox = args(1)
domain = args(2)
return
{
{
action = "data_update",
handler = "odbc",
config = profile.db_config_mailbox,
fields = {
mailbox_setup_complete = "yes",
},
filters = {
mailbox = mailbox,
doma... |
local const = {}
--сила трения воздуха
const.K_FORCE_SKY = 10
--сила трения о поверхность
const.K_FORCE_GROUNG = 100
--"потолок" мира
const.WORLD_LIMITY = -10000
const.BG_COLOR = { 0.62, 0.85, 0.9, 1.0 }
--силушка дефолтной поняши в лошадиных силах
const.FORCE_PONY = 1000
--todo
--const.PONIES = {
-- default = {... |
local haslualine, lualine = pcall(require, 'lualine')
local theme='OceanicNext'
if haslualine then
lualine.setup{
options={
theme = theme,
},
sections = {
lualine_a = {'mode'},
lualine_b = {'branch'},
lualine_c = {'filename'},
lualine_x = {'encoding', 'fileformat', 'filety... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
function EntityCount(class)
_CacheEntityCount(class)
return _entity_counts[class]
end
_entity_counts = _entity_counts or {}
function _CacheEntityCount(class)
if _entity_counts[class] == nil then
_entity_c... |
project "lua_fenestra"
language "C++"
files { "code/**.cpp" , "code/**.c" , "code/**.h" , "all.h" }
includedirs { "../lib_freetype/freetype/include/" }
includedirs { "../lib_sx/src/" }
links { "lib_lua" }
defines { "LUA_LIB" }
if WINDOWS then
links { "opengl32" , "glu32" }
else -- nix
links { "GL" , "GLU" }
--[... |
-- title: Raycast Engine Demo
-- author: Wojciech Graj
-- desc: Demo of a WolfenStein3D-style raycast engine with variable-height walls.
-- script: lua
-- input: gamepad
Entity = {
pos_x = 0,
pos_y = 0,
dir_x = -1,
dir_y = 0,
plane_x = 0,
plane_y = 0.8,
speed_rot = 0,
speed_move = 0,
}
Entity.__index = Enti... |
object_tangible_component_structure_mustafar_must_transthermal_padding = object_tangible_component_structure_mustafar_shared_must_transthermal_padding:new {
}
ObjectTemplates:addTemplate(object_tangible_component_structure_mustafar_must_transthermal_padding, "object/tangible/component/structure/mustafar/must_transthe... |
---@class CS.FairyEditor.View.HierarchyView : CS.FairyGUI.GComponent
---@type CS.FairyEditor.View.HierarchyView
CS.FairyEditor.View.HierarchyView = { }
---@return CS.FairyEditor.View.HierarchyView
function CS.FairyEditor.View.HierarchyView.New() end
return CS.FairyEditor.View.HierarchyView
|
if fs.exists("SydsoftOS") then
shell.run("rm SydsoftOS")
end
shell.run("pastebin get puhxzeDi SydsoftOS")
shell.run("SydsoftOS") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.