content
stringlengths
5
1.05M
--[[ Author : Levva of EU Khadgar Version 0.01 Initial release of Concept code to curseforge Version 0.02 Working XML export of basics character details Version 0.03 Now can export Character Basics Version 0.04 Can now export basic equipped items Version 0.05 Now exports model, talents, professions and...
-- Adapted from https://github.com/torch/sdl2-ffi/blob/master/dev/create-init.lua print[[ -- Do not change this file manually -- Generated with dev/create-init.lua local ffi = require 'ffi' local C = ffi.load('fftw3') local ok, Cf = pcall(function () return ffi.load('fftw3f') end) if not ok then print('Warning: ...
module("shadows.Room", package.seeall) Object = require("shadows.Object") Shadows = require("shadows") Room = setmetatable( {}, Object ) Room.__index = Room Room.__type = "Room" Room.R, Room.G, Room.B, Room.A = 0, 0, 0, 255 function Room:new() return setmetatable( {}, Room ) end function Room:SetColor(R, G, B...
---------------------------- -- Lighting World ---------------------------- local light = { directional_light = {}, } ---------------------------- -- Light Source Functions ---------------------------- function light:init(scene) local l = self.directional_light local res = cvar.shadow_r...
#!/usr/bin/env lua --- lua websocket equivalent to test-server.c from libwebsockets. -- using copas as server framework package.path = '../src/?.lua;../src/?/?.lua;'..package.path local copas = require'copas' local socket = require'socket' print('Open browser:') print('file://'..io.popen('pwd'):read()..'/index.html') ...
diseased_blurrg = Creature:new { objectName = "@mob/creature_names:diseased_blurrg", socialGroup = "self", faction = "", level = 37, chanceHit = 0.41, damageMin = 320, damageMax = 350, baseXp = 3551, baseHAM = 8800, baseHAMmax = 10800, armor = 0, resists = {140,140,-1,150,150,25,150,-1,-1}, meatType = "mea...
Object = {} function Object:prototype(o) o = o or {} -- create table if user does not provide one setmetatable(o, self) self.__index = self return o end function Object:new(o) local obj = self:prototype(o) obj:initialize() return obj end function Object:print() print('an Object') end function Object:ini...
return { AnimationId = "rbxassetid://-", Available = true, ImageIcon = "rbxgameasset://-", IsActiveSkill = true, PercentagePerLevel = { 0.2, 0.21, 0.22, 0.23, 0.24, 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31, 0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, ...
-------------------------------------------------------------------------------- -- General Util Methods -------------------------------------------------------------------------------- Utils = { } -- various added randomness methods function Utils.random(range) if (range == nil) then range = 1.0 end return LuaBr...
local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = Condition(CONDITION_PARALYZE) condition:setParameter(CONDITION_PARAM_TICKS, 50*1000) condition:setFormula(0, -140, 0, -220) combat:addCondition(condition) function onCastSpell(creature, var) if not combat:execute(c...
newTalentType{ type="combat/unarmed", name = "unarmed", description = "Unarmed combat techniques" } newTalent{ name = "Disarm", short_name = "Disarm", type = {"combat/unarmed", 1}, info = "Disarm target", mode = "activated", } newTalent{ name = "Throw", short_name = "Throw", type = {"com...
levels[1]={timeBetweenParticleCreation=150,weightBreakForTwoStars=500,weightBreakForThreeStars=800,numPortExplosionsWeight=100,numDiverterExplosionsWeight=25,numAntimatterExplosionsWeight=0,numParticlesInSinkWeight=0,numParticlesInPrisonWeight=100,background="1",particleSpeed=2,maxParticles=1,particlesToComplete=1,powe...
object_static_worldbuilding_mechanical_hoth_elevator = object_static_worldbuilding_mechanical_shared_hoth_elevator:new { } ObjectTemplates:addTemplate(object_static_worldbuilding_mechanical_hoth_elevator, "object/static/worldbuilding/mechanical/hoth_elevator.iff")
local StringUtils = require("lib.string-utils") local Board = {} function Board:new(o) o = o or { rows = {} } setmetatable(o, self) self.__index = self return o end function Board:to_string() local result = {} for _, row in ipairs(self.rows) do table.insert(result, table.c...
AddCSLuaFile("shared.lua") AddCSLuaFile("cl_init.lua") include("shared.lua") local offset = 8 local positionsX = {offset, -offset, offset, -offset} local positionsY = {offset, offset, -offset, -offset} local function grow(box) local level = box.level if level == nil then level = 0 end if level == 5 then for i = 1...
local B58 = {} local ossl = require("openssl") local bn = require("openssl").bn --from https://github.com/leafo/lua-base58/blob/master/base58/init.lua local alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" function B58.enc(val) local bi = bn.text(val) local alphLen = alphabet:len() --...
local wibox = require ('wibox') local gears = require ('gears') local color_manipulation = require ('util.color') local lighten = color_manipulation.lighter local beautiful = require ('beautiful') local dpi = beautiful.xresources.apply_dpi local old_bg local nw = function(arg) local bg_container =...
main_quest = true markers = { { map = "res/map/highland/highland.tmx", position = {1850, 1425}, npc = "npc_zephyra", step = 0 }, { map = "res/map/highland/highland.tmx", position = {1850, 1300}, step = 1 }, { map = "res/map/highland/highland.tmx", position = {625, 500}, step = 2...
module 'mock' CLASS: AnimatorKeyFieldEnum ( AnimatorValueKey ) :MODEL{ Field 'value' :selection( 'getTargetFieldEnumItems' ) :string(); --Variation } function AnimatorKeyFieldEnum:__init() self.value = false end function AnimatorKeyFieldEnum:setValue( value ) self.value = value end function AnimatorKeyFieldEn...
--- === hs.fs === --- --- Access/inspect the filesystem --- --- Home: http://keplerproject.github.io/luafilesystem/ --- --- This module is produced by the Kepler Project under the name "Lua File System" local module = require("hs.fs.internal") module.volume = require("hs.fs.volume") --- hs.fs.volume.allVolumes([showH...
reaper.SetExtState("reaticulate", "command", "set_default_channel=14", false)
local KUI, E, L, V, P, G = unpack(select(2, ...)) local AZB = KUI:NewModule("AzeriteButtons", "AceEvent-3.0") local S = E:GetModule('Skins') local LCG = LibStub('LibCustomGlow-1.0') function AZB:CreateAZbuttons() if not E.db.KlixUI.armory.azeritebtn then return end local function Head_OnEnter(self) GameTooltip:Set...
-- Farewell Infortality. -- Version: 2.82 -- Instances: local PrisonBreakerv15 = Instance.new("ScreenGui") local openmain = Instance.new("Frame") local open = Instance.new("TextButton") local main = Instance.new("Frame") local title = Instance.new("TextLabel") local close = Instance.new("TextButton") local police = Ins...
print("Entity.x: ") callit()
if (SERVER) then AddCSLuaFile ("shared.lua") SWEP.Weight = 5 SWEP.AutoSwitchTo = false SWEP.AutoSwitchFrom = false end if (CLIENT) then SWEP.PrintName = "Explosive Grenade" SWEP.Slot = 3 SWEP.SlotPos = 1 SWEP.DrawAmmo = false SWEP.DrawCrosshair = false SWEP.ViewModelFOV = 65 SWEP...
-- MIT License -- -- Copyright (c) 2020 Maxim Biro <nurupo.contributions@gmail.com> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the...
ITEM.name = "Armour base" ITEM.model = "models/Items/hevsuit.mdl" ITEM.width = 1 ITEM.height = 1 ITEM.desc = "An Item" ITEM.category = "Armour" ITEM.ability = { } ITEM.traits = { hp = 0, hpregen = 0, armorrating = 0, shield = 0, shieldregen = 0, damage = 0, } ITEM.armorCategory = "helmet" if (CLIENT) then ...
ROW, COLUMN, ICONS = 1, 2, 3 function window(title, contents, w, h, x, y) --insert window title after content type local padding, hi if contents[1] == COLUMN then goto column elseif contents[1] == ICONS then goto icons end ::column:: if true then local padding ...
-- Copyright (C) K8sCat<k8scat@gmail.com> -- https://open.feishu.cn/document/ukTMukTMukTM/uETOwYjLxkDM24SM5AjN#9f534005 local json = require("cjson") local jwt = require("resty.jwt") local http = require("resty.http") local ngx = require("ngx") local ok, new_tab = pcall(require, "table.new") if not ok or type(new_tab...
local status_ok, _ = pcall(require, "nvim-tree.config") if not status_ok then return end -- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` local tree_cb = require("nvim-tree.config").nvim_tree_callback vim.g.nvim_tree_respect_buf_cwd = 1 require("nvim-tree").set...
function InitGuiThemes () gVegaWidgetFont = CreateFont_Ogre("TrebuchetMSBold",14) GuiThemeSetDefaultParam("Text",{ font=gVegaWidgetFont,fontsize=14, textparam={r=0,g=0,b=0} }) local bordermatrix_32_widemid = MakeSpritePanelParam_BorderPartMatrix(GetPlainTextureGUIMat("window.png"),32,32,0,0, 0,0, 12,8,12, 12,8...
local function check_sort(sort, not_comparison_based) it("should handle edge cases", function() local list = {} sort(list) assert(next(list) == nil) list = { 1 } sort(list) assert(list[1] == 1) end) local function test_lists(less_than) for _ = 1, 100 do local list, copy = {}, {} for index = 1, 10...
files_project(_ROOTPATH .. '/components/citizen-server-impl/') { 'include/state/**.h', 'src/state/**.h', 'src/state/**.cpp', } vpaths { ["src/state/*"] = _ROOTPATH .. '/components/citizen-server-impl/src/state/**', ["include/state/*"] = _ROOTPATH .. '/components/citizen-server-impl/include/state/**', } defines {...
local app = app local libcore = require "core.libcore" local Class = require "Base.Class" local Unit = require "Unit" local Pitch = require "Unit.ViewControl.Pitch" local GainBias = require "Unit.ViewControl.GainBias" local Gate = require "Unit.ViewControl.Gate" local Encoder = require "Encoder" local SamplePool = requ...
--[[ -- added by passion @ 2021/5/28 18:42:38 -- SpritePanel视图层 -- 注意: -- 1、成员变量最好预先在__init函数声明,提高代码可读性 -- 2、OnEnable函数每次在窗口打开时调用,直接刷新 -- 3、组件命名参考代码规范 --]] local SpritePanelView = BaseClass("SpritePanelView", UIBaseView) local base = UIBaseView local SpriteTable = require("Config.Data.SpriteTable") local SpriteSkill=re...
return { tag = 'playArea', summary = 'Get the size of the play area.', description = 'Returns the size of the play area, in meters.', arguments = {}, returns = { { name = 'width', type = 'number', description = 'The width of the play area, in meters.' }, { name = 'depth', ...
function getLap() -- 133 final return data.lap-128 end function getMilisec() return data.currMiliSec - 300 end function getCheckpoint() local checkpoint = data.current_checkpoint local lapsize = data.lapsize local lap = data.lap-128 -- local rank = data.rank/2+1 return checkpoint + (lap)*lapsi...
TILESIZE = 10 MAPSIZE = 50 player = {} fruit = {} game_lost = false local Direction = { UP = 0, DOWN = 1, RIGHT = 2, LEFT = 3 } function love.load() player.x = 0 player.y = 0 player.bodyParts = {} player.cooldown = 50 player.direction = Direction.DOWN fruit:spawn() end functi...
local speedometericon = Material( "golden_hud/speedometer.png" ) local fuelicon = Material( "golden_hud/fuel.png" ) local engineicon = Material( "golden_hud/engine.png" ) local mphtext, speed hook.Add("HUDPaint", "GoldenHudV1.HudSpeedometer", function() if GoldenHUDV1.SpeedometerHud == false then return end loc...
antimage_mana_void_lua = class({}) LinkLuaModifier( "modifier_generic_stunned_lua", "lua_abilities/generic/modifier_generic_stunned_lua", LUA_MODIFIER_MOTION_NONE ) -------------------------------------------------------------------------------- -- AOE Radius function antimage_mana_void_lua:GetAOERadius() return self...
local M = {} local Path = require("plenary.path") local config = require("coverage.config") local signs = require("coverage.signs") local util = require("coverage.util") --- Returns a list of signs to be placed. -- @param json_data from the generated report M.sign_list = function(json_data) local sign_list = {} for...
local gruvbox_theme = require('vacuumline.theme.gruvbox') local M = {} --TODO: Put short config in options instead of hardcoding in segments -- Keep passing mode but use it as key local function get_default_options(theme) return { separator = { segment = { left = '', right = '' }...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf/protobuf" local NPCLIKEITEM_PB = require("NpcLikeItem_pb") local ITEMBRIEF_PB = require("ItemBrief_pb") module('NpcFeelingOneNpc_pb') NPCFEELINGONENPC = protobuf.Descriptor(); local NPCFEELINGONENPC_NPCID_FIELD = protobuf.FieldDescriptor();...
-- file: fixture_mapped_include_2.lua
local mRapidView,mJavaBridge = ... local mTabDataMap local mViewPager local mTabView = {} local mItemWidth = 0 local mCurrentItem = 0 local mTabItem = {} local mLastExposureTab = 0 function load() local params = {} params["test_req_data"] = "1" mJavaBridge:request(1, params, onRequestListener) end function onReq...
--[[ © CloudSixteen.com do not share, re-distribute or modify without permission of its author (kurozael@gmail.com). Clockwork was created by Conna Wiles (also known as kurozael.) http://cloudsixteen.com/license/clockwork.html --]] local COMMAND = Clockwork.command:New("StaticRemove"); COMMAND.tip = "Remove stat...
local kp = game.Players.LocalPlayer:WaitForChild("AddKeyBind") local bind = { ["name"] = "mine"; ["key"] = string.byte("m"); ["on_down"] = false; ["errors"] = {}; ["bind"] = function() local m = Instance.new("Model", Workspace) m.Name = "Mine" local mine = Instance.new("Part", m) mine.FormFactor = "Custom" mine...
-- Copyright 2016-2021 Gabriel Dubatti. See LICENSE. -- BASED ON: file_diff module, Copyright 2015-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- local Proj = Proj local Util = Util Proj.MARK_ADDITION = _SCINTILLA.next_marker_number() Proj.MARK_DELETION = _SCINTILLA.next_marker_number() Proj.MARK_MODIFICATION...
modifier_custom_passive_xp = modifier_custom_passive_xp or class({}) function modifier_custom_passive_xp:IsPermanent() return true end function modifier_custom_passive_xp:IsHidden() return true end function modifier_custom_passive_xp:IsPurgable() return false end function modifier_custom_passive_xp:OnCreated() if...
local TableUtil = require("sebaestschjin-tts.TableUtil") local XmlUiElement = require("sebaestschjin-tts.xmlui.XmlUiElement") local XmlUiFactory = require("sebaestschjin-tts.xmlui.XmlUiFactory") ---@class seb_XmlUi_Toggle : seb_XmlUi_Element ---@class seb_XmlUi_Toggle_Static ---@overload fun(element: tts__UIToggleEle...
slot0 = class("ShipProfileMainExCvBtn", import(".ShipProfileCvBtn")) slot0.Init = function (slot0, slot1, slot2, slot3, slot4) slot0.shipGroup = slot1 slot0.isLive2d = slot3 slot0.skin = slot2 slot7 = i18n("word_cv_key_main") .. slot4 .. "Ex" if pg.character_voice["main" .. slot4] then slot0.voice = Clone(slot...
print('loading 2') function func2() print('two') end
--[[------------------------------------------------------------------ PICKUP ICONS Default HL2 ammunition and item icons ]]-------------------------------------------------------------------- if CLIENT then local TEXTURE = surface.GetTextureID("hl2rbhud/a_icons1"); local DATA = {texture = TEXTURE, w = 256, h...
return {'februaristaking','februari','februarimaand','februarinummer','febe','februaristakingen','febes'}
local types = { -- unknown = require("datatypes.codecs.unknown"), string = require("datatypes.codecs.string"), boolean = require("datatypes.codecs.boolean"), int32 = require("datatypes.codecs.int32"), float32 = require("datatypes.codecs.float32"), float64 = require("datatypes.codecs.float64"), ...
return {'elwin','elwins'}
local CombuctorSet = Combuctor:GetModule("Sets") local L={} L["Combuctor_Type_Farming"] = "Farming" L["Combuctor_Type_All"] = "All" L["Combuctor_Type_Seeds"] = "Seeds" L["Combuctor_Type_Tools"] = "Tools" L["Combuctor_Type_Vegetable"] = "Crops" L["Combuctor_Type_Special"] = "Special Ingredients" L["Combuctor_Farming_To...
local _M = { _VERSION = "0.1.0" } function _M.get_data() local sock, err = ngx.req.socket() if sock then ngx.say("got the request socket") else ngx.say("failed to get the request socket: ", err) return end local data, err, part = sock:receive(17) if data then ngx.say("rec...
-- print all prime numbers less than or equal to the given number print("Enter a number:") n = io.read("n") for i=2,n do prime = true for j=2,i-1 do if i % j == 0 then prime = false break end end if prime then print(i) end end
display.setDefault( "background", 0.5, 0.5, 0.5 ) local memoryBitmap = require "plugin.memoryBitmap" local tex = memoryBitmap.newTexture({ width=100, height=100, -- format="rgb", }) local mask = memoryBitmap.newTexture({ width=100, height=100, format="mask", }) display.newImage( tex.filename , tex.baseDir, d...
function start_tree() node_num = 0; leaf_num = 0; end function node() node_num = node_num + 1 if l then leaf_num = leaf_num + 1 end end function stop_tree() print(string.format("%d nodes (%d leaves)", node_num, leaf_num)) end
local Queue = Object:extend() function Queue:new(t) self.queue = t or {} end function Queue:peek() return self.queue[1] end function Queue:poll() return table.remove(self.queue, 1) end function Queue:add(obj) table.insert(self.queue, obj) end function Queue:isEmpty() return #self.queue == 0 end...
-- Helpers for reading floor-wide conditions from memory require 'math' local conditionHelpers = {} local clearTurns = 0x021C6A6E -- Start of the "turns of weather left" block local permaClearTurns = 0x021C6A7E -- Start of the "artificial permaweather" block local weatherTurnsSize = 2 -- 2 bytes each function co...
-- ~~~~~~~~ -- hud.lua -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In-game HUD elements for Mars Lander -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ local HUD = {} HUD.font = love.graphics.newFont(20) -- TODO: Create variables in a init or create function -- Fuel indicator elements HUD.fuel = {x = 20, y = 40, width = SC...
--Encapsulate SimpleAudioEngine to AudioEngine,Play music and sound effects. local M = {} function M.stopAllEffects() cc.SimpleAudioEngine:getInstance():stopAllEffects() end function M.getMusicVolume() return cc.SimpleAudioEngine:getInstance():getMusicVolume() end function M.isMusicPlaying() return cc.S...
-- Scripts pour régler l'horloge quand on est connecté en WIFI -- Permet aussi de 'compresser' le unix time afin de prendre moins de place dans les strings print("\n set_time.lua zf191030.2026 \n") --source: https://www.freeformatter.com/epoch-timestamp-to-date-converter.html ztime2019 = 1546300800 -- Unix time...
minetest.register_node("sn_furniture:barrel", { description = "Barrel", paramtype2 = "facedir", place_param2 = 0, tiles = { "mp_barrel.png", --top "mp_barrel.png", --bottom "mp_barrel.png^[transformR90", --right "mp_barrel.png^[transformR90", --left "mp_barrel_top.png", --back "mp_barrel_top.p...
local function setleds(data) if pd.board()=="BONFIRE_ARTY" then port=0x80000000 cpu.w8(port+4,0) -- set port to output mode cpu.w8(port,data) elseif pd.board()=="BONFIRE_ULX3S" then pio.port.setdir(pio.OUTPUT,pio.PA) pio.port.setval(data,pio.PA) else -- "simulate" LEDS on console io.wri...
-- WRAPPER FUNCTION FOR REQUIRE [BEGIN] -------------------------------------- return function(global) print "[LOAD] -> client/Game/PlayerState/Reducer" -- PRIVATE DATA AND HELPER FUNCTIONS [BEGIN] --------------------------------- local Assert = global.Assert local Require = global.Require local logger = Req...
local Template = { } local metatable = { } function Template.shallow_clone(source_table) fail_if_missing(source_table) local target_table = { } for source_key, source_value in pairs(source_table) do target_table[source_key] = source_value end return target_table end function Templ...
---@gendoc local SkyBoxUtils = Ballance2.Game.Utils.SkyBoxUtils local GameSettingsManager = Ballance2.Services.GameSettingsManager local GameSoundType = Ballance2.Services.GameSoundType local DebugUtils = Ballance2.Utils.DebugUtils local KeyCode = UnityEngine.KeyCode local Time = UnityEngine.Time local Yield = UnityEn...
local utils = require("mod.test_room.data.map_archetype.utils") local Item = require("api.Item") local Charagen = require("mod.elona.api.Charagen") local Itemgen = require("mod.elona.api.Itemgen") local IItemFromChara = require("mod.elona.api.aspect.IItemFromChara") local smithing = { _id = "smithing" } function s...
local M = {} M.base_30 = { white = "#D9D7D6", darker_black = "#000a0e", black = "#061115", -- nvim bg black2 = "#0d181c", one_bg = "#131e22", one_bg2 = "#1c272b", one_bg3 = "#242f33", grey = "#313c40", grey_fg = "#3b464a", grey_fg2 = "#455054", light_grey = "#4f5a5e", red = "#DF5B6...
----------------------------------- -- Area: Lufaise Meadows -- NPC: ??? - Amaltheia spawn -- !pos 347.897 -10.895 264.382 24 ----------------------------------- local ID = require("scripts/zones/Lufaise_Meadows/IDs") require("scripts/globals/npc_util") ----------------------------------- function onTrade(player, npc...
function removeColorCoding ( name ) return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end function pm(playerSource, command, arg1,...) function findPlayerByName(playerPart) local pl = removeColorCoding(getPlayerFromName(removeColorCoding(playerPart))) if ( pl ) then return pl end ...
local spell = Spell("instant") function spell.onCastSpell(creature, variant) return creature:conjureItem(3147, 3148, 3) end spell:name("Destroy Field Rune") spell:words("adito grav") spell:group("support") spell:vocation("druid;true", "elder druid;true", "paladin;true", "royal paladin;true", "sorcerer;true", "master...
-- Minetest 0.4 mod: stairs -- See README.txt for licensing and other information. -- Global namespace for functions stairs = {} -- Register aliases for new pine node names minetest.register_alias("stairs:stair_pinewood", "stairs:stair_pine_wood") minetest.register_alias("stairs:slab_pinewood", "stairs:slab_pine_...
local default_config= { amount= 500, min_size= 8, max_size= 8, min_fall= 4, max_fall= 16, lumax= 4, spin= 360, } confetti_config= create_setting("confetti config", "confetti_config.lua", default_config, -1) confetti_config:load() local confetti_data= confetti_config:get_data() local real_rand= math.random loca...
local BasePlugin = require "kong.plugins.base_plugin" local metrics = require "kong.plugins.gluu-metrics.metrics" local basic_serializer = require "kong.plugins.log-serializers.basic" local handler = BasePlugin:extend() handler.PRIORITY = 14 -- Your plugin handler's constructor. If you are extending the -- Base Plugi...
---------------------------- -- Bunny Hop -- -- Created by Skeyler.com -- ---------------------------- include("shared.lua") ENT.Type = "anim" ENT.Base = "base_anim" local Laser = Material("skeyler/vgui/solidbeam.png") local Col1 = Color(0, 255, 0, 255) local Col2 = Color(255, 0, 0, 255)...
-- * _JOKER_VERSION: 0.0.1 ** Please do not modify this line. --[[---------------------------------------------------------- Joker - Jokes, Riddles, Fun Facts, & Other Tomfoolery ---------------------------------------------------------- * * ADDING YOUR OWN JOKES: * Be aware that modifying this file incorrectl...
FPGAHelperHTML = [[ <!DOCTYPE html> <html> <head> <style> body {background-color: white; margin-right: 30px;} h1 {font-family: Verdana, sans-serif;} h2, h3, h4 {margin-bottom: 0; font-family: Verdana, sans-serif;} p {margin-top: 0; font-family: Verdana, sans-serif;} th, td {font-fami...
-- This metatable is not "local" because we need the reference from inside it number_mt = { -- Only the add operation is functional -- If we wanted a true reactive number system -- we would had to add all the overloads __add = function(lhs, rhs) -- We create a new table which contain a single f...
--[[ Humor API Awesome Humor API. The version of the OpenAPI document: 1.0 Contact: mail@humorapi.com Generated by: https://openapi-generator.tech ]] -- inline_response_200_5 class local inline_response_200_5 = {} local inline_response_200_5_mt = { __name = "inline_response_200_5"; __index = inline_res...
local self = {} GLib.Event = GLib.MakeConstructor (self) function self:ctor () self.Listeners = {} self.ShouldSuppressEvents = false end function self:dtor () self:ClearListeners () end function self:Clone (clone) clone = clone or self.__ictor () clone:Copy (self) return clone end function self:Copy (sour...
-- default/trees.lua -- support for MT game translation. local S = default.get_translator local random = math.random -- -- Grow trees from saplings -- -- 'can grow' function function default.can_grow(pos) local node_under = minetest.get_node_or_nil({x = pos.x, y = pos.y - 1, z = pos.z}) if not node_under then ...
deathspeaker_xunra_rune_of_haste_modifier = class({}) function deathspeaker_xunra_rune_of_haste_modifier:OnCreated( kv ) self.haste_damage = self:GetAbility():GetSpecialValueFor("haste_damage") self.haste_knockback = self:GetAbility():GetSpecialValueFor("haste_knockback") if not IsServ...
export['cel.label'] { [[Factory for the label metacel]]; functiondef['cel.label(t)'] { [[Creates a new label]]; code[=[ cel.label { text = string, onchange(self) = function, --TODO implement this } ]=]; params = { param.string[[text - text.]]; param['function'...
-- LPeg.re LPeg lexer. local lexer = require('lexer') local token, word_match = lexer.token, lexer.word_match local P, R, S, B = lpeg.P, lpeg.R, lpeg.S, lpeg.B local lex = lexer.new('tpl') local name = lexer.alpha * (P('_') + lexer.alnum)^0 -- Functions. lex:add_rule('func_call', token(lexer.OPERATOR, '@')...
local bin = require "bin" local io = require "io" local jdwp = require "jdwp" local stdnse = require "stdnse" local nmap = require "nmap" local shortport = require "shortport" local string = require "string" description = [[ Attempts to exploit java's remote debugging port. When remote debugging port is left open, it...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) ESX.RegisterUsableItem('bread', function(source) local xPlayer = ESX.GetPlayerFromId(source) xPlayer.removeInventoryItem('bread', 1) TriggerClientEvent('esx_status:add', source, 'hunger', 200000) TriggerClientEvent('esx_basicneeds:onEat'...
-- ============================================================= -- Copyright Roaming Gamer, LLC. 2009-2015 -- ============================================================= -- License -- ============================================================= --[[ > SSK is free to use. > SSK is free to edit. > ...
--- Turbo.lua Websocket module. -- -- Websockets according to the RFC 6455. http://tools.ietf.org/html/rfc6455 -- -- The module offers two classes: -- * WebSocketHandler - WebSocket support for turbo.web.Application. -- * WebSocketClient - Callback based WebSocket client. -- Both classes uses the mixin class WebSocket...
local wx = require "wx" local ffi = require "ffi" local gl = require "glewgl" local glu = require "glutils" local utils = require "utils" local r3e = require "r3e" local r3etrace = require "r3etrace" local math3d = require "math3d" local v3,v4,m4 = math3d.namespaces.v3,math3d.namespaces.v4,math3d.namespaces.m4 loca...
local cjson = require("cjson") local _M = {} _M.mysql = {} function _M.mysql.replace_meta_value(store,key,value) return store:update({ sql = "replace into meta SET `key`=?, `value`=?", params = { key, value } }) end function _M.mysql.select_meta_value(store,key) return store:query({ sql = "select `value` f...
local super = Class("Dialog", Window, function() static.ModalityType = { MODELESS = 1, DOCUMENT_MODAL = 2, APPLICATION_MODAL = 3, TOOLKIT_MODAL = 4, } static.DEFAULT_MODALITY_TYPE = static.ModalityType.APPLICATION_MODAL static.ModalExclusionType = { NO_EXCLUDE = 1, APPLICATION_EXCLU...
blip = exports.customblips:createCustomBlip( 1187.8785400391,-2040.1242675781,25,25,"csgo2.png",1000) exports.customblips:setCustomBlipRadarScale(blip,0.8,0.8) function dxDraw(text, x, y, w, h, clr, scale, font, alignX, alignY, clip, wordBreak, postGUI ) if not wh then wh = 1.5 end dxDrawText ( text, x - wh, y - wh,...
#!/usr/bin/lua --- -- @author wesen -- @copyright 2020 wesen <wesen-ac@web.de> -- @release 0.1 -- @license MIT -- for k, v in pairs(_G.arg) do print(k, v) end print(#_G.arg) --[[ local application = Application() application:run() --]]
package("bc") set_kind("binary") set_homepage("https://www.gnu.org/software/bc/") set_description("Arbitrary precision numeric processing language") set_license("GPL-3.0-or-later") set_urls("https://ftp.gnu.org/gnu/bc/bc-$(version).tar.gz", "https://ftpmirror.gnu.org/bc/bc-$(version)....
-- arm.lua local math = require("math") module(...) local presets = { pickup = {elevator=0.08, wrist=false}, carry = {elevator=0.08, wrist=true}, slot = {elevator=0.08, wrist=true}, low = {elevator=0.08, wrist=true}, middle = {elevator=3.00, wrist=true}, high = {elevator=5.85, wrist=true}, ...