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 |
|---|---|---|---|---|---|
plajjan/snabbswitch | src/apps/vhost/vhost_user.lua | 1 | 12056 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
--
-- See http://www.virtualopensystems.com/en/solutions/guides/snabbswitch-qemu/
module(...,package.seeall)
local basic_apps= require("apps.basic.basic_apps")
local pcap = require("apps.pcap.pcap")
local app = require("core.ap... | apache-2.0 |
KamilKZ/SimpleHTTPServer | Premake/premake5.lua | 1 | 3076 | local BUILD = true
newaction {
trigger = "clean",
description = "Clean up temporary files",
execute = function()
os.rmdir("..\Build")
os.execute("cd ../Bin&&del *.obj /Q&&del *.pdb /Q&&del *.exp /Q&&del *.idb /Q&&del *.ilk /Q")
end
}
newaction {
trigger = "clean-all",
description = "Clean up temporary and b... | mit |
nesstea/darkstar | scripts/zones/Southern_San_dOria/npcs/Rumoie.lua | 13 | 1474 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rumoie
-- Type: Map Marker NPC
-- @zone: 230
-- @pos 149.696 -2.000 151.631
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
sp3ctum/lean | tests/lua/mod1.lua | 4 | 1140 | local env = environment()
env = add_decl(env, mk_constant_assumption("A", Prop))
local A = Const("A")
env = add_decl(env, mk_axiom("H1", A))
local H1 = Const("H1")
env = add_decl(env, mk_theorem("H2", A, H1))
assert(env:get("H2"):is_theorem())
env = add_decl(env, mk_definition("B", Prop, A))
env:export("mod1_mod.olean... | apache-2.0 |
jshackley/darkstar | scripts/zones/Outer_RaKaznar/Zone.lua | 32 | 1294 | -----------------------------------
--
-- Zone: Outer Ra’Kanzar (274)
--
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Outer_RaKaznar/TextIDs");
--------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua | 2 | 1100 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Moblin Showman - Bugbear Matman
-- @pos 124.544 19.988 -60.670 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalp... | gpl-3.0 |
LiberatorUSA/GUCEF | dependencies/FreeImage/premake4.lua | 1 | 67181 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
JoMiro/arcemu | src/scripts/lua/LuaBridge/Stable Scripts/Outland/Shattered Halls/BOSS_ShatteredHalls_BladeFist.lua | 30 | 1027 | function BladeFist_MobsA(Unit)
print "BladeFist MobsA"
Unit:SpawnCreature(17695, 272.9, -90.7, 1.8, 0, 18, 36000000);
Unit:SpawnCreature(17695, 275.95, -83.3, 2.3, 0, 18, 36000000);
Unit:SpawnCreature(17695, 274.8, -77.4, 1.7, 0, 18, 36000000);
Unit:SendChatMessage(11, 0, "Guards, dont let nobody go out...")
end
... | agpl-3.0 |
jshackley/darkstar | scripts/zones/Dynamis-Buburimu/bcnms/dynamis_Buburimu.lua | 22 | 1291 | -----------------------------------
-- Area: dynamis_Buburimu
-- Name: dynamis_Buburimu
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaBuburimu]UniqueID",player:getDynamisUniqueID(1287));
SetServ... | gpl-3.0 |
robokits/ESP8266 | Wifi_Relays/init.lua | 1 | 4330 | --Small demo of internet/network controlled relay using ESP8266 (ESP-01) module and 2 channel optoisolated relay board
--Made by Sandeep Vaidya @ Robokits India - http://www.robokits.co.in for demo.
--Configure relay ouutput pins, pins are floating and relay opto needs ground to be activated. So pins are kept high on ... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Arrapago_Reef/mobs/Lamia_Idolater.lua | 2 | 1728 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Lamia Idolator
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize(mob)
end;
-----------... | gpl-3.0 |
men232/greencode-framework | lua/greencode/plugins/tophud/elements/cl_lvl.lua | 1 | 1296 | --[[
© 2013 GmodLive private project do not share
without permission of its author (Andrew Mensky vk.com/men232).
--]]
local greenCode = greenCode;
local math = math;
//award_star_bronze_1
//award_star_bronze_2
//award_star_bronze_3
LVL_STAR_LIST = {
[0] = Material("icon16/award_star_bronze_1.png"),
[1] = Ma... | mit |
SpRoXx/GTW-RPG | [resources]/GTWwanted/ped_money.lua | 1 | 1603 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
jshackley/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Rasdinice.lua | 36 | 1113 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Rasdinice
-- @zone 80
-- @pos -8 1 35
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
--------------------------------... | gpl-3.0 |
10sa/Advanced-Nutscript | nutscript/plugins/storage/items/base/sh_container.lua | 1 | 1291 | BASE.name = "Base Storage"
BASE.uniqueID = "base_storage"
BASE.category = PLUGIN:GetPluginLanguage("storage")
BASE.functions = {}
BASE.functions.Use = {
text = nut.lang.Get("setup"),
tip = nut.lang.Get("setup_desc"),
icon = "icon16/weather_sun.png",
run = function(itemTable, client, data, entity)
if (SERVER) then... | mit |
jshackley/darkstar | scripts/zones/Selbina/npcs/Elfriede.lua | 17 | 1956 | -----------------------------------
-- Area: Selbina
-- NPC: Elfriede
-- Involved In Quest: The Tenshodo Showdown
-- @pos 61 -15 10 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
req... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Southern_San_dOria/npcs/Sharzalion.lua | 17 | 3569 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Sharzalion
-- Starts and Finishes Quest: The Crimson Trial
-- Involved in Quest: Peace for the Spirit
-- @zone 230
-- @pos 95 0 111
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
---... | gpl-3.0 |
SpRoXx/GTW-RPG | [resources]/GTWrob/rob-s.lua | 1 | 8104 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
jshackley/darkstar | scripts/globals/spells/bluemagic/blitzstrahl.lua | 18 | 1932 | -----------------------------------------
-- Spell: Blitzstrahl
-- Deals lightning damage to an enemy. Additional effect: "Stun"
-- Spell cost: 70 MP
-- Monster Type: Arcana
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 4
-- Stat Bonus: DEX+3
-- Level: 44
-- Casting Time: 4.5 seconds
-- Recast Time... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/sidewinder.lua | 30 | 1400 | -----------------------------------
-- Sidewinder
-- Archery weapon skill
-- Skill level: 175
-- Delivers an inparams.accurate attack that deals quintuple damage. params.accuracy varies with TP.
-- Aligned with the Aqua Gorget, Light Gorget & Breeze Gorget.
-- Aligned with the Aqua Belt, Light Belt & Breeze Belt.... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Southern_San_dOria/npcs/Aveline.lua | 36 | 1914 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Aveline
-- Standard Merchant NPC
-- @zone 230
-- @pos -139 -6 46
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/setting... | gpl-3.0 |
junjiemars/redisql | resources/insert.lua | 2 | 2591 | local _t_n_ = '_T_N_'
local na = #ARGV
local level = redis.LOG_NOTICE
local m = 'not enough columns or values'
local table_exists = function(t)
return 1 == redis.call('sismember', _t_n_, t)
end
local find_pk = function(t)
local pkd = string.format('_T_[%s]_C_PK_', t)
local c = redis.call('get', pkd)
... | apache-2.0 |
LiberatorUSA/GUCEF | tools/udp2rediscluster/premake5.lua | 4 | 3293 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Temple_of_Uggalepih/npcs/qm8.lua | 16 | 1633 | -----------------------------------
-- Area: Temple of Uggalepih (159)
-- NPC: qm8 (???)
-- Notes: Used to spawn Habetrot
-- @pos -57.434 -8.484 55.317 0
-----------------------------------
package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/T... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Xarcabard/TextIDs.lua | 2 | 1203 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6392; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6397; -- Obtained: <item>.
GIL_OBTAINED = 6398; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6400; -- Obtained... | gpl-3.0 |
LiberatorUSA/GUCEF | tools/UdpTransformer/premake5.lua | 2 | 2135 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
elbamos/nn | Threshold.lua | 11 | 1359 | local Threshold, parent = torch.class('nn.Threshold','nn.Module')
function Threshold:__init(th,v,ip)
parent.__init(self)
self.threshold = th or 1e-6
self.val = v or 0
if (th and type(th) ~= 'number') or (v and type(v) ~= 'number') then
error('nn.Threshold(threshold, value)')
end
-- default for ... | bsd-3-clause |
jshackley/darkstar | scripts/zones/The_Sanctuary_of_ZiTah/npcs/Calliope_IM.lua | 30 | 3070 | -----------------------------------
-- Area: The Sanctuary of Zi'Tah
-- NPC: Calliope, I.M.
-- Outpost Conquest Guards
-- @pos -40.079 -0.642 -148.785 121
-----------------------------------
package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
jshackley/darkstar | scripts/globals/mobskills/Aerial_Collision.lua | 25 | 1198 | ---------------------------------------------
-- Aerial Collusion
-- Description: Cone Attack damage and Defense Down, strips Utsusemi (MOBPARAM_WIPE_SHADOWS)
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstert... | gpl-3.0 |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/libs/sys/luasrc/sys.lua | 6 | 25600 | --[[
LuCI - System library
Description:
Utilities for interaction with the Linux system
FileId:
$Id: sys.lua 9623 2013-01-18 14:08:37Z jow $
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Dynamis-Xarcabard/TextIDs.lua | 22 | 2195 | -- 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 |
bsmr-games/OpenRA | mods/ra/maps/allies-02/allies02.lua | 17 | 8126 | ConstructionVehicleReinforcements = { "mcv" }
ConstructionVehiclePath = { ReinforcementsEntryPoint.Location, DeployPoint.Location }
JeepReinforcements = { "e1", "e1", "e1", "jeep" }
JeepPath = { ReinforcementsEntryPoint.Location, ReinforcementsRallyPoint.Location }
TruckReinforcements = { "truk", "truk", "truk" }
Tru... | gpl-3.0 |
sp3ctum/lean | tests/lua/ind1.lua | 4 | 5913 | local env = environment()
local l = mk_param_univ("l")
local U_l = mk_sort(l)
local A = Local("A", U_l)
local U_l1 = mk_sort(max_univ(l, 1)) -- Make sure U_l1 is not Prop
local list_l = Const("list", {l}) -- list.{l}
local Nat = Const("nat")
local vec_l = Const("vec", {l}) -- vec.... | apache-2.0 |
Ombridride/minetest-minetestforfun-server | minetestforfun_game/mods/farming/melon.lua | 12 | 2379 |
local S = farming.intllib
-- melon
minetest.register_craftitem("farming:melon_slice", {
description = S("Melon Slice"),
inventory_image = "farming_melon_slice.png",
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:melon_1")
end,
on_use =... | unlicense |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua | 23 | 8232 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2012 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
htt... | gpl-2.0 |
jshackley/darkstar | scripts/commands/changesjob.lua | 26 | 1952 | ---------------------------------------------------------------------------------------------------
-- func: changesjob
-- desc: Changes the players current subjob.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameter... | gpl-3.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/AnimationFrame.lua | 6 | 1549 |
--------------------------------
-- @module AnimationFrame
-- @extend Ref
--------------------------------
-- @function [parent=#AnimationFrame] setSpriteFrame
-- @param self
-- @param #cc.SpriteFrame spriteframe
--------------------------------
-- overload function: getUserInfo()
--
-- overload f... | mit |
hacker44-h44/public2 | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
badboyam/spider_bot | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
hfjgjfg/flash5 | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Lower_Jeuno/npcs/Saprut.lua | 34 | 1378 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Saprut
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Lower_Jeuno/TextIDs");
require("scripts/globals/quests");
--... | gpl-3.0 |
tridge/ardupilot | libraries/AP_Scripting/examples/copter-circle-speed.lua | 19 | 1366 | -- Maintain a constant ground speed while flying in Circle mode even if the pilot adjusts the radius
--
-- CAUTION: This script only works for Copter
-- this script waits for the vehicle to be armed and in circle mode and then
-- updates the target rate around the circle (in degrees / sec) to maintain the desired groun... | gpl-3.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/EventMouse.lua | 6 | 1436 |
--------------------------------
-- @module EventMouse
-- @extend Event
--------------------------------
-- @function [parent=#EventMouse] getMouseButton
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#EventMouse] setScrollData
-- @param self... | mit |
babak136222/babakgroup | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
mohammad12344/powerdark | libs/dkjson.lua | 3282 | 26558 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
--[==[
David Kolf's JSON module for Lua 5.1/5.2
========================================
*Version 2.4*
In the default configuration this module writes no global values... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Metalworks/npcs/Wise_Owl.lua | 19 | 1955 | -----------------------------------
-- Area: Metalworks
-- NPC: Wise Owl
-- Type: Smithing Adv. Image Support
-- @pos -106.336 2.000 26.117 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
ScottNZ/OpenRA | mods/ra/maps/allies-01/allies01.lua | 46 | 6429 | InsertionHelicopterType = "tran.insertion"
InsertionPath = { InsertionEntry.Location, InsertionLZ.Location }
ExtractionHelicopterType = "tran.extraction"
ExtractionPath = { SouthReinforcementsPoint.Location, ExtractionLZ.Location }
JeepReinforcements = { "jeep", "jeep" }
TanyaReinforcements = { "e7" }
EinsteinType = "e... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/dulling_arrow.lua | 30 | 1343 | -----------------------------------
-- Dulling Arrow
-- Archery weapon skill
-- Skill level: 80
-- Lowers enemy's INT. Chance of params.critical varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:25%
-- 100%... | gpl-3.0 |
bsnsk/vroom-hammerspoon | Spoons/Caffeine.spoon/init.lua | 2 | 2941 | --- === Caffeine ===
---
--- Prevent the screen from going to sleep
--- Download: [https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Caffeine.spoon.zip](https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Caffeine.spoon.zip)
local obj = { __gc = true }
--obj.__index = obj
setmetatable(obj, obj)
obj.__gc = fun... | mit |
wolf9s/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/policyconfig.lua | 104 | 1918 | -- ------ extra functions ------ --
function policyCheck() -- check to see if this policy's name exceed the maximum of 15 characters
policyNameLength = string.len(arg[1])
if policyNameLength > 15 then
nameTooLong = 1
end
end
function policyWarn() -- display status and warning messages at the top of the page
if ... | gpl-2.0 |
jshackley/darkstar | scripts/globals/spells/doton_ichi.lua | 17 | 1248 | -----------------------------------------
-- Spell: Doton: Ichi
-- Deals earth damage to an enemy and lowers its resistance against wind.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
--... | gpl-3.0 |
PTPM/MTASA-legacy | ptpm_login_old/server.lua | 1 | 1636 | -- PtPM serverside login script
addEvent("attemptAutoLogin",true)
addEventHandler("attemptAutoLogin",root,
function()
if not exports.ptpm_accounts:autoLoginPlayer(client) then
-- triggerClientEvent(client,"showLogin",client)
outputChatBox("Couldn't find user account, playing as guest!",client)
else
outpu... | mit |
jshackley/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Blingbrix.lua | 34 | 1234 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Blingbrix
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scr... | gpl-3.0 |
birkett/MCServer | Server/Plugins/APIDump/Hooks/OnPlayerUsedItem.lua | 30 | 2444 | return
{
HOOK_PLAYER_USED_ITEM =
{
CalledWhen = "A player has used an item in hand (bucket...)",
DefaultFnName = "OnPlayerUsedItem", -- also used as pagename
Desc = [[
This hook is called after a {{cPlayer|player}} has right-clicked a block with an {{cItem|item}} that
can be used (is not placeable, is no... | apache-2.0 |
jshackley/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Jarafah.lua | 34 | 1032 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Jarafah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
----------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/spells/sneak.lua | 7 | 1308 | -----------------------------------------
-- Spell: Sneak
-- Lessens chance of being detected by sound
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
slanska/flexilite | flexish/sqliteSchemaParser.lua | 1 | 42311 | ---
--- Created by slanska.
--- DateTime: 2017-11-18 12:06 PM
---
local class = require 'pl.class'
local tablex = require 'pl.tablex'
local ansicolors = require 'ansicolors'
local Constants = require 'Constants'
---@class ISQLiteTableInfo @comment row returned by [select * from sqlite_master;]
---@field type string
-... | mpl-2.0 |
jshackley/darkstar | scripts/zones/Castle_Oztroja/npcs/_479.lua | 17 | 1659 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _479 (Brass Door)
-- Involved in Mission "Saintly Invitation"
-- @pos -99 -59 84 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
anoidgit/reading-comprehension | deps/vecLookupZero.lua | 1 | 5220 | local THNN = require 'nn.THNN'
local vecLookup, parent = torch.class('nn.vecLookup', 'nn.Module')
vecLookup.__version = 4
function vecLookup:__init(vecin, paddingValue, maxNorm, normType)
parent.__init(self)
self.weight = vecin
self.zgradind = vecin:size(1)
self.weight[self.zgradind]:zero()
self.gradWeight = se... | gpl-3.0 |
LuaDist2/luafilesystem | tests/test.lua | 63 | 5429 | #!/usr/bin/env lua5.1
local tmp = "/tmp"
local sep = string.match (package.config, "[^\n]+")
local upper = ".."
local lfs = require"lfs"
print (lfs._VERSION)
io.write(".")
io.flush()
function attrdir (path)
for file in lfs.dir(path) do
if file ~= "." and file ~= ".." then
... | mit |
Th2Evil/SuperPlus | plugins/ar-username.lua | 1 | 1148 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
by member team Plus @Th2_BOOS
-----Plus team
please join to Channel Team Plus
Plugin ;
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀
--]]
... | gpl-2.0 |
jshackley/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/qm1.lua | 30 | 1356 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- NPC: ??? (Spawn Ob(ZNM T1))
-- @pos 542 0 -129 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Alzadaal_Undersea_Ruins/TextIDs... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Northern_San_dOria/npcs/HomePoint#4.lua | 19 | 1211 | -----------------------------------
-- Area: Northern San dOria
-- NPC: HomePoint#4
-- @pos: -132 12 195 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts... | gpl-3.0 |
adminmagma/telegood | plugins/torrent_search.lua | 223 | 1059 | local https = require ('ssl.https')
local ltn12 = require ("ltn12")
local function search_kickass(query)
local url = 'https://kat.cr/json.php?q='..URL.escape(query)
local resp = {}
local b,c = https.request
{
url = url,
protocol = "tlsv1",
sink = ltn12.sink.table(resp)
}
resp = table.concat(... | gpl-2.0 |
vasilish/torch-draw | utils.lua | 1 | 2325 | require('nn')
require('image')
local utils = {}
function utils.center2Corners(g, delta, N, dim_size)
local p1 = math.floor(g + (1 - N/ 2 - 0.5) * delta)
p1 = math.max(math.min(p1, dim_size), 1)
local p2 = math.ceil(g + (N / 2 - 0.5) * delta)
p2 = math.max(math.min(p2, dim_size), 1)
return p1, p2
end
funct... | mit |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/Modules/TenFootInterface.lua | 1 | 11173 | --[[
Filename: TenFootInterface.lua
Written by: jeditkacheff
Version 1.0
Description: Setups up some special UI for ROBLOX TV gaming
--]]
-------------- CONSTANTS --------------
local HEALTH_GREEN_COLOR = Color3.new(27/255, 252/255, 107/255)
local DISPLAY_POS_INIT_INSET = 0
local DISPLAY_ITEM_OFFSET = 4
local F... | apache-2.0 |
sugiartocokrowibowo/Algorithm-Implementations | Bogobogosort/Lua/Yonaba/bogobogosort.lua | 27 | 1330 | -- Bogobogosort description
-- See : http://www.dangermouse.net/esoteric/bogobogosort.html
-- A custom array shuffle implementation
-- This is not part of the Bogobogosort algorithm
local function shuffle(list, s, e)
local n = #list
for i = s + 1, e do
local j, k = math.random(s, e), math.random(s, e)
list[j], ... | mit |
jshackley/darkstar | scripts/globals/spells/absorb-dex.lua | 18 | 1300 | --------------------------------------
-- Spell: Absorb-DEX
-- Steals an enemy's dexterity.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
----------... | gpl-3.0 |
josetaas/YokiRaidCursor | YokiRaidCursor.lua | 1 | 1190 | YokiRaidCursor = LibStub('AceAddon-3.0')
:NewAddon('YokiRaidCursor', 'AceConsole-3.0')
YokiRaidCursor.Class = LibStub('MiddleClass'):GetClassObject()
function YokiRaidCursor:OnInitialize()
local frameRepository, frames, mbr, mbl
self.Core.Strings('en')
frameRepository = self.Core... | mit |
jshackley/darkstar | scripts/globals/spells/break.lua | 45 | 1155 | -----------------------------------------
-- Spell: Breakga
-- Temporarily blinds an enemy, greatly lowering its accuracy.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
---------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/items/pepperoni_pizza_+1.lua | 35 | 1645 | -----------------------------------------
-- ID: 5698
-- Item: pepperoni_pizza_+1
-- Food Effect: 4hours, All Races
-----------------------------------------
-- Health Points 40
-- Strength 1
-- Accuracy 6% (caps @ 11)
-- Attack 11% (caps @ 27)
--**wiki has no data, so basing stats off of lq version
-------... | gpl-3.0 |
jshackley/darkstar | scripts/globals/weaponskills/entropy.lua | 30 | 1670 | -----------------------------------
-- Entropy
-- Scythe weapon skill
-- Skill level: 357
-- Description: Delivers a fourfold attack that converts damage dealt into own MP. Damage varies with TP.
-- In order to obtain Entropy, the quest Martial Mastery must be completed.
-- MP recovery is about 15~25% of damage d... | gpl-3.0 |
adminmagma/telegood | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
hacker44-h44/h44bot | plugins/help.lua | 290 | 1653 | do
-- Returns true if is not empty
local function has_usage_data(dict)
if (dict.usage == nil or dict.usage == '') then
return false
end
return true
end
-- Get commands for that plugin
local function plugin_help(name)
local plugin = plugins[name]
if not plugin then return nil end
local text = ""
if ... | gpl-2.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/ComController.lua | 6 | 1099 |
--------------------------------
-- @module ComController
-- @extend Component,InputDelegate
--------------------------------
-- @function [parent=#ComController] create
-- @param self
-- @return ComController#ComController ret (return value: ccs.ComController)
--------------------------------
-- @function ... | mit |
SpRoXx/GTW-RPG | [resources]/GTWvehicleshop/veh_data.lua | 1 | 6146 | --[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/GTWCode/GTW-RPG/
Bugtracker: http://forum.404rq.com/bug-reports/
Suggestions: http://forum.404rq.com/mta-se... | bsd-2-clause |
Ombridride/minetest-minetestforfun-server | mods/mff/mff_pclasses/hunter.lua | 5 | 3515 | ------------------
-- Hunter class --
------------------
--
-- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/114
--
local tmp = {}
pclasses.api.register_class("hunter", {
on_assigned = function(pname, inform)
if inform then
minetest.chat_send_player(pname, "You are now a hunter")
m... | unlicense |
LiberatorUSA/GUCEF | tools/ProjectGen/plugins/ProjectGenVSImporter/premake4.lua | 1 | 1947 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
jshackley/darkstar | scripts/zones/Arrapago_Reef/npcs/Runic_Portal.lua | 17 | 1863 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: Runic Portal
-- Arrapago Reef Teleporter Back to Aht Urgan Whitegate
-- @pos 15 -7 627 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
tridge/ardupilot | libraries/AP_Scripting/applets/VTOL-quicktune.lua | 10 | 14677 | --[[
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 |
jshackley/darkstar | scripts/zones/San_dOria-Jeuno_Airship/npcs/qm1.lua | 19 | 1502 | -----------------------------------
-- Area: San d'Oria-Jeuno Airship
-- NPC: ???
-- Involved In Quest: The Stars Of Ifrit
-- @zone 223
-- @pos 77 -9 -5 -13
-----------------------------------
package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
jshackley/darkstar | scripts/zones/Windurst_Waters/npcs/Serukoko.lua | 38 | 1040 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Serukoko
-- Type: Standard NPC
-- @zone: 238
-- @pos -54.916 -7.499 114.855
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
---------... | gpl-3.0 |
Victek/wrt1900ac-aa | veriksystems/luci-0.11/applications/luci-olsr/luasrc/controller/olsr.lua | 16 | 9505 | module("luci.controller.olsr", package.seeall)
function index()
if not nixio.fs.access("/etc/config/olsrd") then
return
end
local page = node("admin", "status", "olsr")
page.target = template("status-olsr/overview")
page.title = _("OLSR")
page.subindex = true
local page = node("admin", "status", "olsr", ... | gpl-2.0 |
anoidgit/reading-comprehension | deps/GA.lua | 1 | 1682 | local GA, parent = torch.class('nn.GA', 'nn.Container')
function GA:__init(gaunit)
parent.__init(self)
self.network = gaunit
self:add(self.network)
end
function GA:updateOutput(input)
local doc, q = unpack(input)
local _s = doc:size()
local slen = _s[1]
local bsize = _s[2]
local vsize = _s[3]
self.rInput = {... | gpl-3.0 |
jan0sch/Ion3 | etc/look_clean.lua | 3 | 1835 | -- look_clean.lua drawing engine configuration file for Ion.
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
shadow_colour = "grey",
highlight_colour = "grey",
background_colour = "#545d75",
foreground_colour = "grey",
padding_pixels = 1,
highlight_pixels = 1,
... | lgpl-2.1 |
hockeychaos/Core-Scripts-1 | CoreScriptsRoot/Modules/Server/ClientChat/DefaultClientChatModules/MessageCreatorModules/WhisperMessage.lua | 2 | 3749 | -- // FileName: WhisperMessage.lua
-- // Written by: TheGamer101
-- // Description: Create a message label for a whisper chat message.
local PlayersService = game:GetService("Players")
local LocalPlayer = PlayersService.LocalPlayer
while not LocalPlayer do
PlayersService.ChildAdded:wait()
LocalPlayer = PlayersServic... | apache-2.0 |
jshackley/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua | 1 | 2012 | -----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
---------------------------... | gpl-3.0 |
jshackley/darkstar | scripts/zones/West_Ronfaure/npcs/Adalefont.lua | 19 | 1065 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Adalefont
-- @pos -176.000 -61.999 377.460 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/West_Ronfa... | gpl-3.0 |
jshackley/darkstar | scripts/globals/mobskills/Digest.lua | 21 | 1128 | ---------------------------------------------------
-- Drainkiss
-- Deals dark damage to a single target. Additional effect: Drain
-- Type: Magical
-- Utsusemi/Blink absorb: 1 shadow
-- Range: Melee
-- Notes: If used against undead, it will simply do damage and not drain HP.
--------------------------------------------... | gpl-3.0 |
Ombridride/minetest-minetestforfun-server | mods/_misc/carbone_init.lua | 8 | 2870 | -- Code below by Casimir.
minetest.after(1, function()
local i = 0
local number = 0
for name, item in pairs(minetest.registered_items) do
if (name and name ~= "") then
number = number + 1
end
i = i + 1
end
minetest.log("action", "There are " .. number .. " registered nodes, items and tools.")
end)
minet... | unlicense |
jshackley/darkstar | scripts/globals/items/bowl_of_pomodoro_sauce.lua | 35 | 1203 | -----------------------------------------
-- ID: 5194
-- Item: Bowl of Pomodoro Sauce
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Intelligence 2
-- Mind 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
... | gpl-3.0 |
LiberatorUSA/GUCEF | projects/premake5/targets/GUCEF_exe_PackageUpgrader/premake5.lua | 1 | 1059 | --------------------------------------------------------------------
-- This file was automatically generated by ProjectGenerator
-- which is tooling part the build system designed for GUCEF
-- (Galaxy Unlimited Framework)
-- For the latest info, see http://www.VanvelzenSoftware.com/
--
-- The contents of this file... | apache-2.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/UserDefault.lua | 6 | 2904 |
--------------------------------
-- @module UserDefault
--------------------------------
-- @function [parent=#UserDefault] setIntegerForKey
-- @param self
-- @param #char char
-- @param #int int
--------------------------------
-- overload function: getFloatForKey(char, float)
--
-- overload func... | mit |
jshackley/darkstar | scripts/zones/Windurst_Walls/npcs/Hiwon-Biwon.lua | 36 | 3543 | -----------------------------------
-- 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("scri... | gpl-3.0 |
kidaa/turbo | spec/hash_spec.lua | 12 | 1760 | -- Turbo Unit test
--
-- Copyright 2013 John Abrahamsen
--
-- 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 applicabl... | apache-2.0 |
jshackley/darkstar | scripts/zones/East_Ronfaure/Zone.lua | 17 | 4049 | -----------------------------------
--
-- Zone: East_Ronfaure (101)
--
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/globals/zone");
require("script... | gpl-3.0 |
VincentGong/chess | cocos2d-x/cocos/scripting/lua-bindings/auto/api/ParticleSystem.lua | 3 | 15538 |
--------------------------------
-- @module ParticleSystem
-- @extend Node,TextureProtocol
--------------------------------
-- @function [parent=#ParticleSystem] getStartSizeVar
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ParticleSys... | mit |
LuaDist/lua-uri | uri/urn/oid.lua | 2 | 1800 | local M = { _NAME = "uri.urn.oid" }
local Util = require "uri._util"
local URN = require "uri.urn"
Util.subclass_of(M, URN)
-- This implements RFC 3061.
local function _valid_oid (oid)
if oid == "" then return nil, "OID can't be zero-length" end
if not oid:find("^[.0-9]*$") then return nil, "bad character in ... | mit |
knipferrc/dotfiles | nvim/lua/user/options.lua | 1 | 2982 | local options = {
backup = false, -- creates a backup file
clipboard = "unnamedplus", -- allows neovim to access the system clipboard
cmdheight = 2, -- more space in the neovim command line for displaying messages
completeopt = { "menuone", "nosel... | mit |
jshackley/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/qm6.lua | 15 | 2025 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: ???
-- Type: Quest NPC
-- @pos 68 -0.5 324 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Forest_[S]/TextIDs");... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.