content stringlengths 5 1.05M |
|---|
local function init()
if not DarkRP then
MsgC(Color(255,0,0), "DarkRP Classic Advert tried to run, but DarkRP wasn't declared!\n")
return
end
DarkRP.removeChatCommand("advert")
DarkRP.declareChatCommand({
command = "advert",
description = "Displays an advertisement to everyone in chat.",
delay = 1.5
})
... |
--============
--Snowballs
--============
-- Snowballs were destroying nodes if the snowballs landed just right.
-- Quite a bit of trial-and-error learning here and it boiled down to a
-- small handful of code lines making the difference. ~ LazyJ
local creative_mode = minetest.setting_getbool("creative_mode")
local... |
--- @class GITexture
--- An object representing game texture, like a .vtf file. Do not confuse with IMaterial. Returned by IMaterial:GetTexture
local GITexture = {}
--- Invokes the generator of the texture. Reloads file based textures from disk and clears render target textures.
function GITexture:Download()
end
-... |
---@class Collector:Object
_class("Collector", Object)
function Collector:Constructor(groups, groupEvents)
---@type Group
self._groups = groups
self._groupEvents = groupEvents
self.collectedEntities = {}
if #groups ~= #groupEvents then
error("groups.Length != groupEvents.Length")... |
include("shared.lua")
local dynCross = CreateConVar("fw_dynamic_crosshair", 1, FCVAR_ARCHIVE, "Enable/Disable dynamic crosshair")
local crosshairPos = {
pos1 = 0,
pos2 = 0,
pos3 = 0,
pos4 = 0
}
function SWEP:DoDrawCrosshair(x, y)
if self.Scoped then return end
if not IsValid(self.Owner) then return end
local... |
local M = setmetatable({}, { __index = MenuGameState })
M.__index = M
local journal = require "src.components.journal"
function M.new(gamestate)
local self = setmetatable(MenuGameState.new(gamestate, 'Game Over'), M)
self.bg = self.gamestate.images.ui.end_bg
if not gamestate.hasFlag('defeated-cultists') ... |
local MainModule = require(script.MainModule)
MainModule(script.Settings, script.Packages) |
-----------------------------------
-- Weapon Break
-- Great Axe weapon skill
-- Skill level: 175
-- Lowers enemy's attack. Duration of effect varies with TP.
-- Lowers attack by as much as 25% if unresisted.
-- Strong against: Manticores, Orcs, Rabbits, Raptors, Sheep.
-- Immune: Crabs, Crawlers, Funguars, Quadavs, Pu... |
--[[
More Blocks: configuration handling
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
moreblocks.config = {}
local function getbool_default(setting, default)
local value = minetest.setting_getbool(setting)
if value == nil then
value ... |
require 'src/Dependencies'
function love.load()
-- initialize our nearest-neighbor filter
love.graphics.setDefaultFilter('nearest', 'nearest')
-- seed the RNG
math.randomseed(os.time())
-- app window title
love.window.setTitle('Some Game')
gStateMachine = StateMachine {
['ti... |
class("MergeTaskOneStepAwardCommand", pm.SimpleCommand).execute = function (slot0, slot1)
if #slot1:getBody().resultList > 0 then
slot4 = {}
slot5 = {}
for slot9, slot10 in ipairs(slot3) do
if slot10.isWeekTask then
table.insert(slot5, slot10.id)
else
table.insert(slot4, slot10)
end
end
sl... |
-----------------------------------
-- Area: Port Bastok
-- NPC: Kaede
-- Start Quest: Ayame and Kaede
-- Involved in Quests: Riding on the Clouds
-- !pos 48 -6 67 236
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests");
local ... |
local env,table=env,table
local json,math,graph,cfg=env.json,env.math,env.class(env.scripter),env.set
local template,cr
--[[
Please refer to "http://dygraphs.com/options.html" for the graph options that used in .chart files.
More examples can be found in folder "oracle\chart"
The content of .chart file mus... |
--- === plugins.finalcutpro.tangent.workspaces ===
---
--- Final Cut Pro Workspace Actions for Tangent
local require = require
--local log = require("hs.logger").new("tangentVideo")
local fcp = require("cp.apple.finalcutpro")
local i18n = require("cp.i18n")
local ... |
local Gender = require("classes/Gender.lua")
local Attachment = require("classes/Attachment.lua")
local JB = {}
JB.__index = JB
function JB:new()
local class = {}
db:exec[=[
CREATE TABLE cameras(id, x, y, z, w, rx, ry, rz, rw, camSwitch, freeForm);
INSERT INTO cameras VALUES... |
-- This file is subject to copyright - contact swampservers@gmail.com for more information.
-- INSTALL: CINEMA
-- weapon_vape_hallucinogenic.lua
-- Defines a vape which makes hallucinogenic effects on the user's screen
-- Vape SWEP by Swamp Onions - http://steamcommunity.com/id/swamponions/
if CLIENT then
include(... |
return {
require("state_ingame")
}
|
local log = HadesLive.Log
local json = HadesLive.Lib.json
local Connection = HadesLive.Connection
local interval = HadesLive.Config.PollInterval
local cb_arrs = {}
local monitorConnection = function ()
while true do
wait(interval)
if Connection.Status == 'closed' then
Connection.Open()
elseif Conn... |
function template (__config)
return function (segments)
for k, v in ipairs(segments) do
assert(
type(v)=='table',
'segment "'..k..'" isn\'t a table, perhaps you forgot to define its body')
end
__config.__template__ = true
__config.file = debug.getinfo(2, "S").... |
return Def.ActorFrame{
LoadActor(THEME:GetPathS("","_swoosh"))..{
StartTransitioningCommand=function(s) s:play() end
};
LoadActor(ddrgame.."moveon")..{
InitCommand=function(s)
s:xy(SCREEN_CENTER_X,SCREEN_CENTER_Y-10)
end,
OnCommand=function(s)
s:diffuse( Color.White ):accelerate(0.166):diffuse( color(... |
function onCreate()
makeLuaSprite('vignette', 'vignette-black', -500, -300);
addLuaSprite('vignette', true);
scaleObject('vignette', 1.0, 1.0);
makeLuaSprite('stage', 'tabi-stage-destroyed', -500, -300);
addLuaSprite('stage', false);
makeAnimatedLuaSprite('fire', 'tabi-stage-destroyed-fire', 800, -... |
local L = Grid2Options.L
Grid2Options:RegisterStatusOptions("range", "target", function(self, status, options, optionParams)
local rangeList = {}
local ranges, curRange = status.GetRanges()
for range in pairs(ranges) do
rangeList[range] = tonumber(range) and L["%d yards"]:format(tonumber(range)) or L['Heal ... |
-- Copyright 2016 The Arken Platform Authors.
-- All rights reserved.
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file.
-- Object
-- primitives ajustes for main objects
local Object = Object or {}
-------------------------------------------------------------------... |
local str = "Hello world!"
print(str:lower()) |
-- Set the internal TeX parameters to exactly match the values when
-- Plain TeX is loaded.
--
-- Refer to plain.tex: http://ctan.imsc.res.in/macros/plain/base/plain.tex
tex.pretolerance=100
tex.tolerance=200
tex.hbadness=1000
tex.vbadness=1000
tex.linepenalty=10
tex.hyphenpenalty=50
tex.exhyphenpenalty=50
tex.binoppen... |
AddCSLuaFile()
SWEP.HoldType = "slam"
if CLIENT then
SWEP.PrintName = "defuser_name"
SWEP.Slot = 7
SWEP.ViewModelFOV = 10
SWEP.EquipMenuData = {
type = "item_weapon",
desc = "defuser_desc"
};
SWEP.Icon = "vgui/ttt/icon_defuser"
end
SWEP.Base = "weapon_tttbase"
SWEP.ViewModel = "... |
local core = require "sys.core"
local testaux = require "testaux"
local msg = require "saux.msg"
local np = require "sys.netpacket"
local server
local accept = {}
local client = {}
local recv = {}
return function()
server = msg.createserver {
addr = "127.0.0.1:8002",
accept = function(fd, addr)
accept[#accept... |
-- state-machines-st -------------------------------------------------------
-- copyright (c) 2021 jason delaat
-- mit license: https://github.com/jasondelaat/pico8-tools/blob/release/license
----------------------------------------------------------------------------
-- simple state machine manager with setup and tear... |
local unicode = require("unicode")
local buffer = require("doubleBuffering")
local bigLetters = {}
local pixelHeight = 5
local lettersInterval = 2
local unknownSymbol = "*"
local spaceWidth = 2
local letters = {
["0"] = {
{ 1, 1, 1 },
{ 1, 0, 1 },
{ 1, 0, 1 },
{ 1, 0, 1 },
{ 1, 1, 1 },
},
[... |
object_mobile_wod_reanimated_witch_02 = object_mobile_shared_wod_reanimated_witch_02:new {
}
ObjectTemplates:addTemplate(object_mobile_wod_reanimated_witch_02, "object/mobile/wod_reanimated_witch_02.iff")
|
local main = require("ido.main")
local event = require("ido.event")
local advice = require("ido.advice")
local cursor = require("ido.cursor")
local result = require("ido.result")
-- @module accept Accepting functions for Ido
local accept = {}
-- Accept the selected item
-- @return true
function accept.selected()
... |
local upload = require "resty.upload"
local decode = require "cjson.safe".decode
local tonumber = tonumber
local tmpname = os.tmpname
local concat = table.concat
local type = type
local find = string.find
local open = io.open
local sub = string.sub
local sep = sub(package.config, 1, 1) or "... |
--[[
optional music.lua
version: 19.02.09
Copyright (C) 2018, 2019 Jeroen P. Broks
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this ... |
--[[
Do you think it is a good design to keep the transliteration table as part of the state of the library, isntead of being a parameter to transliterate?
]]
--[[
No, not as in the previous two examples. This forces clients of the library to coordinate with each other to ensure that the hidden state still has its ex... |
--[[------------
Q U A K E II
Heads Up Display
Weapon images
]]--------------
if CLIENT then
-- Parameters
local PISTOL_HOLDTYPES = {"pistol", "revolver", "duel"};
Q2HUD.WeaponModels = {}; -- A list of weapon models
Q2HUD.WeaponClasses = {}; -- A list of weapon classes
Q2HUD.QuakeWeapons = {}; -- A list o... |
----------------------------------
-- Requires --
----------------------------------
local __constants = require("utils.constants")
----------------------------------
-- Combinator item --
----------------------------------
-- Create a new combinator item from decider combinator
local combinatorItem = table.deepcopy... |
local app = app
local Signal = require "Signal"
local Utils = require "Utils"
local Class = require "Base.Class"
local Base = require "ListWindow"
local Manager = require "Package.Manager"
-- Package Manager Interface
local Interface = Class {}
Interface:include(Base)
function Interface:init()
local opts = {
ti... |
AddCSLuaFile()
local Behaviour = include("gw_behaviour_tree_lib.lua")
ENT.Base = "base_nextbot"
GW_WALKER_TARGET_TYPE_NONE = 0
GW_WALKER_TARGET_TYPE_POSITION = 1
GW_WALKER_TARGET_TYPE_HIDING_SPOT = 2
function ENT:SetupDataTables()
self:NetworkVar("Int", 0, "LastAct")
self:NetworkVar("Int", 1, ... |
function love.conf(t)
t.version = "11.3" -- The LÖVE version this game was made for (string)
t.console = true -- Attach a console (boolean, Windows only)
t.audio.mixwithsystem = true -- Keep background music playing when opening LOVE (boolean, iOS and Android only)... |
love.graphics.setDefaultFilter('nearest', 'nearest')
enemiesController = {}
enemiesController.enemies = {}
enemiesController.img = love.graphics.newImage('alien.png')
enemiesController.exp =love.audio.newSource('explosion.wav')
enemiesController.scale = 3
enemy = {}
function love.load()
music = love.audio.newSource... |
local rootElement = getRootElement()
function showHelp(element)
return triggerClientEvent(element, "doShowHelp", rootElement)
end
function hideHelp(element)
return triggerClientEvent(element, "doHideHelp", rootElement)
end
|
--[[---------------------------------------------------------------------------------------
Wraith ARS 2X
Created by WolfKnight
For discussions, information on future updates, and more, join
my Discord: https://discord.gg/fD4e6WD
MIT License
Copyright (c) 2020 WolfKnight
Permission is hereby granted, fr... |
object_tangible_quest_menagerie_terminal_42 = object_tangible_quest_shared_menagerie_terminal_42:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_menagerie_terminal_42, "object/tangible/quest/menagerie_terminal_42.iff")
|
local function SetHighlight(self)
PROFILE("BaseModelMixin:SetHighlight")
if self:GetIsHighlightEnabled() == 1 then
if HasMixin(self, "Team") then
if self:GetTeamNumber() == kTeam2Index then
if self:isa("Gorge") then
self._renderModel:SetMaterialPa... |
local NoteReader = Class(function(self,inst)
end)
return NoteReader |
--登录奖励
local LogonRewardLayer = class("LogonRewardLayer", cc.Layer)
local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun")
local AnimationHelper = appdf.req(appdf.EXTERNAL_SRC .. "AnimationHelper")
local RewardShowLayer = appdf.req(appdf.CLIENT_SRC.."plaza.views.layer.plaza.RewardShowLayer")
function Log... |
return {
_type_ = 'Decorator',
id = 3001,
name = "耳环",
desc = "耳环",
duration = 100,
} |
local M = {}
local make_iter = require "parse_sql_dump.utils".make_iter
M.NULL = require "parse_sql_dump.utils".NULL
-- It would be neater to generate these by parsing the description of the table in the SQL file.
M.babel = make_iter("babel", "babel", [[
user user_id
lang string
level string
]])
M.category = make_it... |
local ns2_Embryo_SetGestationData = Embryo.SetGestationData
function Embryo:SetGestationData(techIds, previousTechId, healthScalar, armorScalar)
ns2_Embryo_SetGestationData(self, techIds, previousTechId, healthScalar, armorScalar)
if self.isSpawning then
self.gestationTime = kSpawnGestateTime
... |
#!/usr/bin/env luajit
-- script to convert text files to another format
require 'ext'
--local gcmem = require 'ext.gcmem'
local result, ffi = pcall(require, 'ffi')
local useffi = true
local OutputPoints = require 'output_points'
local julian = assert(loadfile('../horizons/julian.lua'))()
local mjdOffset = 2400000.5
... |
slot2 = "SlwhRoomCcsView"
SlwhRoomCcsView = class(slot1)
SlwhRoomCcsView.onCreationComplete = function (slot0)
slot6 = slot0.layerRoomList.content_sv.getContentSize(slot7).height
slot7 = cc.size(slot4, display.width)
slot0.layerRoomList.content_sv.setContentSize(display.width, slot2)
slot6 = slot0.layerRoomList.... |
Star = class()
-- Star class
-- 20/4/2012 -- xixgames.com
-- Ludum Dare #23
-- Tiny World
-- in this magic tiny world people need others like you!
function Star:init(pos, vel, angl)
self.position = pos
self.velocity = vel
self.angle = angl
end
function Star:update()
self.position.x = self.position.... |
function PowerConsumerMixin:SetPowerSurgeDuration(duration)
--if self:GetIsPowered() then
-- CreateEntity( EMPBlast.kMapName, self:GetOrigin(), self:GetTeamNumber() )
--end
self.timePowerSurgeEnds = Shared.GetTime() + duration
self.powerSurge = true
--Make sure to call this after setting u... |
function CreateHelpCenter()
if(Window == nil) then
Window = {}
Label = {}
Image = {}
Window[1] = guiCreateWindow(296,266,437,276,"Quick help",false)
Window[2] = guiCreateWindow(304,330,424,115,"Quick help",false)
guiSetAlpha(Window[1],1)
Label[1] = guiCreateLabel(0.0389,0.1400,0.9245,0.05... |
HedgewarsScriptLoad("/Scripts/Locale.lua")
local player = nil -- This variable will point to the hog's gear
local p2 = nil
local enemy = nil
local bCrate = nil
local playerTeamName = loc("Feeble Resistance")
local GameOver = false
function onGameInit()
-- Things we don't modify here will use their default values.
... |
require "scripts.variableholder";
require "scripts.info"
Ability = class(VariableHolder, function (obj, ...)
VariableHolder.init(obj, ...)
obj.OnSpellStart = obj.OnSpellStart
obj.OnAbilityPhaseStart = obj.OnAbilityPhaseStart
obj.OnAbilityPhaseInterrupted = obj.OnAbilityPhaseInterrupted
obj.OnChannelFinish = obj.... |
ITEM.name = "Фамильный длинный меч"
ITEM.desc = "Весь покрыт гравировками. Похож на семейную реликвию."
ITEM.class = "nut_long_family"
ITEM.weaponCategory = "primary"
ITEM.price = 600
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/silver/longsword/w_silver_longsword.mdl"
ITEM.width = 5
ITEM.height = 1
ITEM.ico... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach"
},
arg_list = {
attr = "dodgeRate",
number = 1300
}
},
{
type = "BattleBuffFixVelocity",
trigger = {
"onAttach"
},
arg_list = {
add = 3,
mul = 0
}
}
... |
local lib = {}
----------------
-- Meta stuff
--- same
function lib.same(x) return x end
-- meta
function lib.map(t,f, u)
u,f = {}, type(f)== "function" and f or _ENV[f]
for i,v in pairs(t or {}) do u[i] = f(v) end
return u
end
----------------
-- Column stuff
--- same
function lib.num () return {lo... |
local name = string
local clock = os.clock
function sleep(n)
local start = clock()
while clock() - start <= n do end
end
for k, v in pairs(name) do
print(k .. " = " .. tostring(v))
end
sleep(1)
print("Erasing contents...")
sleep(1)
for k, v in pairs(name) do
if type(name[k]) == "function" then
... |
local HomeScreen = Class("HomeScreen")
SnakeBean=require "src/bean/SnakeBean"
function HomeScreen:init(game)
self.game = game
self.input = "home"
self.title = love.graphics.newImage("res/title.png")
self.began = love.graphics.newImage("res/began.png")
self.help = love.graphics.newImage("res/help.png")
self.quit... |
GChroma_PlayerModuleLoaded = true
util.AddNetworkString( "GChromaPlayerInit" )
local function GChromaPlayerSpawn( ply )
if gchroma then
net.Start( "GChromaPlayerInit" )
net.WriteBool( false )
net.Send( ply )
end
end
hook.Add( "PlayerSpawn", "GChromaPlayerSpawn", GChromaPlayerSpawn )
local function GChromaPlay... |
BeanConfig = {
beans = {
ClearSanBoxCacheBean,
LoadStaticDataBean,
DeployManagersBean,
DeployTweenBean,
CheckSplashCompleteBean,
GaoFangBean,
CheckIpSkipBean,
CheckBandByAppStoreBean,
CheckFixGameStateBean,
CheckLoginBean,
AfterLoginBean,
CheckGameVersionBean,
CheckRelogingBean,
LoadPicesAs... |
-- Replace coal with carbon if bobs/angels is on
-- Prioritize angels's version
-- Rework technology to have a dependency on it |
-- plat
set_config("plat", os.host())
-- project
set_project("co")
-- set xmake minimum version
set_xmakever("2.2.5")
-- set common flags
set_languages("c++11")
set_optimize("faster") -- faster: -O2 fastest: -O3 none: -O0
set_warnings("all") -- -Wall
set_symbols("debug") -- dbg symbols
if... |
function greetingScreen()
background(156, 222, 193)
pushStyle()
font("Verdana-BoldItalic")
fontSize(fontSize() * 3)
button("Hi!")
popStyle()
button("This is a SimpleButton!")
button("It sizes itself to fit any text...")
button([[
...it can even
accommodate
a text block...]... |
local DIR = (...) .. '/'
local World = require(DIR .. 'world')
local Husk = {}
-- initializes new spatial hash map
function Husk:newWorld(cell_size)
return setmetatable({
cell_size = cell_size or 128,
spatial_hash = {}
}, World)
end
return Husk
|
#!/usr/bin/env luajit
-- AUTHOR: Stephen McGill, 2017
-- Usage: ./test_pcan FILENAME.pcap
-- Description: Decode CAN messages from ethernet frames captured with the PEAK CAN-Ethernet device
---------------
-- Dependencies
local ffi = require("ffi")
local pcap = require("pcap")
local pcan = require("pcan")
-----------... |
-- Minetest: builtin/common/chatcommands.lua
core.registered_chatcommands = {}
function core.register_chatcommand(cmd, def)
def = def or {}
def.params = def.params or ""
def.description = def.description or ""
def.privs = def.privs or {}
def.mod_origin = core.get_current_modname() or "??"
core.registered_chatco... |
local http = require "http"
local ipOps = require "ipOps"
local stdnse = require "stdnse"
local string = require "string"
local table = require "table"
description = [[
Discovers hostnames that resolve to the target's IP address by querying the online Robtex service at http://ip.robtex.com/.
]]
---
-- @usage
-- nmap ... |
-- =====================================================================
--
-- luasnip.lua -
--
-- Created by liubang on 2021/09/04 21:07
-- Last Modified: 2021/09/04 21:07
--
-- =====================================================================
local ls = require 'luasnip'
-- some shorthands...
local s = ls.snippet... |
--[[
Automatically apply profiles based on runtime conditions.
At least mpv 0.21.0 is required.
This script queries the list of loaded config profiles, and checks the
"profile-desc" field of each profile. If it starts with "cond:", the script
parses the string as Lua expression, and evaluates it. If the expression
re... |
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua'))
HeightmapEditor = Editor:extends{}
HeightmapEditor:Register({
name = "heightmapEditor",
tab = "Map",
caption = "Terrain",
tooltip = "Edit heightmap",
image = Path.Join(SB.DIRS.IMG, 'peaks.png'),
order = 0,
})
function HeightmapEditor:init()... |
local this = Class.inherit(DecoSolid)
function this:new(color, size)
DecoSolid.new(self, color)
self.size = size
end
function this:draw(screen, widget)
if self.color ~= nil and widget.rect ~= nil then
local r = widget.rect
r = sdl.rect(r.x, r.y, r.w, r.h)
if self.size then
r.w = self.size.w
r.h = s... |
--Minetest
--Copyright (C) 2013 sapier
--
--This program 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 version 2.1 of the License, or
--(at your option) any later version.
--
--This program is ... |
-- Huntpad extension pack for the Sandcat Browser
Huntpad = extensionpack:new()
Huntpad.filename = 'Huntpad.scx'
function Huntpad:init()
end
function Huntpad:afterinit()
self:dofile('quickinject/quickinject.lua')
quickinject:add()
end |
MySQL.createCommand("vRP/sell_vehicle_player","UPDATE vrp_user_vehicles SET user_id = @user_id, vehicle_plate = @registration WHERE user_id = @oldUser AND vehicle = @vehicle")
-- sell vehicle
veh_actions[lang.vehicle.sellTP.title()] = {function(playerID,player,vtype,name)
if playerID ~= nil then
vRPclient.getNeare... |
require('replserver')
visit_count = 0
function serve_index(conn)
visit_count = visit_count + 1
s = '<html><head><title>Hello, World</title></head><body>' ..
'<h1>Simple nodemcu page</h1>' ..
'<br>visits: ' .. visit_count ..
'<br>heap: ' .. node.heap() ..
'<br>time: ' .. tmr.time() ..
'</bo... |
local cell = require "cell"
cell.command {
ping = function()
cell.sleep(1)
return "pong"
end
}
function cell.main(...)
print("pingpong launched")
return ...
end |
include "freetype"
include "glew"
include "binpack"
include "jsoncpp"
include "stb_image"
include "sdl2"
include "lua" |
table.insert(data.raw["lab"]["lab"].inputs, "research-data")
table.insert(data.raw["technology"]["nuclear-fuel-reprocessing"].prerequisites, "uranium-processing")
data.raw["technology"]["uranium-processing"].prerequisites = {"graphite-fuel-reprocessing"}
data.raw["technology"]["nuclear-power"].prerequisites = {"graphi... |
-- Controllers
local edit_task_description = require "src.controller.edit_task_description"
return function(parser)
local edit_task_parser = parser:command("edit-task-description")
edit_task_parser:summary("Edit the description of a specific task")
edit_task_parser
:argument("id", "Id of the task t... |
local status = nil
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
local playerId = PlayerId()
local ped = PlayerPedId()
local health = GetEntityHealth(ped)
local armor = GetPedArmour(ped)
local show = IsPauseMenuActive()
Wait(250)
... |
-- ======================================================================
-- Corruption Checksum
-- Advent of Code 2017 Day 02 -- Eric Wastl -- https://adventofcode.com
--
-- lua implementation by Dr. Dean Earl Wright III
-- ======================================================================
-- ==================... |
--[[--ldoc desc
@Module HomeScene.lua
@Author JrueZhu
Date: 2018-10-18 18:17:51
Last Modified by JrueZhu
Last Modified time 2018-11-01 20:46:02
]]
local appPath = "app.demo.JrueZhu"
local HomeScene = class("HomeScene", cc.load("mvc").ViewBase)
local ClockCountDown = require(appPath .. ".widget.ClockCountDown")
loc... |
AddCSLuaFile()
local DbgPrint = GetLogging("MapScript")
local MAPSCRIPT = {}
MAPSCRIPT.PlayersLocked = false
MAPSCRIPT.DefaultLoadout =
{
Weapons =
{
},
Ammo =
{
},
Armor = 0,
HEV = false,
}
MAPSCRIPT.InputFilters =
{
}
MAPSCRIPT.EntityFilterByClass =
{
--["env_global"] = true,... |
return {uvs={{0.534295,0.778521},{0.505379,0.771177},{0.505379,0.716352},{0.549035,0.710684},{0.505379,0.640037},{0.573205,0.805778},{0.546929,0.640053},{0.505379,0.563295},{0.597284,0.701878},{0.599466,0.787245},{0.598917,0.845258},{0.546929,0.56663},{0.505379,0.501191},{0.652979,0.823669},{0.611185,0.893659},{0.65050... |
--[[
--=====================================================================================================--
Script Name: Replace Weapon Projectile (v1.1), for SAPP (PC & CE)
Description: This script will allow you to swap weapon projectiles for substitute projectiles
NOTE: The replacement projectile will still appe... |
------------------------------------------------------------------------
-- Copyright (C) 1994-2008 Lua.org, PUC-Rio. All rights reserved.
--
-- 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 Softwa... |
---------------------------------------------------------------
-- Flyout.lua: Flyout frame
---------------------------------------------------------------
-- Adds custom frames to deal with multi-choice spell-casting,
-- such as portals/teleports, totems, pets, etc.
local _, db = ...
if not SpellFlyout then return ... |
require "lib.classes.class"
local json = require("lib.file.json.json")
local DictFile = require("lib.file.DictFile")
--------------------------------------------------------------------------------------------------------
-- class: JsonDictFile
-- param: path:str -> the path of the file serving as a dictionary
-- An o... |
if data.raw['resource-category'] then
data:extend(
{
{
name = 'mi-advanced',
type = 'resource-category'
},
{
name = 'mi-basic',
type = 'resource-category'
}
}
)
end
|
include("shared.lua")
local lib = include("psychedelics/libs/cl/ents_cl.lua")
function ENT:Draw()
self:DrawModel()
end
local tipText = "Press 'e' to use or 'e'+'shift' to add for selling"
function ENT:DrawTranslucent()
self:Draw(flags)
if lib.checkTip(tipText, self) then
lib.draw3D2DTip(tipText, self)
... |
local wibox = require("wibox")
local screen = require("awful.screen")
local helper = require("utils.helper")
local button = require("awful.button")
local table = require("gears.table")
local widget = require("utils.widget")
local modal = {}
function modal:init(s)
self.screen = s or screen.focused()
self.height = ... |
local perlin_2d_module = require("perlin2d")
local perlin2d = perlin_2d_module.perlin2d
perlin_2d_module.seed = os.time()
for y = 0, 29, 1 do
for x = 0, 59, 1 do
if (perlin2d(x/30, y/30)) > 0 then
io.write(1)
else
io.write(0)
end
end
io.write("\n")
end
|
local map = require '_.utils.map'
local M = {}
function M.get_icon(icon_name)
local ICONS = {
paste = '⍴',
spell = '✎',
branch = vim.env.PURE_GIT_BRANCH ~= '' and vim.fn.trim(
vim.env.PURE_GIT_BRANCH
) or ' ',
error = '×',
info = '●',
warn = '!',
hint = '›',
lock = '',
... |
-------------------------------------------------------------------------------
-- Coroutine safe xpcall and pcall versions
--
-- Encapsulates the protected calls with a coroutine based loop, so errors can
-- be dealed without the usual Lua 5.x pcall/xpcall issues with coroutines
-- yielding inside the call to pcall or... |
me = game.Players.acb227.Character
pcall(function() me.Johnsen:remove() end)
mod = Instance.new("Model")
mod.Name = "Johnsen"
mod.Parent = me
part = Instance.new("Part")
part.Parent = mod
part.Size = Vector3.new(1, 1, 1)
part.Position = Vector3.new(1, 1, 1)
part.BrickColor = BrickColor.new("Light orange")
part:Bre... |
--[[Author: chirslotix/Pizzalol
Date: 10.01.2015.
Deals splash auto attack damage to nearby targets depending on distance]]
function Splash( keys )
-- Variables
local caster = keys.caster
local target = keys.target
local ability = keys.ability
local radius_small = ability:GetLevelSpecialValueFor("splash_radius",... |
--[[
Lua Cold Observables
MIT License
Copyright (c) 2019 Alexis Munsayac
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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.