content stringlengths 5 1.05M |
|---|
winnerState = {}
local winner = {}
function winnerState.load( wplayer )
winner = wplayer
end
function winnerState.update( dt )
end
function winnerState.draw()
gameState.draw()
-- darkening thing over the game
setColorRGB( 0, 0, 0, 200 )
love.graphics.rectangle("fill", 0, 0, love... |
local CanvasItem = require("canvas.tools.CanvasItem")
local itemSize = 80
local itemArrowSize = 16
local itemPad = 15
---------------------------------------------------------------------------------
--
-- @type TranslationItem
--
---------------------------------------------------------------------------------
loc... |
--[==[
Author: Brok3nGear
Name: XpHud
Date last modified: Sept 9/2019
Description: This addon allows you to track serveral xp variables. Drag the
window with the right click. Left click displays quest location your character
should be in.
coded by use of:
http://wowprogramming.com/
http://wowwiki.wikia.com/w... |
local HYutil = require("HYutil.HY")
local Point = require("HYutil.Point")
---------------------------------------------
-- LINE -------------------------------------
---------------------------------------------
--v1.0
local Line = {}
Line = HYutil:new(Line)
-- self -> {{ax, ay}, {bx, by}, step}
function... |
-----------------------------------------
-- ID: 4653
-- Scroll of Protect III
-- Teaches the white magic Protect III
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(45)
end
function onItemUse(target)
target:addSpell(45)
end
|
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- C O M M A N D P O S T --
-----------------------------------------------------------------------------... |
local api = vim.api
local fn = vim.fn
local luv = vim.loop
local M = {}
function M.setup_commands(mod, commands)
for command_name, def in pairs(commands) do
local call_fn = string.format("lua require'nvim-treesitter.%s'.commands.%s.run(<f-args>)", mod, command_name)
local parts = vim.tbl_flatten({
"... |
-- luacheck: globals GetLocale GetAddOnMetadata
if (GetLocale() == "deDE") then
rggm = rggm or {}
rggm.L = {}
rggm.L["addon_name"] = "GearMenu"
-- console
rggm.L["help"] = "|cFFFFC300(%s)|r: Benutze |cFFFFC300/rggm|r oder |cFFFFC300/gearmenu|r "
.. "für eine Liste der verfügbaren Optionen"
rggm.L["o... |
-----------------------------------
-- Area: Port San d'Oria
-- NPC: Raqtibahl
-- (Corsair's Frac) !pos -59 -4 -39 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/keyitems")
-----------------------------------
function onTrade(player, npc, trade)... |
--
--Грандиент массив
-- local p2 = 10
-- local p = 32
-- local t = 21
-- local cv = 0.1
-- for i = 1, 819 do
-- if (i > t) then
-- p = p + 32
-- t = t + 21
-- p2 = 10
-- cv = cv + 0.08
-- end
-- local h = 32
-- p2 = p2+32
-- yu[i] = display.newRoundedRect(p2, p , 32, 32, 1)
-- yu[i]:setFill... |
local AddonName, AddonTable = ...
AddonTable.consumable = {
-- Potions
22829, -- Super Healing Potion
22832, -- Super Mana Potion
32902, -- Bottled Nethergon Energy
32905, -- Bottled Nethergon Vapor
}
AddonTable.foodDrink = {
28399, -- Filtered Draenic Water
27854, -- Smoked Talbuk Venison... |
---@class TranslatedString
local TranslatedString = LeaderLib.Classes["TranslatedString"]
local maxSummonsText = TranslatedString:Create("hd248998fge250g4a7bg8dd3gc88f19fbe5f6", "Maximum Summons")
local ShadowItemFallbackDescription = "A <i>strange</i> item retrieved from a <font color='#9B30FF' face='Copperplate Goth... |
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "2"};
dot_style = {["font_size"] = "40"}
text_style = {["font_size"] = "16"}
par = "\(\small\parallel\)";
elem = "\(\small\in\)";
con = "\(\small\ni\)";
sect = "\(\small\cap\)";
uni = "... |
--[[
Core - nagrody za zabójstwa, respawn gracza
@author Jakub 'XJMLN' Starzak <jack@pszmta.pl
@package PSZMTA.psz-core
@copyright Jakub 'XJMLN' Starzak <jack@pszmta.pl>
Nie mozesz uzywac tego skryptu bez mojej zgody. Napisz - byc moze sie zgodze na uzycie.
]]--
local ainfo_txt = {
{"Wszystkie przydatne informac... |
__std = {}
__std.Number = 0
__std.String = ""
__std.Table = {}
__std.Bool = false
__std.Nil = nil |
-----------------------------------------------------------------------
-- LibDBIcon-1.0
--
-- Allows addons to easily create a lightweight minimap icon as an alternative to heavier LDB displays.
--
local DBICON10 = "LibDBIcon-1.0"
local DBICON10_MINOR = 34 -- Bump on changes
if not LibStub then error(DBICON10 .. " r... |
-- Copyright (C) 2011 - 2013 David Reid. See included LICENCE file.
function GTGUI.Element:PanelGroupBoxTitle(text, showCross)
self.Arrow = GTGUI.Server.New("<div parentid='" .. self:GetID() .. "' styleclass='panel-groupbox-title-arrow' />");
self.Text = GTGUI.Server.New("<div parentid='" .. sel... |
print()
print '= ELLIPTIC CURVE ARITHMETIC OPERATIONS TESTS FOR ED25519'
print()
ecp = require'ecp'
-- test values found in milagro's vector_ED25519.txt
ecp1 = ecp.new(
octet.from_hex('77B7CB8C1B285FBD40D9BC49D3DA20489CC18272EEDDD057E7120E1DE38A3B5C'),
octet.from_hex('67D0E5D15854E75154DEF7EB3CE0C3E8B3997347AB8... |
--init.lua
print('\ninit.lua ver 1.2')
wifi.setmode(wifi.STATION)
print(' set mode=STATION (mode='..wifi.getmode()..')')
print(' MAC: ',wifi.sta.getmac())
print(' chip: ',node.chipid())
print(' heap: ',node.heap())
-- wifi config start
wifi.sta.config("FrontierHSI","")
-- wifi config end
wifi.sta.connect()
tmr.ala... |
include("terms")
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "3"};
transparent_style =
{["off_color"] = "none",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "3"};
marker_style =
{["off_color"] =... |
--[[
TheNexusAvenger
Base class for displaying a 3D item on a frame.
--]]
local ROTATION_SPEED_MULTIPLIER = 0.75
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local ReplicatedStorageProject = require(ReplicatedStorage:WaitForChild("Project"):WaitFo... |
--[[
TheNexusAvenger
Implementation of a command.
--]]
local BaseCommand = require(script.Parent.Parent:WaitForChild("BaseCommand"))
local Command = BaseCommand:Extend()
--[[
Creates the command.
--]]
function Command:__new()
self:InitializeSuper("blind","FunCommands","Blinds a set of players.")
self.Argu... |
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ipkgfile = "/etc/opkg.conf"
local distfeeds = "/etc/opkg/distfeeds.conf"
local customfeeds = "/etc/opkg/customfeeds.conf"
f = SimpleForm("ipkgconf"... |
DeviceUI = {
ValidDeviceTypes = {
"TV",
"ArcadeMachine",
"PachinkoMachine",
"SurveillanceCamera",
"ElectricLight",
"DropPoint",
"LcdScreen",
"SecurityTurret",
"Radio",
"Jukebox",
"HoloTable",
"Speaker",
"Crossing... |
local error = error
local require = require
local setmetatable = setmetatable
local reason = require 'talents.internals.reason'
local function __index (_, selector)
error (reason.reading (selector))
end
local function __newindex (_, selector, value)
error (reason.writing (selector, value)... |
local nuklear = require "nuklear"
function love.load()
ui = nuklear.newUI()
WIDTH = 250
HEIGHT = 590
love.window.setMode(WIDTH, HEIGHT)
icon = love.image.newImageData("icon.png")
love.window.setIcon(icon)
love.window.setTitle("Lovely Engine Installer 32-bit")
win32 = {value = fals... |
local utils = require('vgit.core.utils')
local Component = require('vgit.ui.Component')
local dimensions = require('vgit.ui.dimensions')
local table_maker = require('vgit.ui.table_maker')
local HorizontalBorderElement = require(
'vgit.ui.elements.HorizontalBorderElement'
)
local HeaderElement = require('vgit.ui.eleme... |
--- @module nz.co.incremental.geometry2d.polyline_offset
-- (c) Copyright 2013-2016 Geoff Leyland.
--local math_sqrt, math_min, math_max, math_atan2, math_pi =
-- math.sqrt, math.min, math.max, math.atan2, math.pi
local math_abs, math_atan2, math_cos, math_floor, math_pi, math_sin, math_sqrt =
math.abs, ma... |
local GObjectPool = require('GObjectPool')
GList = class('GList', GComponent)
local getters = GList.getters
local setters = GList.setters
function GList:ctor()
GList.super.ctor(self)
self._itemWidth = 0
self._itemHeight = 0
self._trackBounds = true
self.opaque = true
self.scrollItemToViewOnClick... |
require 'torch'
require 'nn'
require 'optim'
require 'cunn'
require 'cutorch'
mnist = require 'mnist'
print('Read data set')
fullset = mnist.traindataset()
testset = mnist.testdataset()
print('Split validation set')
trainset = {
size = 50000,
data = fullset.data[{{1,50000}}]:double(),
label = fullset.labe... |
-- Copyright (c) 2015, Omkar M. Parkhi
-- All rights reserved.
require 'image'
require 'nn'
require 'cutorch'
require 'cunn'
require 'dpnn'
function preprocessImage(name)
local im = image.load(name,3,'float')
im = im*255
local im_bgr = im
local mean = {129.1863,104.7624,93.5940}
for i=1,3 do i... |
local skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local db = {}
skynet.start(function()
skynet.dispatch("lua", function(session, address, cmd, key, value)
if cmd == "set" then
local last = db[key]
db[key] = value
return skynet.retpack(las... |
--[[
Enchantmate is a simple addon that makes enchanting and disenchanting easier.
The addon adds a small button to each inventory slot that can be enchanted, this
will open a popout menu with all the available enchants for that slot. Clicking
an enchant from the menu will cause the player character to cast that en... |
local M = {}
-- echo foo
function M.get_selection()
-- does not handle rectangular selection
local s_start = vim.fn.getpos("'<")
local s_end = vim.fn.getpos("'>")
local n_lines = math.abs(s_end[2] - s_start[2]) + 1
local lines = vim.api.nvim_buf_get_lines(0, s_start[2] - 1, s_end[2], false)
lines[1] = stri... |
local ongoing = false
local cooking = false
RegisterNetEvent("meth:start")
AddEventHandler("meth:start", function()
local playerped = PlayerPedId()
local plyCoords = GetEntityCoords(PlayerPedId())
local distance = (GetDistanceBetweenCoords(plyCoords.x, plyCoords.y, plyCoords.z, 1005.694152832, -3201.3181152344, -38... |
-- RFC2544 Throughput Test
-- as defined by https://www.ietf.org/rfc/rfc2544.txt
-- SPDX-License-Identifier: BSD-3-Clause
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;../?.lua"
require "Pktgen";
-- define packet sizes to test
--local pkt_sizes = { 128,256,512 };
local pkt_sizes = { 64, 128, 256, 512... |
object_tangible_holiday_love_day_love_day_card_01 = object_tangible_holiday_love_day_shared_love_day_card_01:new {
}
ObjectTemplates:addTemplate(object_tangible_holiday_love_day_love_day_card_01, "object/tangible/holiday/love_day/love_day_card_01.iff")
|
util.AddNetworkString("OpenPermissions.OpenMenu")
util.AddNetworkString("OpenPermissions.NoPermissions")
util.AddNetworkString("OpenPermissions.SavePermissions")
util.AddNetworkString("OpenPermissions.PermissionsRegistry")
util.AddNetworkString("OpenPermissions.NotAnAddon")
function OpenPermissions:OpenMenu(ply, addon... |
--HibinoつKureha
function c74560131.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_FAIRY),aux.NonTuner(nil),3)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c)
--can not disable summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TY... |
local mod = DBM:NewMod("d649", "DBM-Scenario-MoP")
local L = mod:GetLocalizedStrings()
mod:SetRevision(("$Revision: 2 $"):sub(12, -3))
mod:SetZone()
mod:RegisterCombat("scenario", 1131)
mod:RegisterEventsInCombat(
"CHAT_MSG_MONSTER_YELL",
"SPELL_CAST_START",
"SPELL_CAST_SUCCESS",
"SPELL_DAMAGE",
"... |
CLASS.name = "Special Watchers"
CLASS.faction = FACTION_LAW
CLASS.loadout = {
["nut_cs_usp"] = 150,
["nut_cs_m4a1"] = 300,
}
function CLASS:OnSet(client)
end
CLASS_LAW_WATCHER = CLASS.index |
-- Possible loot levels.
#define LOL_A 1
#define LOL_B 2
#define LOL_C 3
#define LOL_D 4
#define LOL_E 5
-- Target gp value for each loot level.
#id LOL_TARGET_VALUES
LOL_TARGET_VALUES={50,100,200,300,400}
-- WARNING: If you change these values, also update sim/quest.js
#id LOL_CAND_ITEMS
LOL_CAND_ITEMS={}
-- Initi... |
local ServerResponse = require("http").ServerResponse
ServerResponse.flashData = {}
local template = require("./resty-template")
local etlua = require("./etlua")
local path = require("path")
local env = require("env")
local fs = require("fs")
local JSON = require("json")
local Cookie = require("./cookie")
local mime = ... |
require("feline").setup({
components = require("catppuccin.core.integrations.feline"),
})
|
local Face = {}
Face.__index = Face
local Triangle = require(script.TriangleClass)
function Face.new(mesh)
local self = setmetatable({}, Face)
self.mesh = mesh
self.triangles = nil
self.vertices = {}
self.edges = {}
return self
end
function Face:AddVertice(vertice)
if not vertice then return end
table.... |
--[[ BEGIN STANDARD HEADER ]] --
-- Imports
local _G = _G
local LibStub = LibStub
local setmetatable = setmetatable
local pairs, ipairs = pairs, ipairs
local tinsert, tremove, tconcat = table.insert, table.remove, table.concat
local string = string
local strsub = string.sub
local strsplit = strsplit
local tonumber,... |
local dependencies = require("PremakeDependancyGenerator")
local exeliusDefaultSettings = require("PremakeSettings")
local sfml = {}
function sfml.GenerateDependencyProject(dependencyRootFolder)
project("sfml-system")
kind("StaticLib")
exeliusDefaultSettings.SetGlobalProjectDefaultSettings()
... |
local PrintTable, Fetch, GMatch, tostring = PrintTable, http.Fetch, string.gmatch, tostring
function Ambi.Download.Collection( sWorkshopID ) -- TODO: Доделать
if ( sWorkshopID == nil ) then return end
sWorkshopID = tostring( sWorkshopID )
Fetch( 'https://steamcommunity.com/sharedfiles/filedetails/?id='..s... |
local os = os
local client = client
local pairs = pairs
local _M = {}
_M.settings = {
callback = function(screen, ontop) end
}
-- {{{ Make fullscreen clients ontop
_M.fullscreenwindows = {}
client.connect_signal("unmanage", function(c)
_M.fullscreenwindows[c.window] = nil
end)
client.connect_signal("property::f... |
ITEM.name = "AKs-74u"
ITEM.description= "A short folding-stock assault rifle chambered for 5.45x39mm."
ITEM.longdesc = "The AKS-74U bridges the gap between a submachine gun and an assault rifle.\nIt was intended for use mainly with special forces, airborne infantry, rear-echelon support units and armored vehicle crews.... |
-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
function lure.rom.newRomParserObject()
local self = {}
--===================================================================
-- PROPERTIES =
--================================... |
shield = {}
function shield.load(player)
local img = love.graphics.newImage("/Assets/Character/shield.png")
shield.img=img
shield.colors = {{255,0,0,190},{255,255,0,190},{255,255,255,255}}
shield.owner = player
shield.x = player.width*0.6
shield.y = player.height*0.4
shield.width = player.width*0.4
shi... |
print()
print("starting init.lua...")
print()
print("local files:")
l=file.list()
for k,v in pairs(l) do
print(k.." "..v)
end
print()
print("starting webleds...")
print()
dofile('webleds.lua')
|
function Tick()
for _, player in ipairs(Game.GetPlayers()) do
player:AddResource("KillTest", 1)
end
Task.Wait(1)
end
|
local TramClass = {}
function TramClass:new(GridModule)
local Tram = GridModule
Tram.class = 'Tram'
function Tram:isTram()
return true
end
function Tram:isTrack()
return true
end
return Tram
end
return TramClass |
ITEM.name = "Sprig Leg"
ITEM.model ="models/lostsignalproject/items/outfit_parts/wood.mdl"
ITEM.description = "A long hard branch, originally from the leg of a sprig."
ITEM.longdesc = "Many STALKERs tend to sell off a Sprig Leg as it is a rarity to find one and it has a lot of interesting properties to it, despite it l... |
class 'PopulateEvent'
function PopulateEvent:__init( t )
self.initialized = false
self.agents = {}
self.info = t
self.network_object = WorldNetworkObject.Create( t.centerPoint )
self.network_object:SetStreamDistance( t.activateDistance )
end
function PopulateEvent:Tick()
local network_object = self.network_obj... |
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a c... |
-- -*- mode: lua; tab-width: 2; indent-tabs-mode: 1; st-rulers: [70] -*-
-- vim: ts=4 sw=4 ft=lua noet
----------------------------------------------------------------------
-- @author Daniel Barney <daniel@pagodabox.com>
-- @copyright 2015, Pagoda Box, Inc.
-- @doc
--
-- @end
-- Created : 15 May 2015 by Daniel Barne... |
--[[
Title: World Lock API
Author(s): big
Date: 2020.2.10
Place: Foshan
use the lib:
------------------------------------------------------------
local KeepworkWorldLocksApi = NPL.load("(gl)Mod/WorldShare/api/Keepwork/WorldLocks.lua")
------------------------------------------------------------
]]
local KeepworkBase... |
solution "nativefiledialog"
configurations {
"Debug",
"Release",
}
platforms {
"x32",
"x64",
"Native", -- for targets where bitness is not specified
}
language "C++"
SOURCE_DIR = path.getabsolute("../submodules")
local BUILD_DIR = path.getabsolute("../.build")
defines {
}
dofile ("../submodules/bx... |
describe('#table', function()
local tablex
setup(function()
tablex = require"novus.util.table"
end)
describe('mergewith', function()
it('mergewith(A,B) merges the contents of B into A', function ()
local t = {foo = "bar"}
local u = {baz = "qux"}
assert... |
function pfUI:UpdateConfig(group, subgroup, entry, value)
-- create empty config if not existing
if not pfUI_config then
pfUI_config = {}
end
-- check for missing config groups
if not pfUI_config[group] then
pfUI_config[group] = {}
end
-- update config
if not subgroup and entry and value and n... |
msg = {"Prosečna visina", "ekipe"} |
CUSTOM_STARTING_GOLD = 625
CUSTOM_GOLD_FOR_RANDOM_TOTAL = 800
ADS_CLICKED_BONUS_GOLD = 35
CUSTOM_GOLD_REPICK_COST = 200
MAX_SPAWNBOXES_SELECTED = 3
HERO_SELECTION_PICK_TIME = 70
HERO_SELECTION_STRATEGY_TIME = 20
HERO_SELECTION_BANNING_TIME = 40
HERO_SELECTION_PHASE_NOT_STARTED = 0
HERO_SELECTION_PHASE_BANNING = 1
HE... |
sptbl["spa"] = {
files = {
module = "spa.c",
header = "spa.h",
example = "ex_spa.c",
},
func = {
create = "sp_spa_create",
destroy = "sp_spa_destroy",
init = "sp_spa_init",
compute = "sp_spa_compute",
},
params = {
mandatory = {
... |
dofile("urlcode.lua")
dofile("table_show.lua")
local url_count = 0
local tries = 0
local item_type = os.getenv('item_type')
local item_value = os.getenv('item_value')
local downloaded = {}
local addedtolist = {}
read_file = function(file)
if file then
local f = assert(io.open(file))
local data = f:read("*a... |
fx_version "adamant"
games {"gta5"}
description "vRost VoIP Script"
author "xIAlexanderIx"
version "0.1.0"
ui_page "dist/nui/ui.html"
files {
"dist/config.json",
"dist/locales/*.json",
"dist/nui/ui.html",
"dist/nui/css/style.css",
"dist/nui/js/script.js",
"dist/nui/sounds/*.*"
}
server_scripts {
"dist/ser... |
local scene = {
[1] = {id=1,type=1,ectypeid=0,tollgateid=0,name="新手村",describe="玩家出生点",namepic="",subtitle="",physicalNeed="",itemshow="",monster_drop_list="",monster_drop_count="",monster_probability="",boss_drop_list1="",boss_drop_count1="",boss_probability1="",boss_drop_list2="",boss_drop_count2="",boss_probability2... |
local gui = require("__flib__.gui")
local misc = require("__flib__.misc")
local queue = require("lib.queue")
local table = require("__flib__.table")
local constants = require("constants")
local actions = require("actions")
local templates = require("templates")
local trains_tab = require("trains")
local depots_tab =... |
-- See LICENSE for terms
-- 46S180W res min
-- 0S111W devil/storm max
-- 18N35W meteor/cold max
local ChoOrig_FillRandomMapProps = FillRandomMapProps
function FillRandomMapProps(gen, params, ...)
if gen then
local rules = g_CurrentMissionParams.idGameRules or empty_table
if rules.ChoGGi_LowResources then
loc... |
local packer = require("packer")
packer.use({
"norcalli/nvim-colorizer.lua",
config = function()
require("colorizer").setup()
end,
})
packer.use({
"arcticicestudio/nord-vim",
branch = "master",
config = function()
vim.cmd("colorscheme nord")
end,
})
|
-- helper
local cmd, fn = vim.cmd, vim.fn
-- Display and highlight ZenkakuSpace
function ZenkakuSpace()
cmd('highlight ZenkakuSpace cterm=reverse ctermfg=DarkMagenta gui=reverse guifg=DarkMagenta')
end
if fn.has('syntax') == 1 then
cmd('autocmd _vimrc ColorScheme * call ZenkakuSpace()')
cmd('autocmd _vimr... |
-- utf8 包装类, 包装lua的字符串类型
-- 字符串里的字节存储得保证是utf8编码才能使用
---@param byte number
---@return number
local function charSize(byte)
return byte < 128 and 1 or (byte < 224 and 2 or (byte < 240 and 3 or 4))
end
---@param s string
---@return any[]
local function toLenArray(s)
local res = { 0 }
local pos = 1
while ... |
--
-- @@LIB_NAME@@, Version: @@Version@@
--
-- This file is a part of @@LIB_NAME@@.
--
-- Author:
-- Xiaofeng Yang 2015
-- Vicent Gong 2012
--
--
---
--
-- @module editTextView2
require("core/object");
require("core/global");
require("ui2/compat/textView2");
EditTextView2 = class(TextView2);
EditTextView2... |
--[[
2020-2021 Xalalau Xubilozo. MIT License
https://xalalau.com/
--]]
include("bs/init.lua")
|
return require("transliteration module testcases") {
module = "omk-translit",
examples = {
{ "еземъ", "jezem" },
},
sc = "Cyrl", lang = "omk",
} |
test_game_module = {}
register_module(test_game_module,"test_game_module");
local other_module = nil;
function test_game_module.reload()
--other_module = script_module:find_module("other_module");
end
function test_game_module.awake()
test_game_module.reload();
end
function test_game_module.init()
io.write("test_... |
--- Data Stage Core
-- @module Data Core
if _G.remote and _G.script then
error("Data Modules can only be required in the data stage", 2)
end
local Core = {
_default_options = {
["silent"] = false,
["fail"] = false,
["verbose"] = false
}
}
setmetatable(Core, {__index = require("stdl... |
-- add target
target("lcurses")
-- make as a static library
set_kind("static")
-- add deps
add_deps("luajit")
if is_plat("windows") then
add_deps("pdcurses")
end
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_included... |
return {'unciaal','uncialen'} |
--<< leader_ability
local wesnoth = wesnoth
local creepwars = creepwars
local T = wesnoth.require("lua/helper.lua").set_wml_tag_metatable {}
local table = table
local function set_leader_ability(unit)
local vars = unit.variables
local arr = {}
if vars.creepwars_health_small > 0 then arr[#arr + 1] = vars.creepwars_... |
cs = Procedural.CircleShape()
ms = Procedural.MultiShape()
ms:addShape(cs:setRadius(2):realizeShape())
ms:addShape(cs:setRadius(.3):realizeShape():translate(-1,.3):switchSide())
ms:addShape(cs:realizeShape():translate(1,.3):switchSide())
ms:addShape(cs:realizeShape():switchSide())
ms:addShape(cs:realizeShape():sc... |
local perms = {
}
function perms:hasPermission(...)
--SOON
end
function perms:getMemberPermissions(member)
local permissions = {}
for role in member.roles do
local permTable = role.permissions:toTable()
for i,v in pairs(permTable) do
if v then
permission... |
local awful = require("awful")
local hotkeys_popup = require("awful.hotkeys_popup")
local beautiful = require("beautiful")
local config = {}
-- * Modkey
config.modkey = "Mod4"
-- * User programs
-- This is used later as the default terminal and editor to run.
config.terminal = "alacritty"
config.floating_terminal = c... |
local mock = require('luassert.mock')
-- convenience function to generate a pile of unique stubs, i.e.:
-- a,b,c = genstubs(3)
-- a('foo')
-- assert.stub(a).was.called_with('foo')
-- assert.stub(b).was.not.called()
local function genstubs(count)
count = not count and 1 or count
local tmocks = {}
while coun... |
LevelMeter = Core.class(Sprite)
function LevelMeter:init()
local bars = {}
self.bars = bars
for x=10,300,10 do
local shape = Shape.new()
shape:setFillStyle(Shape.SOLID, 0xffffff)
shape:beginPath()
shape:moveTo(x, 0)
shape:lineTo(x + 8, 0)
shape:lineTo(x + 8, 50)
shape:lineTo(x, 50)
shape:closePath()... |
--------------------------------------------------------------------------
-- Obligation --
--------------------------------------------------------------------------
require("ui/wscreen")
require("finance/portfeuille/func/utilite")
require("finance/portfeuill... |
local jwt = require "resty.jwt"
local cjson = require "cjson"
local basexx = require "basexx"
local logToken = os.getenv("LOG_TOKEN")
if logToken == nil then
logToken = false
else
logToken = string.lower(logToken)
if logToken == "true" or logToken == "1" then
logToken = true
else
logTok... |
account_id_counter = 0
amount = 100
request = function()
path = "/api/add/operation"
wrk.method = "POST"
wrk.body = string.format(
'{"params":[{"account_id": %d, "timestamp": %d, "type": 0, "description": "Payment from WRK!","amount": %d}]}',
account_id_counter, require('os').time(), amount)
amount = ... |
-----------------------------------------
-- ID: 4971
-- Scroll of Yain: Ichi
-- Teaches the ninjutsu Yain: Ichi
-----------------------------------------
function onItemCheck(target)
return target:canLearnSpell(506)
end
function onItemUse(target)
target:addSpell(506)
end
|
-- map1.lua - first map yay
collision = require('collision')
-- the goods
theloot = {
loot.make(1, 120, 126),
loot.make(2, 121, 126),
loot.make(3, 122, 126)
}
-- flag itemid is "0"
local flag_id = 0
flags = {
loot.colorize(loot.make(flag_id, 119, 125), "red"),
loot.colorize(loot.make(flag_id, 119, 133... |
ys = ys or {}
slot1 = ys.Battle.BattleDataFunction
slot2 = class("BattleCommonWarningView")
ys.Battle.BattleCommonWarningView = slot2
slot2.__name = "BattleCommonWarningView"
slot2.WARNING_TYPE_SUBMARINE = "submarine"
slot2.WARNING_TYPE_ARTILLERY = "artillery"
slot2.Ctor = function (slot0, slot1)
slot0._submarineCoun... |
object_tangible_quest_restuss_rebel_token = object_tangible_quest_shared_restuss_rebel_token:new {
}
ObjectTemplates:addTemplate(object_tangible_quest_restuss_rebel_token, "object/tangible/quest/restuss_rebel_token.iff")
|
Arena = class()
function Arena:init(l, b, r, t)
self.robots = {}
self.timer = 0
self.tourney = false
self.gameOver = false
self.game = 1
self.pulse = 0
self.pulseDirection = 2
self.skeet = {}
self.walls = {}
self.tracks = {}
self.launchTime = ElapsedTime
self:sizeFrames(... |
--
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2012 Jason Perkins and the Premake project
--
--
-- GCC Compiler toolset
--
local atool = premake.abstract.buildtool
local gcc_cc = newtool {
toolName = 'cc',
binaryName = 'gcc',
fixedFlags = '-c -x c',
language = "C",
-- possi... |
-----------------------------------------------------
ITEM.name = "Quinta Da Carvalheira 1902"
ITEM.desc = "Bottle of Quinta Da Carvalheira Red Wine, 1902."
ITEM.category = "Alcohols"
ITEM.model = "models/foodnhouseholditems/wine_red1.mdl"
ITEM.hunger = 10
ITEM.thirst = 30
ITEM.empty = false
ITEM.permit = "co... |
---@class AnimationGroup : ParentedObject, ScriptObject
local AnimationGroup = {}
---@param scriptType ScriptAnimationGroup
---@param bindingType LE_SCRIPT_BINDING_TYPE
---@return function handler
---[Documentation](https://wowpedia.fandom.com/wiki/API_ScriptObject_GetScript)
function AnimationGroup:GetScript(scriptTy... |
-- dispaly something on the OLED display
-- data and clock pins
sda, scl = 1, 2
function init_OLED(sda,scl)
sla = 0x3C
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
disp:setFont(u8g.font_6x10)
disp:setFontRefHeightExtendedText()
disp:setDefaultForegroundC... |
local fs = require 'nelua.utils.fs'
local pegger = require 'nelua.utils.pegger'
local stringer = require 'nelua.utils.stringer'
local tabler = require 'nelua.utils.tabler'
local console = require 'nelua.utils.console'
local config = require 'nelua.configer'.get()
local lua_compiler = {}
function lua_compiler.compile_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.