content stringlengths 5 1.05M |
|---|
function load_it(wave)
wave = open('2Mx2k.hello', 1, 'ps')
signals = {
'signal_4747',
'signal_288',
'signal_0'
}
wave = filter_signals(wave, signals)
return wave
end
wave = load_it(wave)
|
--[[
Copyright (C) 2019 Onset Roleplay
Developers:
* Logic_
* Bork
Contributors:
* Blue Mountains GmbH
]]--
-- Variables
local EnvHour = 0
local EnvWeather = 0
local EnvFog = 0.0
-- Functions
local function UpdateWeather()
SetTime(EnvHour)
SetWeather(EnvWeather)
SetFogDensity(EnvFog)
end
-- Events
AddRemote... |
local buffer = require("buffer")
local buf = buffer:form(1,2,3,4,5,6,7,8,9)
print(buf:toHash())
print(buf:toNumber(1,1))
print(buf:toString("BCD"))
print(buf:index(5)) |
local M = {}
M._VERSION = "1.0"
local cjson = require('cjson')
function M.new(self,config)
local ins = self or {}
local catlog = config.catlog
if catlog ~= nil then
local shared = ngx.shared[catlog]
ins.shared = shared
ins.expired = config.expired or 0
ins.key_pre = config... |
return {
level = 9,
need_exp = 1100,
clothes_attrs = {
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
},
} |
require("lua/keyBindings")
require("lua/gamepadBindings")
Controls = {}
Controls.__index = Controls
setmetatable(Controls, {
__index = Controls,
__call = function (cls, ...)
local self = setmetatable({}, cls)
self:_init(...)
return self
end,
})
function Controls:_init()
self.keyBindings = KeyBindi... |
return {
Arrows = {
"arrow_branch",
"arrow_divide",
"arrow_down",
"arrow_in",
"arrow_inout",
"arrow_join",
"arrow_left",
"arrow_merge",
"arrow_out",
"arrow_redo",
"arrow_refresh_small",
"arrow_refresh",
"arrow_right",
"arrow_rotate_anticlockwise",
"arrow_rotate_clockwise",
"arrow_switch... |
-----------------------------------
-- Area: Bastok Mines
-- NPC: Roh Latteh
-- Involved in Quest: Mom, The Adventurer?
-- Finishes Quest: The Signpost Marks the Spot
-----------------------------------
require("scripts/globals/settings")
require("scripts/globals/keyitems")
require("scripts/globals/titles")
require("s... |
local PLUGIN = PLUGIN
PLUGIN.name = "3D Text"
PLUGIN.author = "Chessnut"
PLUGIN.description = "Adds text that can be placed on the map."
PLUGIN.list = PLUGIN.list or {}
if (SERVER) then
util.AddNetworkString("ixTextList")
util.AddNetworkString("ixTextAdd")
util.AddNetworkString("ixTextRemove")
ix.log.AddType("... |
-- ###############################
-- ## Project: MTA:Speedrace ##
-- ## Name: RenderManager ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- ###############################
-- FUNCTIONS / METHODS --
local cFunc = {}; -- Local Functions
local cSetting = {}; -- Local Setti... |
entities = {}
entity = {
type = 'blank',
properties = {
rotation = 0,
offset = {x = 0, y = 0},
scale = {x = 1, y = 1}
},
layer = 1,
events = {},
position = {x = 0, y = 0},
}
entity.properties.visual = 'sprite'
entity.properties.texture = 'ship.png'
local ent = entity
f... |
function string.split(str, delimiter)
if (delimiter=='') then return false end
local pos,arr = 0, {}
-- for each divider found
for st,sp in function() return string.find(str, delimiter, pos, true) end do
table.insert(arr, string.sub(str, pos, st - 1))
pos = sp + 1
end
table.inse... |
local function iconbrowser()
local frame = vgui.Create("DFrame")
frame:SetSize(400, 300)
frame:SetPos(5, ScrH() - 305)
frame:SetTitle("Icon Browser")
frame:MakePopup()
frame:SetIcon("icon16/folder_picture.png")
local path_pnl = vgui.Create("EditablePanel",frame)
path_pnl:Dock(TOP)
path_pnl:DockMargin(4, 0, 4,... |
local S = tinkering.S
pattern_table = {}
function pattern_table.get_tool_type_list(ix, iy, mx)
local formspec = ""
local x = 0
local y = 0
for t, pattern in pairs(tinkering.patterns) do
local mod = pattern.mod_name or "tinkering"
formspec = formspec.. ("item_image_button[%d,%d;1,1;%s;%s;]"):for... |
local class = require('class')
local itemDB = require('itemDB')
local Peripheral = require('peripheral')
local Util = require('util')
local ChestAdapter = class()
local convertNames = {
name = 'id',
damage = 'dmg',
maxCount = 'max_size',
count = 'qty',
displayName = 'display_name',
maxDamag... |
require ("_prolog")
require ("_opencv")
function RequireParams()
lips_RequireParams("opencv_filter = list([blur, median, gaussian, bilateral, laplacian, sobel, box, sqrbox, dilate, erode, open, close, threshold, adaptive threshold, distance transform, Canny edge detector, contour 7x7 - filter2D ] 0);")
end
... |
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('art_odun:server:getConfig', function(source, cb, itemName)
while Jobs == nil do
Citizen.Wait(100)
end
cb(Jobs)
end)
RegisterServerEvent("art_odun:server:process")
AddEventHandler("ar... |
-- join_game_session [players_hash_fields...] [players_hash, user_ids_hash, subscriptions_hash, player_name, user_id]
local nil_idx = nil
local vals = redis.call('HMGET', ARGV[1], unpack(KEYS))
for i, val in ipairs(vals) do
if val == ARGV[4] then
redis.call('HINCRBY', ARGV[3], ARGV[5], 1)
return {"already_pr... |
--
-- code adapted from https://github.com/phillipi/pix2pix
--
require 'torch'
require 'nn'
require 'optim'
util = paths.dofile('../util/util.lua')
require 'image'
require 'models/models'
require 'gnuplot'
require 'cunn'
require 'cudnn'
require 'xlua'
require 'math'
require 'gnuplot'
require 'sys'
require 'image'
requ... |
function onEvent(name, value1, value2)
if name == 'FlipUI 180' then
degrees = tonumber(value2);
speed = tonumber(value2);
doTweenAngle('bruh', 'camHUD', 180, 0.1, 'linear')
end
end |
-----------------------------------
-- Area: Escha Ru'Aun
-- Mob: Eschan Gargouille
-----------------------------------
function onMobSpawn(mob)
mob:hideName(true);
mob:untargetable(true);
mob:AnimationSub(6);
end;
function onMobEngaged(mob, target)
mob:hideName(false);
mob:untargetable(false);
... |
-- Titulo: main
-- Autoria: Thiago Lages
-- Data: 11/04/2017
-- Versão: 1.01
-- Conteúdo: ~135 linhas
-- Função que recebe toda a informação de uma mesa como tabela e transforma em uma String.
-- ANTES: Uma das linhas da tabela mesa.
-- DEPOIS: Uma string com todas as informações da linha.
local function info_em_strin... |
--[[
Arithmetic Gates
]]
GateActions("Arithmetic")
local sub = string.sub
local abs = math.abs
local sqrt = math.sqrt
local log = math.log
local log10 = math.log10
local floor = math.floor
local Round = math.Round
local ceil = math.ceil
local fmod = math.fmod
local random = math.random
local pi = math.pi
local exp =... |
table.insert(PrefabFiles, "townportal_invisible")
local AddAction = AddAction
local AddComponentAction = AddComponentAction
local AddPrefabPostInit = AddPrefabPostInit
local AddStategraphActionHandler = AddStategraphActionHandler
GLOBAL.setfenv(1, GLOBAL)
local ENHANCEDSANDSTONE = Action()
ENHANCEDSANDSTONE.id = "EN... |
local lspkind = {}
local fmt = string.format
local kind_presets = {
default = {
-- if you change or add symbol here
-- replace corresponding line in readme
Text = "",
Method = "",
Function = "",
Constructor = "",
Field = "ﰠ",
Variable = "",
Class = "ﴯ",
Interface = "",
Modul... |
local playsession = {
{"thesandbox", {791943}},
{"WorldofWarIII", {790822}},
{"QuantoPrizm", {767470}},
{"tokastar", {732952}},
{"Serule", {309440}},
{"ralphgod3", {503505}},
{"Hyp3rX", {690572}},
{"yulingqixiao", {274549}},
{"redlabel", {673585}},
{"lahs87", {668457}},
{"KKnD", {49333}},
{"pompam003", {310... |
CLASS.name = "Marine Officer"
CLASS.desc = "You are a enlisted in the United States Marine"
CLASS.faction = FACTION_MARINE
function CLASS:onCanBe(client)
return client:isMarineRank(SCHEMA.enlistedRanks)
end
CLASS_MARINE_ENLISTED = CLASS.index |
local function trim3(s)
return s:gsub("^%s+", ""):gsub("%s+$", "")
end
local function string_starts(str, start)
return (string.sub(str, 1, string.len(start)) == start)
end
local function starts_with_pipe_3f(line)
return string_starts(trim3(line), "|> ")
end
local function join_newline_pipes(lines)
local update... |
Config = {}
Config.DrawDistance = 10.0
Config.MarkerSize = {x = 7.0, y = 7.0, z = 1.0}
Config.Money = 100 -- How much it takes from you when you open the clothing menu
Config.Debug = false
Config.ClothingShops = {
[1] = {
blip = true,
coords = vector3(72.3, -1399.1, 28.4),
MarkerSize = {x = 7.0, y = 7.0, ... |
UIConfigLocal = {}
-- Localization for enUS & enGB clients
local PerformanceSlight = "\n|cffFF0000Disabling this may slightly increase performance|r" -- For semi-high CPU options
local ToggleOffReminder = "\n|cffFF0000Turn this off to manually input your bar numbers|r"
-- Actionbar
UIConfigLocal.ActionBarBottomBars ... |
return {
id = "fedora",
name = "Fedora",
description = "m'eggy.",
type = "hat",
rarity = 1,
hidden = false,
}
|
if onServer() then
local _Entity = Entity()
if _Entity.type == EntityType.Ship and (_Entity.playerOwned or _Entity.allianceOwned) then
_Entity:addScriptOnce("hydracontroller.lua")
end
end |
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "Team Spawn"
ENT.Author = "Arrin Bevers"
ENT.Purpose = "Gamemode team spawn"
ENT.Category = "DAC"
ENT.Spawnable = true
ENT.AdminSpawnable = false
ENT.Editable = true
function ENT:SetupDataTables()
local teamList = {}
for teamIndex, teamData in p... |
local sphereObjScale=100 -- set object scale
local sphereShadScale={1,1,0.9} -- object scale in VS
local makeAngular=true -- set to true if you have spheric texture
local sphereTexScale={1,1,1} -- scale the texture in PS
local FadeEffect = true -- horizon effect fading
local SkyVis = 0.5 -- sky visibility vs fad... |
object_tangible_loot_creature_loot_collections_space_engine_mark_01_moncal = object_tangible_loot_creature_loot_collections_space_shared_engine_mark_01_moncal:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_space_engine_mark_01_moncal, "object/tangible/loot/creature/loot/collections... |
local_require("scripts/ui/ui_widgets")
local FONT_SIZE = 18
local scenegraph_definition = {
root = {
scale = "hud_fit",
position = {
0,
0,
UILayer.hud
},
size = {
1920,
1080
}
},
message_animated = {
vertical_alignment = "top",
parent = "root",
horizontal_alignment = "right",
positi... |
local nvim_lsp = require'lspconfig'
local map = require('utils').map
local buf_get_filetype = require('utils').buf_get_filetype
local custom_on_attach = function(client)
-- require'completion'.on_attach(client)
map('n', '<leader>rn', '<cmd> lua vim.lsp.buf.rename()<CR>')
map('n', '<leader>rf', '<cmd> lua vim.lsp... |
-- power/init.lua
local me = microexpansion
local path = microexpansion.get_module_path("power")
me.power = {}
-- Load Resources
dofile(path.."/network.lua") -- Network Management
--dofile(path.."/ctrl.lua") -- Controller/wires
dofile(path.."/gen.lua") -- Generators
|
local db = require "lapis.db"
local schema = require "lapis.db.schema"
local types = schema.types
return {
[100] = function()
schema.create_table("users", {
{ "id", types.serial { unique=true, primary_key=true }},
{ "username", types.varchar { unique=true }},
{ "password", types.varchar },
{... |
local F, C = unpack(select(2, ...))
C.themes["Blizzard_LookingForGuildUI"] = function()
local r, g, b = C.r, C.g, C.b
local styled
hooksecurefunc("LookingForGuildFrame_CreateUIElements", function()
if styled then return end
F.ReskinPortraitFrame(LookingForGuildFrame)
F.CreateBD(LookingForGuildInterestFrame,... |
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
-- Example custom radios
supersede_radio "RADIO_02_POP" { url = "https://live-bauerdk.sharp-stream.com/thevoice_dk_mp3?direct=true&listenerid=undefined&amsparams=playerid:SBS_RP_WEB;skey:1556369463;&awparams=loggedin:false;&aw_0_req.gdpr=true", volume = ... |
require "prefabutil"
local assets =
{
Asset("ANIM", "anim/campfire.zip"),
}
local prefabs =
{
"campfirefire",
}
local function onignite(inst)
if not inst.components.cooker then
inst:AddComponent("cooker")
end
end
local function onextinguish(inst)
if inst.components.cooker then
i... |
local ytrace = require "yunit.trace"
function traceback_message()
local expectedMessage = "test error message"
local function step()
error(expectedMessage)
end
local rc, traceback = xpcall(step, ytrace.traceback)
local stepInfo = debug.getinfo(step, "Sl")
isTable(tr... |
base = 0.00000001
function DoDiceBet(PreviousBet, Win, NextBet)
if Win then
NextBet.Amount=base
NextBet.High=NextBet.High
else
NextBet.Amount=PreviousBet.TotalAmount*2
end
end
function ResetDice(NextBet)
NextBet.Amount=base
NextBet.Chance=49.5
NextBet.High=true
end |
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetInfo = IceCore_CreateClass(IceElement)
local CooldownFrame_SetTimer = CooldownFrame_SetTimer
if CooldownFrame_Set then
CooldownFrame_SetTimer = CooldownFrame_Set
end
local DogTag = nil
local internal = "internal"
local ValidAnchors = { "TOPLEFT... |
local arcpoints = 4
local arcspeed = 30
local arctaildelay = 0.2
local col = Color(255,255,255)
local col2 = Color(0,0,0)
local arcsize = 10
local mat_lightning = Material("effects/tool_tracer")
local mat_center = Material("sprites/physbeama")
local risetime = 0.25
local risespeed = 1000
function EFFECT:Init(data)
... |
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceShopping_pb', package.seeall)
local BCESHOPPING = protobuf.Descriptor();
local BCESHOPPING_GENDER_FIELD = protobuf.FieldDescriptor();
local BCESHOPPING_MONEYTYPE_FIELD = protobuf.FieldDescriptor();
local BCESHOPPING_CATALOGID_FI... |
--[[-------------------------------------------------------------------------
Handles networking and unpacking of the server stuff
---------------------------------------------------------------------------]]
BU3.Inventory = {}
BU3.Inventory.Inventory = {} --The acctual inventory
function BU3.Inventory.UpdateInventor... |
LastCameraX = nil
LastCameraY = nil
LastCameraZ = nil
LastCameraRX = nil
LastCameraRY = nil
LastCameraRZ = nil |
--[[
Copyright (c) 2015 深圳市辉游科技有限公司.
--]]
__appResVersion = '1.1.10' |
function updateGameState(segment)
local readResult = segment:ReadUInt8(GAME_STATE.addr)
IS_GAME_RUNNING = readResult & GAME_STATE.value > 0
if AUTOTRACKER_ENABLE_DEBUG_LOGGING then
print(string.format("readResult: %x, Game State is %s. Enabled Watches is %s.",readResult, IS_GAME_RUNNING, ENABLED_WAT... |
local class = require("extlibs.middleclass")
require("Fighter")
PlayerFighter = class('PlayerFighter', Fighter)
function PlayerFighter:initialize(positionX, positionY, health, stamina)
--Initialize base class.
Fighter.initialize(self, positionX, positionY, health, stamina)
--Setup animations
self.anim["idle"... |
Clockwork.cloudnet = Clockwork.cloudnet or {};
Clockwork.cloudnet.cache = Clockwork.cloudnet.cache or {};
Clockwork.cloudnet.stored = Clockwork.cloudnet.stored or {};
Clockwork.cloudnet.NET_KEY = "CloudNet";
Clockwork.cloudnet.PRUNE_KEY = "PruneNet";
Clockwork.cloudnet.INT = 1;
Clockwork.cloudnet.FLOAT = 2;
Clockwork... |
function widget:GetInfo()
return {
name = "Changelog Info",
desc = "Leftmouse: scroll down, Rightmouse: scroll up, ctrl/shift/alt combi: speedup)",
author = "Floris",
date = "August 2015",
layer = 2,
enabled = true,
}
end
--local show = true
local loadedFontSize = 32
local font = g... |
return function(luma,fage)
local eztask = luma:import "eztask"
local lmath = luma:import "lmath"
local class = luma:import "class"
-------------------------------------------------------------------------------
local point_light=fage.class.object:extend()
function point_light:__tostring()
return "point_... |
object_tangible_loot_creature_loot_collections_space_shared_booster_mark_01_incom = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/creature_loot/collections/space/shared_booster_mark_01_incom.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_loot_creature_loot_collections_spa... |
local plugin_loader = require "src.plugin_manager.plugin_loader"
local event_manager = require "src.plugin_manager.event_manager"
local events = require "src.plugin_manager.events"
describe("Plugins Validation", function()
it("Registers a plugin", function()
local test_passed = false
local mock_pl... |
local libnav = require("libnav")
local util = require("util")
util.init()
local args = { ... }
local movestr = args[1] or ""
libnav.add(movestr)
libnav.flush()
|
young_reptilian_flier = Creature:new {
objectName = "@mob/creature_names:young_reptilian_flier",
socialGroup = "reptilian_flier",
faction = "",
level = 10,
chanceHit = 0.28,
damageMin = 90,
damageMax = 110,
baseXp = 356,
baseHAM = 1000,
baseHAMmax = 1200,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-1},
meatTyp... |
function startRappel(x, y, z, gz)
local r = getPedRotation(source)
local seat = getPedOccupiedVehicleSeat(source)
if (seat==0 or seat==2) then -- left hand side
r = r + 90
else
r = r - 90
end
setPedRotation(source, r)
local slot = getPedWeaponSlot(source)
local invisible = createObject (1337, x, y, ... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('XTemplate', {
__is_kind_of = "XTextButton",
group = "Infopanel",
id = "InfopanelPerson",
PlaceObj('XTemplateWindow', {
'__class', "XTextButton",
'RolloverTemplate', "Rollover",
'RolloverTitle', T{840063956526, --[[XTemplate Infopanel... |
require('config-local').setup {
config_files = {'local.vim', 'local.lua', '.vim/local.vim', '.vim/local.lua'}, -- Config file patterns to load (lua supported)
hashfile = vim.fn.stdpath("data") .. "/config-local", -- Where the plugin keeps files data
autocommands_create = true, -- Create autocommands (VimEnter, Di... |
model:print('Lorem ipsum dolor sit amet, consectetur' ..
tostring(foo) + '.')
model:process(
data_1,
data_2,
true, 26)
model:process(
data_1,
data_2,
true, 26
)
model:process {
data = 'foo',
id = 4561548754
}
model:process {
data = packet:extract(
raw,
7884
),
id = 45615... |
#!/opt/local/bin/lua
local xml_string = [=[<?xml version="1.0" encoding="UTF-8"?>
<ns1:birth_day xmlns:ns1="http://test_example.com">2008-09-04T00:00:00</ns1:birth_day>]=]
mhf = require("schema_processor")
birth_day = mhf:get_message_handler("birth_day", "http://test_example.com");
local content, msg = birth_day:fr... |
local npairs = require("nvim-autopairs")
local Rule = require("nvim-autopairs.rule")
npairs.setup({})
npairs.add_rule(Rule("$", "$", { "tex", "markdown" }))
npairs.add_rule(Rule("\\{", "\\}", "tex"))
npairs.add_rule(Rule("\\left(", "\\right)", { "tex", "markdown" }))
npairs.add_rule(Rule("\\left[", "\\right]", { "tex"... |
object_tangible_component_weapon_core_weapon_core_ranged_standard = object_tangible_component_weapon_core_shared_weapon_core_ranged_standard:new {
}
ObjectTemplates:addTemplate(object_tangible_component_weapon_core_weapon_core_ranged_standard, "object/tangible/component/weapon/core/weapon_core_ranged_standard.iff")
|
--[[entry
psharingrate 代理分成占比
price 当前价格
]]--
function entry(count)
local r = tonumber(count)
if(r == nil)
then
return 0
else
return r
end
end
--[[ test
print (entry(0,10,10,10,10000))
print (entry(1,10,10,10,10000))
]]-- |
local _waypointId = "wilderness"
RotahNpc = {
click = async(function(player, npc)
Tools.configureDialog(player, npc)
local opts = {
"Become Neutral",
"Forgotten past",
"Rings and Tribes",
"Wisdom clothes",
"Shadow Stats",
"Mass Exchange",
"Broadcast Event",
"Checks",
"Banking",
"Tra... |
local function swap(a,b)
return b,a
end
local function draw_flat_top_triangle(v0,v1,v2,c)
local m0 = (v2.x-v0.x)/(v2.y-v0.y)
local m1 = (v2.x-v1.x)/(v2.y-v1.y)
local yStart = math.ceil(v0.y-0.5)
local yEnd = math.ceil(v2.y-0.5)
for y=yStart,yEnd do
local px0 = m0*(y+0.5-v0.y)+v0.x
... |
--[[
* The MIT License
* Copyright (C) 2011 Derick Dong (derickdong@hotmail.com). All rights reserved.
*
* 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
* with... |
--[*[ this file lists default code that will be shown after creating new file
-- one snippet per grammar extension is allowed for now
-- snippets might take advantage of any accessible lua code]*]
-- C source code
c = os.date("//created %d.%m.%Y") .. [[
#include<stdio.h>
int main(int argc, char *argv[] ) {
return ... |
--[[
Original textures from GeMinecraft
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/wip-mods/1440575-1-2-5-generation-minecraft-beta-1-2-farming-and
]]
local S = farming.intllib
-- corn
minetest.register_craftitem("farming:seed_sand", {
description = S("sand Seeds"),
inventory_image =... |
local function Batch(opt)
opt = opt or { }
local batchSize = opt.batchSize or 32
assert(batchSize > 0)
local function applyInputDims(dims)
assert(dims and dims[1])
local ret = { batchSize }
for _,d in ipairs(dims) do
assert(d > 0)
table.insert(ret, d)
end
re... |
local f = string.format
local description = function(nebulaName, size, sectorName)
local desc
if size <= 4 then desc = "kleiner Nebel"
elseif size >= 6 then desc = "großer Nebel"
else desc = "Nebel"
end
return f("%s ist ein %s im Sektor %s.", nebulaName, desc, sectorName)
end
My.Translator:re... |
-- Import frlib and extras.
package.cpath = "3p/build/lib/?.so;" .. package.cpath
package.path = "frlib/?.lua;" .. package.path
local fr = require "flexrender"
local fre = require "extras"
-- Handy aliases.
local vec3 = fr.vec3
local radians = fr.radians
local normalize = fr.normalize
local scale = fr.scale
local rota... |
local function HUD()
local ply = LocalPlayer()
local maxLevel = 99
local etl = (ply:GetNWInt("playerLevel") * 100) * (ply:GetNWInt("playerLevel") * 1.2)
if !ply:Alive() then return end
draw.SimpleText("Level: " .. ply:GetNWInt("playerLevel"), "DermaDefault", ScrW() - 12, ScrH() - 38, Co... |
local I2C = require 'periphery'.I2C
local socket = require 'socket'
local M = {
Command = {
GetFeatureSet = {0x20, 0x2f},
InitAirQuality = {0x20, 0x03},
MeasureAirQuality = {0x20, 0x08},
MeasureRawSignals = {0x20, 0x50},
MeasureTest = {0x20, 0x32}
},
DEVICE = 0x58
}
function M.i... |
-- Local API
local CreateFrame = CreateFrame
local debugstack = debugstack
-- Local addon data structure
local Addon = CreateFrame("Frame")
Addon.name = "AdventureGuideBosses"
Addon.errors = false
Addon.savesVersion = 1
-- Globally available addon data structure
_G[Addon.name] = Addon
local EJOrder = {
-- UiMapID ... |
local bitdown=require("wetgenes.gamecake.fun.bitdown")
local wstr=require("wetgenes.string")
function ls(s) print(wstr.dump(s))end
hardware,main=system.configurator({
mode="fun64", -- select the standard 320x240 screen using the swanky32 palette.
update=function() -- called at a steady 60fps
if setup then setup()... |
-- FE Invisible by YetAnotherDumbBoi/Error-Cezar
-- Inspired from BitingTheDust version ; https://v3rmillion.net/member.php?action=profile&uid=1628149
local First = true
local Restart = true
local SoundService = game:GetService("SoundService")
local StoredCF
local SafeZone
if _G.CFrame ~= nil then
if type(_G.CFrame) ... |
class("HomeTab")
HomeTab.topAreaColor = Color.FromHSV(25 , 0.95 , 0.85)
HomeTab.topAreaBorderColor = Color(160 , 160 , 160)
HomeTab.githubLabelColor = Color(255 , 255 , 255 , 228)
function HomeTab:__init(...) ; TabBase.__init(self , "Главное" , ...)
-- Top area
local topAreaBackground = Rectangle.Create(... |
function create(keys)
local caster = keys.caster
local attackspeed = caster:GetAttackSpeed() * 100
local ability = keys.ability
local level = ability:GetLevel() - 1
local shots = ability:GetLevelSpecialValueFor("shots_base", level)
shots = shots + math.floor(attackspeed / ability:GetLevelSpecialValueFor("atks_per... |
local RUF = RUF or LibStub('AceAddon-3.0'):GetAddon('RUF')
local L = LibStub('AceLocale-3.0'):GetLocale('RUF')
local LSM = LibStub('LibSharedMedia-3.0')
local _, ns = ...
local oUF = ns.oUF
local UnitCastingInfo = UnitCastingInfo
local UnitChannelInfo = UnitChannelInfo
if WOW_PROJECT_ID == WOW_PROJECT_CLASSIC then
lo... |
local IS_DEFOLD = msg --is run in defold bundle or from sh
local reqf = require --fixed defold build error
local lfs
local cjson
local bit
--Sh
--need lfs, cjson and bit from luarocks
if (not IS_DEFOLD) then
package.path = package.path .. ';..\\..\\..\\..\\?.lua'
lfs = reqf "lfs"
cjson = reqf "cjson"
... |
class("SetMonthCardRatioCommand", pm.SimpleCommand).execute = function (slot0, slot1)
pg.ConnectionMgr.GetInstance():Send(11601, {
ratio = slot1:getBody()
}, 11602, function (slot0)
if slot0.result == 0 then
if getProxy(PlayerProxy).getData(slot1):getCardById(VipCard.MONTH) and not slot3:isExpire() then
sl... |
TOOL.Category = "Construction"
TOOL.Name = "#tool.light.name"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.ClientConVar[ "ropelength" ] = "64"
TOOL.ClientConVar[ "ropematerial" ] = "cable/rope"
TOOL.ClientConVar[ "r" ] = "255"
TOOL.ClientConVar[ "g" ] = "255"
TOOL.ClientConVar[ "b" ] = "255"... |
--[[
-------------------------------------------
-- Tablica na calle
-------------------------------------------
]]--
calls = {}
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()),
function()
for i=0, 300 do
calls[i] = {}
calls[i]["call_enable"] = false -- czy wolne
calls[i][... |
AuctionatorCellMixin = {}
function AuctionatorCellMixin:Populate(rowData, index)
self.rowData = rowData
self.index = index
end
function AuctionatorCellMixin:OnEnter()
if self:GetParent().OnEnter ~= nil then
self:GetParent():OnEnter()
end
end
function AuctionatorCellMixin:OnLeave()
if self:GetParent().O... |
require("gameData/dataInterfaceBase");
require("hall/announcement/data/announceDataInterface");
MessageDataInterface = class(DataInterfaceBase);
MessageDataInterface.Delegate = {
refreshMsg = "delegateRefreshMsgCallback";
readMsg = "delegateReadMsgCallback";
awardMsg ... |
return {
{
effect_list = {
{
type = "BattleBuffAddAttrRatio",
trigger = {
"onAttach"
},
arg_list = {
attr = "cannonPower",
number = 1000
}
},
{
type = "BattleBuffAddAttr",
trigger = {
"onAttach"
},
arg_list = {
attr = "injureRatio",
number = ... |
local str = "Henry.T: 中文字符串判断"
local fontSize = 20
local lenInByte = #str
local width = 0
for i=1,lenInByte do
local curByte = string.byte(str, i)
local byteCount = 1;
if curByte>0 and curByte<=127 then
byteCount = 1
elseif curByte>=192 and curByte<223 then
byteCount = 2
elseif curByte>=224 and curByte<239 th... |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0204-same-app-from-multiple-devices.md
-- Description:
-- Register two mobile applications with the same appName and same appID from... |
--- Extends HAProxy core API.
--- @module haproxy.core
local core = _G['core'] or {}
--- Use `core.ctx` to share state between apps.
core.ctx = {}
-- Problem: amalg executes a script (`lua -l amalg`) to identify its
-- dependencies However, HAProxy API functions are only available in an HAProxy
-- execution context.
... |
-- Doxygen Keywords
return
[[a addindex addtogroup anchor arg attention author b brief bug
c class code date def defgroup deprecated dontinclude e em endcode
endhtmlonly endif endlatexonly endlink endverbatim enum example
exception f$ f[ f] file fn hideinitializer htmlinclude htmlonly
if image include ingroup... |
local function has_value(tab, val)
for index, value in ipairs(tab) do
if value == val then
return true
end
end
return false
end
for k, wall in pairs(data.raw["wall"]) do
if (string.find(wall.name, "wall")) then
if (wall.flags) and (not has_value(wall.flags, "not-rep... |
-- oUF_Orbs: templates/boss
-- zork, 2018
-----------------------------
-- Variables
-----------------------------
local A, L = ...
-----------------------------
-- CreateBossStyle
-----------------------------
if not L.C.boss or not L.C.boss.enabled then return end
local function CreateBossStyle(self)
--config... |
assert(_ACTION ~= nil, "no action (vs20**, gmake or xcode for example) provided!")
newoption({
trigger = "workspace",
description = "Sets the path for the workspace directory",
value = "path for workspace directory"
})
newoption({
trigger = "macosx_sdkroot",
description = "Sets the path for the MacOSX SDK direct... |
--global MusicService
local _=BaseEntity.new("music_service",true)
local _source_ambient=nil
local _sound_enabled=true
_.set_volume=function(value)
if value<=0 then
_sound_enabled=false
end
end
-- todo: crossfade
-- todo: cancel prev
_.play_ambient=function(name)
if not _sound_enabled th... |
return {'nek','nekhaar','nekken','nekkramp','nekletsel','nekschot','nekslag','nekspier','nekstijfheid','nekton','nekvel','nekwervel','nekstuk','nekpijn','nekeman','nekkers','nekklachten','nekslagen','nekt','nekte','nekten','nekharen','nekspieren','nekwervels','nekschoten','nekstukken','nekje','nekjes'} |
#!/usr/local/bin/lua -i
function dropFirst(...)
local array = table.pack(...)
return table.unpack(array, 2, array.n)
end
function test()
print(dropFirst(1,2,3,4,5,nil,7))
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.