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 |
|---|---|---|---|---|---|
simon-wh/PAYDAY-2-BeardLib | Classes/Managers/MenuUIManager.lua | 2 | 2033 | MenuUIManager = MenuUIManager or BeardLib:ManagerClass("MenuUI")
function MenuUIManager:init()
self._menus = {}
-- Deprecated, try not to use.
BeardLib.managers.menu_ui = self
end
function MenuUIManager:AddMenu(menu)
table.insert(self._menus, menu)
end
function MenuUIManager:RemoveMenu(menu)
tab... | mit |
ArcherSys/ArcherSys | Jawa/luaj/test/lua/mathlib.lua | 5 | 5968 | local platform = ...
--print( 'platform', platform )
local aliases = {
['0']='<zero>',
['-0']='<zero>',
['nan']='<nan>',
['inf']='<pos-inf>',
['-inf']='<neg-inf>',
['1.#INF']='<pos-inf>',
['-1.#INF']='<neg-inf>',
['1.#IND']='<nan>',
['-1.#IND']='<nan>',
}
local UNOPVALUES = { -2.5, -2, 0, 2, 2.5, "'-2.5'", ... | mit |
shingenko/darkstar | scripts/globals/items/bowl_of_sophic_stew.lua | 35 | 1482 | -----------------------------------------
-- ID: 5180
-- Item: bowl_of_sophic_stew
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Dexterity 6
-- Intelligence 6
-- Mind 6
-- HP Recovered While Healing 3
-- MP Recovered While Healing 3
-----------------------------------------
r... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Periqia/instances/seagull_grounded.lua | 32 | 4662 | -----------------------------------
--
-- Assault: Seagull Grounded
--
-----------------------------------
require("scripts/zones/Periqia/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getIns... | gpl-3.0 |
wagonrepairer/Zero-K | LuaRules/Gadgets/CustomUnitShaders/UnitMaterials/0_angleshark.lua | 18 | 2195 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local unitInfo = {}
local function DrawUnit(unitid, material, materialID)
local info = unitInfo[unitid]
if (not info) then
info = {dir=0, lx... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Port_San_dOria/npcs/Callort.lua | 36 | 1373 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Callort
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextI... | gpl-3.0 |
davidjericho/lsyncd | examples/lsayirc.lua | 13 | 4053 | -----
-- An Lsyncd+IRC-Bot Config
--
-- Logs into an IRC channel and tells there everything that happens in the
-- watched directory tree.
--
-- The challenge coding Lsyncd configs taking use of TCP sockets is
-- that they must not block! Otherwise Lsyncd will block, no longer
-- empty the kernels monitor queue, no lo... | gpl-2.0 |
shingenko/darkstar | scripts/globals/effects/field_support_food.lua | 30 | 3215 | -----------------------------------
--
-- EFFECT_FIELD_SUPPORT_FOOD
-- From FoV and GoV
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (effect:getPower() == 1) then -- Dried Meat
... | gpl-3.0 |
psychon/awesome | tests/examples/wibox/container/arcchart/paddings.lua | 5 | 1999 | --DOC_HIDE_ALL
--DOC_GEN_IMAGE
local parent = ...
local wibox = require( "wibox" )
local beautiful = require( "beautiful" )
local l = wibox.layout.fixed.horizontal()
l.spacing = 10
parent:add(l)
for _, v in ipairs {0, 2, 4} do
l:add(wibox.widget {
{
{
text = ... | gpl-2.0 |
fzimmermann89/texlive.js | texlive/texmf-dist/tex/luatex/luaotfload/fontloader-font-dsp.lua | 2 | 152750 | if not modules then modules = { } end modules ['font-dsp'] = {
version = 1.001,
comment = "companion to font-ini.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
-- many 0,0 entry/exit
... | gpl-2.0 |
wagonrepairer/Zero-K | units/sprinkler.lua | 4 | 5985 | unitDef = {
unitname = [[sprinkler]],
name = [[Sprinkler]],
description = [[Important irrigation structure]],
acceleration = 0,
brakeRate = 0,
buildCostEnergy = 400,
buildCostMetal ... | gpl-2.0 |
xcyan/nips16_PTN | scripts/train_rotatorRNN_curriculum.lua | 1 | 14815 | -- torch reimplementation of deepRotator: https://github.com/jimeiyang/deepRotator.git
require 'torch'
require 'nn'
require 'cunn'
-- require 'cudnn'
require 'nngraph'
require 'optim'
require 'image'
model_utils = require 'utils.model_utils'
optim_utils = require 'utils.adam_v2'
opt = lapp[[
--save_every (... | mit |
lixiantai/barrier_breaker | feeds/luci/contrib/luasrcdiet/lua/lparser.lua | 122 | 41820 | --[[--------------------------------------------------------------------
lparser.lua: Lua 5.1 parser in Lua
This file is part of LuaSrcDiet, based on Yueliang material.
Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net>
The COPYRIGHT file describes the conditions
under which this software may be distribu... | gpl-2.0 |
shingenko/darkstar | scripts/globals/spells/sleep_ii.lua | 18 | 1079 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,tar... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Norg/npcs/Verctissa.lua | 17 | 2972 | -----------------------------------
-- Area: Norg
-- NPC: Verctissa
-- Starts Quest: Trial Size Trial By Water
-- @pos -13 1 -20 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
shingenko/darkstar | scripts/zones/QuBia_Arena/mobs/Warlord_Rojgnoj.lua | 18 | 1306 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
function onMobInitialize(mob)
mob:addMod(MOD_SLEEP... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Upper_Jeuno/npcs/Antonia.lua | 37 | 1317 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Antonia
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
crazyquark/cardpeek | dot_cardpeek_dir/scripts/lib/calypso_card_num.lua | 17 | 1572 | --
-- This file is part of Cardpeek, the smart card reader utility.
--
-- Copyright 2009-2013 by Alain Pannetrat <L1L1@gmx.com>
--
-- Cardpeek 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 3... | gpl-3.0 |
PhilMo6/Lua_pi_pan | obj/Remote_Thermostat.lua | 1 | 2653 | local Cloneable = require("obj.Remote_Common")
local origin = require("obj.Thermostat")
local Thermostat = Cloneable:clone()
--[[
Remote object for thermostats attached to nodes.
Node will update the thermostats config as changes are detected.
This also updates its current state and action.
]]
Thermostat.lo... | mit |
shingenko/darkstar | scripts/zones/Windurst-Jeuno_Airship/npcs/Mauricio.lua | 19 | 2052 | -----------------------------------
-- Area: Windurst-Jeuno Airship
-- NPC: Mauricio
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Windurst-Jeuno_Airship/TextIDs"] = nil;
require("scripts/zones/Windurst-Jeuno_Airship/TextIDs");
-----------------------------------
-- onTrade ... | gpl-3.0 |
openwayne/chaos_theory | mods/homedecor/handlers/nodeboxes.lua | 5 | 2396 | -- please keep any non-generic nodeboxe with its node definition
-- this file should not accumulate any left over nodeboxes
-- but is meant to host any abstractions or calculations based on nodeboxes
-- a box is defined as {x1, y1, z1, x2, y2, z2}
homedecor.box = {
-- slab starting from -x (after rotation: left)
sla... | lgpl-2.1 |
shingenko/darkstar | scripts/zones/Open_sea_route_to_Mhaura/npcs/Sheadon.lua | 38 | 1125 | -----------------------------------
-- Area: Open_sea_route_to_Mhaura
-- NPC: Sheadon
-- Notes: Tells ship ETA time
-- @pos 0.340 -12.232 -4.120 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/O... | gpl-3.0 |
openwayne/chaos_theory | mods/minetest_hbarmor/init.lua | 2 | 4084 | local S
if (minetest.get_modpath("intllib")) then
S = intllib.Getter()
else
S = function ( s ) return s end
end
if (not armor) or (not armor.def) then
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
end
local hbarmor = {}
-- HUD statbar values
hbarmor.armor = ... | lgpl-2.1 |
wagonrepairer/Zero-K | LuaUI/Widgets/gui_stupid_overlay_hax.lua | 16 | 1316 | function widget:GetInfo()
return {
name = "Stupid Overlay Hax",
desc = "Handles overlay transitions because the slow transition is annoying.",
author = "GoogleFrog",
date = "2nd March 2015",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
end
lo... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Metalworks/npcs/Manilam.lua | 38 | 1375 | -----------------------------------
-- Area: Metalworks
-- NPC: Manilam
-- Type: Quest NPC
-- @pos -57.300 -11 22.332 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Meta... | gpl-3.0 |
psychon/awesome | tests/test-gravity.lua | 2 | 1246 | -- Test if client's c:swap() corrupts the Lua stack
local runner = require("_runner")
local spawn = require("awful.spawn")
local had_exit, had_success
local had_error = false
local function check_done()
if had_exit and had_success then
if had_error then
runner.done("Some error occurred, see a... | gpl-2.0 |
jyggen/lua-parser | tests/Fixtures/f2/6b/bf/329fbb4c4772eb435d0f7be81e207720de9e11a94ef0fe967b17073d10.lua | 1 | 26436 |
BugGrabberDB = {
["stopnag"] = 50001,
["throttle"] = true,
["limit"] = 50,
["errors"] = {
{
["message"] = "[ADDON_ACTION_BLOCKED] AddOn 'cargBags_Nivaya' tried to call the protected function 'PickupContainerItem()'.",
["time"] = "2017/04/09 12:52:25",
["locals"] = "",
["stack"] = "Interface... | mit |
jyggen/lua-parser | tests/Fixtures/a1/14/0a/fcdcc32ee0484881275c0f3a155ae1d45d1307c99e2d5512e9d348f842.lua | 1 | 7531 |
MasqueDB = {
["namespaces"] = {
["LibDualSpec-1.0"] = {
},
},
["profileKeys"] = {
["Jyggsex - Draenor"] = "RealUI",
["Keestra - Argent Dawn"] = "RealUI",
["Jyggnio - Draenor"] = "RealUI",
["Jyggfem - Draenor"] = "RealUI",
["Faildude - Auchindoun"] = "RealUI",
["Jyggtre - Draenor"] = "Rea... | mit |
shingenko/darkstar | scripts/zones/Southern_San_dOria/npcs/Poudoruchant.lua | 36 | 1438 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Poudoruchant
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/q... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Metalworks/npcs/HomePoint#1.lua | 17 | 1240 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#1
-- @pos: 46 -14 -19 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/vertical_cleave.lua | 28 | 1722 | -----------------------------------------
-- Spell: Vertical Cleave
-- Damage varies with TP
-- Spell cost: 86 MP
-- Monster Type: Luminians
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1 HP-5 MP+5
-- Level: 75
-- Casting Time: 0.5 seconds
-- Recast Time: 37.25 seconds
-- Ski... | gpl-3.0 |
ArcherSys/ArcherSys | Lua/lua/oil/kernel/base/Dispatcher.lua | 1 | 5093 | --------------------------------------------------------------------------------
------------------------------ ##### ## ------------------------------
------------------------------ ## ## # ## ------------------------------
------------------------------ ## ## ## ## ---------------------------... | mit |
Illarion-eV/Illarion-Content | triggerfield/salavesh_triggered_events.lua | 1 | 8964 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Windurst_Waters/npcs/Prestapiq.lua | 36 | 1606 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Prestapiq
-- Only sells when Windurst controls Movalpolos
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_... | gpl-3.0 |
TheAncientGoat/GodheadLips | data/godhead/scripts/client/options.lua | 1 | 3166 | Options = Class()
Options.new = function(clss)
-- Initialize defaults.
local self = Class.new(clss)
self.vsync = false
self.fullscreen = false
self.window_width = 1024
self.window_height = 768
self.bloom_enabled = false
self.bloom_exposure = 1.5
self.bloom_luminance = 1
self.model_quality = 1
self.animation... | gpl-3.0 |
openwayne/chaos_theory | mods/mobs/crafts.lua | 6 | 2742 |
local S = mobs.intllib
-- name tag
minetest.register_craftitem("mobs:nametag", {
description = S("Nametag"),
inventory_image = "mobs_nametag.png",
})
core.register_craft({
type = "shapeless",
output = "mobs:nametag",
recipe = {"default:paper", "dye:black", "farming:string"},
})
-- leather
minetest.register_cra... | lgpl-2.1 |
yogome/HeroesSaludables | libs/helpers/spine-lua/MeshAttachment.lua | 1 | 1994 | ----------------------------------------------- Spine runtimes
local path = ...
local folder = path:match("(.-)[^%.]+$")
local AttachmentType = require( folder.."AttachmentType" )
local MeshAttachment = {}
---------------------------------------------- Functions
function MeshAttachment.new (name)
if not name then er... | agpl-3.0 |
shingenko/darkstar | scripts/globals/spells/bluemagic/triumphant_roar.lua | 18 | 1318 | -----------------------------------------
-- Spell: Triumphant Roar
-- Enhances Attack
-- Spell cost: 36 MP
-- Monster Type: Demon
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 3
-- Stat Bonus: STR+3
-- Level: 71
-- Casting Time: 3 seconds
-- Recast Time: 90 seconds
--
-- Combos: None
--------------... | gpl-3.0 |
xFleury/crawl-0.13.0-fairplay | source/dat/dlua/v_layouts.lua | 1 | 15520 | ------------------------------------------------------------------------------
-- v_layouts.lua:
--
-- Main layouts include for Vaults.
--
-- Code by mumra
-- Based on work by infiniplex, based on original designs and code by mumra.
--
-- Contains the functions that actually build the layouts.
--
-- Notes:
-- The origi... | gpl-2.0 |
shingenko/darkstar | scripts/globals/items/trilobite.lua | 18 | 1338 | -----------------------------------------
-- ID: 4317
-- Item: Trilobite
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense +16%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
Illarion-eV/Illarion-Content | quest/nadime_717_cadomyr.lua | 4 | 9392 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
kveratis/GameCode4 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/stdlib/modules/getopt.lua | 1 | 9436 | -- getopt
-- Simplified getopt, based on Svenne Panne's Haskell GetOpt
module ("getopt", package.seeall)
require "base"
require "string_ext"
require "object"
require "io_ext"
-- TODO: Sort out the packaging. getopt.Option is tedious to type, but
-- surely Option shouldn't be in the root namespace?
-- T... | lgpl-3.0 |
psychon/awesome | themes/gtk/theme.lua | 2 | 11839 | ----------------------------------------------
-- Awesome theme which follows GTK+ 3 theme --
-- by Yauhen Kirylau --
----------------------------------------------
local theme_assets = require("beautiful.theme_assets")
local dpi = require("beautiful.xresources").apply_dpi
local gfs = require("g... | gpl-2.0 |
obsy/luci | applications/luci-app-firewall/luasrc/model/cbi/firewall/zones.lua | 45 | 2025 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local ds = require "luci.dispatcher"
local fw = require "luci.model.firewall"
local m, s, o, p, i, v
m = Map("firewall",
translate("Firewall - Zone Settings"),
translate("The firewall creates zones over your... | apache-2.0 |
shingenko/darkstar | scripts/globals/abilities/curing_waltz_v.lua | 19 | 2095 | -----------------------------------
-- Ability: Curing Waltz V
-- Restores target's HP
-- Obtained: Dancer Level 87
-- TP Required: 80%
-- Recast Time: 00:23
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onAbilityChe... | gpl-3.0 |
shingenko/darkstar | scripts/globals/mobskills/Tribulation.lua | 18 | 1128 | ---------------------------------------------
-- Tribulation
--
-- Description: Inflicts Bio and blinds all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: AoE
-- Notes: Bio effect can take away up to 39/tick.
------------------------------------------... | gpl-3.0 |
soonhokong/travis_test | tests/lua/ind1.lua | 1 | 6434 | local env = environment()
local l = mk_param_univ("l")
local A = Const("A")
local U_l = mk_sort(l)
local U_l1 = mk_sort(max_univ(l, 1)) -- Make sure U_l1 is not Bool/Prop
local list_l = Const("list", {l}) -- list.{l}
local Nat = Const("nat")
local vec_l = Const("vec", {l}) -- vec.... | apache-2.0 |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/mrgreen-settings/cpicker/picker_client.lua | 4 | 9489 | sw, sh = guiGetScreenSize()
pickerTable = {}
colorPicker = {}
colorPicker.__index = colorPicker
function openPicker(id, start, title)
if id and not pickerTable[id] then
pickerTable[id] = colorPicker.create(id, start, title)
pickerTable[id]:updateColor()
return true
end
return false
end
function cl... | mit |
openwayne/chaos_theory | mods/moretrees/tree_models.lua | 3 | 9131 | moretrees.beech_model={
axiom="FFFFFBFB",
rules_a="[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fd]]////[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fd]]////[&&&GGF[++^Fd][--&Fd]//Fd[+^Fd][--&Fdd]]",
rules_b="[&&&F[++^Fd][--&d]//d[+^d][--&d]]////[&&&F[++^Fd][--&d]//d[+^d][--&d]]////[&&&F[++^Fd][--&Fd]//d[+^d][--&d]]",
rules_c="/",
ru... | lgpl-2.1 |
wagonrepairer/Zero-K | LuaUI/Widgets/cmd_commandinsert.lua | 5 | 5795 | -- $Id: gui_commandinsert.lua 3171 2008-11-06 09:06:29Z det $
-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
local version= "1.003"
function widget:GetInfo()
return {
name = "CommandInsert"... | gpl-2.0 |
Illarion-eV/Illarion-Content | quest/tutorial_religion_344_wilderness.lua | 1 | 2273 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/zones/Ifrits_Cauldron/npcs/Mining_Point.lua | 29 | 1102 | -----------------------------------
-- Area: Ifrits Cauldron
-- NPC: Mining Point
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/mining");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
-... | gpl-3.0 |
shingenko/darkstar | scripts/globals/items/sweet_baked_apple.lua | 35 | 1318 | -----------------------------------------
-- ID: 4336
-- Item: sweet_baked_apple
-- Food Effect: 1hour, All Races
-----------------------------------------
-- Magic Points 25
-- Intelligence 4
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
lixiantai/barrier_breaker | feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo.lua | 132 | 1057 | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
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$
]]--
require("luci.i1... | gpl-2.0 |
Clavus/Conclavus | engine/lib/loveframes/objects/internal/linenumberspanel.lua | 14 | 4327 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- get the current require path
local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.linenumbersp... | mit |
shingenko/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Pebul-Tabul.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Pebul-Tabul
-- Type: Standard NPC
-- @zone: 94
-- @pos -68.500 -4.5 3.694
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
-... | gpl-3.0 |
nimaghorbani/thorbotv2 | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
padrinoo1/telelove | plugins/invite.lua | 1111 | 1195 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
openwayne/chaos_theory | mods/moretrees/init.lua | 3 | 11216 | -- More trees! 2013-04-07
--
-- This mod adds more types of trees to the game
--
-- Some of the node definitions and textures came from cisoun's conifers mod
-- and bas080's jungle trees mod.
--
-- Brought together into one mod and made L-systems compatible by Vanessa
-- Ezekowitz.
--
-- Firs and Jungle tree axioms/r... | lgpl-2.1 |
wagonrepairer/Zero-K | units/bomberdive.lua | 4 | 9648 | unitDef = {
unitname = [[bomberdive]],
name = [[Raven]],
description = [[Precision Bomber]],
amphibious = true,
buildCostEnergy = 300,
buildCostMetal = 300,
builder = false,
buildPic = [[bomberdive.png]],
buildTime = ... | gpl-2.0 |
jamesward/pubnub-api | lua-corona/example-unsubscribe/main.lua | 2 | 1966 | --
-- INIT MULTIPLAYER:
-- This initializes the multiplayer networking layer.
--
require "pubnub"
multiplayer = pubnub.new({
publish_key = "demo",
subscribe_key = "demo",
secret_key = nil,
ssl = nil,
origin = "pubsub.pubnub.com"
})
--
-- TEXT OUT - Quick Print
--
local texto... | mit |
shingenko/darkstar | scripts/zones/Lower_Jeuno/npcs/Bki_Tbujhja.lua | 17 | 4136 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Bki Tbujhja
-- Involved in Quest: The Old Monument
-- Starts and Finishes Quests: Path of the Bard (just start), The Requiem (BARD AF2)
-- @zone 245
-- @pos -22 0 -60
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/T... | gpl-3.0 |
fengshao0907/SOHU-DBProxy | tests/suite/base/t/chain1a.lua | 4 | 2320 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
psychon/awesome | lib/awful/widget/common.lua | 3 | 5596 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @classmod awful.widget.common
---------------------------------------------------------------------------
-- Grab environment we need
local type = typ... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Al_Zahbi/TextIDs.lua | 9 | 2053 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384; -- Obtained: <item>
GIL_OBTAINED = 6385; -- Obtained <number> gil
KEYITEM_OBTAINED = 6387; -- Obtain... | gpl-3.0 |
openwayne/chaos_theory | mods/trunks/nodes.lua | 2 | 12598 | -- Code by Mossmanikin & Neuromancer
-----------------------------------------------------------------------------------------------
-- TWiGS
-----------------------------------------------------------------------------------------------
-- For compatibility with older stuff
minetest.register_alias("trunks:twig", "trun... | lgpl-2.1 |
openwayne/chaos_theory | mods/advtrains/advtrains/crafting.lua | 3 | 2634 | --advtrains by orwell96, see readme.txt and license.txt
--crafting.lua
--registers crafting recipes
--tracks
minetest.register_craft({
output = 'advtrains:dtrack_placer 50',
recipe = {
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
{'default:steel_ingot', 'group:stick', 'default:steel_ingot'},
... | lgpl-2.1 |
Illarion-eV/Illarion-Content | monster/race_56_irongolem/id_563_merinium.lua | 3 | 1156 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
shingenko/darkstar | scripts/globals/weaponskills/cataclysm.lua | 30 | 1476 | -----------------------------------
-- Skill level: 290
-- Delivers light elemental damage. Additional effect: Flash. Chance of effect varies with TP.
-- Generates a significant amount of Enmity.
-- Does not stack with Sneak Attack
-- Aligned with Aqua Gorget.
-- Aligned with Aqua Belt.
-- Properties:
-- Elemen... | gpl-3.0 |
psychon/awesome | spec/awful/prompt_spec.lua | 2 | 10006 | local function assert_markup_format(markup)
if #markup == 0 then
return
end
local tag_count = 0
for _ in string.gmatch(markup, '<.->') do tag_count = tag_count + 1 end
assert.are_equal(2, tag_count)
end
local function get_first_part(markup)
return string.match(markup, '^(.-)<')
end
loca... | gpl-2.0 |
matinJ/skynet | lualib/socketchannel.lua | 31 | 9447 | local skynet = require "skynet"
local socket = require "socket"
local socketdriver = require "socketdriver"
-- channel support auto reconnect , and capture socket error in request/response transaction
-- { host = "", port = , auth = function(so) , response = function(so) session, data }
local socket_channel = {}
loca... | mit |
AleksCore/Mr.Green-MTA-Resources | resources/[gameplay]/gus/getSerial.lua | 3 | 6279 | local g_Root = getRootElement()
local g_ResRoot = getResourceRootElement(getThisResource())
function addToList(player)
if isElement(player) then
local playername = getPlayerName(player)
local date = "not set yet"
playername = string.gsub (getPlayerName(player), '#%x%x%x%x%x%x', '' )
if string.find(playername... | mit |
Illarion-eV/Illarion-Content | item/id_90_flute.lua | 5 | 1626 | --[[
Illarion Server
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it wi... | agpl-3.0 |
wagonrepairer/Zero-K | units/core_spectre.lua | 4 | 5364 | unitDef = {
unitname = [[core_spectre]],
name = [[Aspis]],
description = [[Area Shield Walker]],
acceleration = 0.25,
activateWhenBuilt = true,
brakeRate = 0.25,
buildCostEnergy = 600,
buildCostMetal = 600,
buildPic ... | gpl-2.0 |
NLnetLabs/ldns | lua/serv.lua | 5 | 1839 | -- source the lib file with the function
dofile("rns-lib.lua")
rr1 = record.new_frm_str("www.miek.nl IN A 192.168.1.2", 0, nil)
rr2 = record.new_frm_str("miek.nl IN ns gaap", 0, nil)
rr3 = record.new_frm_str("miek.nl IN ns gaap2", 0, nil)
rr4 = record.new_frm_str("www.atoom.net. IN A 192.168.1.2", 0, nil)
rr5 = rec... | bsd-3-clause |
shingenko/darkstar | scripts/zones/Riverne-Site_A01/npcs/Unstable_Displacement.lua | 36 | 1068 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-- ENM Battlefield
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/R... | gpl-3.0 |
lixiantai/barrier_breaker | feeds/luci/applications/luci-ahcp/luasrc/controller/ahcp.lua | 76 | 1533 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 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
$Id: init.lua... | gpl-2.0 |
shingenko/darkstar | scripts/zones/Sacrificial_Chamber/bcnms/jungle_boogymen.lua | 19 | 1723 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: jungle_boogymen
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Sacrificial_Chamber/TextIDs");
-----------------------... | gpl-3.0 |
shingenko/darkstar | scripts/zones/Nashmau/npcs/Porter_Moogle.lua | 41 | 1514 | -----------------------------------
-- Area: Nashmau
-- NPC: Porter Moogle
-- Type: Storage Moogle
-- @zone 53
-- @pos TODO
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scrip... | gpl-3.0 |
MNKgod/darkstar | scripts/globals/spells/deodorize.lua | 7 | 1130 | -----------------------------------------
-- Spell: Deodorize
-- Lessens chance of being detected by smell.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rv.lua | 17 | 1337 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: _0rv (Oil lamp)
-- Notes: Opens north door at J-9 from inside.
-- @pos -63.703 -26.227 37.000 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
Evarin/PhotoQuality | mix_both3.lua | 1 | 15284 | require 'torch'
require 'nn'
require 'image'
require 'optim'
require 'lfs'
require 'io'
require 'loadcaffe'
--------------------------------------------------------------------------------
local cmd = torch.CmdLine()
-- Basic options
cmd:option('-train_dir', 'train/')
cmd:option('-test_dir', 'test/')
cmd:option('-te... | mit |
MNKgod/darkstar | scripts/zones/Selbina/npcs/Humilitie.lua | 39 | 1459 | -----------------------------------
-- Area: Selbina
-- NPC: Humilitie
-- Reports the time remaining before boat arrival.
-- @pos 17.979 -2.39 -58.800 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextI... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/RuLude_Gardens/npcs/Crooked_Arrow.lua | 34 | 1393 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Crooked Arrow
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/RuLude_Gardens/TextIDs");
require("scripts/global... | gpl-3.0 |
devalexx/evilrain | Android/assets/data/levels/level19.lua | 1 | 4911 | function addObjects()
world:setPressingAction(PICKING_BODIES);
------------------
emitter_0 = luajava.new(Emitter)
emitter_0:setPosition(802.0, 384.4999)
emitter_0:setRotation(-159.0)
emitter_0:setBodyType(KINEMATIC_BODY)
emitter_0:setName('emitter_0')
emitter_0:setVisible(true)
emit... | gpl-3.0 |
MNKgod/darkstar | scripts/globals/items/la_theine_cabbage.lua | 35 | 1201 | -----------------------------------------
-- ID: 4366
-- Item: la_theine_cabbage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- ... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Dominion_Sergeant.lua | 65 | 1056 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Dominion Sergeant
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea");
require("scripts/... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/Southern_San_dOria/npcs/Aubejart.lua | 36 | 1466 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aubejart
-- General Info NPC
-- @zone 230
-- @pos 3 -2 46
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");... | gpl-3.0 |
gdavegdave/OpenRA | mods/ra/maps/monster-tank-madness/monster-tank-madness.lua | 7 | 15141 | --[[
Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
vahed2719/vahed | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
VladiMihaylenko/omim | 3party/pugixml/scripts/premake4.lua | 128 | 2376 | -- Reset RNG seed to get consistent results across runs (i.e. XCode)
math.randomseed(12345)
local static = _ARGS[1] == 'static'
local action = premake.action.current()
if string.startswith(_ACTION, "vs") then
if action then
-- Disable solution generation
function action.onsolution(sln)
sln.vstudio_configs = p... | apache-2.0 |
MNKgod/darkstar | scripts/zones/Dynamis-Windurst/mobs/Tzee_Xicu_Idol.lua | 16 | 1291 | -----------------------------------
-- Area: Dynamis Windurst
-- NPC: Tzee Xicu Idol
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/Upper_Jeuno/npcs/Mairee.lua | 28 | 1800 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mairee
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
obsy/openwrt-packages | utils/yunbridge/files/usr/lib/lua/luci/sha256.lua | 106 | 5170 | --
-- Code merged by gravityscore at http://pastebin.com/gsFrNjbt
--
-- Adaptation of the Secure Hashing Algorithm (SHA-244/256)
-- Found Here: http://lua-users.org/wiki/SecureHashAlgorithm
--
-- Using an adapted version of the bit library
-- Found Here: https://bitbucket.org/Boolsheet/bslf/src/1ee664885805/bit.... | gpl-2.0 |
RTBHOUSE/fbcunn | test/test_TemporalConvolutionFB.lua | 9 | 5107 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'math'
require 'cunn'
require 'cutorch'
require 'fbcunn'
require('fb.luaunit')
local torch = require('fbtorch')
torch.setnumthreads(6)
torch.setdefaulttensortype('torch.FloatTensor')
local mytester = torch.Tester()
local precision = 0.00002
local Te... | bsd-3-clause |
kidaa/FFXIWindower | addons/libs/slips.lua | 1 | 21399 | _libs = _libs or {}
_libs.slips = true
_libs.lists = _libs.lists or require 'lists'
local slips = {}
slips.default_storages = {'inventory', 'safe', 'storage', 'locker', 'satchel', 'sack', 'case', 'wardrobe', 'safe2'}
slips.storages = L{29312, 29313, 29314, 29315, 29316, 29317, 29318, 29319, 29320, 29321... | mit |
MNKgod/darkstar | scripts/zones/Port_Jeuno/npcs/Dohhel.lua | 38 | 1031 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Dohhel
-- Type: Event Scene Replayer
-- @zone: 246
-- @pos -156.031 -2 6.051
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
------------------... | gpl-3.0 |
gdavegdave/OpenRA | mods/d2k/maps/atreides-05/atreides05-AI.lua | 5 | 4564 | IdlingUnits = { }
AttackGroupSize =
{
easy = 6,
normal = 8,
hard = 10
}
AttackDelays =
{
easy = { DateTime.Seconds(4), DateTime.Seconds(7) },
normal = { DateTime.Seconds(2), DateTime.Seconds(5) },
hard = { DateTime.Seconds(1), DateTime.Seconds(3) }
}
HarkonnenInfantryTypes = { "light_inf", "light_inf", "troope... | gpl-3.0 |
MNKgod/darkstar | scripts/globals/items/koen.lua | 42 | 1472 | -----------------------------------------
-- ID: 6430
-- Item: Koen
-- Additional Effect: Fire Damage
-- Enchantment: "Enfire"
-- Charges: 30 Reuse: 300 Secs
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAddition... | gpl-3.0 |
MNKgod/darkstar | scripts/zones/Castle_Oztroja/npcs/Brass_Statue.lua | 19 | 1377 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Brass Statue
-- Type: Passageway Machine
-- @pos -60.061 -4.348 -61.538 151 (1)
-- @pos -18.599 -19.307 20.024 151 (2)
-- @pos -60 22 -100 151 (3)
-- @pos -100 -72 -19 151 (4)
-----------------------------------
package.loaded["scripts/zones/Cast... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.