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 |
|---|---|---|---|---|---|
dafei2015/hugular_cstolua | Client/tools/netProtocal/parseErrorCode.lua | 8 | 2038 | require("helperFunction")
io.input("protocal/error_code.txt")
io.output("../../Assets/Lua/net/alertDataList.lua")
function parseAlertData(startLine)
local r = {}
for i in string.gmatch(startLine, string.format('[^%s]+', '-')) do
table.insert(r, i)
end
local alertCode = r[1]
local alertKey =... | mit |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/CombatSelector.lua | 2 | 2859 |
-- Give the target state returns a list of actors
-- that are targets.
local function WeakestActor(list, onlyCheckHurt)
local target = nil
local health = 99999
for k, v in ipairs(list) do
local hp = v.mStats:Get("hp_now")
local isHurt = hp < v.mStats:Get("hp_max")
... | mit |
chroteus/clay | class/region.lua | 1 | 14595 | Region = Base:subclass("Region")
function Region:initialize(id, color, name, ...)
self.id = id -- id which will link a region to a country
self.color = color
self.name = tostring(name)
self.convex = true
self.country = countries[self.id]
self.selected = false
local arg = {...... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/wings_of_fury.lua | 7 | 1494 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: Wings of Fury BCNM20
-- !pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems"... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/fiery_breath.lua | 32 | 1245 | ---------------------------------------------
-- Fiery Breath
--
-- Description: Deals Fire damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Tiamat, Smok and Ildebrann
---------------------------------------------
r... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Spire_of_Dem/bcnms/ancient_flames_beckon.lua | 3 | 4237 | -----------------------------------
-- Area: Spire_of_Dem
-- Name: ancient_flames_backon
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
zcold/cp-solver-lua | testb.lua | 1 | 6125 |
--require "CSP"
require "Ulti"
-- Generate V and U
local V = {}
local U = {}
local i = 1
local j = 1
while i <= 9 do
j = 1
while j <= 9 do
V["x_" .. i .. j] = "x_" .. i .. j
U["x_" .. i .. j] = {1, 2, 3, 4, 5, 6, 7, 8, 9}
j = j + 1
end
i = i + 1
end
--
U["x_11"] = {5}
U["x_12"] = {6}
U["x_14"] = {8}
U["x... | mit |
backburn/Probably | system/modules/combat_tracker.lua | 1 | 6774 | -- ProbablyEngine Rotations - https://probablyengine.com/
-- Released under modified BSD, see attached LICENSE.
ProbablyEngine.module.register("combatTracker", {
current = 0,
expire = 15,
friendly = { },
enemy = { },
dead = { },
named = { },
blacklist = { },
healthCache = { },
healthCacheCount = { },... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Illeuse.lua | 5 | 1345 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Illeuse
-- @zone 80
-- !pos -44.203 2 -36.216
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Walls/npcs/Hiwon-Biwon.lua | 5 | 3500 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Hiwon-Biwon
-- Involved In Quest: Making Headlines, Curses, Foiled...Again!?
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/global... | gpl-3.0 |
eugenesan/openwrt-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk.lua | 80 | 5333 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
h... | apache-2.0 |
codedash64/Urho3D | bin/Data/LuaScripts/13_Ragdolls.lua | 24 | 19430 | -- Ragdoll example.
-- This sample demonstrates:
-- - Detecting physics collisions
-- - Moving an AnimatedModel's bones with physics and connecting them with constraints
-- - Using rolling friction to stop rolling objects from moving infinitely
require "LuaScripts/Utilities/Sample"
function Start(... | mit |
Ninjistix/darkstar | scripts/zones/Metalworks/npcs/Cid.lua | 5 | 11264 | -----------------------------------
-- Area: Metalworks
-- NPC: Cid
-- Starts & Finishes Quest: Cid's Secret, The Usual, Dark Puppet (start)
-- Involved in Mission: Bastok 7-1
-- !pos -12 -12 1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/prized_angler_stewpot.lua | 3 | 1751 | -----------------------------------------
-- ID: 5613
-- Item: Prized Angler's Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +20
-- Dexterity 4
-- Agility 2
-- Mind 2
-- HP Recovered while healing 9
-- MP Recovered while healing 3
-- ... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/sleep.lua | 5 | 1264 | -----------------------------------------
-- Spell: Sleep I
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
end;
func... | gpl-3.0 |
flori/dynadns | dyna_client.lua | 1 | 1484 | #!/usr/bin/env lua
-- dynadns client script, that can be run on a openwrt router
-- Compute a md5 sum by calling out to md5sum shell command. Lame, I know.
function md5(string)
local filename = "/tmp/dynadns.tmp"
local sum = io.popen("md5sum >" .. filename, "w")
sum:write(string)
sum:close()
sum = io.open(fi... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/twashtar.lua | 3 | 3305 | -----------------------------------------
-- ID: 19457
-- Item: Twashtar
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPON... | gpl-3.0 |
ocurr/hammerspoon | extensions/host/init.lua | 14 | 1207 | --- === hs.host ===
---
--- Inspect information about the machine Hammerspoon is running on
---
--- Notes:
--- * The network/hostname calls can be slow, as network resolution calls can be called, which are synchronous and will block Hammerspoon until they complete.
local host = require "hs.host.internal"
local fnutil... | mit |
codedash64/Urho3D | Source/ThirdParty/LuaJIT/src/jit/v.lua | 42 | 5755 | ----------------------------------------------------------------------------
-- Verbose mode of the LuaJIT compiler.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
Ninjistix/darkstar | scripts/zones/Beaucedine_Glacier/Zone.lua | 5 | 2405 | -----------------------------------
--
-- Zone: Beaucedine_Glacier (111)
--
-----------------------------------
package.loaded[ "scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beaucedine_Glacier/TextIDs");
require("scripts/globals/missions");
require("script... | gpl-3.0 |
lukego/ljsyscall | include/headers.lua | 1 | 29873 | -- ffi definitions of Linux headers
local ffi = require "ffi"
-- currently used for x86, x64. arm has no differences.
local ok, arch = pcall(require, "include.headers-" .. ffi.arch) -- architecture specific definitions
if not ok then arch = {} end
-- define C types
ffi.cdef[[
static const int UTSNAME_LENGTH = 65;
... | mit |
SPARKTEA/sparkteam1 | plugins/msg_checks.lua | 149 | 11202 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-3.0 |
blackman1380/antispam | plugins/msg_checks.lua | 149 | 11202 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-2.0 |
dmekersa/create2Dmobilegames | ScreenJungleUltimate/main.lua | 1 | 1689 | -----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- Your code here
display.setStatusBar( display.HiddenStatusBar )
background = display.newImageRect( "ultimatebg.jpg", ... | unlicense |
Ninjistix/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Telepoint.lua | 5 | 1360 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Eastern_Altepa_Desert/TextIDs");
... | gpl-3.0 |
blackman1380/antispam | plugins/filemanager.lua | 11 | 5966 | -- by negative
local BASE_FOLDER = "/"
local folder = ""
local function download_file(extra, success, result)
vardump(result)
local file = ""
local filename = ""
if result.media.type == "photo" then
file = result.id
filename = "somepic.jpg"
elseif result.media.type == "document" the... | gpl-2.0 |
trixnz/lua-fmt | test/lua-5.3.4-tests/constructs.lua | 13 | 7507 | -- $Id: constructs.lua,v 1.41 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
;;print "testing syntax";;
local debug = require "debug"
local function checkload (s, msg)
assert(string.find(select(2, load(s)), msg))
end
-- testing semicollons
do ;;; end
; do ; a = 3; assert(a == 3) end;
;... | mit |
Ninjistix/darkstar | scripts/zones/Mine_Shaft_2716/npcs/_0d0.lua | 5 | 2023 | -----------------------------------
-- Area: Mine_Shaft_2716
-- NPC: Shaft entrance
-----------------------------------
package.loaded["scripts/zones/Mine_Shaft_2716/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/globals/quests");
require("scripts/globals/missio... | gpl-3.0 |
Inorizushi/DDR-SN1HD | Scripts/02 MyGrooveRadar.lua | 3 | 2462 | --[[
01 MyGrooveRadar.lua
]]
--Load the setting we need for this.
local mgrData = create_setting('MyGrooveRadar','MyGrooveRadar.lua',{
single={chaos=0,air=0,freeze=0,voltage=0,stream=0},
double={chaos=0,air=0,freeze=0,voltage=0,stream=0}
}, 2, {})
local categoryToActorMappings = {'stream','voltage','air','fre... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Chamber_of_Oracles/bcnms/through_the_quicksand_caves.lua | 5 | 1958 | -----------------------------------
-- Area: Qu'Bia Arena
-- Name: Zilart Mission 6
-- !pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems")... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Despachiaire.lua | 5 | 2356 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Despachiaire
-- !pos 108 -40 -83 26
-----------------------------------
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local currentCOPMission = pl... | gpl-3.0 |
mandersan/premake-core | tests/base/test_validation.lua | 32 | 2642 | --
-- tests/base/test_validation.lua
-- Verify the project information sanity checking.
-- Copyright (c) 2013-20124 Jason Perkins and the Premake project
--
local suite = test.declare("premake_validation")
local p = premake
--
-- Setup
--
local function validate()
return pcall(function() p.container.validate(... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/regurgitation.lua | 3 | 2145 | -----------------------------------------
-- Spell: Regurgitation
-- Deals Water damage to an enemy. Additional Effect: Bind
-- Spell cost: 69 MP
-- Monster Type: Lizards
-- Spell Type: Magical (Water)
-- Blue Magic Points: 1
-- Stat Bonus: INT+1 MND+1 MP+3
-- Level: 68
-- Casting Time: 5 seconds
-- Recast Time: 24 sec... | gpl-3.0 |
dafei2015/hugular_cstolua | Client/Assets/Lua/core/listener.lua | 15 | 1290 | --
--------------------------------------------------------------------------------
-- FILE: listener.lua
-- DESCRIPTION: protoc-gen-lua
-- Google's Protocol Buffers project, ported to lua.
-- https://code.google.com/p/protoc-gen-lua/
--
-- Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
-- ... | mit |
ahmetabdi/JC2-MP-Racing | server/sCourseFileLoader.lua | 2 | 11655 |
-- Datablock names and their default values.
class("INFO")
function INFO:__init()
self.datablockType = "INFO"
self.name = "unnamed course"
self.type = "linear"
self.laps = 1
self.lapTimeMinutes = 0
self.lapTimeSeconds = 0
self.hourStart = 10
self.hourFinish = 14
self.checkpointRadiusMult = 1
self.weatherSe... | mit |
Ninjistix/darkstar | scripts/zones/Oldton_Movalpolos/Zone.lua | 6 | 1734 | -----------------------------------
--
-- Zone: Oldton_Movalpolos (11)
--
-----------------------------------
package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Oldton_Movalpolos/TextIDs");
require("scripts/zones/Oldton_Movalpolos/MobIDs");
requir... | gpl-3.0 |
davidbuzz/ardupilot | libraries/AP_Scripting/applets/VTOL-quicktune.lua | 2 | 14525 | --[[
fast tuning of VTOL gains for multirotors and quadplanes
This should be used in QLOITER mode for quadplanes and LOITER mode
for copters, although it will work in other VTOL modes
--]]
--[[
- TODO:
- disable weathervaning while tuning?
- possibly lower P XY gains during tuning?
- bail out on a large angle... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n1.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Spire_of_Vahzl/npcs/_0n2.lua | 66 | 1356 | -----------------------------------
-- Area: Spire_of_vahlz
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Vahzl/TextIDs");
-------------------... | gpl-3.0 |
kylesusername/void-packages | srcpkgs/prosody/files/prosody.cfg.lua | 97 | 7823 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | bsd-2-clause |
Ninjistix/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/mobs/Jailer_of_Temperance.lua | 5 | 4149 | ----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NM: Jailer of Temperance
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
function onMobSpawn(mob)
-- Set AnimationSub to 0, put it in pot form
--... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Jugner_Forest/npcs/Cavernous_Maw.lua | 5 | 1102 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Cavernous Maw
-- !pos -118 -8 -518 104
-- Teleports Players to Jugner Forest [S]
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Northern_San_dOria/npcs/Telmoda.lua | 5 | 1331 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Telmoda
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/globals/s... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Gusgen_Mines/npcs/qm2.lua | 5 | 1943 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm2 (???)
-- Involved In Mission: Bastok 3-2
-- !pos 206 -60 -101 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Melleupaux.lua | 5 | 1036 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Melleupaux
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnazian_Safehol... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria/npcs/Celyddon.lua | 5 | 1520 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Celyddon
-- General Info NPC
-- @zone 230
-- !pos -129 -6 90
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/Te... | gpl-3.0 |
yuryleb/osrm-backend | profiles/car.lua | 1 | 14073 | -- Car profile
api_version = 4
Set = require('lib/set')
Sequence = require('lib/sequence')
Handlers = require("lib/way_handlers")
Relations = require("lib/relations")
find_access_tag = require("lib/access").find_access_tag
limit = require("lib/maxspeed").limit
Utils = require("lib/utils")
Measure = require("lib/measu... | bsd-2-clause |
Ninjistix/darkstar | scripts/zones/AlTaieu/npcs/qm2.lua | 6 | 1259 | -----------------------------------
-- Area: Al'Taieu
-- NPC: ??? (Jailer of Justice Spawn)
-- Allows players to spawn the Jailer of Justice by trading the Second Virtue, Deed of Moderation, and HQ Xzomit Organ to a ???.
-- !pos , -278 0 -463
-----------------------------------
package.loaded["scripts/zones/AlTaieu/Te... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Walls/npcs/Shantotto.lua | 5 | 8070 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shantotto
-- !pos 122 -2 112 239
-- CSID's missing in autoEventID please check the old forums under resources for all of shantotto's csid's. I found them all manually.
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/Te... | gpl-3.0 |
karrots/nodemcu-firmware | lua_examples/ucglib/GT_pixel_and_lines.lua | 30 | 1076 | local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component pixel_and_lines...")
local mx
local x, xx
mx = disp:getWidth() / 2
--my = disp:getHeight() / 2
disp:setColor(0, 0, 0, 150)
disp:setCol... | mit |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/Blob.lua | 10 | 6575 | --
-- The important functions here are
-- Blob:Encode([some table]) Returns a string blob of the serialized data.
-- Blob:Decode([some encoded string]) Returns a lua table from a string blob.
--
Blob = {}
function Blob:Error(value)
print('Cannot encode value')
assert(false, 'Cannot encode value')
end... | mit |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/Blob.lua | 10 | 6575 | --
-- The important functions here are
-- Blob:Encode([some table]) Returns a string blob of the serialized data.
-- Blob:Decode([some encoded string]) Returns a lua table from a string blob.
--
Blob = {}
function Blob:Error(value)
print('Cannot encode value')
assert(false, 'Cannot encode value')
end... | mit |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Quelle.lua | 3 | 1632 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Quelle
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
func... | gpl-3.0 |
otservme/global1051 | data/talkactions/scripts/create_item.lua | 10 | 1097 | function onSay(cid, words, param)
local player = Player(cid)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_GOD then
return false
end
local split = param:split(",")
local itemType = ItemType(split[1])
if itemType:getId() == 0 then
itemType = ItemType... | gpl-2.0 |
Xamla/torch-ros | lua/std/StringVector.lua | 1 | 2677 | local ffi = require 'ffi'
local torch = require 'torch'
local ros = require 'ros.env'
local utils = require 'ros.utils'
local std = ros.std
local StringVector = torch.class('std.StringVector', std)
function init()
local StringVector_method_names = {
"new",
"clone",
"delete",
"size",
"getAt",
... | bsd-3-clause |
amirb8/telepersian | plugins/supergroup.lua | 33 | 75432 | --Begin supergrpup.lua
--Check members #Add supergroup
local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "Promote me to admin first!")
end
for k,v in pairs(result... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua | 5 | 2095 | -----------------------------------
-- Area: Apollyon CS
-- MOB: Carnagechief_Jackbodokk
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/metatron_torment.lua | 3 | 2176 | -----------------------------------
-- Metatron Torment
-- Hand-to-Hand Skill level: 5 Description: Delivers a threefold attack. Damage varies wit weapon skill
-- Great Axe Weapon Skill
-- Skill Level: N/A
-- Lowers target's defense. Additional effect: temporarily lowers damage taken from enemies.
-- Defense Down effec... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/QuBia_Arena/bcnms/heir_to_the_light.lua | 5 | 1912 | -----------------------------------
-- Name: Mission 9-2 SANDO
-----------------------------------
package.loaded["scripts/zones/Qubia_arena/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
--... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Wyatt.lua | 5 | 1728 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Wyatt
-- @zone 80
-- !pos 124 0 84
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("s... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/hurricane_wing.lua | 66 | 1332 | ---------------------------------------------
-- Hurricane Wing
--
-- Description: Deals hurricane-force wind damage to enemies within a very wide area of effect. Additional effect: Blind
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Dragua, Fafnir, Nidhogg,... | gpl-3.0 |
istarIQ/Source | msg_checks.lua | 37 | 10930 | --Begin msg_checks.lua
--Begin pre_process function
local function pre_process(msg)
-- Begin 'RondoMsgChecks' text checks by @rondoozle
if is_chat_msg(msg) or is_super_group(msg) then
if msg and not is_momod(msg) and not is_whitelisted(msg.from.id) then --if regular user
local data = load_data(_config.moderatio... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/spells/absorb-acc.lua | 4 | 1539 | --------------------------------------
-- Spell: Absorb-ACC
-- Steals an enemy's accuracy.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------------
function ... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/flask_of_panacea.lua | 3 | 1585 | -----------------------------------------
-- ID: 4163
-- Item: Panacea
-- Item Effect: Removes any number of status effects
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(target)
return 0;
end;
function onItemUse(target)
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/weaponskills/true_strike.lua | 25 | 1495 | -----------------------------------
-- True Strike
-- Club weapon skill
-- Skill level: 175
-- Deals params.critical damage. params.accuracy varies with TP.
-- 100% Critical Hit Rate. Has a substantial accuracy penalty at 100TP. http://www.bg-wiki.com/bg/True_Strike
-- Will stack with Sneak Attack.
-- Aligned with the ... | gpl-3.0 |
blackman1380/antispam | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
wounds1/zaza2 | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
TEAMvirus/ViRuS | libs/feedparser.lua | 543 | 11955 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-2.0 |
dail8859/LuaScript | examples/SessionManager.lua | 1 | 6312 | -- A very simplistic session manager. It opens previously open files and restores
-- cursor position and scroll position. It is not perfect, for example it does
-- not keep track of the order or in which view the files are in. This code must
-- be ran during startup. This is just a demonstration of how to use the API
... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/StatusMenuState.lua | 1 | 4151 | StatusMenuState = {}
StatusMenuState.__index = StatusMenuState
function StatusMenuState:Create(parent, world)
local layout = Layout:Create()
layout:Contract('screen', 118, 40)
layout:SplitHorz('screen', "title", "bottom", 0.12, 2)
local this =
{
mParent = parent,
mStateMachine = pa... | mit |
DGA-MI-SSI/YaCo | deps/swig-3.0.7/Examples/lua/embed3/runme.lua | 6 | 1091 | print "[lua] This is runme.lua"
-- test program for embedded lua
-- we do not need to load the library, as it was already in the interpreter
-- but let's check anyway
assert(type(example)=='table',"Don't appear to have loaded the example module. Do not run this file directly, run the embed3 executable")
print "[lua] ... | gpl-3.0 |
neofob/sile | packages/pullquote.lua | 1 | 3614 | SILE.require("packages/color")
SILE.require("packages/raiselower")
SILE.require("packages/rebox")
SILE.registerCommand("pullquote:font", function (options, content)
end, "The font chosen for the pullquote environment")
SILE.registerCommand("pullquote:author-font", function (options, content)
SILE.settings.set("font... | mit |
Ninjistix/darkstar | scripts/zones/RuLude_Gardens/npcs/Dabih_Jajalioh.lua | 5 | 1098 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Dabih Jajalioh
-- Standard Merchant NPC
-- Additional script for pereodical
-- goods needed.
-- Partitially implemented.
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/fire_sword.lua | 7 | 1033 | -----------------------------------------
-- ID: 16543
-- Item: Fire Sword
-- Additional Effect: Fire Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(pla... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Horlais_Peak/bcnms/dropping_like_flies.lua | 5 | 1739 | -----------------------------------
-- Area: Horlias peak
-- Name: Dropping Like Flies
-- BCNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXA... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Promyvion-Vahzl/npcs/_0m0.lua | 7 | 1056 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (3)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("scripts/zones/Promyvion-Vahzl/MobIDs");
... | gpl-3.0 |
abbasgh12345/extremenew | plugins/owners.lua | 1467 | 12478 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
bluetomatoes/ExploreTimelines | CodeSamples/SnapShapes 2/SnapShapes_START/dmc_multitouch.lua | 3 | 31111 | --===================================================================--
-- dmc_multitouch.lua
--
-- by David McCuskey
-- Documentation: http://docs.davidmccuskey.com/display/docs/dmc_multitouch.lua
--===================================================================--
--[[
Copyright (C) 2012 David McCuskey. All Righ... | mit |
Ninjistix/darkstar | scripts/zones/Windurst_Woods/TextIDs.lua | 5 | 7430 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6539; -- Come back after sorting your inventory.
ITEM_OBTAINED = 6545; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Special Code: 01>>><<<Possible Special Code: 05>>>
GIL_OBTAINED = 6... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria/npcs/Cletae.lua | 4 | 1147 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Cletae
-- Guild Merchant NPC: Leathercrafting Guild
-- !pos -189.142 -8.800 14.449 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Lower_Jeuno/npcs/_l04.lua | 3 | 2486 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- !pos -80 0 -111 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
blackman1380/antispam | plugins/info.lua | 10 | 22224 | local function callback_reply(extra, success, result)
--icon & rank ------------------------------------------------------------------------------------------------
userrank = "Member"
if tonumber(result.from.id) == 122774063 then
userrank = "Master ⭐⭐⭐⭐"
send_document(org_chat_id,"umbrella/stickers/master.webp"... | gpl-2.0 |
PetarTilevRusev/EndlessWar | game/scripts/vscripts/addon_game_mode.lua | 1 | 3207 | -- This is the entry-point to your game mode and should be used primarily to precache models/particles/sounds/etc
require('internal/util')
require('gamemode')
function Precache( context )
--[[
This function is used to precache resources/units/items/abilities that will be needed
for sure in your game and that will... | mit |
Ninjistix/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Ishin_IM.lua | 3 | 2971 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Ishin, I.M.
-- Outpost Conquest Guards
-- !pos -481.164 -32.858 49.188 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest"... | gpl-3.0 |
hamrah12/hamrah_shoma | plugins/translate.lua | 674 | 1637 |
--[[
-- Translate text using Google Translate.
-- http://translate.google.com/translate_a/single?client=t&ie=UTF-8&oe=UTF-8&hl=en&dt=t&tl=en&sl=auto&text=hello
--]]
do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
-- URL query parameters
local p... | gpl-2.0 |
LuaDist2/gntp | src/lua/gntp/utils.lua | 2 | 10519 | ------------------------------------------------------------------
--
-- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Copyright (C) 2015-2016 Alexey Melnichuk <alexeymelnichuck@gmail.com>
--
-- Licensed according to the included 'LICENSE' document
--
-- This file is part of lua-gntp library.
--
-----... | mit |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Virnage.lua | 5 | 2055 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Virnage
-- Starts Quest: Altana's Sorrow
-- @zone 234
-- !pos 0 0 51
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
ccyphers/kong | spec/03-plugins/01-basic-auth/02-api_spec.lua | 1 | 9356 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("Plugin: basic-auth (API)", function()
local consumer, admin_client
setup(function()
assert(helpers.start_kong())
admin_client = helpers.admin_client()
end)
teardown(function()
if admin_client then admin_client:close() en... | apache-2.0 |
LuaDist2/llui | src/kernel.lua | 2 | 8141 | -- There should be only one instance of this code
-- running for a given lua state
--[[
Queue
--]]
local Queue = {}
setmetatable(Queue, {
__call = function(self, ...)
return self:create(...);
end,
});
local Queue_mt = {
__index = Queue;
}
function Queue.init(self, first, last, name)
first = first or 1;
la... | mit |
Ninjistix/darkstar | scripts/zones/QuBia_Arena/bcnms/rank_5_mission.lua | 5 | 1961 | -----------------------------------
-- Area: Qu'Bia Arena
-- NPC: Mission Rank 5
-- !pos -221 -24 19 206
-----------------------------------
package.loaded["scripts/zones/QuBia_Arena/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/QuBia_Arena/TextIDs");... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/The_Shrouded_Maw/bcnms/waking_dreams.lua | 5 | 1875 | -----------------------------------
-- Area: The_Shrouded_Maw
-- Name: waking_dreams
-----------------------------------
package.loaded["scripts/zones/The_Shrouded_Maw/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrouded_Maw/TextIDs");
require("scripts/zones/The_Shrouded_Maw/MobIDs")... | gpl-3.0 |
mandersan/premake-core | binmodules/luasocket/test/httptest.lua | 25 | 11462 | -- needs Alias from /home/c/diego/tec/luasocket/test to
-- "/luasocket-test" and "/luasocket-test/"
-- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi
-- to "/luasocket-test-cgi" and "/luasocket-test-cgi/"
-- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth
local socket = require("s... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/spells/armys_paeon_v.lua | 5 | 1338 | -----------------------------------------
-- Spell: Army's Paeon V
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return 0;
en... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/power_attack.lua | 33 | 1732 | -----------------------------------------
-- Spell: Power Attack
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Vermin
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 1
-- Stat Bonus: MND+1
-- Level: 4
-- Casting Time: 0.5 seconds
-- Recast Time: 7.25 seconds
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Jugner_Forest_[S]/mobs/Lobison.lua | 7 | 1454 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Lobison
-----------------------------------
function onMobSpawn(mob)
mob:setLocalVar("transformTime", os.time())
end;
function onMobRoam(mob)
local changeTime = mob:getLocalVar("transformTime");
local roamChance = math.random(1,100);
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Norg/npcs/Ranemaud.lua | 5 | 3420 | -----------------------------------
-- Area: Norg
-- NPC: Ranemaud
-- Involved in Quest: Forge Your Destiny, The Sacred Katana
-- !pos 15 0 23 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
Xanthin/sea | seacobble/init.lua | 1 | 5115 | -- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
-- NODES
minetest.register_node("seacobble:seacobble", {
description = S("Sea cobblestone"),
tiles = {"seacobble_seacobble.png"},
is... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Bastok/npcs/Evelyn.lua | 5 | 1198 | -----------------------------------
-- Area: Port Bastok
-- NPC: Evelyn
-- Only sells when Bastok controlls Gustaberg Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Por... | gpl-3.0 |
neilbu/osrm-backend | profiles/lib/way_handlers.lua | 1 | 20221 | -- Profile handlers dealing with various aspects of tag parsing
--
-- You can run a selection you find useful in your profile,
-- or do you own processing if/when required.
local get_turn_lanes = require("lib/guidance").get_turn_lanes
local set_classification = require("lib/guidance").set_classification
local get_des... | bsd-2-clause |
Ninjistix/darkstar | scripts/zones/Selbina/npcs/Vuntar.lua | 5 | 2895 | -----------------------------------
-- Area: Selbina
-- NPC: Vuntar
-- Starts and Finishes Quest: Cargo (R)
-- !pos 7 -2 -15 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/glob... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.