content stringlengths 5 1.05M |
|---|
๏ปฟ--
-- Flappy Bird for the arcade machine system!
-- Rips assets/sounds from FlapPyBird (thanks sourabhv).
--
-- This file is the "rewrite", excluding
-- useless variables and overall "should be a bit
-- faster."
-- I've also switched over to a state system
-- to make it less complicated.
--
-- TODO:
-- Major bug: Mu... |
local InCombat = {
}
local OutCombat = {
}
XB.CR:Add(270, '[XB] Monk - Mistweaver', inCombat, outCombat) |
function WeaponGenerator.generateSlugGun(rand, dps, tech, material, rarity)
local weapon = Weapon()
weapon:setBeam()
local fireDelay = rand:getFloat(1, 2.2) --Railgun is 1 to 2.5
local reach = rand:getFloat(950, 1400)
local damage = dps * fireDelay * 1.5 --Compensating for the horrible, horrible ac... |
--[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... |
require'lspconfig'.vimls.setup{ on_attach = require'completion'.on_attach }
|
----------------------------------------------------------------------------------
--- Total RP 3
--- Profiles chat links module
--- ---------------------------------------------------------------------------
--- Copyright 2014-2019 Morgane "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe
---
--- Licensed under t... |
return {
include = function()
includedirs {
'../vendor/speexdsp/include/',
'../vendor/speexdsp/include/speex/',
}
end,
run = function()
language "C"
kind "StaticLib"
defines { 'USE_ALLOCA', 'inline=__inline', 'FLOATING_POINT', 'USE_SMALLFT', 'EXPORT=' }
if os.istarget('windows') then
defines ... |
--[[
Explode a string
Arguments:
string str = The string to be exploded
string sep = The pattern to be used as separator
Return:
table list = Table with the exploded values
nil
]]
function string.Explode(str, sep)
if not str or not sep then return end
local list = ... |
modifier_item_forest_staff = class({})
--------------------------------------------------------------------------------
function modifier_item_forest_staff:IsHidden()
return true
end
--------------------------------------------------------------------------------
function modifier_item_forest_staff:IsPurgable()
r... |
-- Copyright (C) 2015 Monkey Zhang (timebug)
local type = type
local error = error
local pairs = pairs
local ipairs = ipairs
local rawset = rawset
local rawget = rawget
local sub = string.sub
local gsub = string.gsub
local find = string.find
local tostring = tostring
local tonumber = tonumber
local tcp = ngx.socket.t... |
local wk = require("which-key")
wk.register({
p = {
name = "projects",
f = { "<cmd>Telescope find_files<cr>", "find-file-in-project" },
s = { "<cmd>Telescope live_grep<cr>", "search-in-project" },
m = { "<cmd>Telescope marks<cr>", "bookmarks" },
h = { "<cmd>Telescope help_tags<cr>", "help" },
},... |
module(..., package.seeall)
local buffer = {}
function attach(scene)
Logger.debug("Attaching DebugHelper")
view = View {
scene = scene
}
text = TextLabel {
parent = view,
textSize = 14,
text = "Wq",
align = {"left", "bottom"},
pos = {0, 0},
size = {view:getWidth(), view:getHeight()},
}
loc... |
--------------------------------------------------------------------------
-- cours exported from InstrumentsVanillesTauxFlottant.txt
--------------------------------------------------------------------------
InstrumentsVanillesTauxFlottant = Tmv(INSTRUMENTS_VANILLES_TAUX_FLOTTANT_TITLE_ID,INSTRUMENTS_VANILLES_TAUX_F... |
require 'graph'
dofile 'graphviz.lua'
g=graph.Graph()
root=graph.Node(10)
n1=graph.Node(1)
n2=graph.Node(2)
g:add(graph.Edge(root,n1))
g:add(graph.Edge(root,n2))
nend = graph.Node(20)
g:add(graph.Edge(n1,nend))
g:add(graph.Edge(n2,nend))
g:add(graph.Edge(nend,root))
local i = 0
print('======= BFS ==========')
root:bf... |
local soundManager = {}
-- known sounds
soundManager.soundsFile = "sounds.json";
soundManager.streams = {};
-- paths
soundManager.soundsPath = "sound/";
-- music
soundManager.numOfReservedChanels = 1;
soundManager.musicReservedChanel = 1;
soundManager.musicFile = "music.json";
soundManager.musicPaused = false;
--... |
--[[Check https://github.com/mtsmtsmts/Iot-home-controlfanlight]]--
function checkRestart()
local Restart
if file.open("restart.lua") == nil then
Restart = 0
file.open("restart.lua","w+") --if not created w+ will create it
file.write(Restart)
file.close("restart.lua")
... |
for i = 1, 20, 30 do
end
for i, v in pairs(i) do print(i, v) end
for k, v in pairs { 1, 2, 3 } do
for i = 1, 2, 3 do
print(i, k, v)
end
end
do for i = 1, 10 do
-- body
end
end
|
include('shared.lua')
surface.CreateFont( "TaxiBoothFont", { font = "Arial", size = 50 } )
surface.CreateFont( "TaxiText", { font = "Arial", size = 16 } )
net.Receive( "ETaxi::UpdateBooths", function()
local id = net.ReadString()
local Title = net.ReadString()
local Vec = net.ReadVector()
local Key = ... |
local function bankingmenu()
local function inQuad(fraction, beginning, change)
return change * (fraction ^ 2) + beginning
end
local hudhide = ix.option.Get("disablehud", false)
if not hudhide then
ix.option.Set("disablehud", true)
end
inventoryframe = vgui.Create("DFrame")
... |
--[[
key 1 -> bq:name:id (job ID counter)
key 2 -> bq:name:jobs
key 3 -> bq:name:waiting
arg 1 -> job id
arg 2 -> job data
arg 3 -> is job lifo
]]
local jobId = ARGV[1]
local lifo = ARGV[3]
if jobId == "" then
jobId = "" .. redis.call("incr", KEYS[1])
end
if redis.call("hexists", KEYS[2], jobId) == 1 then return nil... |
local robot = class("robot")
local TIMER_READY = { 1, 2 }
local TIMER_CALL_BANKER = { 2, 3 }
local TIMER_BET = { 3, 3 }
local TIMER_OPEN_CARD = { 4, 3 }
local TIMER_READY2 = { 5, 3 }
function robot:ctor(user, on_robot_game_msg_cb, user_ready_cb)
self.user = user
self.on_robot_game_msg_cb = on_robot_game_msg_... |
-- CMD('colorscheme github_dark_default')
|
object_building_kashyyyk_poi_kash_rryatt_lvl2_near_roots_a3 = object_building_kashyyyk_shared_poi_kash_rryatt_lvl2_near_roots_a3:new {
}
ObjectTemplates:addTemplate(object_building_kashyyyk_poi_kash_rryatt_lvl2_near_roots_a3, "object/building/kashyyyk/poi_kash_rryatt_lvl2_near_roots_a3.iff")
|
---@meta
--=== si7021 ===
---@class si7021
---@field RH12_TEMP14 integer
---@field RH08_TEMP12 integer
---@field RH10_TEMP13 integer
---@field RH11_TEMP11 integer
---@field HEATER_ENABLE integer
---@field HEATER_DISABLE integer
si7021 = {}
---Read the internal firmware revision of the Si7021 sensor.
---@return numbe... |
-- Clientside not tested
Tests_To_Do = {
} |
local SyntaxKind = require("lunar.ast.syntax_kind")
local SyntaxNode = require("lunar.ast.syntax_node")
local BinaryOpExpression = setmetatable({}, {
__index = SyntaxNode,
})
BinaryOpExpression.__index = setmetatable({}, SyntaxNode)
function BinaryOpExpression.new(left_operand, operator, right_operand)
return Binar... |
local WALK_SPEED = script:GetCustomProperty("WalkSpeed")
local SPRINT_SPEED = script:GetCustomProperty("SprintSpeed")
function SetServer(player,state)
player.serverUserData.isSprinting = state
end
function SetClient(player,state)
player.clientUserData.isSprinting = state
end
function SetRunState(player,state... |
return {'kopenhagen','kop','kopal','kopallak','kopbal','kopblad','kopbout','kopduel','kopeke','kopen','koper','koperachtig','koperbeslag','koperblazer','koperbrons','koperdiepdruk','koperdraad','koperdruk','koperen','kopererts','koperets','kopergeld','kopergieter','kopergieterij','koperglans','kopergravure','kopergroen... |
local mod = mod_loader.mods[modApi.currentMod]
local path = mod.scriptPath
local getModUtils = require(path .."libs/getModUtils")
local selected = require(path .."libs/selected")
local deselect = require(path .."libs/deselect")
local isNeutral = require(path .."libs/isNeutral")
local menu = require(path .."libs/menu")... |
-----------------------------------
-- Area: Valkurm_Dunes
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.VALKURM_DUNES] =
{
text =
{
NOTHING_HAPPENS = 141, -- Nothing happens...
ITEM_C... |
local argon2 = require "argon2"
describe("argon2", function()
it("_VERSION field", function()
assert.equal("3.0.1", argon2._VERSION)
end)
it("_AUTHOR field", function()
assert.equal("Thibault Charbonnier", argon2._AUTHOR)
end)
it("_LICENSE field", function()
assert.equal("... |
--[[
This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:28' 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... |
env.info( '*** DWMUILS INCLUDE' )
function table_out (tt, indent, done)
local result = "\n"
done = done or {}
indent = indent or 0
if type(tt) == "table" then
local counter = 1
for key, value in pairs (tt) do
result = result .. string.rep (" ", indent) -- indent it
if type (value) == "t... |
package.path = package.path..";".."E:/Documents/Lua-Projs/ZeroBraineIDE/myprograms/?.lua"
require("turtle")
local wx = require("wx")
local wn = "Crop image"
local fi = "CropImage/%s.png"
local bn = "source"
local bm = wx.wxBitmap()
bm:LoadFile(fi:format(bn), wx.wxBITMAP_TYPE_ANY)
open(wn)
size(bm:GetWidt... |
local args = ...
local door = args["gateDoor"]
door:setState("opened") |
return { sharp = { 15, 14, 4 }, sharpp = { 15, 14, 9, 7 } } |
local chest = peripheral.wrap("back")
while true do
local size = chest.size()
local list = chest.list()
local used = 0
for _ in pairs(list) do used = used + 1 end
print(size .. " / " .. used)
v:SendStat("storage", size .. " / " .. used)
sleep(5)
end
|
DxText = inherit(DxElement)
function DxText:constructor(x, y, width, height, text, alignX, alignY)
self.type = "dx-text"
self.text = text
local defaultPrimaryColor = getStyleSetting("text", "primary_color")
self:setColor(defaultPrimaryColor.r, defaultPrimaryColor.g, defaultPrimaryColor.b, 0)
self.hoverColor.... |
local s, r = setmetatable, rawget
local a = { Id = 1, Client = 2, Commontypekeyword = 3, Dungeon1 = 4, Dungeon2 = 5 }
local m = { __index = function(t, k) return r(t, a[k]) end, __newindex = function() end }
local d = {
}
return s(d, { __index = function(t, k)
if k >= 1 and k < 3 then return require("config.reftest... |
config = {
versionCheck = true, -- enables version checking (if this is enabled and there is no new version it won't display a message anyways)
text = {
format = '~y~Nearest Postal~w~: %s (~g~%.2fm~w~)',
-- ScriptHook PLD Position
--posX = 0.225,
--posY = 0.963,
-- vMenu PLD Position
posX = 0.22,
posY =... |
return {
id = 2,
x1 = 1,
x1_2 = 1,
x2 = 2,
x3 = 20,
a1 = {
1,
3,
},
a2 = {
2,
4,
},
b1 = {
3,
5,
},
b2 = {
4,
6,
},
c1 = {
5,
6,
8,
},
c2 = {
6,
8,
... |
TagScript = {id = "script", type="cut"}
TagScript.__index = TagScript
function TagScript:Create(scriptStr)
local this =
{
mScriptStr = scriptStr,
mFired = false,
mDebugBlockRun = false,
}
setmetatable(this, self)
return this
end
function TagScript:AdjustColor(c)
return ... |
-- random.lua
-- Implements the cRandomBlockTypeSource class.
cRandomBlockTypeSource = {}
function cRandomBlockTypeSource:new(a_BlockString)
local BlockTable, ErrorBlock = cRandomBlockTypeSource.RetrieveBlockTypes(a_BlockString)
if (not BlockTable) then
return false, ErrorBlock
end
local Obj = {}
setmetatable(... |
local t_insert = table.insert
local t_concat = table.concat
local str_len = string.len
local str_sub = string.sub
local str_byte = string.byte
local str_pack = string.pack
local str_unpack = string.unpack
local str_format = string.format
local dat = {}
dat.encode = function(var)
local str = {}
local str_map ... |
/*
* @package : rlib
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (C) 2019 - 2020
* @since : 2.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
*
* MIT License
*
* THE SOFTWARE IS PROVIDED "AS IS",... |
object_mobile_som_shared_8t88 = SharedCreatureObjectTemplate:new {
clientTemplateFileName = "object/mobile/som/shared_8t88.iff"
}
ObjectTemplates:addClientTemplate(object_mobile_som_shared_8t88, "object/mobile/som/shared_8t88.iff")
--*************************************************************************************... |
-----------------------------------
-- Area: AlTaieu
-- NPC: Dimensional Portal
-----------------------------------
local ID = require("scripts/zones/AlTaieu/IDs");
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local offset = npc:getID() - ID.npc.DIMENSIONAL_PORTAL_OFFSET;
if (offset... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local pairs = pairs
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-... |
-- Zone: Castle Oztroja (151)
-- Desc: this file contains functions that are shared by multiple luas in this zone's directory
-----------------------------------
local ID = require("scripts/zones/Castle_Oztroja/IDs")
require("scripts/globals/status")
-----------------------------------
local CASTLE_OZTROJA = {
--[... |
DarkRP.definePrivilegedChatCommand("setcredit", socialcredit.Privilege, function(ply, text)
local args = string.Explode(" ", text)
if !args then return "" end
local target = args[1]
local value = tonumber(args[2])
if !(socialcredit.utils.ValidateSteamID(target) && isnumber(value)) then
DarkRP.notify(ply, 1,... |
local DB = require "DB"
local config = require "config"
local assert = assert
local Model = { __Version__ = 0.1 }
function Model.init()
-- ๅๅงๅๆฐๆฎๅบ
Model._db_ = DB:new {
host = config.DB_HOST,
port = config.DB_PORT,
username = config.DB_USERNAME,
password = config.DB_PASSWORD,
charset = confi... |
-----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Emhi Tchaoryo
-- Type: Campaign Ops Overseer
-- !pos 10.577 -2.478 32.680 94
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
player:startEvent(307)
end
function onEventUpdate(player... |
arguments = {}
init = function(args)
arguments = args
wrk.headers["X-Small"] = "Small value"
wrk.headers["X-Medium"] = "Some header with a medium value"
wrk.headers["X-Large"] = "Some header with a reasonably large value that will take a bit more memory, just like most user agent strings"
end
request ... |
vim.opt_local.commentstring = '# %s'
|
#!/usr/bin/env tarantool
local test = require("sqltester")
test:plan(115)
box.schema.func.create('A1', {
language = 'Lua',
body = 'function(a) return {a} end',
returns = 'array',
param_list = {'any'},
exports = {'LUA', 'SQL'}
});
box.schema.func.create('A2', {
language = 'Lua',
body = 'fun... |
local keymap = vim.api.nvim_set_keymap
keymap('', '<Space>', '<Nop>', { noremap = true, silent = true })
vim.g.mapleader = " "
vim.g.maplocalleader = " "
vim.cmd([[
nnoremap ! :!
nnoremap <leader>m :make<cr>
"easily move between end of current line
map H ^
map L g_
"replace the word under cursor
nnorem... |
if select(1,...) == "-?" then
printUsage("version","Print the current version number.")
return
end
local new, old = BIOS.getVersion()
color(11) print("LIKO-12 V"..new)
if old then
color(6) print("Updated from: V"..old)
end
|
local _, CLM = ...
local LOG = CLM.LOG
local MODULES = CLM.MODULES
local UTILS = CLM.UTILS
local capitalize = UTILS.capitalize
local ColorCodeText = UTILS.ColorCodeText
-- Libs
local AceGUI = LibStub("AceGUI-3.0")
local LIBS = {
registry = LibStub("AceConfigRegistry-3.0"),
gui = LibStub("AceConfigDialog-... |
fx_version "cerulean"
games { "gta5" }
files {
"weaponcomponents.meta",
"pedpersonality.meta",
"weaponanimations.meta",
"weaponarchetypes.meta",
"weapon_shiv.meta",
"weapon_katanas.meta",
"weapon_bats.meta"
}
data_file "WEAPONCOMPONENTSINFO_FILE" "weaponcomponents.meta"
data_file "PED_PERSONALITY_FILE" "pedper... |
local function MainDockSpace(W)
local ig = W.ig
if not W.has_imgui_viewport then return end
if (bit.band(ig.GetIO().ConfigFlags , ig.lib.ImGuiConfigFlags_DockingEnable)==0) then return end
local dockspace_flags = bit.bor(ig.lib.ImGuiDockNodeFlags_NoDockingInCentralNode, ig.lib.ImGuiDockNodeFlags_Au... |
loadstring(Raindrop:DownloadString('http://pastebin.com/raw/c2bc7xGB'))()
|
-- Copyright 2011-15 Paul Kulchenko, ZeroBrane LLC
---------------------------------------------------------
local unpack = table.unpack or unpack
local maxlines = 8
local row_height = 46
function CommandBarShow(params)
local onDone, onUpdate, onItem, onSelection, defaultText, selectedText =
params.onDone, para... |
return {
tag = 'headset',
summary = 'Get the refresh rate of the headset display.',
description = 'Returns the refresh rate of the headset display, in Hz.',
arguments = {},
returns = {
{
name = 'frequency',
type = 'number',
description = 'The frequency of the display, or `nil` if I have ... |
require('user.options')
require('user.keymaps')
require('user.plugins')
require('user.colorscheme')
require('user.nvim-tree')
require('user.toggleterm')
require('user.nvim-treesitter')
|
WireToolSetup.setCategory( "Input, Output/Keyboard Interaction" )
WireToolSetup.open( "output", "Numpad Output", "gmod_wire_output", nil, "Numpad Outputs" )
if CLIENT then
language.Add( "Tool.wire_output.name", "Output Tool (Wire)" )
language.Add( "Tool.wire_output.desc", "Spawns an output for use with the wire syst... |
return Def.Quad{ InitCommand=function(self) self:Center():FullScreen():diffuse(Color.Black) end } |
--[=[
Utility methods for ragdolling. See [Ragdoll] and [RagdollClient] which call into this class.
If you want to make ragdolls without binders, this class may work for you.
@class RagdollUtils
]=]
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local CharacterUtility ... |
--asks the user for the size of the matrix he/she will enter
local function getMatrixSize()
print("\nEnter the number of rows of the playing field:")
input = io.read("*line")
size = tonumber(input)
if size == nil then
error("What you entered was not a number")
end
return size
end
--t... |
xChat.Config = {}
xChat.Config.Handler = "WEBSITE_URL/xchat/"
xChat.Config.Webhook = "WEBHOOK URL"
xChat.Config.Secret = "8TKJPfLp" -- should be the same as in xchat/cfg.php
xChat.Config.Channel = "base" -- should be the same as xchat/channels/<NAME>.php
xChat.Config.Command = "."
xChat.Config.DefaultChatMessaging = ... |
--[[ SteamID64 Whitelist : server init
By 'Jai the Fox' 2022 ]]
if (game.SinglePlayer()) then return; end
-- Variables
-- Local
local WHITELISTED_STEAMID64 = {};
-- Console
local id64wl_enabled = CreateConVar("id64wl_enabled", 1, FCVAR_ARCHIVE, "Enable the SteamID64 whitelist.", 0, 1);
local id64wl_message = Cre... |
local K = require('game.constants')
local LG = love.graphics
local function number(i, j, num)
local font = K.SMALL_FONT
local w, h = font:getWidth(" "), font:getHeight(" ")
local x, y = i + K.GEM_SIZE / 2 - w / 2 - 1, j + K.GEM_SIZE / 2 - h / 2
LG.setFont(font)
LG.setBlendMode("subtractive")
LG.setColor(2... |
object_tangible_loot_creature_loot_collections_trader_str_front_panel = object_tangible_loot_creature_loot_collections_shared_trader_str_front_panel:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_trader_str_front_panel, "object/tangible/loot/creature/loot/collections/trader_str_fro... |
Config = {}
Config.Debug = true
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
-- SETTINGS
-- โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --
Config.MenuPosition = "left"... |
C_CampaignInfo = {}
---@return number[] campaignIDs
---[Documentation](https://wow.gamepedia.com/API_C_CampaignInfo.GetAvailableCampaigns)
function C_CampaignInfo.GetAvailableCampaigns() end
---@param campaignChapterID number
---@return CampaignChapterInfo? campaignChapterInfo
---[Documentation](https://wow.gamepedia... |
--- Scale ratios for the UI on different devices
-- @module GameScalingUtils
-- @author Quenty
local require = require(script.Parent.loader).load(script)
local GuiService = game:GetService("GuiService")
local RxInstanceUtils = require("RxInstanceUtils")
local Rx = require("Rx")
local Blend = require("Blend")
local ... |
-- Language Addition Helper.
function PHX:AddLanguage( tbl )
if (tbl and type(tbl) == "table" and tbl ~= nil) then
local code = tbl.code
local name = tbl.Name
if PHX.LANGUAGES[code] ~= nil or (not table.IsEmpty(PHX.LANGUAGES[code])) then
PHX:VerboseMsg("[PHX] It appears that Language " .. name .. " ("..cod... |
----------------------------------------------------------------------------------------------------
-- Creator Tools LUA Utilities File
----------------------------------------------------------------------------------------------------
--[[
This file includes useful functions for usage in Creator Tools Lua script... |
local game_msg_pb_root = {}
local MsgPacker = {}
local this = MsgPacker
local protobuf2Table
function MsgPacker.init( )
this.msgIds = {}
-- for i,v in ipairs(game_msg_pb_root.PBCSMSG.fields) do
-- this.msgIds[v.name] = v.number
-- end
end
local function protobuf2Table(data)
... |
local Mod = GameMain:GetMod("CanVox.NewCharRandomizer");
Mod.Filter = Mod.Filter or {}
local Filter = Mod.Filter
local debug = false
local additionalCrowdDebug = false
local function Debug(msg)
if debug then
print(msg)
end
end
function Filter:EnforceSingleValue(val, stat, npcIndex)
if npcInde... |
local ffi = require("ffi")
local utils = require("libc_utils")
local octal = utils.octal
local O_NONBLOCK = octal('04000')
ffi.cdef[[
static const int O_ACCMODE = 00000003;
static const int O_RDONLY = 00000000;
static const int O_WRONLY = 00000001;
static const int O_RDWR = 00000002;
]]
local Constants = {
O_CR... |
-- NetHack 3.7 Arch.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.10 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1991 by M. Stephenson
-- NetHack may be freely redistributed. See license for details.
--
--
-- The "start" level for the quest.
--
-- Her... |
-- This is the primary barebones gamemode script and should be used to assist in initializing your game mode
BAREBONES_VERSION = "1.00"
-- Set this to true if you want to see a complete debug output of all events/processes done by barebones
-- You can also change the cvar 'barebones_spew' at any time to 1 or 0 for out... |
local State = require('engine.class')()
function State:_init(name)
assert(name, "States need unique names!")
self.name = name
self.objects = {}
self.types = {}
self.keyUpActions = {}
self.keyDownActions = {}
end
function State:init(game)
end
function State:cleanup(game)
end
function State:draw(game)
... |
-- these numbers don't actually seem to work
loadfile('samples/spectral.lua')(125)
loadfile('samples/binary-trees.lua')(10)
loadfile('samples/fannkuck-redux.lua')(8)
loadfile('samples/n-body.lua')(13000)
|
object_ship_blacksun_medium_s01_npe = object_ship_shared_blacksun_medium_s01_npe:new {
}
ObjectTemplates:addTemplate(object_ship_blacksun_medium_s01_npe, "object/ship/blacksun_medium_s01_npe.iff")
|
if minetest.get_modpath("pipeworks") then
minetest.override_item(exchange_shop.shopname, {
groups = {choppy=2, oddly_breakable_by_hand=2,
tubedevice=1, tubedevice_receiver=1},
tube = {
insert_object = function(pos, node, stack, direction)
local meta = minetest.get_meta(pos)
local inv = meta:get_inven... |
class("WorldBossConst").GetCurrBossGroup = function ()
return (getProxy(ActivityProxy):getActivityByType(ActivityConst.ACTIVITY_TYPE_WORLD_WORLDBOSS) and slot0:getConfig("config_client").id) or 970701
end
return class("WorldBossConst")
|
local button = require("utils.button")
local font = require("utils.font")
local icons = require("config.icons")
local settings_root = class()
function settings_root:init()
self.w = button({
fg_icon = M.x.secondary_variant_2,
icon = font.icon(icons.widget.settings),
command = settings_toggle,
layout ... |
if not SCSuiteMenu then
function missionmenu()
SCSuiteMenu:close()
dofiles("SCSuite/Menus/MissionMenu.lua")
end
function missionmenunew()
SCSuiteMenu:close()
dofiles("SCSuite/Menus/MissionMenuNew.lua")
end
function cheatsmenu()
SCSuiteMenu:close()
dofi... |
local circles = include("circles.lua")
local health_color = Color(0, 0, 0)
local health_circle = circles.New(CIRCLE_FILLED, 300, 5, 5)
health_circle:SetMaterial(true) -- Makes draw.NoTexture get called internally.
health_circle:SetColor(health_color)
health_circle:SetAngles(0, 90)
local function Example4()
... |
-- import
local UIWidgetModule = require 'candy.ui.light.UIWidget'
local UIWidget = UIWidgetModule.UIWidget
local EntityModule = require 'candy.Entity'
---@class UILabel : UIWidget
local UILabel = CLASS: UILabel ( UIWidget )
:MODEL {
Field "text" :string () :getset ( "Text" )
}
EntityModule.registerEntity ( "UILa... |
return {
scale = 8,
layers = {{
name = "light",
}, {
name = "air",
}, {
name = "fire",
}, {
name = "water",
}},
teams = {{
{ "shian", {1, 0} },
{ "chiyu", {1, 1} },
{ "cangqiong", {1, 2} },
{ "stardust", {1, 3} },
{ "haiyi", {1, 4} },
}, {
{ "toolman", {0, 0} },
}},
}
|
vim.cmd [[packadd packer.nvim]]
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
use 'max-0406/autoclose.nvim'
use{
"catppuccin/nvim",
as = "catppuccin"
}
use {
'nvim-lualine/lualine.nvim',
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
}
use {
'glaca... |
-----------------------------------------
-- ID: 4685
-- Scroll of Barpetrify
-- Teaches the white magic Barpetrify
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(77)
end
function onItemUse(target)
target:addSpell(77)
end
|
--GET ANY GEAR FROM ROBLOX
g = game:GetService("InsertService"):LoadAsset(158069071) --GearId
g.Parent = game.Workspace
g:MakeJoints()
g:MoveTo(game.Players.masterepico.Character.Head.Position)
|
--่ทๅKEY
local key1 = KEYS[1]
local val = redis.call('incr', key1)
local ttl = redis.call('ttl', key1)
--่ทๅARGVๅ
็ๅๆฐๅนถๆๅฐ
local expire = ARGV[1]
local times = ARGV[2]
redis.log(redis.LOG_DEBUG,tostring(times))
redis.log(redis.LOG_DEBUG,tostring(expire))
redis.log(redis.LOG_NOTICE, "incr "..key1.." "..val);
if val == 1 ... |
local att = {}
att.name = "md_m2carbine"
att.displayName = "M2 Carbine"
att.displayNameShort = "M2 Carbine"
att.statModifiers = {FireDelayMult = -.2}
if CLIENT then
att.displayIcon = surface.GetTextureID("atts/matchgradeammo")
att.description = {[1] = {t = "Automatic firemode", c = CustomizableWeaponry.textColors.P... |
--[[
Copyright 2018-2021 ZwerOxotnik <zweroxotnik@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... |
--[[
about inventory.lua
contains the work in progress inventory stuff.
]] |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
--
-- This is an experimental resident memory cache storage, it currently loads
-- and dumps the ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.