repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
aqasaeed/creed | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
Whit3Tig3R/dragonbot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
alisalartymory/telehack-bot | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
adminmagma/test | plugins/all.lua | 1321 | 4661 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
sose12/AOS_SHARO56 | plugins/ar-boomzain.lua | 1 | 1590 | -- only enable one of them
local Kick = true;
local Warn = false;
do
local function Memo(msg, matches)
if ( kick == true ) then
Warn = false;
elseif ( Warn == true ) then
Kick = false;
end
-- check if the user is owner
if ( is_realm(msg) and is_admin(msg)or is_sudo(msg) o... | gpl-2.0 |
Sewerbird/Helios2400 | lib/statemachine.lua | 1 | 4922 | --[[
source: https://github.com/kyleconroy/lua-state-machine
Copyright (c) 2012 Kyle Conroy
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 limit... | mit |
ximus/RIOT | dist/tools/wireshark_dissector/riot.lua | 21 | 2130 | -- RIOT native support for Wireshark
-- A Lua implementation for dissection of RIOT native packets in wireshark
-- @Version: 0.0.1
-- @Author: Martine Lenders
-- @E-Mail: mlenders@inf.fu-berlin.de
do
--Protocol name "RIOT"
local p_riot = Proto("RIOT", "RIOT native packet")
--Protocol Fields
local f_le... | lgpl-2.1 |
rpetit3/darkstar | scripts/globals/mobskills/Rime_Spray.lua | 33 | 1448 | ---------------------------------------------
-- Rime Spray
--
-- Description: Deals Ice damage to enemies within a fan-shaped area, inflicting them with Frost and All statuses down.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes:
----------------------------------------... | gpl-3.0 |
tommo/gii | template/game/lib/mock/effect/EffectSimpleParticleSystem.lua | 2 | 12170 | module 'mock'
--------------------------------------------------------------------
local function varianceRange( v, variance, minValue, maxValue )
local min, max = v-variance, v+variance
if minValue and min < minValue then min = minValue end
if maxValue and max > maxValue then max = maxValue end
return { min, max ... | mit |
rpetit3/darkstar | scripts/globals/items/heat_rod.lua | 41 | 1097 | -----------------------------------------
-- ID: 17071
-- Item: Heat Rod
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Cape_Teriggan/npcs/Dultwa_IM.lua | 13 | 3303 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Dulwa, I.M.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("script... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/throwing/fire_arrow.lua | 6 | 4283 | minetest.register_craftitem("throwing:arrow_fire", {
description = "Fire Arrow",
inventory_image = "throwing_arrow_fire.png",
})
minetest.register_node("throwing:arrow_fire_box", {
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
-- Shaft
{-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17},
... | unlicense |
nokizorque/ucd | UCDdamage/crimes.lua | 1 | 1439 | local spam = {}
local police = Team.getFromName("Law")
local admins = Team.getFromName("Admins")
function crime(attacker, killer, _, loss)
local criminal
if (not exports.UCDmafiaWars:isElementInLV(source)) then
if (isElement(attacker)) then
if (attacker.type == "player") then
if (attacker.team ~= police ... | mit |
Easimer/ld33 | background.lua | 1 | 1094 | require "assets"
background = {}
background._image = nil
background.__mdraw = true --manual draw
background._nophysics = true --no collision
background.parallax = {
left = false,
right = false,
up = false,
down = false
}
function background.load(self)
self._image = assets.load_image("data/background.png")
e... | mit |
rpetit3/darkstar | scripts/zones/Leujaoam_Sanctum/instances/leujaoam_cleansing.lua | 28 | 2422 | -----------------------------------
--
-- Assault: Leujaoam Cleansing
--
-----------------------------------
require("scripts/globals/instance")
local Leujaoam = require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function ... | gpl-3.0 |
sys4-fr/server-minetestforfun | mods/snow/src/mapgen_v7.lua | 12 | 3183 | minetest.register_biome({
name = "snow_biome_default",
node_top = "default:dirt_with_snow",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 2,
height_min = snow.min_height,
height_max = snow.min_height+60,
heat_point = 10.0,
humidity_point = 40.0,
})
minetes... | unlicense |
Marnador/OpenRA-Marn-TS-Edition | mods/cnc/maps/nod06b/nod06b.lua | 25 | 7008 | NodUnitsVehicle1 = { 'bggy', 'bggy', 'bike', 'bike', 'bike' }
NodUnitsVehicle2 = { 'ltnk', 'ltnk', 'ltnk' }
NodUnitsGunner = { 'e1', 'e1', 'e1', 'e1', 'e1', 'e1' }
NodUnitsRocket = { 'e3', 'e3', 'e3', 'e3', 'e3', 'e3' }
Gdi1Units = { 'e1', 'e1', 'e2', 'e2', 'e2' }
HuntCellTriggerActivator = { CPos.New(61,34), CPos.New... | gpl-3.0 |
tenvick/hugula | Client/tools/luaTools/jit21/jit/dis_x86.lua | 61 | 29376 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
rpetit3/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_5.lua | 13 | 2440 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
vseledkin/april-ann | packages/basics/util/test/test.lua | 3 | 1980 | local check = utest.check
local T = utest.test
T("GenericOptionsTest", function()
check(function() return util.options.test() end)
local tbl,str2 = util.options.test()
check.TRUE(tbl.clock1)
check.TRUE(tbl.clock2)
check.TRUE(class.is_a(tbl.clock1, util.stopwatch))
check.TRUE(class.is_a(tbl.cloc... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Selbina/npcs/Tilala.lua | 13 | 1151 | -----------------------------------
-- Area: Selbina
-- NPC: Tilala
-- Guild Merchant NPC: Clothcrafting Guild
-- @pos 14.344 -7.912 10.276 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/plate_of_patlican_salata_+1.lua | 18 | 1203 | -----------------------------------------
-- ID: 5583
-- Item: plate_of_patlican_salata_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 4
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/dish_of_spag_nero_di_seppia_+1.lua | 18 | 1799 | -----------------------------------------
-- ID: 5202
-- Item: dish_of_spag_nero_di_seppia_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
----------------------------... | gpl-3.0 |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/teleport/cl_init.lua | 6 | 2349 |
FAdmin.StartHooks["zz_Teleport"] = function()
FAdmin.Messages.RegisterNotification{
name = "goto",
hasTarget = true,
message = {"instigator", " teleported to ", "targets"}
}
FAdmin.Messages.RegisterNotification{
name = "bring",
hasTarget = true,
message = {"... | mit |
MinetestForFun/server-minetestforfun-creative | mods/xdecor/enchanting.lua | 1 | 9171 | local enchanting = {}
screwdriver = screwdriver or {}
-- Cost in Mese crystal(s) for enchanting.
local mese_cost = 1
-- Force of the enchantments.
enchanting.uses = 1.2 -- Durability
enchanting.times = 0.1 -- Efficiency
enchanting.damages = 1 -- Sharpness
enchanting.strength = 1.2 -- Armor strength (3d_... | unlicense |
ench0/external_chromium_org_third_party_skia | tools/lua/paths.lua | 92 | 3129 | --
-- Copyright 2014 Google Inc.
--
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
--
-- Path scraping script.
-- This script is designed to count the number of times we fall back to software
-- rendering for a path in a given SKP. However, this script does not ... | bsd-3-clause |
sys4-fr/server-minetestforfun | mods/u_skins/u_skins/init.lua | 10 | 4926 | -- Unified Skins for Minetest - based modified Bags from unfied_inventory and skins from inventory_plus
-- Copyright (c) 2012 cornernote, Dean Montgomery
-- License: GPLv3
u_skins = {}
u_skins.modpath = minetest.get_modpath("u_skins")
u_skins.file = minetest.get_worldpath().."/u_skins.mt"
u_skins.default = "character_... | unlicense |
MinetestForFun/server-minetestforfun-creative | mods/plantlife_modpack/bushes_classic/init.lua | 1 | 1304 | -- Bushes classic mod originally by unknown
-- now maintained by VanessaE
--
-- License: WTFPL
local S = biome_lib.intllib
bushes_classic = {}
bushes_classic.bushes = {
"strawberry",
"blackberry",
"blueberry",
"raspberry",
"gooseberry",
"mixed_berry"
}
bushes_classic.bushes_descriptions = {
"Strawberr... | unlicense |
rpetit3/darkstar | scripts/zones/Uleguerand_Range/npcs/HomePoint#5.lua | 27 | 1258 | -----------------------------------
-- Area: Uleguerand_Range
-- NPC: HomePoint#5
-- @pos
-----------------------------------
package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Uleguerand_Range/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
sevenbot/etehadseven | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
alireza98/y | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/cl_interface/cl_PlayerLists.lua | 5 | 1324 | local function SortedPairsByFunction(Table, Sorted, SortDown)
local CopyTable = {}
for k,v in pairs(Table) do
table.insert(CopyTable, {NAME = tostring(v:Nick()), PLY = v})
end
table.SortByMember(CopyTable, "NAME", SortDown)
local SortedTable = {}
for k,v in ipairs(CopyTable) do
... | mit |
rpetit3/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e8.lua | 22 | 1707 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Mea
-- @pos 290.253 -81.849 -42.381 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfere... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Valkurm/Zone.lua | 13 | 2454 | -----------------------------------
--
-- Zone: Dynamis-Valkurm
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
---------------------------... | gpl-3.0 |
Benjamin-L/Dinosauria | external/ngplant-0.9.11/plugins/gmesh_rhomb.lua | 1 | 3092 | --[[
ngPlant-plugin : gmesh-generator
menu-name : Rhomb
--]]
--[[
====== BEGIN GPL LICENSE BLOCK =====
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/mobskills/Thermal_Pulse.lua | 34 | 1074 | ---------------------------------------------
-- Thermal Pulse
-- Family: Wamouracampa
-- Description: Deals Fire damage to enemies within area of effect. Additional effect: Blindness
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadow
-- Range: 12.5
-- Notes: Open form only.
-----------------------------... | gpl-3.0 |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/powershell.lua | 2 | 2013 | -- Copyright 2015-2019 Mitchell mitchell.att.foicica.com. See License.txt.
-- PowerShell LPeg lexer.
-- Contributed by Jeff Stone.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('powershell')
-- Whitespace.
lex:add_r... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 13 | 1292 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Caiphimonride
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
-------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/common.lua | 35 | 2855 | -----------------------------------
--
--
-----------------------------------
-----------------------------------
-- switch
-----------------------------------
function switch(c)
local swtbl = {
casevar = c,
caseof = function (self,code)
local f
if (self.casevar) then
f = cod... | gpl-3.0 |
tommo/gii | template/game/lib/mock/tools/HighscoreTable.lua | 2 | 2917 | --[[
* MOCK framework for Moai
* Copyright (C) 2012 Tommo Zhou(tommo.zhou@gmail.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
*... | mit |
nxhack/packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/hostapd_stations.lua | 17 | 7694 | local ubus = require "ubus"
local bit32 = require "bit32"
local function get_wifi_interfaces()
local conn = ubus.connect()
local ubuslist = conn:objects()
local interfaces = {}
for _,net in ipairs(ubuslist) do
if net.find(net,"hostapd.") then
local ifname = net:gsub("hostapd.", "")
table.inser... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/moreblocks/stairsplus/stairs.lua | 1 | 6036 | --[[
More Blocks: stair definitions
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.intllib
-- Node will be called <modname>:stair_<subname>
function register_stair(modname, subname, recipeitem, groups, images, descrip... | unlicense |
Endika/Algorithm-Implementations | Monty_Hall_Problem/Lua/Yonaba/monty_hall.lua | 26 | 1033 | -- Monty-Hall problem implementation
-- See : http://en.wikipedia.org/wiki/Monty_Hall_problem
-- Create a range of values as a list
local function range(n)
local t = {}
for i = 1,n do t[i] = i end
return t
end
-- Simulates Monty Hall problem
-- ndoors : number of doors
-- switch : whether or not the player want... | mit |
TakingInitiative/wesnoth | data/ai/micro_ais/cas/ca_herding_herd_sheep.lua | 7 | 3249 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local herding_area = wesnoth.require "ai/micro_ais/cas/ca_herding_f_herding_area.lua"
local function get_dogs(cfg)
local dogs = AH.get_units_with_moves {
side = wesnoth.current.side,
{ "and", H.get_child(c... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Giddeus/npcs/Harvesting_Point.lua | 13 | 1059 | -----------------------------------
-- Area: Giddeus
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/Giddeus/TextIDs");
---------------------------... | gpl-3.0 |
lukego/snabbswitch | src/core/link.lua | 13 | 3092 | module(...,package.seeall)
local debug = _G.developer_debug
local shm = require("core.shm")
local ffi = require("ffi")
local C = ffi.C
local packet = require("core.packet")
require("core.packet_h")
local counter = require("core.counter")
require("core.counter_h")
require("core.link_h")
local band = require("bit")... | apache-2.0 |
rpetit3/darkstar | scripts/globals/items/plate_of_homemade_salad.lua | 18 | 1107 | -----------------------------------------
-- ID: 5227
-- Item: plate_of_homemade_salad
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
----------... | gpl-3.0 |
esguk811/DarkRP | gamemode/modules/fadmin/fadmin/cleanup/sv_init.lua | 5 | 1782 | local function ClearDecals(ply, cmd, args)
if not FAdmin.Access.PlayerHasPrivilege(ply, "CleanUp") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end
for k,v in pairs(player.GetAll()) do
v:ConCommand("r_cleardecals")
end
FAdmin.Messages.ActionMessage(ply, player.GetAll(), "... | mit |
rpetit3/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 12 | 1611 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Gate of the Gods
-- @pos -20 0.1 -283 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs")... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Tomasa.lua | 13 | 1512 | -----------------------------------
-- Area: Metalworks
-- NPC: Tomasa
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/zones/Metalworks/TextIDs");
-------------... | gpl-3.0 |
EntranceJew/poopsmith.lua | poopsmith.lua | 1 | 2766 | local poopsmith = {
_VERSION = 'poopsmith 1.0.0',
_DESCRIPTION = 'The much less useful alternative to strict.lua',
_URL = 'https://github.com/EntranceJew/poopsmith.lua',
_LICENSE = [[
The MIT License (MIT)
Copyright (c) 2015 EntranceJew
Permission is hereby granted, free of charge, ... | mit |
rpetit3/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Goblin_Statue.lua | 22 | 1841 | -----------------------------------
-- Area: Dynamis Beaucedine
-- MOB: Goblin Statue
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
----------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Kocho_Phunakcham.lua | 15 | 1056 | -----------------------------------
-- Area: Kazham
-- NPC: Kocho Phunakcham
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/East_Ronfaure/npcs/Cheval_River.lua | 13 | 1679 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Cheval_River
-- @pos 223 -58 426 101
-- Involved in Quest: Waters of Cheval
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
lukego/snabbswitch | lib/ljsyscall/syscall/osx/types.lua | 18 | 9044 | -- OSX types
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
local abi = require ... | apache-2.0 |
iRGBit/Dato-Core | src/unity/python/graphlab/lua/pl/stringio.lua | 28 | 3821 | --- Reading and writing strings using file-like objects. <br>
--
-- f = stringio.open(text)
-- l1 = f:read() -- read first line
-- n,m = f:read ('*n','*n') -- read two numbers
-- for line in f:lines() do print(line) end -- iterate over all lines
-- f = stringio.create()
-- f:write('hello')
-- f:wr... | agpl-3.0 |
thehunmonkgroup/luchia | tests/unit/core_document.lua | 3 | 8780 | local lunatest = require "lunatest"
local assert_equal = lunatest.assert_equal
local assert_table = lunatest.assert_table
local common = require "common_test_functions"
local document = require "luchia.core.document"
local attachment = require "luchia.core.attachment"
local tests = {}
local id = "id"
local rev = "re... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Bhukka_Sahbeo.lua | 15 | 1053 | -----------------------------------
-- Area: Kazham
-- NPC: Bhukka Sahbeo
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
esguk811/DarkRP | gamemode/modules/hitmenu/sh_init.lua | 5 | 3198 | local plyMeta = FindMetaTable("Player")
local hitmanTeams = {}
local minHitDistanceSqr = GM.Config.minHitDistance * GM.Config.minHitDistance
function plyMeta:isHitman()
return hitmanTeams[self:Team()]
end
function plyMeta:hasHit()
return self:getDarkRPVar("hasHit") or false
end
function plyMeta:getHitTarget(... | mit |
rpetit3/darkstar | scripts/globals/bluemagic.lua | 8 | 14343 | require("scripts/globals/status")
require("scripts/globals/magic")
BLUE_SKILL = 43;
-- The type of spell.
SPELLTYPE_PHYSICAL = 0;
SPELLTYPE_MAGICAL = 1;
SPELLTYPE_RANGED = 2;
SPELLTYPE_BREATH = 3;
SPELLTYPE_DRAIN = 4;
SPELLTYPE_SPECIAL = 5;
-- The TP modifier
TPMOD_NONE = 0;
TPMOD_CRITICAL = 1;
TPMOD_DAMAGE = 2;
TPM... | gpl-3.0 |
nokizorque/ucd | UCDaccounts/misc.lua | 1 | 1237 | function isNickAllowed(plr, nick)
if (nick:match("#%x%x%x%x%x%x")) then
return false
end
if (type(nick:lower():find("[ucd]", 1, true)) == "number") then
if (exports.UCDadmin:isPlayerAdmin(plr)) then
return true
end
return false
end
return true
end
addEventHandler("onPlayerChangeNick", root,
function (... | mit |
lukego/snabbswitch | src/apps/intel/intel1g.lua | 5 | 31132 | -- intel1g: Device driver app for Intel 1G network cards
--
-- This is a device driver for Intel i210, i350 families of 1G network cards.
--
-- The driver aims to be fairly flexible about how it can be used. The
-- user can specify whether to initialize the NIC, which hardware TX
-- and RX queue should be used (or no... | apache-2.0 |
nokizorque/ucd | guieditor/client/util.lua | 2 | 16014 | --[[--------------------------------------------------
GUI Editor
client
util.lua
common utility functions
--]]--------------------------------------------------
function isBool(b)
return b == true or b == false
end
function toBool(b)
return b == "true" or b == "True" or b == true
end
function asString(v)... | mit |
omid1212/wez | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
disslove7777/Mj.Dl-Bot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
mrbangi/yagop | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
wissam23/alahvaz.bot | plugins/soper.lua | 3 | 80806 | --[[
โโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโ โโ โโ โโ
โโ โโ BY SAJJAD NOORI โโ โโ
โโ โโ BY SAJAD NOORI (@SAJJADNOORI) โโ โโ
โโ โโ JUST WRITED BY SAJJAD NOORI โโ โโ
โโ โโ Orders : ุงูุงูุงู
ุฑ โโ โโ
โโ... | gpl-3.0 |
DorotheeLaugwitz/intergalacticgolf | conf.lua | 2 | 2335 | function love.conf(t)
-- The name of the save directory (string)
t.identity = nil
-- The LรVE version this game was made for (string)
t.version = "0.9.1"
-- Attach a console (boolean, Windows only)
t.console = false
-- The window title (string)
t.window.title = "YOUR_PRODUCT (c) 2345 by YOUR_NAME"
-- Filepath ... | mit |
rpetit3/darkstar | scripts/zones/Giddeus/npcs/Ghoo_Pakya.lua | 13 | 2141 | -----------------------------------
-- Area: Giddeus
-- NPC: Ghoo Pakya
-- Involved in Mission 1-3
-- @pos -139 0 147 145
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/mission... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Horlais_Peak/npcs/relic.lua | 13 | 1842 | -----------------------------------
-- Area: Horlais Peak
-- NPC: <this space intentionally left blank>
-- @pos 450 -40 -31 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | libs/lucid-rpc/luasrc/lucid/rpc/server.lua | 52 | 8197 | --[[
LuCI - Lua Development Framework
Copyright 2009 Steven Barth <steven@midlink.org>
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
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]
local ip... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Puo_Rhen.lua | 13 | 1052 | -----------------------------------
-- Area: Port Windurst
-- NPC: Puo Rhen
-- Type: Mission Starter
-- @zone: 240
-- @pos -227.964 -9 187.087
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/windurst_taco.lua | 18 | 1552 | -----------------------------------------
-- ID: 5172
-- Item: windurst_taco
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 20
-- Vitality -1
-- Agility 5
-- MP Recovered While Healing 1
-- Ranged Accuracy % 8 (cap 10)
-----------------------------------------
require("scripts/globals... | gpl-3.0 |
SnakeSVx/sbep | lua/entities/livable_module/init.lua | 2 | 22756 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
util.PrecacheSound( "apc_engine_start" )
util.PrecacheSound( "apc_engine_stop" )
util.PrecacheSound( "common/warning.wav" )
include('shared.lua')
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0
self.damaged = 0
self:CreateEnviro... | apache-2.0 |
tvandijck/premake-core | binmodules/luasocket/src/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | bsd-3-clause |
MinetestForFun/server-minetestforfun-creative | mods/mesecons/mesecons_pressureplates/init.lua | 10 | 3484 | local pp_box_off = {
type = "fixed",
fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 },
}
local pp_box_on = {
type = "fixed",
fixed = { -7/16, -8/16, -7/16, 7/16, -7.5/16, 7/16 },
}
pp_on_timer = function (pos, elapsed)
local node = minetest.get_node(pos)
local basename = minetest.registered_nodes[node.name].p... | unlicense |
lexa/awesome | lib/wibox/layout/align.lua | 2 | 9861 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox.layout.align
---------------------------------------------------------------------------
local setmetatable = setmetatable
local table... | gpl-2.0 |
hhli/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
tidatida/annotated_redis_source | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
soloestoy/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
TakingInitiative/wesnoth | data/lua/helper.lua | 2 | 13217 | --! #textdomain wesnoth
local helper = {}
local wml_actions = wesnoth.wml_actions
--! Returns an iterator over all the sides matching a given filter that can be used in a for-in loop.
function helper.get_sides(cfg)
local function f(s)
local i = s.i
while i < #wesnoth.sides do
i = i + 1
if wesnoth.match_si... | gpl-2.0 |
vseledkin/april-ann | profile_build_scripts/build_debug_mkl.lua | 3 | 3144 | dofile("luapkg/formiga.lua")
local postprocess = dofile("luapkg/postprocess.lua")
formiga.build_dir = "build_debug_mkl"
local packages = dofile "profile_build_scripts/package_list.lua"
-- table.insert(packages, "rlcompleter") -- AUTOCOMPLETION => needs READLINE
local metadata = dofile "profile_build_scripts/METADATA.l... | gpl-3.0 |
ddouglascarr/rooset | lfframework/framework/env/ui/form_element.lua | 3 | 2498 | --[[--
ui.form_element(
args, -- external arguments
{ -- options for this function call
fetch_value = fetch_value_flag, -- true causes automatic determination of args.value, if nil
fetch_reco... | mit |
rpetit3/darkstar | scripts/zones/Qufim_Island/npcs/qm3.lua | 29 | 4306 | -----------------------------------
-- Area: Qufim Island
-- NPC: ??? (qm3)
-- Mission: ACP - The Echo Awakens
-- @zone 126
-- @pos -120.342 -19.471 306.661
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Qufim... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Eulaclaire.lua | 27 | 1698 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Eulaclaire
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/applets/SmartAudio.lua | 24 | 3510 | --------------------------------------------------
--------------------------------------------------
--------- VTX LUA for SMARTAUDIO 2.0 -------------
------------based on work by----------------------
---------Craig Fitches 07/07/2020 ----------------
-------------Mods by H. Wurzburg -----------------
--------... | gpl-3.0 |
Tieske/date | src/date.lua | 1 | 32158 | ---------------------------------------------------------------------------------------
-- Module for date and time calculations
--
-- Version 2.2
-- Copyright (C) 2005-2006, by Jas Latrix (jastejada@yahoo.com)
-- Copyright (C) 2013-2021, by Thijs Schreijer
-- Licensed under MIT, http://opensource.org/licenses/MIT
--[... | mit |
rpetit3/darkstar | scripts/zones/Nashmau/npcs/Yohj_Dukonlhy.lua | 15 | 1397 | -----------------------------------
-- Area: Nashmau
-- NPC: Yohj Dukonlhy
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Well.lua | 13 | 1395 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Well
-- Involved in Quest: Grave Concerns
-- @zone 230
-- @pos -129 -6 92
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | libs/core/luasrc/model/network.lua | 10 | 33420 | --[[
LuCI - Network model
Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | apache-2.0 |
emoon/docking_system | bin/win32/scripts/tundra/dagsave.lua | 25 | 10957 | module(..., package.seeall)
local depgraph = require "tundra.depgraph"
local util = require "tundra.util"
local scanner = require "tundra.scanner"
local dirwalk = require "tundra.dirwalk"
local platform = require "tundra.platform"
local native = require "tundra.native"
local njson = require "tundra.native.j... | bsd-3-clause |
dkogan/notion | contrib/scripts/net_client_list.lua | 7 | 2805 | -- Authors: Etan Reisner <deryni@gmail.com>
-- License: MIT, see http://opensource.org/licenses/mit-license.php
-- Last Changed: 2007-07-22
--
--[[
Author: Etan Reisner
Email: deryni@unreliablesource.net
Summary: Maintains the _NET_CLIENT_LIST property (and the _NET_CLIENT_LIST_STACKING property incorrectly) on the roo... | lgpl-2.1 |
rpetit3/darkstar | scripts/globals/mobskills/Pyric_Blast.lua | 33 | 1323 | ---------------------------------------------
-- Pyric Blast
--
-- Description: Deals Fire damage to enemies within a fan-shaped area. Additional effect: Plague
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown Cone
---------------------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
esguk811/DarkRP | gamemode/modules/doorsystem/cl_doors.lua | 5 | 5557 | local meta = FindMetaTable("Entity")
local black = Color(0, 0, 0, 255)
local white = Color(255, 255, 255, 200)
local red = Color(128, 30, 30, 255)
function meta:drawOwnableInfo()
if LocalPlayer():InVehicle() then return end
-- Look, if you want to change the way door ownership is drawn, don't edit this file, ... | mit |
rpetit3/darkstar | scripts/zones/Ordelles_Caves/npcs/qm3.lua | 13 | 1628 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: ??? (qm3)
-- Involved in Quest: A Squire's Test II
-- @pos -139 0.1 264 193
-------------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/settings")... | gpl-3.0 |
tinchoss/Python_Android | lua/json4lua/json/json.lua | 3 | 15375 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.20
-- This module is released under the The GNU General Public License (GP... | apache-2.0 |
rpetit3/darkstar | scripts/globals/items/plate_of_fin_sushi_+1.lua | 18 | 1476 | -----------------------------------------
-- ID: 5666
-- Item: plate_of_fin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Intelligence 5
-- Accuracy % 17
-- Ranged Accuracy % 17
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
lexa/awesome | lib/gears/color.lua | 5 | 10347 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.color
---------------------------------------------------------------------------
local setmetatable = setmetatable
local string = strin... | gpl-2.0 |
atkinson137/lootmasterplus | Libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 46 | 4441 | --[[-----------------------------------------------------------------------------
Label Widget
Displays text and optionally an icon.
-------------------------------------------------------------------------------]]
local Type, Version = "Label", 23
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or... | mit |
dwmw2/luci | build/luadoc/luadoc/util.lua | 46 | 5858 | -------------------------------------------------------------------------------
-- General utilities.
-- @release $Id: util.lua,v 1.16 2008/02/17 06:42:51 jasonsantos Exp $
-------------------------------------------------------------------------------
local posix = require "nixio.fs"
local type, table, string, io, as... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.