content
stringlengths
5
1.05M
local awful = require('awful') local wibox = require('wibox') local gears = require('gears') local beautiful = require('beautiful') local dpi = beautiful.xresources.apply_dpi panel_visible = false local format_item = function(widget) return wibox.widget { { { layout = wibox.layout.align.vertical, expand ...
-- coffee -- imported into farming_plus from farming redo by MTDad minetest.register_craftitem("farming_plus:coffee_beans", { description = "Coffee Beans", inventory_image = "farming_coffee_beans.png", groups = {food_coffee = 1}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(ite...
local gen_code = require 'Q/UTILS/lua/gen_code' local plpath = require "pl.path" local srcdir = "../gen_src/" local incdir = "../gen_inc/" if ( not plpath.isdir(srcdir) ) then plpath.mkdir(srcdir) end if ( not plpath.isdir(incdir) ) then plpath.mkdir(incdir) end local num_produced = 0 local val_qtypes = { 'I1', 'I2...
return { todo = { category = "lua", filename = "core-run", status = "idea", }, main = { { category = "mkiv", filename = "context", loading = "parent", status = "okay", }, { category = "lus", comment = "stub file for context", filename = "context", loading = "parent", ...
width = 1920 height = 1080 fov = 60 fullscreen = false --seed = 452 //this seed has a broken level 2 seed = 42069 master_volume = 50
--[=[ lmapm binding for mapm decimal number support df(lo,hi,scale) -> d; to be used with getdecimal() sdf(d,scale) -> lo,hi; to be used with setdecimal() mapm_meta -> the metatable of all mapm numbers ismapm(x) -> true|false; the mapm library should provide this, but since it doesn't... xsqlvar:getmapm() ->...
--*********************************************************** --** THE INDIE STONE ** --*********************************************************** require "ISUI/ISPanelJoypad" ---@class ISSleepDialog : ISPanelJoypad ISSleepDialog = ISPanelJoypad:derive("ISSleepDialog") function...
slot.set_layout("rooset", "text/html") app.html_title.title = _"Login" ui.section(function() ui.tag{ tag = 'div', attr = { class = 'mx-auto max-w-xs w-full space-y-8' }, content=function() ui.tag{ tag = 'h2', attr = { class = 'mt-6 text-center text-xl font-extrabold ...
local class = require('middleclass') local HasSignals = require('HasSignals') local Group = class('Group'):include(HasSignals) function Group:initialize() HasSignals.initialize(self) local app = require("app.App"):instance() self.listGroupInfo = {} -- k:groupId v: packageInfo() self.listAdminMsg = {} -- k:groupI...
local MUSIC = { tracks = { love.audio.newSource("music/S_MUSIC1.it", "stream"), love.audio.newSource("music/S_MUSIC2.it", "stream"), love.audio.newSource("music/S_MUSIC3.it", "stream") }, curr_track = love.math.random(1,3), curr_volume = 2.0 } love.audio.setVolume(MUSIC.curr_volume) function MUSIC...
local class = require 'core.class' local request_key = require 'http.request_key' local web = require 'web' local cache_profile = { key = request_key.new '$m:$p', time = 600 } local c1 = 0 local c2 = 0 local CounterHandler = class { get = function(self) c1 = c1 + 1 self.w:write('Counter ...
local configs = require 'lspconfig/configs' local util = require 'lspconfig/util' local server_name = "azure_pipelines_ls" local bin_name = "azure-pipelines-language-server" configs[server_name] = { default_config = { cmd = {bin_name, "--stdio"}; filetypes = {"yaml"}; root_dir = util.root_pattern(".git"...
--[[ function TriggerFirstPersonTracer(weapon, endPosition) if weapon and weapon:GetParent() then local player = weapon:GetParent() local tracerStart = weapon.GetBarrelPoint and weapon:GetBarrelPoint() or weapon:GetOrigin() local tracerVelocity = GetNormalizedVector(endPosition - trac...
local Prop = {} Prop.Name = "Nº19 Rua Gole de Skol" Prop.Cat = "House" Prop.Price = 340 Prop.Doors = { Vector(-190, 402.90899658203, -138), Vector(-305, 63, -10), Vector(-305, 63, 118), } GM.Property:Register( Prop )
local dev = GetSelf() local update_time_step = 0.1 make_default_activity(update_time_step) --update will be called 10 times per second local sensor_data = get_base_data() local alti = sensor_data.getRadarAltitude()*3.28084 local AircraftIsOnGround = get_param_handle("AircraftIsOnGround") -- Variables local L_SM...
-- Molch, an implementation of the axolotl ratchet based on libsodium -- -- ISC License -- -- Copyright (C) 2015-2016 1984not Security GmbH -- Author: Max Bruckner (FSMaxB) -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the ...
--海晶乙女の潜逅 -- --Script by JustFish function c100426035.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,100426035+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c100426035.target) ...
require'nvim_lsp'.vuels.setup{}
function SpawnPoints() return { constructionworker = { { worldX = 31, worldY = 25, posX = 205, posY = 277, posZ = 0 } }, fireofficer = { { worldX = 31, worldY = 25, posX = 205, posY = 277, posZ = 0 } }, parkranger = { { worldX = 31, worldY = 25, posX = 205, posY = 277, posZ = 0 } }, policeoffi...
-- Main initialization code for the library. if not Library then Library = {} end if not Library.LibSimpleWidgets then Library.LibSimpleWidgets = {} end
AddCSLuaFile() ENT.PrintName = "Horde Spawner" ENT.Base = "base_anim" ENT.Type = "anim" ENT.Spawnable = true ENT.AdminOnly = true ENT.Category = "Bio-Annihilation II" function ENT:Initialize() self:SetNoDraw(true) self:DrawShadow(false) if SERVER then if #navmesh.GetAllNavAreas() == 0 then ...
addEvent ( "hideDummy", true ) addEvent ( "onClientElementPropertyChanged" ) local thisResource = getThisResource() -- basic types list local basicTypes = { "object","vehicle","pickup","marker","blip","colshape","radararea","ped","water", } -- basic types lookup table local isBasic = {} for k, theType in ...
function Police_AddMoney(amt) local money = GAMEMODE.PoliceMoney if amt == nil then return end if money + amt < 0 then GAMEMODE.PoliceMoney = 0 else GAMEMODE.PoliceMoney = money + amt end Police_Update() end function Police_HasMoney(amt) if GAMEMODE.PoliceMoney >= amt then return true end return fals...
rawset(_G, "lfs", false) require "busted_resty"() require "busted.runner"({ standalone = false })
local gfx = playdate.graphics imagetable = gfx.imagetable.new("assets/test") TestInit = {} function TestInit:jsonTests() local emptyFunc = self.sprite.states.default.onFrameChangedEvent expected = { default = { name = "default", firstFrameIndex = 1, framesCount = 16, animationStar...
local Player = {} Player.__index = Player function Player:new(world) local this = { world = world or love.physics.newWorld(0, 0), body = love.physics.newBody(world, love.graphics.getWidth() / 2, love.graphics.getHeight() / 2, "dynamic"), shape = love.physics.newCircleShape(26) } ...
Coa2Screenplay = ScreenPlay:new { M1_REFUSED = 1, M1_ACTIVE = 2, M1_RETURN = 3, M1_COMPLETE = 4, M2_REFUSED = 5, M2_ACTIVE = 6, M2_RETURN = 7, M2_COMPLETE = 8, M3_4_ACTIVE = 9, M3_4_COMPLETE = 10, M5_REFUSED = 11, M5_ACTIVE = 12, M5_COMPLETE = 13, commanders = { {"coa2_imperial_commander", "dantooine",...
while not _G["LoadoutKey"] do Task.Wait() end local LoadoutKey = _G["LoadoutKey"] local ReliableEvents = require(script:GetCustomProperty("ReliableEvents")) while not _G["DataBase"] do Task.Wait() end local NETWORKSPAWN = script:GetCustomProperty("NetworkSpawn") local OVERRIDE = script:GetCustomProperty("Override") l...
-- plugin for automatically uploading images to lpix.org -- options: -- user lpix login name -- pass lpix password -- gallery lpix gallery to upload to -- notimg if true, use lpix thumbnails rather than [timg] -- noerror if true, continue on error rather than aborting compilation local lpix = require "lpix...
-- -- SymbolResults Widget/View. -- @copyright Jefferson Gonzalez -- @license MIT -- local style = require "core.style" local Widget = require "widget" local Label = require "widget.label" local Line = require "widget.line" local ListBox = require "widget.listbox" local Server = require "plugins.lsp.server" local Lsp...
--[[ Poppercam - Occlusion module that brings the camera closer to the subject when objects are blocking the view Refactored for 2018 Camera Update but functionality is unchanged - AllYourBlox --]] --[[ Camera Maths Utilities Library ]]-- local Util = require(script.Parent:WaitForChild("CameraUtils")) local Playe...
mg.write("HTTP/1.1 200 OK\r\n") mg.write("Connection: close\r\n") mg.write("Content-Type: text/html\r\n") mg.write("\r\n") mg.write("<!DOCTYPE html>\r\n") mg.write("<html>\r\n") mg.write("<head>\r\n") mg.write(" <meta charset=\"UTF-8\">\r\n") mg.write(" <title>HTTP reflector</title>\r\n") mg.write([[ <style type="te...
return {test='A'}
local tiny = require("lib.tiny") local animation = tiny.processingSystem() animation.filter = tiny.requireAll("animations", "animationState") function animation:process(e, dt) -- update both dirs so we don't get weird animation jitters when changing direction e.drawable.animations[-1][e.animationState]:update...
EditorAIRemove = EditorAIRemove or class(MissionScriptEditor) EditorAIRemove.LINK_ELEMENTS = {"elements"} function EditorAIRemove:create_element() self.super.create_element(self) self._element.class = "ElementAIRemove" self._element.values.elements = {} self._element.values.use_instigator = false self._element.val...
function onUpdateDatabase() print("> Updating database to version 12 (storing players record and message of the day in database)") local motdNum = "" local motd = "" local lastMotdFile = io.open("lastMotd.txt", "r") if lastMotdFile then motdNum = lastMotdFile:read() motd = lastMotdFile:read() lastMotdFile:...
module("luci.controller.uugamebooster", package.seeall) function index() if not nixio.fs.access("/etc/config/uugamebooster") then return end local page page = entry({"admin", "services", "uugamebooster"}, cbi("uugamebooster/uugamebooster"), ("UU GameAcc"), 99) page.dependent = false page.acl_depends = {"luci-...
local f = CreateFrame('Frame') local tooltip function f:ADDON_LOADED(addon) if addon == 'Blizzard_AuctionUI' then -- FEATURE: tint icons of recipes that you already know on the AH post_hook('AuctionFrameBrowse_Update', function() local offset = FauxScrollFrame_GetOffset(BrowseScrollFram...
local rex = require "toy.regex" -- "image.jpg" -> "jpg" -- "/opt/map/image.jpg" -> "jpg" -- "/opt/map/image.jpg.png" -> "png" -- "/opt/map/image.jpg%d" -> "nil" -- "/opt/map/image.jpgd" -> "jpgd" -- "/opt/map/imagejpg" -> nil -- "/opt/map/" -> nil local function get_extension(str) local times = 0 local ans loca...
---@class tf.TFEExecutor --- Eager Executor APIs. local M = class('tf.TFEExecutor') local base = require('tf.base') local lib = base._libeagerex local Status = require('tf.c.TFStatus') function M:ctor(hdl) assert(hdl and not ffi.isnullptr(hdl)) self.handle = hdl end --- Deletes the eager Executor without wait...
C_PetBattles = {} ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_PetBattles.GetBreedQuality) ---@param petOwner number ---@param slot number ---@return number quality function C_PetBattles.GetBreedQuality(petOwner, slot) end ---[Documentation](https://wowpedia.fandom.com/wiki/API_C_PetBattles.GetIcon) ---@...
local utils = require "git.utils" local M = {} local function process_abbrev_head(gitdir, head_str, path) if not gitdir then return head_str end if head_str == "HEAD" then return vim.fn.trim(M.run_git_cmd("cd " .. path .. " && git --no-pager rev-parse --short HEAD")) end return head_str end funct...
local Assets = require(script.Parent.Parent:WaitForChild("Assets")) local Actions = require(script.Parent.Parent:WaitForChild("Actions")) return function(player, assetId) return function(store) if Assets.byId[assetId] then store:dispatch(Actions.ASSET_GIVE(player, assetId)) else ...
local Weather = {} Weather.Identity = "gui_weather" Weather.Locale = { ["name"] = { ["english"] = "Weather", ["russian"] = "Погода", ["chinese"] = "天氣" }, ["desc"] = { ["english"] = "Manage the weather", ["russian"] = "Управляем погодой", ["chinese"] = "簡單的換天氣" }, ["selectbox"] = { ["english"] = "Sel...
require 'misc' function tailtest() wait(1000) local font <close> = Font('media/mono.ttf',14) local tl = TextLog( app.renderList, 51, 51, Color(0, 0, 0xff, 0x80), Color(0xff, 0xff, 0x00, 0xff), font, 500, 10) pt(tl.bounds) pt(growRect(tl.bounds)) local frame <close> = Rectangle(Color(0,0,0xff,0x...
-- Copyright 2018 lean <coolsnowwolf@gmail.com> -- Licensed to the public under the Apache License 2.0. module("luci.controller.webadmin", package.seeall) function index() if not nixio.fs.access("/etc/config/uhttpd") then return end local page page = entry({"admin", "system", "webadmin"}, cbi("webadmin"), _("...
local t = Def.ActorFrame { Def.Sprite{ Texture="MusicWheelItem Song NormalPart/Normal/new 2x1 (doubleres).png"; InitCommand=cmd(finishtweening;draworder,1); OnCommand=function(self) self:diffusealpha(0):sleep(1):diffusealpha(1) if ThemePrefs.Get("LightMode") == true then self:pause...
-- See LICENSE for terms local mod_SignHeight local mod_LowerHigher local next = next local point = point local function GetHeight() local height = 0 if mod_LowerHigher then height = -(mod_SignHeight * 10) else height = mod_SignHeight * 10 end -- need a point obj for sign_offset return point(0, 0, height)...
for i = 1, 100 do if i % 5 == 0 && i % 3 == 0 then print("FizzBuzz") elseif i % 3 == 0 then print("Fizz") elseif i % 5 == 0 then print("Buzz") else print(i) end end
require "app.uicommon.WADemoListView" require "app.wasdklua.WACallback" require "app.uicommon.WADemoLuaAlertView" require "app.uicommon.WADemoItem" require "app.wasdklua.WASocialProxy" WADemoVKFriendList = class("WADemoVKFriendList", function() local listView = WADemoListView:new() return listView end) fu...
print(vim.inspect(vim.api.nvim_get_hl_defs(0)))
return require "lzmq.timer"
--[[ Name: cl_menu_character_create.lua ----------------------------------------------------------------- -- @package VrZn - Custom Gamemode (SRP BASE) -- @author Nodge -- @build Beta 1 ----------------------------------------------------------------- ]]-- surface.CreateFont( "CharacterDisplayFont" , {...
local ffi = require( "ffi" ) ffi.cdef[[ // devilu ilu | DevIL Image Library Utilities enum { ILU_VERSION_1_7_8 = 1, ILU_VERSION = 178 , ILU_FILTER = 0x2600 , ILU_NEAREST = 0x2601 , ILU_LINEAR = 0x2602 , ILU_BILINEAR = 0x2603 , ILU_SCALE_BOX = 0x2604 , ILU_SCALE_TRIANGLE =...
-- For the gnomes!!! local VERSION = "0.5.3"; local _G = getfenv(0) -- Libraries local string = _G.string; local format = string.format local gsub = string.gsub local next = next local wipe = wipe local GetItemInfo = _G["GetItemInfo"]; local GameTooltip = GameTooltip -- ------------------------------------------------...
local fn = vim.fn local api = vim.api local icons = dm.icons local job = require "dm.job" local function center(str) return "%=" .. str .. "%=" end -- Custom statusline for special builtin/plugin buffers. ---@type table<string, string|function> local special_buffer_line = { dashboard = function(ctx) return ce...
--------- [ Element Data returns ] --------- local function getData( theElement, key ) local key = tostring(key) if isElement(theElement) and (key) then return exports['[ars]anticheat-system']:callData( theElement, tostring(key) ) else return false end end local function setData( theElement, key, value, sy...
-- Ledger -- The MIT License © 2016 Arthur Corenzan LEDGER = "Ledger" -- -- -- local INCOME_COLOR = ZO_ColorDef:New("11EE99") local EXPENSE_COLOR = ZO_ColorDef:New("EE2222") local function Ledger_FormatCurrencyVariation(value) local formattedValue = ZO_CurrencyControl_FormatCurrency(zo_abs(value)) if valu...
local Plugin = script.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local ContextGetter = require(Plugin.Core.Util.ContextGetter) local getBrushtool = ContextGetter.getBrushtool local BrushtoolConsumer = Roact.PureComponent:extend("BrushtoolConsumer") function BrushtoolConsumer:in...
--[[ Parallelized chargram counting program Copyright Xiang Zhang 2016 Usage: th count_chargram.lua [input] [output_prefix] [grams] [chunks] [threads] [batch] [buffer] Comment: This program is a map-reduce like process. During map, each sample is separated into character-ngrams. During reduce, these character-n...
-- -- CommandLineLiveMinify.lua -- -- For testing: Lets you enter lines of text to be minified to verify the -- correctness of their implementation. -- local util = require'Util' local Parser = require'ParseLua' local Format_Mini = require'FormatMini' local ParseLua = Parser.ParseLua local PrintTable = util.PrintTab...
ITEM.name = "Anomalous Bolt" ITEM.model ="models/jessev92/stalker/weapons/bolt_w.mdl" ITEM.description = "A bolt with anomalous properties." ITEM.longdesc = "While bolts are a dime a dozen in the zone, this one appears to be different. As you hold it in your hand, it seems to apply little clockwise fashion, as if it wa...
object_static_item_lair_wooden_tent = object_static_item_shared_lair_wooden_tent:new { } ObjectTemplates:addTemplate(object_static_item_lair_wooden_tent, "object/static/item/lair_wooden_tent.iff")
workspace "Noctis" architecture "x64" configurations { "Debug", "Release", "Dist" } startproject "Sandbox" outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" -- include directories relative to root folder (solution directory) IncludeDir = {} IncludeDir["GLFW"] = "Noctis/vendor/GLFW/include"...
local CAS = game:GetService("ContextActionService") local Input = {} local CHORDS = 4 local KEYS = { Enum.KeyCode.Left, Enum.KeyCode.Down, Enum.KeyCode.Up, Enum.KeyCode.Right } --[[ Binds input and generates the hit keys. ]] function Input.bind(callback) for i=1,CHORDS do CAS:BindAction(i, callback, false, KEY...
function lerp(a, b, weight) weight = math.clamp(weight, 0, 1) return (1 - weight) * a + a * weight end local BezierCurve = {} BezierCurve.__index = BezierCurve function BezierCurve:length() return self._LUT[self._LUTLength] end function BezierCurve:pointAtTime(t) t = math.clamp(t, 0, 1) local on...
object_mobile_dressed_dark_jedi_master_male_zab_02 = object_mobile_shared_dressed_dark_jedi_master_male_zab_02:new { } ObjectTemplates:addTemplate(object_mobile_dressed_dark_jedi_master_male_zab_02, "object/mobile/dressed_dark_jedi_master_male_zab_02.iff")
local flow = require("ludobits.m.flow") local M = {} function M.window_callback(self, event, data) if event == window.WINDOW_EVENT_FOCUS_LOST then if html5 and self.loaded_proxy then self.pause_proxy = true end elseif event == window.WINDOW_EVENT_FOCUS_GAINED then if html5 ...
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then return; end local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_shutnik" ) local utils = require(GetScriptDirectory() .. "/util") local mutil = requ...
project "Ext_ResourceIO" kind "StaticLib" language "C++" cppdialect "C++17" location (path.join(repoRoot, "Build/Extensions/%{prj.name}")) targetdir (path.join(repoRoot, "Bin/%{cfg.platform}/%{cfg.buildcfg}/Extensions")) edge.configurePCH( "include/SAMP-EDGEngine/Ext/ResourceIO/ResourceIOPCH.hpp", "src/Res...
local test = require "simple_test" local fs = require "fs"
-- Copyright 2006-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE. -- RHTML LPeg lexer. local l = lexer local token, style, color, word_match = l.token, l.style, l.color, l.word_match local P, R, S = l.lpeg.P, l.lpeg.R, l.lpeg.S module(...) -- Embedded in HTML. local html = l.load('hypertext') _lexer = html -...
-- 辅助支持表 local cx_help = require"CX_AEG插件辅助函数库" -- 创建合适的函数环境 cx_help.table.merge(_G,cx_help) -- 脚本名 script_name = "函数库示例" -- 脚本描述 script_description = "用于示例函数库功能" -- 作者 script_author = "晨轩°" -- CX插件扩展值 -- 脚本签名(同一脚本签名请保持不变,签名不能含特殊字符,防止配置冲突) script_signature = "com.chenxuan.核心测试" -- 版本号 script_version = "1.0.0dev" -- 关...
local lspconfig = require 'lspconfig' lspconfig.solargraph.setup{ settings = { solargraph = { diagnostics = true, completion = true } }, on_attach = attacher }
workspace "LostEngine" architecture "x64" configurations{ "Debug", "Release", "Distribution" } platforms { "x64" } outputdir = "%{cfg.buildcfg}-x64" project "Lost" location "Lost" kind "StaticLib" language "C++" targetdir("Bin/" .. outputdir .. "/%{...
-- Object manager for Ramuthra's Plane -- By Saldor010 local objectManager = {} local factions = { ["champions"] = { ["name"] = "Champions", ["allies"] = {}, ["enemies"] = {}, }, ["monsters"] = { ["name"] = "Monsters", ["allies"] = {}, ["enemies"] = {}, }, } factions.champions.enemies = factions.mons...
return { PlaceObj("ModItemCode", { "name", "StupidModEditorDeletingShit1", "FileName", "Code/AddEntities.lua", }), PlaceObj("ModItemCode", { "name", "StupidModEditorDeletingShit2", "FileName", "Code/ReplaceObjectEntities.lua", }), PlaceObj("ModItemCode", { "name", "StupidModEditorDeletingShit3", "FileN...
local Ans = select(2, ...); local TextInput = Ans.UI.TextInput; local ConfirmDialog = Ans.Object.Register("ConfirmDialog", Ans.UI); function ConfirmDialog:Show(frame, message, confirmText, onConfirm, data) local dialog = frame.Dialog; if (not dialog) then return; end local cancelButton = dialo...
ENT.Base = "base_gmodentity" ENT.Type = "anim" ENT.PrintName = "Boiler" ENT.Category = "Alcohol Mod" ENT.Author = "TheAsian EggrollMaker" ENT.Contact = "theasianeggrollmaker@gmail.com" ENT.Purpose = "" ENT.Instructions = "Boils the grain and hops." ENT.Spawnable = true ENT.AdminSpawnable = true func...
local skynet = require "skynet" local socket = require "socket" local httpd = require "http.httpd" local urllib = require "http.url" local sockethelper = require "http.sockethelper" local string = string local cjson = require "cjson" local utils = require "utils" local function response(id, code, msg, ...) utils.p...
--[[------------------------------------------------------------------ NUMERIC DISPLAY Displays a number with a label ]]-------------------------------------------------------------------- if CLIENT then -- Parameters local NUM_W, NUM_H = 19, 28; local SNUM_W, SNUM_H = 9, 14; local TRANSPARENT = Color(0, ...
------------------------------------------------------ -- datatypes.lua -- -- List of datatypes for regular SQL. -- These may become applications. ------------------------------------------------------ ------------------------------------------------------ -- types {} -- -- Different datatypes for different database...
-- 最近使用表情映射表 ExpressionRecentData2 = class(GameData); ExpressionRecentData2.Delegate = { }; ExpressionRecentData2.ctor = function(self) end ExpressionRecentData2.dtor = function(self) end ExpressionRecentData2.initData = function(self) self.m_originalSizeClassic = 0; self.m_origi...
project "Terrain Server" language "C#" kind "ConsoleApp" files { "../src/terrainServer/**.cs" } links { "System", "OpenTK", "Terrain", "Util", "Engine", "Events", "Network" } location "terrainServer" vpaths { ["*"] = "../src/terrainServer" }
chipid = node.chipid() wifi.setmode(wifi.SOFTAP) cfg={} cfg.ssid="GoFish_" .. chipid cfg.pwd="password" wifi.ap.config(cfg) print('SSID:' .. cfg.ssid) print('Password:' .. cfg.pwd) cfg={} cfg.ip="192.168.73.1" cfg.netmask="255.255.255.0" cfg.gateway="192.168.73.1" wifi.ap.setip(cfg) ip = wifi.ap.getip() print('Add...
--------------------------------------------------------------------------------------------------- -- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0042-transfer-invalid-image-rpc.md -- -- Requirement summary:TBD -- -- Description: -- In case: -- 1. Mobile app requests AddCommand wit...
@dofile "samples/def_defmacro.lua" @defmacro reverse_names do return macros.token_filter(next_char, function(t, v) if t == '<name>' then return t, v:reverse() else return t, v end end) end abc = 1 @reverse_names tnirp(cba)
return PlaceObj('ModDef', { 'title', "Vegetation Rebalanced", 'description', 'Forestation Plants will now receive a boost of up to +400% based on current Atmosphere, Temperature, Water, and Vegetation levels.\nForestation Plant will also not stop contributing to global Vegetation once Vegetation reaches 40%.\n\nVeget...
local container = {} -- [Item] -- local item = table.deepcopy(data.raw["module"]["speed-module-3"]) item.effect = { speed = { bonus = settings.startup["t4-modules-speed-item-effect-speed"].value }, consumption = { bonus = settings.startup["t4-modules-speed-item-effect-consumption"] ...
-- Reference: http://www.r-5.org/files/books/computers/algo-list/realtime-3d/Christer_Ericson-Real-Time_Collision_Detection-EN.pdf -- Page 132-134: Distance to Closest Point on OBB squared local ClosestPointOnOBBToPoint = require(script.Parent.Parent.ClosestPointOn.OBBToPoint) local function PointToOBB(point, center,...
local playsession = { {"firstandlast", {359845}}, {"wotwotvodka", {112564}}, {"Stryker159", {139885}}, {"CmonMate497", {331838}}, {"kendoctor", {359114}}, {"Maggnz", {358536}}, {"cahesar", {358132}}, {"Chesmu", {354733}}, {"tyssa", {280929}}, {"yulingqixiao", {302173}}, {"BallisticGamer04", {345643}}, {"Zor...
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** require "ISUI/ISCollapsableWindow" ---@class PlayerClimateDebug : ISCollapsableWindow Player...
local lazytable= { ngx_request = { headers = function() return ngx.req.get_headers() end, cmd_meth = function() return ngx.var.request_method end, rip = function() return (ngx.req.get_headers()['X-Real-IP']) end, cip = function() return ngx....
local mod = get_mod("CustomHUD") -- luacheck: ignore get_mod local mod_data = { name = mod:localize("mod_name"), description = mod:localize("mod_description"), is_togglable = false, } mod.SETTING_NAMES = { CUSTOM_HUD_METHOD = "custom_hud_method", HP_BAR_SIZE_METHOD = "hp_bar_size_method", HP_BAR_SIZE_SCAL...
local queue_name = KEYS[1] local job = redis.call("RPOP", queue_name) if job then local job_details = cjson.decode(job) job_details['blah'] = 25 local updated_job = cjson.encode(job_details) redis.log(redis.LOG_NOTICE, "found job "..job_details['job_id']) redis.call("SET", "AGNER:RESERVED:"..job_details['job_...
require(script.Parent.BaseClass) local ClassHandler = require(script.Parent.ClassHandler) return function(RDM) return ClassHandler:Get("String", RDM) end
-- Sends units away into the wild -- https://gist.github.com/IndigoFenix/8543616 args={...} local targetUnit=dfhack.gui.getSelectedUnit() if targetUnit == nil and args[2] ~= 'all' then local targetUnit = df.unit.find(tonumber(args[2])) end group = args[1] if args[2] == 'all' then all = true else...
--[[ /////// ////////////////// /////// PROJECT: MTA iLife - German Fun Reallife Gamemode /////// VERSION: 1.7.2 /////// DEVELOPERS: See DEVELOPERS.md in the top folder /////// LICENSE: See LICENSE.md in the top folder /////// ///////////////// ]] CCasino = inherit(CShop) function CCasino:constructor(dim) --...
pg = pg or {} pg.world_event_complete = { { event_id = 200, id = 1, map_icon = "buff_a2", chapter_num = 6, desc = "适应性-破坏增加", tips_icon = { { 12, 2000000, 5 } }, event_reward_item = {}, event_reward_slgbuff = { 401, 5 } }, { event_id = 200, id = 2, map_icon = "buff_h...
local require = require local Dot = require 'std.class'('ActionNode', require 'data.skill.template.one_shot') function Dot:_new(args) local node = self:super():_new() node._period_ = args[1] node._count_ = args[2] return node end function Dot:start() self.period_ = self._period_ self.count_ =...