repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
suxinde2009/wesnoth | data/ai/micro_ais/engines/priority_target_engine.lua | 7 | 3307 | return {
init = function()
local priority_target = {}
local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local AH = wesnoth.require "ai/lua/ai_helper.lua"
function priority_target:change_attacks_aspect(target_id)
-- Set 'attacks' ... | gpl-2.0 |
xomachine/textadept-spellchecker | livechecking.lua | 1 | 1112 | local check = require("textadept-spellchecker.check")
local timer = require("textadept-spellchecker.timer")
-------------------------------
-- Live checking routines
-------------------------------
local _M = {}
local function on_expire()
check.frame()
end
local livecheck_timer = timer.create_timer(on_expire, 2)
l... | mit |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/polar_blast.lua | 33 | 1412 | ---------------------------------------------
-- Polar Blast
--
-- Description: Deals Ice damage to enemies within a fan-shaped area. Additional effect: Paralyze
-- Type: Breath
-- Ignores Shadows
-- Range: Unknown Cone
---------------------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
wingo/snabb | lib/pflua/src/pf/match.lua | 15 | 11796 | module(...,package.seeall)
---
--- Program := 'match' Cond
--- Cond := '{' Clause... '}'
--- Clause := Test '=>' Dispatch [ClauseTerminator]
-- Test := 'otherwise' | LogicalExpression
--- ClauseTerminator := ',' | ';'
--- Dispatch := Call | Cond
--- Call := Identifier Args?
--- Args := '(' [ ArithmeticExpression [ ',... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/flat_blade.lua | 9 | 1360 | ---------------------------------------------
-- Flat Blade
--
-- Description: Stuns enemy. Chance of stunning varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: Shadow per hit
-- Range: Melee
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/sett... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/drain.lua | 2 | 1675 | -----------------------------------------
-- Spell: Drain
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
-----------------------------------------
-- OnSpellCast
--------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Biora.lua | 14 | 1036 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Biora
-- Type: Map Viewer
-- @zone 245
-- @pos -28.768 -2 -11.300
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
----------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Phomiuna_Aqueducts/npcs/_0ro.lua | 14 | 1644 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Arienh.lua | 14 | 1034 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arienh
-- Type: Standard Dialogue NPC
-- @zone 231
-- @pos -37.292 -2.000 -6.817
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs");
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Tavnazian_Safehold/npcs/Aligi-Kufongi.lua | 27 | 3114 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Aligi-Kufongi
-- Title Change NPC
-- @pos -23 -21 15 26
-----------------------------------
require("scripts/globals/titles");
local title2 = { TAVNAZIAN_SQUIRE ,PUTRID_PURVEYOR_OF_PUNGENT_PETALS , MONARCH_LINN_PATROL_GUARD , SIN_HUNTER_HUNTER , ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua | 17 | 3579 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Engelhart
-- Quest NPC
-- pos -79 -4 -125
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scrip... | gpl-3.0 |
albanD/adaptive-neural-compilation | adaptation/utils/distUtils.lua | 1 | 5823 | local distUtils = {}
distUtils.addDist = function(dist1, dist2, output)
assert(dist1:size(1)==dist2:size(1), "Distribution should have same size")
if output == nil then
output = dist1.new():resizeAs(dist1)
end
output:resize(dist1:size(1)):zero()
local max_val = dist1:size(1)
for a=0,max_val-1 do
local Pa =... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/tranquility.lua | 26 | 1165 | -----------------------------------
-- Ability: Tranquility
-- Your next white magic spell will generate less enmity.
-- Obtained: Scholar Level 75 Tier 2 Merit Points
-- Recast Time: Stratagem Charge
-- Duration: 1 white magic spell or 60 seconds, whichever occurs first
--
-- Level |Charges |Recharge Time per Charge... | gpl-3.0 |
DarkWanderer/DW.Lua | DW.Lua.UnitTests/Code/Fixtures/literals.lua | 11 | 10339 | -- $Id: literals.lua,v 1.36 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
print('testing scanner')
local debug = require "debug"
local function dostring (x) return assert(load(x), "")() end
dostring("x \v\f = \t\r 'a\0a' \v\f\f")
assert(x == 'a\0a' and string.len(x) == 3)
-- escape seq... | mit |
wingo/snabb | lib/ljsyscall/syscall/netbsd/nr.lua | 24 | 9205 | -- NetBSD syscall numbers
local nr = {
SYS = {
syscall = 0,
exit = 1,
fork = 2,
read = 3,
write = 4,
open = 5,
close = 6,
compat_50_wait4 = 7,
compat_43_ocreat = 8,
link = 9,
unlink = 10,
chdir = 12,
fchdir = 13,
compat_50_mknod = 14,
chmod = 15,
chown = 16,
["break"] = 17,
compat... | apache-2.0 |
Chouser/mal | lua/step3_env.lua | 3 | 2410 | #!/usr/bin/env lua
local table = require('table')
local readline = require('readline')
local utils = require('utils')
local types = require('types')
local reader = require('reader')
local printer = require('printer')
local Env = require('env')
local List, Vector, HashMap = types.List, types.Vector, types.HashMap
-- ... | mpl-2.0 |
tempbottle/raft.js | research_class/pgfplots/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp/luamath/parser.lua | 4 | 17567 | --------------------------------------------------------------------------------------------------
------ This file is a copy of some part of PGF/Tikz.
------ It has been copied here to provide :
------ - compatibility with older PGF versions
------ - availability of PGF contributions by Christian Feuersaenger
------... | mpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Port_Bastok/npcs/Blabbivix.lua | 14 | 1200 | -----------------------------------
-- Area: Port Bastok
-- NPC: Blabbivix
-- Standard merchant, though he acts like a guild merchant
-- @pos -110.209 4.898 22.957 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
wingo/snabb | src/apps/socket/unix.lua | 4 | 5282 |
--unix socket app: transmit and receive packets through a named socket.
--can be used in server (listening) or client (connecting) mode.
module(...,package.seeall)
local ffi = require("ffi")
local link = require("core.link")
local packet = require("core.packet")
local S = require("syscall")
UnixSocket = {... | apache-2.0 |
prannayk/luaTorch | hello.lua | 1 | 1364 | function fact(n)
if n < 2 then
return 1
else
return n * fact(n-1)
end
end
function run()
i=1; sum = 0
while i <= 5 do
sum = sum + (2*i - 1)
i = i + 1
end
print(sum)
local j = 1
while j do
print (j)
j = j + 1
if j >= 5 then
break
... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Rolanberry_Fields/TextIDs.lua | 7 | 1197 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6407; -- Obtained: <item>.
GIL_OBTAINED = 6408; -- Obtained <number> gil.
NOT_ENOUGH_GIL = 6412; -- You do n... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/commands/capskill.lua | 1 | 1956 | ---------------------------------------------------------------------------------------------------
-- func: capskill
-- desc: Caps a specific skill.
---------------------------------------------------------------------------------------------------
require("scripts/globals/status");
cmdprops =
{
permission = 1,
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Quicksand_Caves/npcs/Treasure_Coffer.lua | 13 | 4641 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Treasure Coffer
-- @zone 208
-- @pos 615 -6 -681
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
tynaut/GardenBot | monsters/unique/gardenbot/depositstate.lua | 1 | 3342 | --------------------------------------------------------------------------------
depositState = {}
--------------------------------------------------------------------------------
function depositState.enter()
local count = self.inv.inventoryCount()
if count ~= nil and count > 0 then
local position = entity.pos... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/moon_carrot.lua | 12 | 1181 | -----------------------------------------
-- ID: 4567
-- Item: moon_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
aliwvw/Smart_guy | plugin/lock_user.lua | 1 | 2133 | --[[
_ _ _ _ ___ ___ _
__ _| |__ ___ ___| | ___ __ ___ _ __ (_) __ _ / |/ _ \ / _ \| | __
/ _` | '_ \ / _ \/ __| |/ / '__/ _ \| '_ \ | |/ _` | | | | | | | | | |/ /
| (_| | |_) | (_) \__ \ <| | | (_) | |_) | | | (_| | | | |_| | |_| | < ... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dangruf_Wadi/TextIDs.lua | 7 | 1316 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6544; -- Obtained: <item>.
GIL_OBTAINED = 6545; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6547; -- Obtained... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters_[S]/npcs/Tahl_Mhioguch.lua | 14 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Tahl Mhioguch
-- Type: Standard NPC
-- @zone 94
-- @pos -64.907 -5.947 81.391
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
pakozm/april-ann | packages/basics/matrix/lua_src/generic_serialization.lua | 2 | 6704 | local function archive_wrapper(s)
if class.is_a(s, aprilio.package) then
assert(s:number_of_files() == 1, "Expected only 1 file in the package")
return s:open(1)
else
return s
end
end
matrix.__generic__ = matrix.__generic__ or {}
matrix.__generic__.__make_generic_to_lua_string__ = function(matrix_... | gpl-3.0 |
PraveerSINGH/nn | THNN.lua | 10 | 3673 | local ffi = require 'ffi'
local THNN = {}
local generic_THNN_h = require 'nn.THNN_h'
-- strip all lines starting with #
-- to remove preprocessor directives originally present
-- in THNN.h
generic_THNN_h = generic_THNN_h:gsub("\n#[^\n]*", "")
generic_THNN_h = generic_THNN_h:gsub("^#[^\n]*\n", "")
-- THGenerator stru... | bsd-3-clause |
pakozm/april-ann | packages/basics/stats/test/test-zca-whitening.lua | 3 | 1584 | local check = utest.check
local T = utest.test
--
local path = string.get_path(arg[0]).."../../../../TEST"
local m = ImageIO.read(path.."/digitos/digits.png"):invert_colors():to_grayscale():matrix()
local ds = dataset.matrix(m,
{
patternSize = {16,16},
offset = {0,0},
numSteps = {100,1... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/South_Gustaberg/npcs/Stone_Monument.lua | 14 | 1295 | -----------------------------------
-- Area: South Gustaberg
-- NPC: Stone Monument
-- Involved in quest "An Explorer's Footsteps"
-- @pos 520.064 -5.881 -738.356 107
-----------------------------------
package.loaded["scripts/zones/South_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
suchacoder/Dotfiles | .config/nvim/lua/core/mappings.lua | 1 | 9450 | -- n, v, i, t = mode names
local function termcodes(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local M = {}
M.general = {
i = {
-- go to beginning and end
["<C-b>"] = { "<ESC>^i", "論 beginning of line" },
["<C-e>"] = { "<End>", "壟 end of line" },
-- navigate within in... | gpl-3.0 |
kaeza/lua-chatterbot | config.lua | 1 | 2069 |
local setmetatable, tostring, tonumber, io_open, pairs, print =
setmetatable, tostring, tonumber, io.open, pairs, print
module "config"
local conf = { }
local conf_meta = { __index=conf }
function conf:set(name, v)
if v == nil then
self._vars[name] = nil
else
self._vars[name] = tostring(v)
end
end
fun... | bsd-2-clause |
BooM-amour/FUCKER | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
rezaar/sorenaFarsi | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
aliomega/aliomega | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Northern_San_dOria/npcs/Attarena.lua | 17 | 1958 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Attarena
-- Only sells when San d'Oria controlls Li'Telor Region
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northe... | gpl-3.0 |
jheusala/freeciv-extended | dependencies/tolua-5.1/src/bin/lua/code.lua | 5 | 1771 | -- tolua: code class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1999
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, o... | gpl-2.0 |
suxinde2009/wesnoth | data/lua/location_set.lua | 28 | 3736 | local location_set = {}
local function index(x, y)
-- the 2000 bias ensure that the correct x is recovered for negative y
return x * 16384 + y + 2000
end
local invscale = 1 / 16384
local function revindex(p)
local x = math.floor(p * invscale)
return x, p - x * 16384 - 2000
end
local methods = {}
local locset_met... | gpl-2.0 |
firedtoad/skynet | lualib/skynet/datasheet/dump.lua | 20 | 6547 | --[[ file format
document :
int32 strtbloffset
int32 n
int32*n index table
table*n
strings
table:
int32 array
int32 dict
int8*(array+dict) type (align 4)
value*array
kvpair*dict
kvpair:
string k
value v
value: (union)
int32 integer
float real
int32 boolean
int32 table index
int32 st... | mit |
rehsack/meta-openembedded | meta-gnome/recipes-gnome/devilspie/files/default.lua | 40 | 1194 | -- Copyright (c) 2012 Andreas Müller <schnitzeltony@googlemail.com>
--
-- this is an example
-- * undecorating all windows opened maximized
-- * maximizing and undecorating all appplication's windows in apps_list
-- for further information see
-- http://www.gusnan.se/devilspie2/manual.php
wnd_type = get_window_type()... | mit |
arman022/turbo-spammer | plugins/id.lua | 3 | 1475 | do function run(msg, matches)
if matches[1]:lower() == 'id' and is_sudo(msg) then
return "Sudo☑\n⭕️Your id⭕️\n"..msg.from.id.."\n⭕️Your name⭕️\n"..msg.from.print_name.."\n⭕️Group name⭕️\n"..msg.to.title.."\n⭕️Group id⭕️\n"..msg.to.id
end
if matches[1]:lower() == 'id' and is_admin(msg) then
r... | gpl-2.0 |
scummvm/scummvm | devtools/create_ultima/files/ultima6/scripts/common/common.lua | 18 | 9350 | --note nuvie direction values aren't the same as the original it uses the following scheme
--701
--6 2
--543
DIR_NORTH = 0
DIR_EAST = 1
DIR_SOUTH = 2
DIR_WEST = 3
DIR_NORTHEAST = 4
DIR_SOUTHEAST = 5
DIR_SOUTHWEST = 6
DIR_NORTHWEST = 7
DIR_NONE = 8
UI_STYLE_ORIG = 0
UI_STYLE_NEW = 1
UI_STYLE_O... | gpl-3.0 |
Xavyrr/Crestfallen3DS | game/start.lua | 2 | 1526 | function gameStates.start.load()
start = {}
start.timer = -3
start.state = 0
start.image0 = love.graphics.newImage('img/start/start0.png')
start.image1 = love.graphics.newImage('img/start/start1.png')
start.image2 = love.graphics.newImage('img/start/start2.png')
start.image3 = love.graphics.newImage('img/... | mit |
wingo/snabb | lib/pflua/tests/pfquickcheck/pflua_ir.lua | 25 | 1989 | #!/usr/bin/env luajit
-- -*- lua -*-
-- This module generates (a subset of) pflua's IR,
-- for property-based tests of pflua internals.
module(..., package.seeall)
local choose = require("pf.utils").choose
local True, False, Fail, ComparisonOp, BinaryOp, Number, Len
local Binary, Arithmetic, Comparison, Conditional
-... | apache-2.0 |
deepak78/luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 78 | 1844 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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 |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/pl_heavy_stomp.lua | 33 | 1168 | ---------------------------------------------
-- Heavy Stomp
--
-- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown radial
-- Notes: Paralysis effect has a very long duration.
---------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Alaune.lua | 14 | 1492 | -----------------------------------
-- Area: Southern San d`Oria
-- NPC: Alaune
-- Type: Tutorial NPC
-- @zone 230
-- @pos -90 1 -56
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/Te... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/head_of_isleracea.lua | 12 | 1189 | -----------------------------------------
-- ID: 5965
-- Item: Head of Isleracea
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- Agility 2
-- Vitality -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/East_Ronfaure/TextIDs.lua | 7 | 1411 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6401; -- You cannot obtain the item <item> come back again after sorting your inventory.
ITEM_OBTAINED = 6407; -- Obtained: <item>.
GIL_OBTAINED = 6408; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6410; -- Obt... | gpl-3.0 |
cypherkey/AvorionMission | systems/militarytcs.lua | 1 | 1260 |
package.path = package.path .. ";data/scripts/systems/?.lua"
package.path = package.path .. ";data/scripts/lib/?.lua"
require ("basesystem")
require ("randomext")
require ("utility")
function getNumTurrets(seed, rarity)
return math.max(1, rarity.value + 1)
end
function onInstalled(seed, rarity)
addMultiplyab... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/fast_blade.lua | 25 | 1373 | -----------------------------------
-- Fast Blade
-- Sword weapon skill
-- Skill Level: 5
-- Delivers a two-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: None
-- Modifiers: STR:20% ; DEX:20%
-- 100%TP 200%TP 300%TP
-... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/kalamar.lua | 12 | 1322 | -----------------------------------------
-- ID: 5448
-- Item: Kalamar
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-----------... | gpl-3.0 |
wingo/snabb | lib/ljsyscall/syscall/syscalls.lua | 13 | 33583 | -- choose correct syscalls for OS, plus shared calls
-- note that where functions are identical if present but may be missing they can also go here
-- note that OS specific calls are loaded at the end so they may override generic calls here
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs,... | apache-2.0 |
colesbury/nn | THNN.lua | 3 | 3674 | local ffi = require 'ffi'
local THNN = {}
local generic_THNN_h = require 'nn.THNN_h'
-- strip all lines starting with #
-- to remove preprocessor directives originally present
-- in THNN.h
generic_THNN_h = generic_THNN_h:gsub("\n#[^\n]*", "")
generic_THNN_h = generic_THNN_h:gsub("^#[^\n]*\n", "")
-- THGenerator str... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/globals/abilities/pets/frost_breath.lua | 29 | 1333 | ---------------------------------------------------
-- Frost Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/ability");
-----------------------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/sausage_roll.lua | 12 | 1759 | -----------------------------------------
-- ID: 4396
-- Item: sausage_roll
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 6 (cap 160)
-- Vitality 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
----------------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/The_Garden_of_RuHmet/npcs/qm3.lua | 14 | 1715 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Jailer of Faith Spawn)
-- Allows players to spawn the Jailer of Faith by trading 1 High-Quality Euvhi Organ to a ???.
-- @pos -260 0 -645
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = ni... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Bastok_Markets/npcs/Umberto.lua | 2 | 1566 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Umberto
-- Type: Quest NPC
-- Involved in Quest: Too Many Chefs
-- @pos -56.896 -5 -134.267 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
----... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/chunk_of_hobgoblin_chocolate.lua | 12 | 1347 | -----------------------------------------
-- ID: 4324
-- Item: chunk_of_hobgoblin_chocolate
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health Regen While Healing 7
-- Lizard Killer 12
-- Petrify Resist 12
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/abilities/healing_waltz.lua | 6 | 2022 | -----------------------------------
-- Ability: Healing Waltz
-- Removes one detrimental status effect from target party member.
-- Obtained: Dancer Level 35
-- TP Required: 20%
-- Recast Time: 00:15
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/tachi_kasha.lua | 18 | 1884 | -----------------------------------
-- Tachi Kasha
-- Great Katana weapon skill
-- Skill Level: 250
-- Paralyzes target. Damage varies with TP.
-- Paralyze effect duration is 60 seconds when unresisted.
-- In order to obtain Tachi: Kasha, the quest The Potential Within must be completed.
-- Will stack with Sneak Attack... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Jack_of_Hearts.lua | 17 | 1239 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Jack of Hearts
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextIDs");
----... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Aht_Urhgan_Whitegate/npcs/Sanraku.lua | 28 | 9794 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Sanraku
-- Type: Zeni NM pop item and trophy management.
-- @pos -125.724 0.999 22.136 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
mr-kelly/slua | build/luajit-2.1.0/src/jit/bcsave.lua | 41 | 18267 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
bmscoordinators/FFXI-Server | scripts/zones/West_Sarutabaruta/npcs/Mahien-Uhien.lua | 14 | 1811 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Mahien-Uhien
-- Type: Outpost Vendor
-- @pos -13 -12 311 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Garlaige_Citadel_[S]/npcs/Randecque.lua | 29 | 1746 | -----------------------------------
-- Area: Garlaige Citadel [S]
-- NPC: Randecque
-- @pos 61 -6 137 164
-- Notes: Gives Red Letter required to start "Steamed Rams"
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
badboyam/987bot | plugins/all.lua | 264 | 4202 | 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 |
bmscoordinators/FFXI-Server | scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua | 17 | 1382 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Sibila-Mobla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
-------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/spells/phalanx.lua | 27 | 1151 | -----------------------------------------
-- Spell: PHALANX
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
nsimplex/wicker | lib/predicates.lua | 1 | 5827 | --[[
Copyright (C) 2013 simplex
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 License, or (at your option) any later version.
This program is distributed in the hope that ... | gpl-2.0 |
Chouser/mal | lua/reader.lua | 36 | 3921 | local rex = require('rex_pcre')
local string = require('string')
local table = require('table')
local types = require('types')
local throw, Nil, Symbol, List = types.throw, types.Nil,
types.Symbol, types.List
local M = {}
Reader = {}
function Reader:new(tokens)
local newObj = {tok... | mpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Sacrarium/npcs/qm3.lua | 14 | 1798 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm3 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 62.668 -3.111 127.288 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Text... | gpl-3.0 |
RockySeven3161/NewBot | bot/bot.lua | 2 | 6666 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
BooM-amour/FUCKER | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
sini370/sini370xy | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier/TextIDs.lua | 7 | 1124 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6562; -- You cannot obtain the item. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6564; -- You cannot obtain the #. Try trading again after sorting your inventory.
ITEM_OBTAINED = 6566; -- Obtained:... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Castle_Oztroja/npcs/Treasure_Chest.lua | 14 | 3796 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Treasure Chest
-- Involved In Quest: Scattered into Shadow
-- @pos 7.378 -16.293 -193.590 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globa... | gpl-3.0 |
leecrest/luacrypto | tests/encrypt.lua | 6 | 3219 | function tohex(s)
return (s:gsub('.', function (c) return string.format("%02x", string.byte(c)) end))
end
function hexprint(s)
print(crypto.hex(s))
end
crypto = require 'crypto'
-- TESTING HEX
local tst = 'abcd'
assert(crypto.hex, "missing crypto.hex")
local actual = crypto.hex(tst)
local expected = tohex(tst)
ass... | mit |
bmscoordinators/FFXI-Server | scripts/zones/West_Sarutabaruta/npcs/Slow_Axe_IM.lua | 14 | 3344 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Slow Axe, I.M.
-- Type: Border Conquest Guards
-- @pos 399.450 -25.858 727.545 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/co... | gpl-3.0 |
cloudflare/lua-capnproto | tests/01-sanity.lua | 4 | 16303 | local ffi = require "ffi"
local lunit = require "lunitx"
local capnp = require "capnp"
local util = require "capnp.util"
local handwritten = require "handwritten_capnp"
local example = require "example_capnp"
local mod = example
local format = string.format
local T1 = mod.T1
local T2 = mod.T1.T2
if _VERSION >= 'Lu... | bsd-2-clause |
deepak78/luci | modules/admin-full/luasrc/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 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://w... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Al_Zahbi/npcs/Salaifa.lua | 14 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Salaifa
-- Type: Standard NPC
-- @zone 48
-- @pos -37.462 -7 -41.665
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
yarrrthegame/publicconfig | missions/tutorial_2.lua | 1 | 3281 | t = {}
local yc = require( "yarrrconfig" )
function duck_updater( mission )
local context = yc.context_of( mission )
if context.number_of_living_ducks == 0 then
return succeeded
end
return ongoing
end
function increment_number_of_living_ducks( context )
if context.number_of_living_ducks == nil then
... | mit |
pakozm/april-ann | packages/ann/optimizer/test/test-digits-adadelta.lua | 3 | 5703 | mathcore.set_use_cuda_default(util.is_cuda_available())
--
local check = utest.check
local T = utest.test
--
T("ADADELTAConvexTest", function()
local opt = ann.optimizer.adadelta()
-- optimize quadractic function: f(x) = 3*x^2 - 2*x + 10
local function f(x) return (3*x^2 - 2*x + 10):sum() end
local func... | gpl-3.0 |
Shayan123456/botttttt10 | plugins/spamgroup.lua | 96 | 28863 | do
function run(msg, matches)
return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack... | gpl-2.0 |
nsimplex/wicker | init/kernel.lua | 1 | 4782 | --[[
-- Avoid tail calls like hell.
--]]
--[[
Copyright (C) 2013 simplex
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 License, or (at your option) any later version.
Thi... | gpl-2.0 |
PraveerSINGH/nn | MaskedSelect.lua | 17 | 2507 | local unpack = unpack or table.unpack
local MaskedSelect, parent = torch.class('nn.MaskedSelect', 'nn.Module')
--[[ Sets the provided mask value for the module. ]]
function MaskedSelect:__init()
parent.__init(self)
self._maskIndices = torch.LongTensor()
self._maskIndexBuffer = torch.LongTensor()
self._maskInd... | bsd-3-clause |
bmscoordinators/FFXI-Server | scripts/globals/items/bowl_of_sutlac_+1.lua | 12 | 1473 | -----------------------------------------
-- ID: 5578
-- Item: Bowl of Sutlac
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +10
-- INT +2
-- HP Recovered while healing +1
-- MP Recovered while healing +1
-----------------------------------------
requir... | gpl-3.0 |
olapaola/olapaola-android-scripting | lua/ase/android/init.lua | 20 | 2421 | -- Copyright (C) 2009 Google Inc.
--
-- 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 applicable law or agreed to in ... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Silver_Sea_route_to_Nashmau/npcs/Jidwahn.lua | 14 | 1219 | -----------------------------------
-- Area: Silver sea route to Mhaura
-- NPC: Jidwahn
-- Guild Merchant NPC: Fishing Guild
-- @pos 4.986 -2.101 -12.026 58
-----------------------------------
package.loaded["scripts/zones/Silver_Sea_route_to_Nashmau/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Beaucedine_Glacier_[S]/npcs/Gray_Colossus_LC.lua | 14 | 1084 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Gray Colossus, L.C.
-- Type: Campaign Arbiter
-- @zone 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/effects/battlefield.lua | 19 | 1156 | -----------------------------------
--
-- EFFECT_BATTLEFIELD
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (target:getPet()) then
target:getPet():addStatusEffect(effect);
... | gpl-3.0 |
kerb9729/ESOPublicAddons | Teleporter/libs/LibAddonMenu-2.0/controls/editbox.lua | 6 | 5492 | --[[editboxData = {
type = "editbox",
name = "My Editbox",
tooltip = "Editbox's tooltip text.",
getFunc = function() return db.text end,
setFunc = function(text) db.text = text doStuff() end,
isMultiline = true, --boolean
width = "full", --or "half" (optional)
disabled = function() return db.someBooleanSetting ... | bsd-3-clause |
trigrass2/gopher-lua | _lua5.1-tests/vararg.lua | 10 | 2675 | print('testing vararg')
_G.arg = nil
function f(a, ...)
assert(type(arg) == 'table')
assert(type(arg.n) == 'number')
for i=1,arg.n do assert(a[i]==arg[i]) end
return arg.n
end
function c12 (...)
assert(arg == nil)
local x = {...}; x.n = table.getn(x)
local res = (x.n==2 and x[1] == 1 and x[2] == 2)
i... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Navisse.lua | 15 | 4743 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Navisse
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/pathfind");
local path = {
-- -59.562683, 6.000051, -90.89... | gpl-3.0 |
colesbury/nn | Dropout.lua | 10 | 1762 | local Dropout, Parent = torch.class('nn.Dropout', 'nn.Module')
function Dropout:__init(p,v1,inplace,stochasticInference)
Parent.__init(self)
self.p = p or 0.5
self.train = true
self.inplace = inplace
self.stochastic_inference = stochasticInference or false
-- version 2 scales output during training i... | bsd-3-clause |
Element-Research/rnn | LinearNoBias.lua | 11 | 1886 | ------------------------------------------------------------------------
--[[ LinearNoBias ]]--
-- Subclass of nn.Linear with no bias term
------------------------------------------------------------------------
nn = require 'nn'
local LinearNoBias, Linear = torch.class('nn.LinearNoBias', 'nn.Linear')
function LinearN... | bsd-3-clause |
5620g/38196040 | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.