content stringlengths 5 1.05M |
|---|
wampa = Creature:new {
-- customName = "Wampa",
objectName = "@mob/creature_names:wampa",
socialGroup = "townsperson",
-- faction = "townsperson",
level = 178,
chanceHit = 12.25,
damageMin = 1020,
damageMax = 1750,
baseXp = 16794,
baseHAM = 120000,
baseHAMmax = 120000,
armor = 2,
resists = {75,75,90,80,45,4... |
local antiSteal="LuisPambid"
local player=game.Players.LocalPlayer
local char=player.Character
repeat wait() until player and char
local torso=char.Torso
local head=char.Head
local human=char.Humanoid
local hat
for i, v in pairs(char:children()) do if v:isA("Hat") then hat=v end end
local arm={Left=char["Left Arm"], Ri... |
local ddlt = require 'ddlt'
local parse = function(file)
local inp = assert(io.open(file, 'rb'))
local source = inp:read('*a')
inp:close()
local lexer = ddlt.newLexer{
source = source,
file = file,
language = 'cpp',
symbols = {},
freeform = {{'[{', '}]'}}
}
local tokens = {}
local m... |
if Toolgun_Command then
AddCommand("toolgun", function(ply)
SetPlayerWeapon(ply, Toolgun_weapon_id, 100000, true, 1, true)
end)
end |
return {
id = "baconhair",
price = 10,
onSale = true,
} |
-- load app code
local App = dofile("../code/diffusion.lua")
diffusion = App {
polyOrder = 1,
cflFrac = 0.9,
lower = {0.0, 0.0},
upper = {2*math.pi, 2*math.pi},
cells = {8, 8},
tEnd = 1.0,
numFrames = 1,
useFivePointStencil = true,
-- diffusion coefficient
D = { Dxx = 1.0, Dyy = 1.0, Dxy... |
BigWigs:AddColors("Coin-Operated Crowd Pummeler", {
[256493] = {"blue","green"},
[257337] = "orange",
[262347] = "yellow",
[269493] = "cyan",
[271784] = "yellow",
[271867] = {"blue","red"},
})
BigWigs:AddColors("Tik'ali", {
[257582] = {"blue","red"},
[257593] = "cyan",
[258622] = "orange",
[271698] = "yello... |
function onUse(cid, item, fromPosition, itemEx, toPosition)
local rand = math.random(1, 100)
if((rand >= 50) and (rand < 83)) then
doSummonCreature("Spider", fromPosition)
elseif((rand >= 83) and (rand < 97)) then
doSummonCreature("Poison Spider", fromPosition)
elseif((rand >= 97) and... |
-- title: Quarternion
-- author: pke1029
-- desc: Quarternion rotation with tic80
-- script: lua
-- math operator
sqrt = math.sqrt
cos = math.cos
sin = math.sin
abs = math.abs
floor = math.floor
-- center of scene
center = {0, 0, 300}
-- distance to screen (depth)
d = 300
-- center of rotation
pivot = {0, 0, 0}
... |
--[[
AddToProject.lua
--]]
require "PluginInit"
local LrFunctionContext = import 'LrFunctionContext'
local LrBinding = import 'LrBinding'
local LrDialogs = import 'LrDialogs'
local LrView = import 'LrView'
local LrApplication = import 'LrApplication'
local LrTasks = import 'LrTasks'
local catalog = LrApplication... |
--
-- Use redis to store a counter of the URLs that we see
-- You need the lua-redis binding from: https://github.com/nrk/redis-lua
--
local redis = require 'redis'
local client = redis.connect('127.0.0.1', 6379)
function extract_string(orig_url, feature, positions_and_sizes)
feature_pos=feature .. ".pos"
feature_s... |
local luaunit = require("luaunit")
local xmlua = require("xmlua")
TestNodeSet = {}
function TestNodeSet.test_nth()
local document = xmlua.XML.parse([[
<root>
<sub class="A">1</sub>
<sub class="A">2</sub>
<sub class="B">3</sub>
</root>
]])
local node_set = document:search("/root/sub[@class='A']")
luaunit.a... |
--
-- Register ores
--
-- Mgv6
function default.register_mgv6_ores()
-- Blob ore
-- These first to avoid other ores in blobs
-- Clay
-- This first to avoid clay in sand blobs
minetest.register_ore({
ore_type = "blob",
ore = "default:clay",
wherein = {"default:sand"},
clust_... |
labelwidget = nil;
function onInit()
if label then
labelwidget = addTextWidget("sheetlabelinline", string.upper(LanguageManager.getString(label[1])));
local w,h = labelwidget.getSize();
labelwidget.setPosition("bottomleft", w/2, h/2-4);
end
end |
--------------------------------
-- @module Scale9Sprite
-- @extend Node,BlendProtocol
-- @parent_module ccui
--------------------------------
--
-- @function [parent=#Scale9Sprite] disableCascadeColor
-- @param self
-- @return Scale9Sprite#Scale9Sprite self (return value: ccui.Scale9Sprite)
--------------... |
script/t = Instance.new("Tool")
t.Parent = game.Players.acb227.Backpack
t.Name = "Light"
local handlee = Instance.new("Part")
handlee.Name = "Handle"
handlee.Parent = t
handlee.formFactor = "Plate"
handlee.BrickColor = BrickColor.new("Mid grey")
handlee.Size = Vector3.new(1, 1, 2)
handlee.TopSurface = "Smooth... |
--[[
CharPlan - DB
]]
local CP = _G.Charplan
local DB = CP.DB
--[[ [ DataBase Format ]]
-- Spells
local S_EFFECT=1
local S_ICON=2
local S_SPELL_EFFECTS=3
--local S_MAX_SKILL=4
--local S_TP_RATE=5
-- Spell-Effect
local SE_SKILL_VARG=1
local SE_BUFFS=2
local SE_TIME=3
lo... |
local opt = require 'utils.opt'
local g = vim.g
local cmd = vim.cmd
-- Allow loading */init.lua files
package.path = "./?/init.lua;"..package.path
-- Leader/local leader
g.mapleader = [[ ]]
g.maplocalleader = [[,]]
-- Disable some built-in plugins we don't want
local disabled_built_ins = {
'matchit',
'netrw',
'n... |
package.path = '/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;../?.lua;./?/init.lua'
local redis = require('libs.redis')
local configuration = require('configuration')
local api = require('telegram-bot-lua.core').configure(configuration... |
------------------------
-- Report module, will transform statistics file into a report.
-- @class module
-- @name luacov.reporter
local M = {}
--- Utility function to make patterns more readable
local function fixup(pat)
return pat:gsub(" ", " +") -- ' ' represents "at least one space"
... |
object_tangible_holiday_empire_day_component_carrier_steering_shaft = object_tangible_holiday_empire_day_component_shared_carrier_steering_shaft:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_empire_day_component_carrier_steering_shaft, "object/tangible/holiday/empire_day/component/carrier_steering_shaft... |
ESX = nil
_menuPool = NativeUI.CreatePool()
_menuPool:RefreshIndex()
local MaskTab = {}
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,... |
RoomChatConfig = {};
RoomChatConfig.s_chatPathPrefix = "games/common2/module/chatWnd/";
RoomChatConfig.defaultChatLayerConfig = {
["chatFace"] = {
["file"] = "games/common/btn_face.png";
["x"] = 0;
["y"] = 0;
["align"] = kAlignRight;
["visible"] = true;
};
["chatText"] = {
["file"] = "ga... |
object_static_flora_flora_flower_catalpaflower = object_static_flora_shared_flora_flower_catalpaflower:new {
}
ObjectTemplates:addTemplate(object_static_flora_flora_flower_catalpaflower, "object/static/flora/flora_flower_catalpaflower.iff")
|
require 'hdf5'
local data = torch.class("data")
function data.opt_params(cmd)
end
-- Adapted from /group/torch/rnn_lm/data.lua
function data:__init(data_file)
local f = hdf5.open(data_file, 'r')
self.target = f:read('y'):all()
self.source = f:read('X'):all()
self.shapes = f:read('shapes'):all()
self... |
copCars = {
[427] = true,
[490] = true,
[528] = true,
[523] = true,
[596] = true,
[597] = true,
[598] = true,
[599] = true,
[601] = true }
function onCopCarEnter(thePlayer, seat)
if (seat < 2) and (thePlayer==getLocalPlayer()) then
local model = getElementModel(source)
if (copCars[model]) then
s... |
local TextEditor = script:FindFirstAncestor("TextEditor")
local Roact = require(TextEditor.Packages.Roact)
local studioSettings = settings().Studio
local StudioThemeContext = Roact.createContext(studioSettings.Theme)
return StudioThemeContext |
local skynet = require "skynet.manager"
local filed = require "meiru.lib.filed"
skynet.start(function()
filed.init()
local fuckforbid = skynet.uniqueservice("common/fuckforbid", ".fuckforbid")
skynet.name(".fuckforbid", fuckforbid)
if os.mode == 'dev' then
local mysqlcheckd = skynet.newservice... |
ENT.Type = "anim"
ENT.Base = "base_rd3_entity"
ENT.PrintName = "Liquid Nitrogen Generator"
ENT.AutomaticFrameAdvance = true
list.Set("LSEntOverlayText", "generator_liquid_nitrogen", {
HasOOO = true,
resnames = {"energy", "nitrogen"},
genresnames = {"nitrogen"}
}) |
AddCSLuaFile()
DEFINE_BASECLASS( "base_anim" )
ENT.PrintName = "Spawn Effect"
ENT.Author = "Lechu2375"
ENT.Information = "Spawn Effect"
ENT.Category = "Helix - Black Mesa"
ENT.bNoPersist = true
ENT.PhysgunDisable = true
ENT.Editable = true
ENT.Spawnable = false
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_OT... |
local mode = {}
local GRID_SPACING = 15
local powerups, snake, Powerup = setmetatable({}, {__index = function(t,f)
return function(...) for b in pairs(t) do b[f](b,...) end end
end})
Powerup = class{
init = function(self,i,k, id)
self.pos = vector(i,k)
powerups[self] = true
self.t = 0
self.id = id or 0
se... |
--[[
TheNexusAvenger
Tests the Levels class.
--]]
local XP_MULTIPLIER = 50
local NexusUnitTesting = require("NexusUnitTesting")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitForChild("ReplicatedStorage"))
local... |
-- This module handles an encounter in the quest system.
-- An encounter is an event where the player should encounter something after a while.
-- The module takes care of scheduling the event, tringgering the event, clean up etc.
-- The user supplies the module with information about what the encounter is about.
--
--... |
--API to download and install files
--The function to run is getAndInstall(itemTable, showUI, overwrite)
--Provide an itemTable in the format of
-- {{"label1", "Download URL 1", "Path to save to 1"}, {"label2", "Download URL 2", "Path to save to 2"}}
--Provide a number for overwrite
--1: Will overwrite files
--2: ... |
-- Cancel the damage
addEventHandler ( "onClientPedDamage", root,
function ()
if ( getElementData( source, "showModelPed" ) == true ) then
cancelEvent()
end
end
)
|
os.loadAPI("quarry/inventory.lua")
os.loadAPI("quarry/movement.lua")
os.loadAPI("quarry/config/ores.lua")
-- todo check surroundings for ore
function dive()
local skip = true
-- ensure we have enough fuel to return to the home chest
while movement.hasFuel(0, 0, 0) do
if skip then skip = false else
... |
kode = kode or {}
function kode.scandir(directory)
local i, t, popen = 0, {}, io.popen
-- for filename in popen('ls -a "'..directory..'"'):lines() do
for filename in popen('dir "'..directory..'" /b /ad'):lines() do
i = i + 1
t[i] = filename
end
return t
end
function kode.fread(path... |
local GestureMap = require("gesture.model.gesture").GestureMap
local Gesture = require("gesture.model.gesture").Gesture
local M = {}
M.map = GestureMap.new()
function M.clear()
M.map = GestureMap.new()
end
function M.register(info)
M.map:add(Gesture.new(info))
end
return M
|
ClassicLFGTabButton = {}
ClassicLFGTabButton.__index = ClassicLFGTabButton
setmetatable(ClassicLFGTabButton, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function ClassicLFGTabButton.new(text, name, parent, width, height, padding)
local self = setmetatable({}, ClassicLFGTab... |
return function(opts)
return function(client, bufnr)
-- Enable completion triggered by <c-x><c-o>
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
-- Mappings.
-- See `:help vim.lsp.*` for documentation on any of the below functions
vim.api.nvim_buf_set_keymap(bufnr, "n", "gD", "<cmd... |
local msvc = require 'msvc'
local fs = require "bee.filesystem"
local globals = require "globals"
local m = {}
local env
local prefix
local ArchAlias = {
x86_64 = "x64",
x86 = "x86",
}
local function readEnvConfig()
local EnvConfig = WORKDIR / globals.builddir / 'env.config'
local f = assert(io.open(... |
--------------------------------------------------------------------------
-- Crytek Source File.
-- Copyright (C), Crytek Studios, 2001-2006.
--------------------------------------------------------------------------
-- $Id$
-- $DateTime$
-- Description: Shark class to be used for kill events
--
-------------------... |
mass_resurrect = {
cast = function(player)
local magicCost = 15000
local aethers = 15 * 60 * 1000
-- 15 mins?
if not player:canCast(1, 1, 0) then
return
end
if (player.magic < magicCost) then
player:sendMinitext("Your will is too weak.")
return
end
player:setAether("mass_resurrect", aether... |
-----------------------------------
-- Area: Jugner Forest [S]
-- Mob: Orcish Veteran
-- Note: PH for Drumskull Zogdregg
-----------------------------------
local ID = require("scripts/zones/Jugner_Forest_[S]/IDs")
require("scripts/globals/mobs")
-----------------------------------
function onMobDeath(mob, player, is... |
local cmdstat = {_threshold = 1, _nblk = 64}
local meta = {__index = cmdstat}
function cmdstat.new(threshold, nblk)
return setmetatable({
_threshold = threshold,
_nblk = nblk,
_total = {
cnt = 0, -- 调用次数
blk =0, -- 耗时超过阈值次数
time = 0.0, -- 总耗时
avg = 0.0, -- 平均耗时
peak = 0.0, -- 耗时峰值
rtime ... |
dofile('constants.lua')
dofile('eval.lua')
math.randomseed(os.time()) -- Get different number for each execution
local function choice (t)
-- Return a random element from a table
return t[math.random(1,#t)]
end
local function get_random_bit()
-- Return integer 0 or 1
return math.random(0,1)
end
local functi... |
local Timer = {}
Timer.__index = Timer
function Timer.new(handler)
return setmetatable({
Handler = handler,
Active = false
}, Timer)
end
function Timer:Start(time)
self.Active = true
self.Time = time
spawn(function()
while true do
wait(self.Time)
if not self.Active then
break
end
spawn(s... |
local _M = {}
local view = require "openresty_org.view"
local model = require "openresty_org.model"
local cjson = require "cjson"
local i18n_class = require "openresty_org.i18n"
local concat = table.concat
local re_find = ngx.re.find
local re_match = ngx.re.match
local sub = string.sub
local byte = string.byte
local ... |
local discordia = require("discordia")
local timer = require("timer")
local querystring = require("querystring")
local pp = require('pretty-print')
local levenshtein = string.levenshtein
local insert = table.insert
local concat = table.concat
local client = discordia.Client()
local prefix = "::"
local startingTime =... |
-- Import our libraries.
bump = require 'libs.bump.bump'
Gamestate = require 'libs.hump.gamestate'
-- Import our Entity system.
local Entities = require 'entities.Entities'
local Entity = require 'entities.Entity'
-- Create our Gamestate
local gameLevel1 = Gamestate.new()
-- Import the Entities we build.
local Playe... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onStack"
},
arg_list = {
attr = "cannonPower",
number = 200
}
},
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach",
"onStack"
},
arg_list = {
... |
local input_file = io.open('input.txt', 'r')
local map_trees, map_width, map_height = {}, nil, nil
do
local i, j = 0, 0
for line in input_file:lines() do
i, j = 0, j + 1
for character in line:gmatch('.') do
i = i + 1
map_trees[i..'/'..j] = (character == '#')
end
if not map_wi... |
--ストーンヘンジ
--id:Ruby QQ:917770701
function c100290024.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:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1,100290024+EFFECT_COUNT_CODE_O... |
AddCSLuaFile()
AddCSLuaFile("sh_sounds.lua")
include("sh_sounds.lua")
SWEP.magType = "pistolMag"
CustomizableWeaponry:registerAmmo(".357 SIG", ".357 SIG", 9, 22)
SWEP.PrintName = "SIG P226"
if CLIENT then
SWEP.DrawCrosshair = false
SWEP.CSMuzzleFlashes = true
SWEP.SightWithRail = true
SWEP.IconLetter = "y"... |
-- Copyright 2018 The Knative Authors
--
-- 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
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agre... |
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* admin_network.lua
*
* Original File by lil_Toady
*
**************************************]]
local aNetwork = {
{ip = "127.0.0.1", port = 22005, tag = "", linked = true, key = "881ff8ad00afad3d398f1fefee55d780"}
}
enum(
... |
local global = require("mod.elona.internal.global")
local Quest = require("mod.elona_sys.api.Quest")
local Log = require("api.Log")
local Gui = require("api.Gui")
local Input = require("api.Input")
local Chara = require("api.Chara")
local Rand = require("api.Rand")
local Enum = require("api.Enum")
local Charagen = requ... |
function plugindef()
finaleplugin.Author = "Jari Williamsson, modified by Joseph Weidinger"
finaleplugin.Version = "1.0"
finaleplugin.Date = "July 02, 2015"
finaleplugin.RequireSelection = false
finaleplugin.CategoryTags = "staff names"
return "Staff Names - Rename", "Staff Names - Rename", "Cha... |
---@class CS.UnityEngine.RectOffset
---@field public left number
---@field public right number
---@field public top number
---@field public bottom number
---@field public horizontal number
---@field public vertical number
---@type CS.UnityEngine.RectOffset
CS.UnityEngine.RectOffset = { }
---@overload fun(): CS.UnityEn... |
local tiles = {}
local templates = VAR("tileTemplates")
tiles[1] = {collision = templates.cube}
tiles[2] = {collision = templates.cube}
tiles[3] = {collision = templates.cube}
tiles[7] = {collision = templates.cube}
tiles[9] = {collision = templates.cube}
tiles[10] = {collision = templates.cube}
tiles[11] = {collisi... |
local DemoSprite = class(DialogViewLayout)
function DemoSprite:onInitDialog()
self:setLayout("demoSprite.json")
self.btn_close:setScriptCallback(ButtonHandler(display.closeDialog, self.priority))
local node=ui.sprite("images/sprites/cm_icon_cash.png",{80,80})
display.adapt(node,300,500)
local actio... |
--------------------------------------------------------------------------------
--[[
InRadius1
Inner and outer radius positioning of particles.
--]]
--------------------------------------------------------------------------------
local CBE = require("CBE.CBE")
local vent = CBE.newVent({
preset = "evil",
positionT... |
------------------------------------------------------------------
-- PlotConfig.lua
-- Author : ChenJM
-- Version : 1.15
-- Date :
-- Description: 副本配置,8-17更新1.2数据
------------------------------------------------------------------
module("PlotConfig", package.seeall)
PLOTINFO={}
function g... |
-- JMS Light theme
-- 2019-01-26
local property = require('lexer').property
property['colour.black'] = '#222222'
property['colour.grey'] = '#888888'
property['colour.white'] = '#FFFFFF'
property['colour.red'] = '#FF0000'
property['colour.orange'] = '#FF8800'
property['colour.green'] = '00AA00'
property['colour.blue']... |
Events = {}
---@return any
function Events.Super(...) end
---@return any
function Events.IsValid(...) end
---@return any
function Events.Unsubscribe(...) end
---@return any
function Events.Subscribe(...) end
|
local local0 = 0.7
local local1 = 0 - local0
local local2 = 2 - local0
local local3 = 0 - local0
local local4 = 3.4 - local0
local local5 = 0 - local0
local local6 = 0 - local0
local local7 = 4.5 - local0
local local8 = 0 - local0
local local9 = 0 - local0
local local10 = 0 - local0
local local11 = 0 - local0
local loc... |
local mod = get_mod("TAS")
-- Globals
mod.playback = false
mod.recording = false
mod.recording_check = false
mod.buffered_inputs = {}
mod.current_playback = {}
mod.current_playback_index = 1
mod.current_recording = {}
-- Functions
mod.update = function (t)
if mod.playback then -- If in playback state, play the in... |
--- Wrappers around xcb_get_geometry_*_t
local ffi = require("ffi")
local xcbr = require("xcb.raw")
local gm_mt = {
--- Get the reply.
-- @param conn The xcb connection.
reply = function(self, conn, eptr)
local reply = xcbr.xcb_get_geometry_reply(conn, self, eptr)
ffi.gc(reply, ffi.C.free)
return reply
end
... |
require("test/bustedhelper_titlemenu")
local menu = require("menu/menu")
local menu_with_sfx = require("menu/menu_with_sfx")
local menu_item = require("menu/menu_item")
local audio = require("resources/audio")
describe('menu_with_sfx', function ()
local fake_app = {}
describe('(with instance, stubbing sfx)', fu... |
module(..., package.seeall)
SputnikMarkup = {
markup = nil, -- The markup module
}
--- Creates a new instance of SputnikMarkup.
--
-- @param markup A markup module.
-- @return An instance of SputnikMarkup.
function SputnikMarkup.new(self, markup)
obj = {}
obj.markup = markup
... |
local _, addon = ...
local fmt = string.format
function addon:ClearCache()
local count = self:CountCache(self.db.profile.announcedSpells);
local isMaxRankCount = self:CountCache(self.db.profile.isMaxRank);
self.db.profile.announcedSpells = {};
self.db.profile.isMaxRank = {};
self.db.profile.petOw... |
local M = {}
M.warnings = {}
function M.warn(msg, ...)
local formatted = string.format(msg, ...)
table.insert(M.warnings, formatted)
io.stderr:write("WARNING: " .. formatted .. "\n")
end
function M.warn_source(line, msg, ...)
return M.warn("line %d: " .. msg, line, ...)
end
function M.die(err_code... |
BigWigs:AddColors("Archdruid Glaidalis", {
[196376] = {"blue","yellow"},
[198379] = "red",
[198408] = "blue",
})
BigWigs:AddColors("Oakheart", {
[204574] = "yellow",
[204646] = {"blue","orange"},
[204666] = "red",
[204667] = "red",
})
BigWigs:AddColors("Dresaron", {
[191325] = "yellow",
[199345] = "red",
[... |
require("Game/mapInfo.lua")
require("Game/campaignData.lua")
require("Menu/MainMenu/mapInformation.lua")
local files = nil
function getMapIndex(filePath)
for i=1, #files do
local file = files[i].file
if file:isFile() and file:getPath()==filePath then
return i
end
end
return 0
end
functio... |
//HALF-LIFE 2 BETA HUD
//Script made by DyaMetR
//Font by DyaMetR
//Textures brought by Matsilagi
//Version 1.4.4
surface.CreateFont( "Hl2BHd", {
font = "HL2BetaHUD",
size = 36,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = f... |
fx_version 'cerulean'
game 'gta5'
shared_scripts {
'sh_config.lua',
'sh_spawners.lua',
}
client_scripts {
'cl_spawners.lua',
}
server_scripts {
'@utils/server/random.lua',
'sv_spawners.lua',
} |
local tonumber = tonumber
local insert = table.insert
local rcall = redis.call
local results = {}
local member
local argv1 = tonumber(ARGV[1])
local argv2 = tonumber(ARGV[2])
for member = 1, argv1, 1 do
rcall('rpush', KEYS[1], member)
end
insert(results, KEYS[1])
insert(results, argv1)
for member = 1, argv2, 1 d... |
package("cryptopp")
set_homepage("https://cryptopp.com/")
set_description("free C++ class library of cryptographic schemes")
add_urls("https://github.com/weidai11/cryptopp/archive/CRYPTOPP_$(version).tar.gz", {version = function (version) return version:gsub("%.", "_") end})
add_versions("8.6.0", "930... |
require("CustomGame.UI.TestContainer")
local super = GameMediator
---@class CustomGame.fu.testfu.TestMediator:Framework.core.mvc.GameMediator
---@field numClick number
TestMediator = class("CustomGame.fu.testfu.TestMediator", super)
function TestMediator:showUI()
---@type CustomGame.UI.TestContainer
local pre... |
return {
description = locale("reload.description"),
permissions = {
ids = {"260157417445130241"}
},
category = "dev",
args = {{"string","Please specify the module name."}}
},
function(message,args,flags)
local moduleName = args.myArgs[1]
local error = framework:reloadModule(moduleNa... |
--------------------------------
-- @module ActionFadeFrame
-- @extend ActionFrame
-- @parent_module ccs
--------------------------------
-- Gets the fade action opacity.<br>
-- return the fade action opacity.
-- @function [parent=#ActionFadeFrame] getOpacity
-- @param self
-- @return int#int ret (return ... |
-------------------------------
--[[
Example of use for XPLMFindCommand.
Some addons are creating custom commands/datarefs while they load.
This could cause issues if you use a FWL script that requires these inputs.
Since the FWL script also runs during load you may find that the command/dataref you want does not... |
fx_version "cerulean"
games { "gta5" }
files {
"weaponcomponents.meta",
"pedpersonality.meta",
"weaponanimations.meta",
"weaponarchetypes.meta",
"weapon_brick.meta",
"weapon_shoe.meta",
"weapon_cash.meta",
"weapon_book.meta"
}
data_file "WEAPONCOMPONENTSINFO_FILE" "weaponcomponents.meta"
data_file "PED_PERSON... |
ModifyEvent(-2, 1, 0, 0, -1, -1, -1, -1, -1, -1, -2, -2, -2);--by fanyu 人物保留,但是不在当前位置显示 场景24-编号1
jyx2_FixMapObject("苗人凤受伤后",1);
ModifyEvent(-2, 8, 1, -2, 31, 32, -2, 5214, 5214, 5214, -2, -2, -2);--by fanyu 启动脚本31,32,改变贴图 场景24-编号8
jyx2_SwitchRoleAnimation("NPC/miaorenfeng","Assets/BuildSource/AnimationControllers/备份/苗人... |
local icons = require "nvim-nonicons"
require("octo").setup {
default_remote = { "upstream", "origin" },
reaction_viewer_hint_icon = "",
user_icon = icons.get "person" .. " ",
timeline_marker = "",
timeline_indent = "2",
right_bubble_delimiter = "",
left_bubble_delimiter = "",
snippet_context_lines... |
-- Creates an object with specific behavior, which can contact (fire, visual contact, collision) with the object having type "player" (and other objects if needed)
--[[
syntax: newAI({group, img, x, y[, ai_type][,spriteObj]})
usage:
local newAI = require('classes.SimpleAI').newAI
local enemy = newAI({group = self.... |
kathikiis_ruwahurr_missions =
{
{
missionType = "escort",
primarySpawns =
{
{ npcTemplate = "kathikiis_assist", npcName = "Kathikiis Assistant" }
},
secondarySpawns =
{
{ npcTemplate = "kathikiis_thug", npcName = "a Thug" },
{ npcTemplate = "kathikiis_thug", npcName = "a Thug" },
{... |
data.raw["gui-style"]["default"]["igg-scroll-pane"] =
{
type = "scroll_pane_style",
maximal_height = 400,
maximal_width = 600
} |
TimeSpeedEffectTweakData = TimeSpeedEffectTweakData or class()
-- Lines: 3 to 6
function TimeSpeedEffectTweakData:init()
self:_init_base_effects()
self:_init_mission_effects()
end
-- Lines: 10 to 51
function TimeSpeedEffectTweakData:_init_base_effects()
self.mask_on = {
sustain = 0,
timer = "pausable",
speed... |
-----------------------------------
-- Area: Al_Zahbi
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[tpz.zone.AL_ZAHBI] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come back after sor... |
--- The Color Toolkit.
-- Color is a color handler that treats any
-- objects intended to represent a color as a
-- table of the following schema:
-- @module ROT.Color
local ROT = require((...):gsub(('.[^./\\]*'):rep(1) .. '$', ''))
local Color = ROT.Class:extend("Color")
function Color:init(r, g, b, a)
self[1], se... |
local JudgeCard = {}
-- local bit = require ("app.scenes.bit")
-- local bit = require("bit")
JudgeCard.TYPE_SINGLE_CARDS = 101 --单牌
JudgeCard.TYPE_PAIR_CARDS = 102 --对子
JudgeCard.TYPE_TRIAD_CARDS = 103 --三张牌
JudgeCard.TYPE_TRIAD_CARDS_SINGLE = 104 --三带一
JudgeCard.TYPE_TRIAD_CARDS_PAIR ... |
--------------------------------------------------------------------------------
-- Module Declaration
--
local mod, CL = BigWigs:NewBoss("Lord Stormsong", 1864, 2155)
if not mod then return end
mod:RegisterEnableMob(134060)
mod.engageId = 2132
mod.respawnTime = 30
---------------------------------------------------... |
att.PrintName = "Recession Skull"
att.Icon = Material("entities/halo_skulls_recession.png", "smooth mips")
att.Description = "Enables the power of the Recession Skull*. Each shot is worth two."
att.Desc_Pros = {
}
att.Desc_Cons = {
" Each bullet is worth two. Make them count."
}
att.Slot = "perk"
att.DroppedModel = "... |
GLOBAL.DISABLE_MOD_WARNING = true
AddClassPostConstruct("screens/redux/mainscreen", function(self, Sim)
self.bg:Kill()
self.title:Kill()
self.logo = self.fixed_root:AddChild(UIAnim())
self.logo:GetAnimState():SetBank("redstone")
self.logo:GetAnimState():SetBuild("dst_menu_redstone")
self.logo:GetAnimState(... |
function read_test(input)
local test = {}
for i=1,#input do
local line = input[i]
local start, stop = string.find(input[i], "Starting ")
if (start == 1) then
-- first line is the test name
assert(test.name == nil)
test.name = line
else
-- read test da... |
--
-- Sony NWZ-E370
--
NWZE370 = {}
function NWZE370.lcd_send(cmd, data)
STMP.lcdif.set_data_swizzle(0)
STMP.lcdif.set_byte_packing_format(0xf)
STMP.lcdif.set_word_length(8)
STMP.lcdif.send_pio(false, {cmd})
if #data ~= 0 then
STMP.lcdif.send_pio(true, data)
end
end
function NWZE370.lc... |
local bit = require("bit")
ngx.say(bit.lshift(1,31))
|
------------------------------------------------------------------------------
-- Hadamard Product for Low-rank Bilinear Pooling
-- Jin-Hwa Kim, Kyoung-Woon On, Woosang Lim, Jeonghee Kim, Jung-Woo Ha, Byoung-Tak Zhang
-- https://arxiv.org/abs/1610.04325
--------------------------------------------------------------... |
return {
["3rd-party-oauth"] = {
["1.0-403"] = {
Linux = {
x64 = false,
x86 = false
},
OSX = {
x64 = false,
x86 = false
},
Windows = {
x64 = false,
x86 = false
}
}
},
["30log"] = {
["0.9.1-103"] = {
OSX = {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.