content stringlengths 5 1.05M |
|---|
--[[ Copyright (c) 2009 Peter "Corsix" Cawley
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 rights to
use, copy, modify, merge, publish, dis... |
local Modules = game:GetService("Players").LocalPlayer.PlayerGui.AvatarEditorInGame.Modules
local Rodux = require(Modules.Packages.Rodux)
local Cryo = require(Modules.Packages.Cryo)
local SetAssetTypeCursor = require(Modules.AvatarExperience.AvatarEditor.Actions.SetAssetTypeCursor)
return Rodux.createReducer({}, {
... |
print "Test begins"
gfx_colour_grade(`neutral.lut.png`)
gfx_option('POST_PROCESSING', false)
print "Making class"
gfx_hud_class_add(`Rect`, {
colour = vec(1, 0, 0);
init = function (self)
self.needsParentResizedCallbacks = true
end;
parentResizedCallback = function (self, psize)
print(... |
local AddonName, AddonTable = ...
AddonTable.waycrest = {
-- Heartsbane Triad
159133, -- Jagged Iris Sica
159669, -- Solena's Watchful Collection
159340, -- Bracers of Dreadful Maladies
159449, -- Soulwarped Vambraces
159272, -- Twisted Sisters Handwraps
159450, -- Girdle of Burgeoning Apat... |
local cjson = require "cjson"
local setmetatable = setmetatable
local cjson_array_mt = cjson.array_mt
-- this lib fork from resty cjson, only modified some compatible codes
-- more details please check it.
cjson.decode_array_with_array_mt(true)
-- 默认允许稀疏数组
cjson.encode_sparse_array(true)
local json = {
null =... |
--***********************************************************
--** ROBERT JOHNSON **
--** UI display with a question or text **
--** can display a yes/no button or ok btn **
--***********************************************************
---@class ... |
BASEWARS_CHOSEN_LANGUAGE = "ENGLISH"
BaseWars.Config = {
Forums = "http://steamcommunity.com/groups/100acrebb/discussions",
SteamGroup = "http://steamcommunity.com/groups/100acrebb",
Ents = {
Electronics = {
Explode = true,
WaterProof = false,
},
SpawnPoint = {
Offset = Vector(0, 0, 16),
},
... |
VULKAN_SDK = os.getenv("VULKAN_SDK")
IncludeDir = {}
IncludeDir["GLFW"] = "%{wks.location}/Cherenkov/vendor/GLFW/include"
IncludeDir["Glad"] = "%{wks.location}/Cherenkov/vendor/Glad/include"
IncludeDir["ImGui"] = "%{wks.location}/Cherenkov/vendor/imgui"
IncludeDir["glm"] = "%{wks.location}/Cherenkov/vendor/glm"
Includ... |
local nmap = require "nmap"
local packet = require "packet"
local ipOps = require "ipOps"
local bin = require "bin"
local stdnse = require "stdnse"
local target = require "target"
local table = require "table"
local math = require "math"
local string = require "string"
description = [[
Discovers routers that are runni... |
return require(script.Parent.Parent["evaera_promise@3.2.1"]["promise"])
|
fx_version 'cerulean'
games {'gta5', 'rdr3'}
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
description 'PoodleChat'
files {
'html/index.html',
'html/index.css',
'html/config.default.js',
'html/config.js',
'html/App.js... |
Config = {}
Config.DefaultSkin = 'default'
Config.SpecialCars = { 'FUTO', 'BLISTA2' }
Config.PlaySpeedChime = true |
--- 模块功能:通话功能测试.
-- @author miuser
-- @module call
-- @license MIT
-- @copyright miuser
-- @release 2019.05.10
module(...,package.seeall)
require"cc"
require"audio"
require"gpio"
require"event"
require"sms"
function Dial(no)
log.info("calling "..no)
cc.dial(no)
end
function Hang()
c... |
-- NetHack 3.6 Tourist.des $NHDT-Date: 1432512784 2015/05/25 00:13:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.8 $
-- Copyright (c) 1989 by Jean-Christophe Collet
-- Copyright (c) 1991,92 by M. Stephenson, P. Winner
-- NetHack may be freely redistributed. See license for details.
--
des.level_init({ style = "solidf... |
-- rFilter: core/buff
-- zork, 2016
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- CreateBuff
-----------------------------
function rFilter:CreateBuff(spellid,unit,size,point,visibility,alpha,desaturate,caster)
local button = L.F.Create... |
function love.conf(t)
t.window.resizable = true
end |
---@class LuvitPackage
---@field name string
---@field version string
---@field description string
---@field tags string[]
---@field license string
---@field homepage string
---@field dependencies string[]
---@field files string[]
local package = {
author = {
---@type string
name = nil,
--... |
-- A clickable area of an entity.
local Clickable = {}
Clickable.x = 0
Clickable.y = 0
Clickable.w = 64
Clickable.h = 64
Clickable.click = function() end
function Clickable:new(o)
o = o or {}
setmetatable(o, {__index = self})
return o
end
-- A collection of clickable areas for an entity.
local Clickables = {}
fu... |
object_mobile_mun_quest_maurader = object_mobile_shared_mun_quest_maurader:new {
}
ObjectTemplates:addTemplate(object_mobile_mun_quest_maurader, "object/mobile/mun_quest_maurader.iff")
|
local shell = {}
function shell.parse()
return {}, {}
end
package.preload.shell = function() return shell end
|
-- table-utils.lua: small table utilities
-- This file is a part of lua-nucleo library
-- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license)
local setmetatable, error, pairs, ipairs, tostring, select, type, assert
= setmetatable, error, pairs, ipairs, tostring, select, type, assert
-- Warning... |
local rule_form
local openclash = "openclash"
local NXFS = require "nixio.fs"
local SYS = require "luci.sys"
local HTTP = require "luci.http"
local DISP = require "luci.dispatcher"
local UTIL = require "luci.util"
local fs = require "luci.openclash"
local uci = require "luci.model.uci".cursor()
local g,h={}
for n,m ... |
-----------------------------------------------------------------------------
-- XPath module based on LuaExpat
-- Description: Module that provides xpath capabilities to xmls.
-- Author: Gal Dubitski
-- Version: 0.1
-- Date: 2008-01-15
-----------------------------------------------------------------------------
----... |
--- @class GIMesh
--- Renderable mesh object, can be used to create models on the fly. The only way to create your own IMesh object is to call Mesh.
--- 🦟 **BUG**: [IMeshes only respond to one projected texture.](https://github.com/Facepunch/garrysmod-issues/issues/2301)
local GIMesh = {}
--- Builds the mesh from ... |
-- main.lua
--
function love.load()
love.graphics.setNewFont(12)
love.graphics.setBackgroundColor(255,255,255)
love.graphics.setBlendMode("alpha")
--
text = "Hello World"
--
x_offset = 0
y_offset = 0
wanted_x_offset = 0
wanted_y_offset = 0
offset_frames = 60
--
tile_size = 32
... |
--
-- Utility module for creating and managing Fluid inventories
-- That is a list of fluids in a inventory like arrangement,
-- think item-based inventories but for fluids.
--
local FluidStack = yatm_fluids.FluidStack
local FluidInventory = foundation.com.Class:extends("FluidInventory")
local ic = FluidInventory.inst... |
function Div(el)
if el.classes[1] == "warning" then
-- insert element in front
table.insert(
el.content, 1,
pandoc.RawBlock("latex", "\\noindent\\fcolorbox{red}{yellow}{\\minipage[t]{\\linewidth}"))
-- insert element at the back
table.insert(
el.content,
pandoc.RawBlock("latex"... |
envelopAnimLayout=
{
name="envelopAnimLayout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=258,height=106,visible=1,fillParentWidth=0,fillParentHeight=0,nodeAlign=kAlignTopLeft,
{
name="wing1",type=1,typeName="Image",time=66972341,report=0,x=78,y=31,width=50,height=50,visible=1,fillParentWidth=0,fillParentH... |
redis.setresp(3)
local result = {}
for i, value in pairs(redis.call(
'ZRANGEBYSCORE', KEYS[1], ARGV[1], ARGV[2], ARGV[3])) do
local account = value[2]['double']
local atomic = value[1]
if result[account] == nil then result[account] = 0 end
result[account] = result[account] + redis.call('HGET', 'atom... |
local PATH = "?.lua;classes/?.lua;classes/Instance/?.lua;decoders/?.lua";
local function find_full_path(name)
if (fileExists(name)) then return name end
for path in PATH:gmatch("[^;]+") do
path = path:gsub("%?", name);
if (fileExists(path)) then
return path;
... |
object_static_worldbuilding_terminal_floor_console_tableglobe_01 = object_static_worldbuilding_terminal_shared_floor_console_tableglobe_01:new {
}
ObjectTemplates:addTemplate(object_static_worldbuilding_terminal_floor_console_tableglobe_01, "object/static/worldbuilding/terminal/floor_console_tableglobe_01.iff") |
local classes = require "klib.classes"
local theme = require "klib.gui.theme"
local m = classes.module "klib.gui.mixins"
local TextMixin = classes.class(m, "TextMixin")
-- Public Fields.
TextMixin.font = nil
TextMixin.theme = nil
TextMixin.line_spacing = nil
function TextMixin:get_font()
return self.font or self... |
require 'lib.lspec'
local specFiles = {}
local specFolfer = assert(io.popen ("ls ./spec/*_spec.lua"))
for specFile in specFolfer:lines() do
local t = {}
for str in string.gmatch(specFile, "([^/]+)") do
table.insert(t, str)
end
table.insert(specFiles, { name = t[#t], path = specFile })
end
... |
---@type table
UIMenuHeritageWindow = setmetatable({}, UIMenuHeritageWindow)
---@type table
UIMenuHeritageWindow.__index = UIMenuHeritageWindow
---@type table
---@return string
UIMenuHeritageWindow.__call = function()
return "UIMenuWindow", "UIMenuHeritageWindow"
end
---New
---@param Mum number
---@param Dad num... |
local found_schlumpf = {
[1343330] = "sound/character/playerexertions/humanmalefinal/vo_humanmale_main_charge_01.ogg",
[1343331] = "sound/character/playerexertions/humanmalefinal/vo_humanmale_main_charge_02.ogg",
[1343332] = "sound/character/playerexertions/humanmalefinal/vo_humanmale_main_charge_03.ogg",
[1343333]... |
--[[
Generates symbols used to denote attribute change handlers when working with
the `New` function.
]]
local function AttributeChange(propertyName: string)
return {
type = "Symbol",
name = "AttributeChange",
key = propertyName
}
end
return AttributeChange |
-- mod_http_upload
--
-- Copyright (C) 2015 Kim Alvefur
--
-- This file is MIT/X11 licensed.
--
-- Implementation of HTTP Upload file transfer mechanism used by Conversations
--
-- imports
local st = require"util.stanza";
local lfs = require"lfs";
local uuid = require"util.uuid".generate;
local url = require "socket.u... |
setGameType"GÜNLÜK ETKİNLİKLER GÖREVLER VE DAHA FAZLASI";
setMaxPlayers(150);
setGlitchEnabled ("crouchbug", true);
addEventHandler ("onPlayerDamage", root,
function (attacker)
if attacker then
if attacker ~= source then
if exports.mtatr_deathmatches:isPlayerInDeathmatch (attacker) then
if getElementTyp... |
local Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKS... |
am.addCMD("kick", 'Kicks a player', 'Administration', function(caller, target, reason)
am.notify(nil, am.green, caller:Nick(), am.def, ' has kicked ', am.red, target:Nick(), am.def, ' for ', am.green, reason)
target:Kick(reason)
end):addParam({
name = 'target',
type 'player'
}):addParam({
name = "reason",
type... |
-- -----------------------------------------------------------------------------
-- Configuration settings for the webapp.
-- @author R. Pusztai <rpusztai@gmail.com>
-- @date 01/14/2015
-- -----------------------------------------------------------------------------
local Config =
{
rest =
{
version = "1.0"
},
... |
local constants = require "kong.constants"
local plugin_handler = require "kong.plugins.wsse.handler"
local ConsumerDb = require "kong.plugins.wsse.consumer_db"
local Wsse = require "kong.plugins.wsse.wsse_lib"
describe("wsse plugin", function()
local old_ngx = _G.ngx
local old_kong = _G.kong
local mock_co... |
local A, ns = ...
local core, config, m, oUF = ns.core, ns.config, ns.m, ns.oUF
local auras, filters = ns.auras, ns.filters
local font = m.fonts.frizq
local font_num = m.fonts.myriad
local font_size = 16
local frame_name = 'nameplate'
-- Import API functions
local math_floor = math.floor
local table_insert, ipairs ... |
local WalletClient = require("AlgoLua.WalletConnect.Client")
local Util = require("AlgoLua.WalletConnect.Util")
local widget = require("widget")
local qrnodes = {}
local txtnodes = {}
local function draw_qrcode()
qrnodes = {}
qrnodes[#qrnodes+1] = display.newText('Use Algo Wallet to connect', 140, 30)
lo... |
local ShaderInfo = require("libEffect.shaders.internal.shaderInfo")
local Common = require("libEffect.shaders.common")
local shader = require("coreex.alphaAreaYShader")
local effectName = 'alphaAreaY'
local alphaAreaY = {};
alphaAreaY.applyToDrawing = function(drawing, startY, endY)
if drawing:getWidg... |
ARROW_ENTITY = "orphan-arrow"
function createArrowAt(entity)
if global.arrows[entity.unit_number] ~= nil then
-- entity already has arrow
return
end
global.arrows[entity.unit_number] = {entity, entity.surface.create_entity{name = ARROW_ENTITY, position = entity.position}}
end
function hasAlerts(player,... |
---------------------------------------------------------------------------------------------------
-- Issue: https://github.com/SmartDeviceLink/sdl_core/issues/1924
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = requi... |
screen.setCenteredText("game of life") |
Speedrun = Speedrun or {}
local Speedrun = Speedrun
---------------------------
---- Variables Default ----
---------------------------
--account wide
Speedrun.Default = {
--table
scores = {},
lastScores = {},
raidList = {},
customTimerSteps = {},
--UI
speedrun_con... |
require("sdurw_core")
require("sdurw")
using("sdurw")
require("sdurw_math")
using("sdurw_math")
rotd = Rotation3Dd(1,0,0,0,0,-1,0,1,0);
rotf = Rotation3Df(1,0,0,0,0,-1,0,1,0);
print("Rotation double:");
print(tostring(rotd));
print("Rotation float:");
print(tostring(rotf));
print("Rotation inverse:");
print(tostring(... |
local w3xparser = require 'w3xparser'
local mpq_path = require 'mpq_path'
local lni = require 'lni'
local lml = require 'lml'
local progress = require 'progress'
local slk = w3xparser.slk
local txt = w3xparser.txt
local ini = w3xparser.ini
local pairs = pairs
local string_lower = string.lower
local mt = {}
... |
local logger = require("../../log.lua")
local consts = require("../../lora-lib/constants/constants.lua")
local DEVSTATUSANS_PARAM = consts.DEVSTATUSANS
return function(devAddr, status)
logger.info(
{
label = "MAC Command Ans",
message = {
DevStatusAns = {
Status = status
}
... |
local config = {}
local api = vim.api
local format = require('modules.completion.format')
function config.nvim_lsp()
require('modules.completion.lspconfig')
end
function config.nvim_compe()
require'compe'.setup {
enabled = true;
debug = false;
min_length = 2;
preselect = 'always';
allow_prefix... |
local class = require 'middleclass'
local MLUtils = require 'stuart-ml.util.MLUtils'
local RANDOM = "random"
local K_MEANS_PARALLEL = "k-means||"
local KMeans = class('KMeans')
KMeans.RANDOM = RANDOM
KMeans.K_MEANS_PARALLEL = K_MEANS_PARALLEL
function KMeans:initialize(k, maxIterations, initializationMode, initializ... |
local UtilService = require(game.ReplicatedStorage:WaitForChild('Utils'):WaitForChild('MyUtilService'))
local MyServerStorageService = {
}
function MyServerStorageService.Exec()
print('MyServerStorageService.Exec')
UtilService.Exec()
end
return MyServerStorageService |
assert(StormFox,"Missing everything")
assert(StormFox.SetWeather,"Missing weather controller")
-- Local Functions
local function IsColdWorld()
local mapEnt = StormFox.MAP.Entities()[1]
if not mapEnt.coldworld then return false end
return mapEnt.coldworld > 0
end
--[[
Data
Thunder: boolean
Temperature: numbe... |
Ext.Require("Client/Stats/CustomStatsClient.lua")
Ext.Require("Client/Stats/CustomStatsTooltips.lua")
Ext.Require("Client/Stats/SheetRoll.lua")
Ext.Require("Client/Tenebrium/Overhead.lua")
Ext.Require("Client/Tenebrium/BarManagement.lua")
Ext.Require("Client/Tenebrium/Tooltips.lua")
CustomStatSystem = Mods.LeaderLib.... |
local CorePackages = game:GetService("CorePackages")
local CoreGui = game:GetService("CoreGui")
local Roact = require(CorePackages.Roact)
local t = require(CorePackages.Packages.t)
local UIBlox = require(CorePackages.UIBlox)
local withStyle = UIBlox.Core.Style.withStyle
local ImageSetLabel = UIBlox.Core.ImageSet.Labe... |
SWEP.HoldType = "pistol"
AddCSLuaFile("shared.lua")
include("shared.lua")
function SWEP:PrimaryAttack()
self.Owner:EmitSound(Sound("darkland/fortwars/bomberlol.mp3"),100,100)
self.Weapon:SetNextPrimaryFire(CurTime() + 4)
timer.Simple(2, function() self:Boom() end)
end
function SWEP:Boom()
if !self or !self.Owne... |
local ffi = require('ffi')
local C = ffi.C
ffi.cdef[[
typedef struct _ev_font ev_font;
ev_font* ev_font_create(const char *name, float pt_size);
void ev_font_destroy(ev_font*);
void ev_font_set_position(ev_font*, ev_vec2);
ev_vec2 ev_font_get_position(ev_font*);
float ev_font_set_text(ev_font *font, const... |
local execute = vim.api.nvim_command
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
execute 'packadd packer.nvim'
end
-- This file c... |
--ddz_room.lua
--Created by wugd
--斗地主房间类
--创建类模板
DDZ_ROOM_TDCLS = tdcls(ROOM_TDCLS)
DDZ_ROOM_TDCLS.name = "DDZ_ROOM_TDCLS"
--构造函数
function DDZ_ROOM_TDCLS:create(value)
assert(is_table(value), "room:create para not correct")
end
--获取房间类型
function DDZ_ROOM_TDCLS:get_game_type()
return "ddz"
end
function ROOM... |
--[[
Guide to LoveUI.Label.
Properties:
--Property
--[Example Values] description
hidden
[true/false] set false to hide and disable Label
textColor
[love.graphics.newColor(0,0,0)] set to change text color
opaque
[true/false] whether to draw blackground
value
["aString"] set value
backgroundColor
[... |
function prompt()
-- ▄
local pwd = string.sub(clink.prompt.value, 1, -2)
-- network location?
if string.sub(pwd, 1, 3) == "\\\\" then
pwd = string.sub(pwd, 3, -1)
end
-- drive letter?
if string.sub(pwd, 2, 2) == ":" then
pwd = string.lower(string.sub(pwd, 1, 1)) .. string.s... |
local S = minetest.get_translator("aurum_shape")
aurum_shape = {
shaped = {},
}
-- Enable shaping for a node.
function aurum_shape.enable(name)
aurum_shape.shaped[name] = {}
local shape = {
cost = 1,
node_name = name,
}
minetest.override_item(name, {
_aurum_shape_shape = shape,
})
aurum_shape.shaped[na... |
local time = require 'lib.time'
local event = require 'lib.event'
currentCamera = currentCamera or nil
local defaultMouseSensivity = 0.3
-- base camera decorator
-- attach requires cameraPath to be set
-- mixin can add update method
local function decorate(cls)
cls.onCreate(function(self)
self.mouseSensivity =... |
local striter = require("minify.__striter")
local common = require("minify.common")
local parse_str_esc = common.parse_string
local parse_str = common.parse_string_no_escape
local iter = striter.new
compare(parse_str(iter([["hello"]])), [["hello"]])
compare(parse_str(iter([['hello']])), [['hello']])
compare(parse_str_... |
engine.name = 'PolyPerc'
er = require "lib.er"
local UI = require "ui"
musicutil = require "musicutil"
tabutil = require "tabutil"
include("lib/id_list")
include("lib/global_variables")
include("lib/grid_ui")
include("lib/redraw_subroutines")
include("lib/helpers")
include("lib/connections")
include("lib/zorns_module... |
-- Random BG Colour
return Def.Quad {
OnCommand=function(self) self:Center():zoomto(SCREEN_WIDTH,SCREEN_HEIGHT):diffuse(math.random()/4,math.random()/4,math.random()/4,1) end
} |
project "zlib"
kind "StaticLib"
language "C"
staticruntime "on"
targetdir ("Build/" .. outputdir .. "/%{prj.name}")
objdir ("Build-obj/" .. outputdir .. "/%{prj.name}")
files
{
"zlib.h",
"crc32.h",
"deflate.h",
"gzguts.h",
"inffast.h",
"inffixed.h",
"inflate.h",
"inftrees.h",
"trees.h",
... |
-----------------------------------
-- Area: Beadeaux
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.BEADEAUX] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back af... |
return {
image = "entities/airlock_fill.png",
width = 32,
height = 32,
frametime = 0.1,
animations = {
["atmos.idleclosed"] = 1,
["atmos.idleopen"] = 6,
["atmos.opening"] = { from = 1, to = 6 },
["atmos.closing"] = { from = 6, to = 1 },
["command.idleclosed"] = 7,
[... |
--[[
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 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT A... |
// _____ _ _ _____ _
// / ____| | | | | __ \| |
// | (___ _ __ _ __ __ _ _ _| | | | |__) | |
// \___ \| '_ \| '__/ _` | | | | | | | _ /| |
// ____) | |_) | | | (_| | |_| | |__| | | \ \| |____
// |_____/| .__/|_| \__,_|\__, |\____/|_| \... |
object_tangible_storyteller_story_token_combat_npc = object_tangible_storyteller_shared_story_token_combat_npc:new {
}
ObjectTemplates:addTemplate(object_tangible_storyteller_story_token_combat_npc, "object/tangible/storyteller/story_token_combat_npc.iff")
|
local gears = require("gears")
local awful = require("awful")
require("ui.widgets.mainmenu")
-- Mousebindings that occur on the desktop
desktopMouse = gears.table.join(
awful.button({}, 1, function()
mymainmenu:hide()
end),
awful.button({}, 3, function()
mymainmenu:toggle()
end),
-- This is the mous... |
Item {
resref = "fab_druid_helm",
-- Properties
properties = {
ArmorClass(6),
AbilityScore(ABILITY_WISDOM, 4),
AbilityScore(ABILITY_STRENGTH, 3),
AbilityScore(ABILITY_CHARISMA, 4),
DamageImmunity(DAMAGE_INDEX_DIVINE, 12),
DamageImmunity(DAMAGE_INDEX_MAGICAL, 10),
DamageImmunity(DAMAGE... |
package.path = package.path..";..\\?.lua;..\\core\\?.lua";
local TimedLoop = require "TimedLoop"
require "StopWatch"
local sw = StopWatch.new()
function callback(tickCount, params)
print("callback: ", tickCount, tickCount/sw:Seconds())
--[[
local msg = ffi.new("MSG")
while (user32.PeekMessageA(msg, nil, 0, 0,... |
PAM = {}
--the possible states
--for when it hasn't started yet
PAM.STATE_DISABLED = 0
--for when voting is possible
PAM.STATE_STARTED = 1
--for when the winner is announced
PAM.STATE_FINISHED = 2
--the current state
PAM.state = PAM.STATE_DISABLED
--the voteable maps
PAM.maps = {}
--the votes
PAM.votes = {}
|
--
-- Please see the license.txt file included with this distribution for
-- attribution and copyright information.
--
local nodePower;
-- Initialization
function onInit()
nodePower = getDatabaseNode();
DB.addHandler(nodePower.getPath("name"), "onUpdate", onPowerUpdate);
DB.addHandler(nodePower.getPath("group"),... |
--[[
Ent Support
by JPiolho
Description: Adds support for external .ent files. Also includes .aent which addictively adds entities instead of replacing them.
--]]
CSFile = luanet.import_type('System.IO.File')
CSPath = luanet.import_type('System.IO.Path')
function Worldspawn()
local mapsFolder = CSPath.Combine(G... |
-----------------------------------------------------------------
-----------------------------------------------------------------
-- AIHeroSupport Script by T. Simpson
-- Version 1.2
-- Screen Names: Archer01, Theodranis
-- E-mail: archer01_extra@hotmail.com
-- Sept 24, 2006
-- Copyright (c) 2006 T. Simpson.
... |
local os = require("os")
local path = os.getenv("HOME") .. "/.config/awesome/icons/"
local sb = path .. "sidebar/"
-- these are reversed because icons are in fg
local sbv = sb .. "chocolate/"
local sbc = sb .. "vanilla/"
local s = ".svg"
local p = ".png"
local we = path .. "weather/"
local icons = {
-- sidebar icons... |
function TchatGetMessageChannel(channel,cb)
MySQL.Async.fetchAll("SELECT * FROM phone_app_chat WHERE channel = @channel ORDER BY time DESC LIMIT 100",{ ['@channel'] = channel },cb)
end
function TchatAddMessage(channel,message)
local Query = "INSERT INTO phone_app_chat (`channel`,`message`) VALUES(@channel,@message);... |
local module = {}
script.Parent.Size = UDim2.new(0,0,0,0)
script.Parent.Visible = false
function module.init(Modules)
local function displayBadge(badgeId)
local badgeInfo = game:GetService("BadgeService"):GetBadgeInfoAsync(badgeId)
local IconImageId = badgeInfo.IconImageId
script.Parent.Image = "rbxassetid:... |
register_item({
name = "pistol",
texture = "pistol.png",
gun = true,
ammo = "9mm",
scale = {1.5,1.5,2},
})
register_item({
name = "military_pistol",
texture = "military_pistol.png",
gun = true,
ammo = "45acp",
scale = {1.5,1.5,2},
})
register_item({
name = "shotgun",
te... |
-- #!/usr/local/bin/luajit
package.path = package.path..";../?.lua"
local ffi = require "ffi"
local C = ffi.C;
local bit = require "bit"
local bor = bit.bor
local band = bit.band
-- Bring in the necessary UI stuff
local OpenVGApp = require "OpenVGApp"
local rpiui = require "rpiui"
local EGL = rpiui.EGL;
local Op... |
-- Copyright 2006-2021 Mitchell. See LICENSE.
-- Ada LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('ada')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
lex:add_rule... |
return function(LevelEntites)
return function(x, y)
--print("GRASS", x, y, LevelEntites)
local obj = {
quad = function(self)
return LevelEntites.sprites["grass"]
end
}
LevelEntites:addEntity(x, y, obj)
return obj
end
end |
-- Returns a frame with the different theme colours
-- Useful for overviewing a theme?
local ui = require("tevgit:workshop/controllers/ui/core/ui.lua")
local shared = require("tevgit:workshop/controllers/shared.lua")
local container = ui.create("guiFrame", shared.workshop.interface, {
size = guiCoord(1, -20, 1, 0)... |
--!strict
local root = script.Parent.Parent
local t = require(root.t)
---
local BrickColor_Global = BrickColor
local BrickColor = {}
BrickColor.fromRGB = function(r: number, g: number, b: number): BrickColor
return BrickColor_Global.new(Color3.new(r, g, b))
end
BrickColor.toRGB = t.wrap(function(brickColor: Br... |
local cmem = require 'libcmem' ;
local qc = require 'Q/UTILS/lua/qcore'
local utils = require 'Q/UTILS/lua/utils'
local tests = {}
local niter = 100000000
tests.t1 = function()
-- basic test
local start_time = qc.RDTSC()
for i = 1, niter do
local buf = cmem.new(1048576, "I4", "hello world")
assert(typ... |
module(..., package.seeall)
local lm = require "libmoon"
local device = require "device"
local memory = require "memory"
local log = require "log"
local link = require "core.link"
local nreadable, receive, transmit = link.nreadable, link.receive, link.transmit
DPDKDevice = {}
function DPDKDevice:new(dev_id)
local... |
--=========== Copyright © 2017, Planimeter, All rights reserved. =============--
--
-- Purpose:
--
--============================================================================--
local ffi = require( "ffi" )
io.input( "cef_app_capi.h" )
ffi.cdef( io.read( "*all" ) )
return ffi.load( ffi.os == "Windows" and "libcef" o... |
bossOne = circleEffect:new {
size = 80,
maxhealth = 160,
basespeed = 2*v,
basespeedsqrt = math.sqrt(2*v),
index = false,
alpha = 255,
mode = 'fill',
changesimage = true,
sizeGrowth = 0,
maxsize = width,
ord = 7,
__index = circleEffect.__index,
__newindex = circleEffect.__newindex,
__type = 'bossOne'
}
fu... |
MT_spawnerDescriptions = {
['Tier 2 tech'] = {
['Water pump'] = {
class = 'mt_water_pump',
description = [[Gets water from water sources and transmits it to connected pipes.
Water output volume: 6 L/s
HP: 200]]
},
['Pipe'] = {
class = 'mt_pipe',
... |
Description="For Cold Plasma Dispersion" -- description or other text things.
-- SI Unit System
c = 299792458 -- m/s
e = 1.60217656e-19 -- C
me = 9.10938291e-31 --kg
mp = 1.672621777e-27 --kg
mp_me = 1836.15267245 --
KeV = 1.1604e7 -- K
Tesla = 1.0 -- Tesla
PI = 3.141592653589793
TWOPI = PI*2
k_B = ... |
if vim.api.nvim_call_function('FindPlugin', {'neovim-session-manager'}) == 0 then do return end end
-- vim.g.autosave_last_session = false
-- vim.g.autoload_last_session = false
|
local mod = DBM:NewMod(1160, "DBM-Party-WoD", 6, 537)
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 15007 $"):sub(12, -3))
mod:SetCreatureID(76407)
mod:SetEncounterID(1682)
mod:RegisterCombat("combat")
mod:RegisterEventsInCombat(
"SPELL_CAST_START 154442",
"SPELL_SUMMON 154350",
"UNIT_SPELLCAS... |
object_tangible_component_droid_combat_module_base = object_tangible_component_droid_shared_combat_module_base:new {
}
ObjectTemplates:addTemplate(object_tangible_component_droid_combat_module_base, "object/tangible/component/droid/combat_module_base.iff")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.