repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
dvr333/Zero-K | LuaRules/Configs/StartBoxes/Aum_1.1.lua | 8 | 4712 | local layout = {
[0] = {
boxes = {
{
{1955.5284423828, 4691.412109375},
{3044.5961914063, 4640.3276367188},
{2946.1135253906, 4585.0356445313},
{2840.8408203125, 4588.5498046875},
{2812.3791503906, 4543.7133789063},
{2801.9182128906, 4500.4814453125},
{2797.1865234375, 4446.4350585938}... | gpl-2.0 |
ch3n2k/luci | applications/luci-meshwizard/luasrc/model/cbi/freifunk/meshwizard.lua | 8 | 6913 | -- wizard rewrite wip
local uci = require "luci.model.uci".cursor()
local sys = require "luci.sys"
local util = require "luci.util"
local ip = require "luci.ip"
local community = "profile_" .. (uci:get("freifunk", "community", "name") or "Freifunk")
local mesh_network = ip.IPv4(uci:get_first(community, "community", "... | apache-2.0 |
santssoft/darkstar | scripts/globals/items/dish_of_spaghetti_arrabbiata.lua | 11 | 1755 | -----------------------------------------
-- ID: 5211
-- Item: dish_of_spaghetti_arrabbiata
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +17% (cap 140)
-- Strength +5
-- Vitality +2
-- Intelligence -7
-- Attack +22% (cap 90)
-- Ranged Attack +22% (cap 90)
-- Store TP +6
-- Sleep resi... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 13 | 3340 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Laimeve, R.K.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Windurst_Waters/npcs/Leepe-Hoppe.lua | 9 | 10722 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Leepe-Hoppe
-- Involved in Mission 1-3, Mission 7-2
-- !pos 13 -9 -197 238
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/missions");
require("scripts/globals/keyitems");
local ID = require("scripts/... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 13 | 1542 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
RyUkApples/DarkRP | mysql-async/lib/Async.lua | 1 | 4710 |
---
-- Execute a query with no result required
--
-- @param query
-- @param params
-- @param func
-- @param Transaction transaction
--
-- @return coroutine
--
function MySQL.Async.execute(query, params, func, transaction)
local Command = MySQL.Utils.CreateCommand(query, params, transaction)
local executeTask =... | mit |
hacker44-h44/hacker44 | plugins/ingroup.lua | 202 | 31524 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
m241dan/darkstar | scripts/globals/items/pearlscale.lua | 18 | 1330 | -----------------------------------------
-- ID: 5714
-- Item: Pearlscale
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
Har1eyquinn/dbot | plugins/invite.lua | 1 | 1083 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
m241dan/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ci.lua | 13 | 1483 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ci (Gate of Light)
-- Involved In Mission: 3-2
-- @pos -331 0 139 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
palmettos/test | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping.lua | 8 | 1193 | --[[
Luci statistics - ping plugin diagram definition
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apach... | apache-2.0 |
santssoft/darkstar | scripts/globals/abilities/casters_roll.lua | 12 | 2825 | -----------------------------------
-- Ability: Caster's Roll
-- Enhances "Fast Cast" effect for party members within area of effect.
-- Optimal Job: None
-- Lucky Number: 2
-- Unlucky Number: 7
-- Level: 79
-- Phantom Roll +1 Value: 3
--
-- Die Roll | Fast Cast%
-- -------- -------
-- 1 |+6
-- 2 ... | gpl-3.0 |
ld-test/lua-spore | src/Spore/GoogleDiscovery.lua | 1 | 3573 |
--
-- lua-Spore : <http://fperrad.github.com/lua-Spore>
--
local error = error
local pairs = pairs
local type = type
local checktype = require 'Spore'.checktype
local new_from_lua = require 'Spore'.new_from_lua
local slurp = require 'Spore.Protocols'.slurp
local decode = require 'json'.decode
_ENV = nil
local m = {... | mit |
m241dan/darkstar | scripts/globals/items/moogle_pie.lua | 18 | 1701 | -----------------------------------------
-- ID: 5561
-- Item: Moogle Pie
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 20
-- MP 20
-- Strength 1
-- Dexterity 1
-- Vitality 1
-- Agility 1
-- Intelligence 1
-- Mind 1
-- Charisma 1
-----------------------------------------
require("scr... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Windurst_Waters/npcs/Angelica.lua | 9 | 5457 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Angelica
-- Starts and Finished Quest: A Pose By Any Other Name
-- !pos -70 -10 -6 238
-----------------------------------
local ID = require("scripts/zones/Windurst_Waters/IDs");
require("scripts/globals/settings");
require("scripts/globals/keyitems... | gpl-3.0 |
hylthink/Sample_Lua | frameworks/cocos2d-x/tests/lua-tests/src/ActionsProgressTest/ActionsProgressTest.lua | 16 | 12490 |
local s = cc.Director:getInstance():getWinSize()
------------------------------------
-- SpriteProgressToRadial
------------------------------------
local function SpriteProgressToRadial()
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
local to1 = cc.ProgressTo:create(2, 100)
local to2 = cc.Prog... | mit |
rekotc/game-engine-experimental-3 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/socket/src/tp.lua | 146 | 3608 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $
-----------------------------------------------------------------------------
--------------------------... | lgpl-3.0 |
m241dan/darkstar | scripts/zones/Castle_Oztroja/npcs/_47f.lua | 13 | 1250 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47f (Handle)
-- Notes: Opens door _471
-- @pos -182 -15 -19 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Quicksand_Caves/npcs/_5sa.lua | 13 | 1253 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -418 0 790 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Aht_Urhgan_Whitegate/Shared.lua | 14 | 5566 | -----------------------------------
-- Tables and Functions Used at Multiple Places within Aht Urgan Whitegate
-----------------------------------
require("scripts/globals/settings");
-- Lua Set Initializer http://www.lua.org/pil/11.5.html
function Set (list)
local set = {}
for _, l in ipairs(list) do set[l] =... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Port_San_dOria/npcs/Arminibit.lua | 13 | 1615 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Arminibit
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextIDs");
... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Mount_Zhayolm/mobs/Sarameya.lua | 11 | 2571 | -----------------------------------
-- Area: Mount Zhayolm
-- NM: Sarameya
-- !pos 322 -14 -581 61
-- Spawned with Buffalo Corpse: !additem 2583
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Sarameya
-- TODO: PostAIRewrite: Code the Howl effect and gradual resists.
-----------------------------------
mixins = {require(... | gpl-3.0 |
santssoft/darkstar | scripts/commands/hastitle.lua | 14 | 1382 | ---------------------------------------------------------------------------------------------------
-- func: hastitle
-- desc: Check if player already has a title.
---------------------------------------------------------------------------------------------------
require("scripts/globals/titles");
cmdprops =
{
pe... | gpl-3.0 |
bananu7/LoveAndFun | snake/main.lua | 1 | 2305 | function love.load()
snake = {}
snake.segments = { {x = 10, y = 10 } }
snake.len = 1
snake.dx = 1
snake.dy = 0
apple = { x = 5, y = 5 }
gridsize = { x = 20, y = 20 }
tilesize = { x = 20, y = 20 }
-- to slow down
cnt = 0
end
function love.keypressed(key)
if key == "up" then
snake.dx =... | mit |
renstrom/NeavUI | Interface/AddOns/oUF_Neav/func/aura.lua | 1 | 5039 |
local _, ns = ...
local config = ns.Config
local GetTime = GetTime
local floor, fmod = floor, math.fmod
local day, hour, minute = 86400, 3600, 60
local function ExactTime(time)
return format("%.1f", time), (time * 100 - floor(time * 100))/100
end
local function IsMine(unit)
if unit == "player" or unit == "v... | mit |
hamed9898/maxxbot | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
m241dan/darkstar | scripts/zones/West_Ronfaure/npcs/Esca.lua | 13 | 2914 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Esca
-- Involved in Quest "The Pickpocket"
-- @pos -624.231 -51.499 278.369 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
req... | gpl-3.0 |
m241dan/darkstar | scripts/commands/zone.lua | 23 | 13403 | ---------------------------------------------------------------------------------------------------
-- func: zone
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 1,
parameters = "s"
};
... | gpl-3.0 |
sigurdfdragon/wesnoth-fork | data/lua/wml/find_path.lua | 3 | 5820 | local utils = wesnoth.require "wml-utils"
function wesnoth.wml_actions.find_path(cfg)
local filter_unit = wml.get_child(cfg, "traveler") or wml.error("[find_path] missing required [traveler] tag")
-- only the first unit matching
local unit = wesnoth.units.find_on_map(filter_unit)[1] or wml.error("[find_path]'s filt... | gpl-2.0 |
m241dan/darkstar | scripts/globals/mobskills/Emetic_Discharge.lua | 44 | 2025 | ---------------------------------------------
-- Emetic Discharge
-- Family: Bloodlapper and Brummbar
-- Description: Transfers all ailments to target
-- Type: Enfeebling
-- Utsusemi/Blink absorb: 2-3 shadows
-- Notes:
---------------------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Southern_San_dOria/npcs/Andecia.lua | 11 | 3170 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Andecia
-- Starts and Finishes Quest: Grave Concerns
-- @zone 230
-- @pos 167 0 45
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
santssoft/darkstar | scripts/globals/items/poultry_pitaru.lua | 11 | 1040 | -----------------------------------------
-- ID: 5890
-- Item: poultry_pitaru
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- MP +7% (cap 110)
-- Increases rate of magic skill gains by 40%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals... | gpl-3.0 |
Lmy0217/DRML | cnn.lua | 1 | 1089 | require 'torch'
require 'nn'
require 'cunn'
require 'cutorch'
require 'cudnn'
require 'loadcaffe'
local _RESIDUAL_ = true
local alexnet = loadcaffe.load('./models/deploy.prototxt', './models/bvlc_alexnet.caffemodel', 'cudnn')
alexnet:get(1).dW = 1
alexnet:get(1).dH = 1
for i = 24, 16, -1 do
alexnet:remove()
end
... | mit |
Tom-Ski/libgdx-demo-pax-britannica | android/assets/data/scripts/production.lua | 6 | 7001 | local gl = require 'gl'
local blueprints = require 'blueprints'
local v2 = require 'dokidoki.v2'
BUILDING_SPEED = 3
local SEGMENTS = 32
local RADIUS = 32
local DRAW_OFFSET = -4
local SPAWN_OFFSET = 47
UNIT_COSTS = { fighter = 50, bomber = 170, frigate = 360, upgrade = 1080 }
local potential_cost = 0
local needle_an... | mit |
santssoft/darkstar | scripts/zones/Arrapago_Remnants/instances/arrapago_remnants.lua | 11 | 5649 | -----------------------------------
--
-- Salvage: Arrapago Remnants
--
-----------------------------------
local ID = require("scripts/zones/Arrapago_Remnants/IDs")
require("scripts/globals/instance")
-----------------------------------
function afterInstanceRegister(player)
local instance = player:getInstance()
... | gpl-3.0 |
hadirahimi1380/selfprivate | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
77shahriar77/ALFA | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
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_prin... | gpl-2.0 |
m241dan/darkstar | scripts/zones/Nashmau/npcs/Jajaroon.lua | 13 | 1671 | -----------------------------------
-- Area: Nashmau
-- NPC: Jajaroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
---------------------... | gpl-3.0 |
m241dan/darkstar | scripts/globals/weaponskills/avalanche_axe.lua | 11 | 1349 | -----------------------------------
-- Avalanche Axe
-- Axe weapon skill
-- Skill level: 100
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- ... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Boneyard_Gully/mobs/Race_Runner.lua | 13 | 1477 | -----------------------------------
-- Area: Boneyard_Gully
-- Name: Race Runner
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
local path = {
-539, 0, -481,
-556, 0, -478,
-581, 0, -475,
-579, -3, -460,
-572, 2, -433,
-545, 1, -440,
... | gpl-3.0 |
dvr333/Zero-K | LuaUI/Widgets/api_chili.lua | 6 | 12249 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Framework",
desc = "Hot GUI Framework",
author = "jK",
date = "WIP",
li... | gpl-2.0 |
m241dan/darkstar | scripts/globals/items/dish_of_spaghetti_arrabbiata_+1.lua | 18 | 1754 | -----------------------------------------
-- ID: 5212
-- Item: dish_of_spaghetti_arrabbiata_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 15
-- Health Cap 150
-- Strength 5
-- Vitality 2
-- Intelligence -7
-- Attack % 22
-- Attack Cap 120
-- Store TP 5
-----------------------... | gpl-3.0 |
sayeed99/kali-nethunter | nethunter-installer/update/system/bin/scripts/mifare_autopwn.lua | 7 | 4892 | local getopt = require('getopt')
local reader = require('read14a')
local cmds = require('commands')
example = "script run mifare_autopwn"
author = "Martin Holst Swende"
desc =
[[
This is a which automates cracking and dumping mifare classic cards. It sets itself into
'listening'-mode, after which it cracks and dump... | gpl-2.0 |
m241dan/darkstar | scripts/globals/items/cone_of_seraphs_kiss.lua | 18 | 1385 | -----------------------------------------
-- ID: 5556
-- Item: cone_of_seraphs_kiss
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- HP 15
-- MP % 16 (cap 85)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
m241dan/darkstar | scripts/globals/effects/battlefield.lua | 13 | 1136 | -----------------------------------
--
-- EFFECT_BATTLEFIELD
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (target:getPet()) then
target:getPet():addStatusEffect(effect);
... | gpl-3.0 |
m241dan/darkstar | scripts/globals/mobskills/Spike_Flail.lua | 33 | 1247 | ---------------------------------------------------
-- Spike Flail
-- Deals extreme damage in a threefold attack to targets behind the user.
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
----------... | gpl-3.0 |
toshi-k/Kaggle-Denoising-Dirty-Documents | doall.lua | 1 | 1184 |
---------- library ----------
require 'nn'
require 'cunn'
---------- settings ----------
cmd = torch.CmdLine()
cmd:text()
cmd:text('SVHN Loss Function')
cmd:text()
cmd:text('Options:')
-- global:
cmd:option('-seed', 91, 'fixed input seed for repeatable experiments')
cmd:option('-threads', 2, 'number of threads')
--... | mit |
m241dan/darkstar | scripts/zones/Dangruf_Wadi/Zone.lua | 13 | 3202 | -----------------------------------
--
-- Zone: Dangruf_Wadi (191)
--
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status");
require(... | gpl-3.0 |
santssoft/darkstar | scripts/globals/items/serving_of_bass_meuniere.lua | 11 | 1364 | -----------------------------------------
-- ID: 4582
-- Item: serving_of_bass_meuniere
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 3 (cap 130)
-- Dexterity 3
-- Agility 3
-- Mind -3
-- Ranged ACC % 6
-- Ranged ACC Cap 15
-----------------------------------------
require("scr... | gpl-3.0 |
dvr333/Zero-K | LuaUI/Widgets/gui_epicmenu.lua | 5 | 104827 | function widget:GetInfo()
return {
name = "EPIC Menu",
desc = "v1.439 Extremely Powerful Ingame Chili Menu.",
author = "CarRepairer",
date = "2009-06-02", --2014-05-3
license = "GNU GPL, v2 or later",
layer = -100001,
handler = true,
enabled = true,
alwaysStart = true,
}
... | gpl-2.0 |
Timmeey86/CQUI_Community-Edition | Assets/UI/civ6common.lua | 2 | 43691 | ------------------------------------------------------------------------------
-- Common LUA support functions specific to Civilization 6
------------------------------------------------------------------------------
include( "ToolTipHelper" );
-- ====================================================================... | mit |
broxen/Segs | Data/scripts/City_03_01/TimeCop.lua | 3 | 1821 | --TimeCop controls auto-refreshing of map spawners (spawndef-based)
local TimeCop = {};
TimeCop.spawned = false;
TimeCop.name = "Time Cop";
TimeCop.model = "MaleNpc_230";
TimeCop.location = {};
TimeCop.location.coordinates = vec3.new(-1135, 162, 7540);
TimeCop.location.orientation = vec3.new(0, 0, 0);
TimeCop.variatio... | bsd-3-clause |
santssoft/darkstar | scripts/globals/weaponskills/burning_blade.lua | 10 | 1308 | -----------------------------------
-- Burning Blade
-- Sword weapon skill
-- Skill Level: 30
-- Desription: Deals Fire elemental damage to enemy. Damage varies with TP.
-- Aligned with the Flame Gorget.
-- Aligned with the Flame Belt.
-- Element: Fire
-- Modifiers: STR:20% INT:20%
-- 100%TP 200%TP 300%TP
-- 1.0... | gpl-3.0 |
dvr333/Zero-K | LuaUI/Widgets/gui_chili_minimap.lua | 4 | 33492 | function widget:GetInfo()
return {
name = "Chili Minimap",
desc = "v0.895 Chili Minimap",
author = "Licho, CarRepairer",
date = "@2010",
license = "GNU GPL, v2 or later",
layer = -100000,
enabled = true,
}
end
VFS.Include("LuaRules/Configs/customcmds.h.lua")
in... | gpl-2.0 |
autismuk/Executive | utils/d44.lua | 1 | 3728 |
-- OOP Bit
_G.Base = _G.Base or { new = function(s,...) local o = { } setmetatable(o,s) s.__index = s o:initialise(...) return o end,initialise = function() end }
local Controls = Base:new() -- create a Class or Prototype 'Controls' which inherits from 'Base'
function Controls:initialise(options) -- ... | mit |
m241dan/darkstar | scripts/zones/Castle_Oztroja/npcs/_47w.lua | 13 | 1276 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47w (Handle)
-- Notes: Opens door _473 from behind
-- @pos -41.377 -17.084 17.036 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Cast... | gpl-3.0 |
darkstalker/LuaTwit | src/luatwit/http.lua | 1 | 12641 | --- Implements a service for performing HTTP requests.
--
-- @module luatwit.http
-- @author darkstalker <https://github.com/darkstalker>
-- @license MIT/X11
local ipairs, next, pairs, pcall, select, setmetatable, table_concat, table_remove, tostring, type =
ipairs, next, pairs, pcall, select, setmetatable, tab... | mit |
m241dan/darkstar | scripts/zones/Chamber_of_Oracles/Zone.lua | 30 | 1741 | -----------------------------------
--
-- Zone: Chamber_of_Oracles (168)
--
-----------------------------------
package.loaded["scripts/zones/Chamber_of_Oracles/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Chamber_of_Oracles/TextIDs");
--------------... | gpl-3.0 |
dvr333/Zero-K | units/shipskirm.lua | 3 | 3839 | return { shipskirm = {
unitname = [[shipskirm]],
name = [[Mistral]],
description = [[Skirmisher Ship]],
acceleration = 0.234,
activateWhenBuilt = true,
brakeRate = 1.38,
buildCostMetal = 220,
builder = false,
... | gpl-2.0 |
10headless/hawkthorne-journey | src/vendor/hardoncollider/polygon.lua | 4 | 13127 | --[[
Copyright (c) 2011 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | mit |
mohammad24/nnew | plugins/id.lua | 226 | 4260 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
dvr333/Zero-K | scripts/turretimpulse.lua | 6 | 2456 | include "constants.lua"
local WOBBLE_DIST = 2
local WOBBLE_SPEED = 2
local TURRET_AIM_SPEED = math.rad(300)
local TURRET_SPIN_SPEED = math.rad(60)
local RING_SPIN_SPEED = -1 * math.rad(120)
local CRYSTAL_TURN_SPEED = math.rad(150)
-- pieces --
local gp = piece('gp')
local base = piece('base')
local turret = piece('tu... | gpl-2.0 |
rekotc/game-engine-experimental-3 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wsapi/tests/test_request.lua | 2 | 6142 |
pcall(require, "luarocks.require")
require "wsapi.request"
local function make_env_get(qs)
return {
REQUEST_METHOD = "GET",
QUERY_STRING = qs or "",
CONTENT_LENGTH = 0,
PATH_INFO = "/",
SCRIPT_NAME = "",
CONTENT_TYPE = "x-www-form-urlencoded",
input = {
read = function (... | lgpl-3.0 |
santssoft/darkstar | scripts/globals/items/bowl_of_goulash_+1.lua | 11 | 1255 | -----------------------------------------
-- ID: 5751
-- Item: bowl_of_goulash_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- VIT +4
-- INT -2
-- Accuracy +11% (cap 58)
-- DEF +11% (cap 35)
-----------------------------------------
require("scripts/globals/status")
require("scripts/glob... | gpl-3.0 |
dvr333/Zero-K | scripts/gunshipassault.lua | 7 | 2067 | local base = piece 'base'
local body = piece 'body'
local firep1 = piece 'firep1'
local firep2 = piece 'firep2'
local wings = piece 'wings'
local fan = piece 'fan'
local Rwingengine = piece 'Rwingengine'
local Lwingengine = piece 'Lwingengine'
local Rengine = piece 'Rengine'
local Lengine = piece 'Lengine'
local smoke... | gpl-2.0 |
rekotc/game-engine-experimental-3 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/mk/test/test_routes.lua | 2 | 4530 |
local R = require "mk.routes"
do
local r = R('/foo')
local t = r:match("/foo")
assert(t)
assert(r:build() == "/foo")
end
do
local r = R('/foo')
local t = r:match("/bar")
assert(not t)
assert(r:build() == "/foo")
end
do
local r = R('/foo')
local t = r:match("/foobar")
assert(not t)
e... | lgpl-3.0 |
santssoft/darkstar | scripts/zones/Inner_Horutoto_Ruins/IDs.lua | 9 | 2622 | -----------------------------------
-- Area: Inner Horutoto Ruins (192)
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.INNER_HORUTOTO_RUINS] =
{
text =
{
PORTAL_SEALED_BY_3_MAGIC = 8, -- The Sealed Portal ... | gpl-3.0 |
santssoft/darkstar | scripts/globals/abilities/pets/attachments/inhibitor_ii.lua | 11 | 1119 | -----------------------------------
-- Attachment: Inhibitor II
-----------------------------------
require("scripts/globals/automaton")
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
updateModPerformance(pet, dsp.mod.STORETP, 'inhibitor_ii_mod', 10)
pet:addMod(dsp.... | gpl-3.0 |
LiquidFeedbackUA/webmcp | framework/env/ui/tag.lua | 3 | 1113 | --[[--
ui.tag{
tag = tag, -- HTML tag, e.g. "a" for <a>...</a>
attr = attr, -- table of HTML attributes, e.g. { class = "hide" }
content = content -- string to be HTML encoded, or function to be executed
}
This function writes a HTML tag into the active slot.
NOTE: ACCELERATED FUNCTION
Do not cha... | mit |
m241dan/darkstar | scripts/zones/Windurst_Walls/npcs/Shantotto.lua | 12 | 8600 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Shantotto
-- @pos 122 -2 112 239
-- CSID's missing in autoEventID please check the old forums under resources for all of shantotto's csid's. I found them all manually.
-----------------------------------
package.loaded["scripts/zones/Windurst_Wall... | gpl-3.0 |
m241dan/darkstar | scripts/zones/West_Ronfaure/npcs/Kyanta-Pakyanta_WW.lua | 13 | 3335 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Kyanta-Pakyanta, W.W.
-- Type: Outpost Conquest Guards
-- @pos -450.571 -20.807 -219.970 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Nivorajean.lua | 13 | 1063 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Nivorajean
-- Type: Standard NPC
-- @zone: 26
-- @pos 15.890 -22.999 13.322
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Churacoco.lua | 13 | 1064 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Churacoco
-- Type: Standard NPC
-- @zone: 94
-- @pos -76.139 -4.499 20.986
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
... | gpl-3.0 |
santssoft/darkstar | scripts/zones/Balgas_Dais/bcnms/rank_2_mission.lua | 9 | 1587 | -----------------------------------
-- Area: Horlais Peak
-- Name: Mission Rank 2
-- !pos 299 -123 345 146
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
------------------------------... | gpl-3.0 |
santssoft/darkstar | scripts/globals/items/death_scythe.lua | 12 | 1066 | -----------------------------------------
-- ID: 16777
-- Item: Death Scythe
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/magic")
require("scripts/globals/msg")
-----------------------------------
function onAdditionalEffect(player... | gpl-3.0 |
m241dan/darkstar | scripts/globals/spells/drain_ii.lua | 21 | 1983 | -----------------------------------------
-- Spell: Drain II
-- Drain functions only on skill level!!
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
MasterKia/parsnod | plugins/boobs.lua | 90 | 1731 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
m241dan/darkstar | scripts/globals/items/cube_of_cotton_tofu.lua | 18 | 1409 | -----------------------------------------
-- ID: 5233
-- Item: cube_of_cotton_tofu
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health % 10
-- Health Cap 30
-- Magic % 10
-- Magic Cap 30
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
santssoft/darkstar | scripts/globals/items/bowl_of_miso_soup.lua | 11 | 1850 | -----------------------------------------
-- ID: 6466
-- Item: bowl_of_miso_soup
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +7% (cap 50)
-- DEX +4
-- AGI +4
-- Accuracy +10% (cap 40)
-- Attack +10% (cap 40)
-- Ranged Accuracy +10% (cap 40)
-- Ranged Attack +10% (cap 40)
-----------... | gpl-3.0 |
santssoft/darkstar | scripts/globals/abilities/pets/tidal_wave.lua | 11 | 1193 | ---------------------------------------------------
-- Tidal Wave
---------------------------------------------------
require("/scripts/globals/settings")
require("/scripts/globals/status")
require("/scripts/globals/monstertpmoves")
require("/scripts/globals/magic")
---------------------------------------------------
... | gpl-3.0 |
priteau/splayd | modules/splay/rpcq.lua | 1 | 13522 | --[[
Splayd
Copyright 2006 - 2009 Lorenzo Leonini (University of Neuchâtel)
http://www.splay-project.org
]]
--[[
This file is part of Splayd.
Splayd 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 vers... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Louxiard.lua | 15 | 2494 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Louxiard
-- @zone 80
-- @pos -93 -4 49
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
-------... | gpl-3.0 |
rekotc/game-engine-experimental-3 | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/bitop/bittest.lua | 17 | 2353 | -- Test cases for bit operations library. Public domain.
local bit = require"bit"
local vb = {
0, 1, -1, 2, -2, 0x12345678, 0x87654321,
0x33333333, 0x77777777, 0x55aa55aa, 0xaa55aa55,
0x7fffffff, 0x80000000, 0xffffffff
}
local function cksum(name, s, r)
local z = 0
for i=1,#s do z = (z + string.byte(s, i)*... | lgpl-3.0 |
ch3n2k/luci | modules/base/luasrc/model/uci.lua | 86 | 10653 | --[[
LuCI - UCI model
Description:
Generalized UCI model
FileId:
$Id$
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 the License.
You may obtain a copy of the License at
http://www.apache... | apache-2.0 |
m241dan/darkstar | scripts/commands/checkvar.lua | 38 | 1130 | ---------------------------------------------------------------------------------------------------
-- func: @checkvar <varType> <varName>
-- desc: checks player or server variable and returns result value.
---------------------------------------------------------------------------------------------------
cmdprops =
{... | gpl-3.0 |
sigurdfdragon/wesnoth-fork | data/campaigns/World_Conquest/lua/game_mechanics/effects.lua | 4 | 5588 | local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local terrain_map = { fungus = "Tt", cave = "Ut", sand = "Dt",
reef = "Wrt", hills = "Ht", swamp_water = "St", shallow_water = "Wst", castle = "Ct",
mountains = "Mt", deep_water = "Wdt", flat = "Gt", forest = "Ft", frozen = "At",
village = "Vt", impassable... | gpl-2.0 |
santssoft/darkstar | scripts/zones/Bastok_Mines/npcs/Goraow.lua | 9 | 2189 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Goraow
-- Starts Quests: Vengeful Wrath
-- !pos 38 .1 14 234
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/globals/titles");
local ID = require("scripts/zones/Bastok_Mines/ID... | gpl-3.0 |
ld-test/lua-spore | src/Spore/Middleware/Proxy/Basic.lua | 1 | 1471 | --
-- lua-Spore : <http://fperrad.github.com/lua-Spore/>
--
local assert = assert
local os = require 'os'
local mime = require 'mime'
local url = require 'socket.url'
_ENV = nil
local m = {}
local function _env_proxy (scheme)
local name = scheme:upper() .. '_PROXY'
local v = os.getenv(name)
assert(v, "n... | mit |
m241dan/darkstar | scripts/globals/items/plate_of_octopus_sushi_+1.lua | 18 | 1324 | -----------------------------------------
-- ID: 5694
-- Item: plate_of_octopus_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 17 (Unknown, assuming 1% more than NQ)
-----------------------------------------
require("scripts/globals/status");
----------... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Bastok_Markets/npcs/Lamepaue.lua | 13 | 11481 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Lamepaue
-- Type: Past Event Watcher
-- @zone: 235
-- @pos -172.136 -5 -69.632
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts/gl... | gpl-3.0 |
hylthink/Sample_Lua | frameworks/cocos2d-x/tests/lua-tests/src/KeypadTest/KeypadTest.lua | 13 | 1640 | local function KeypadMainLayer()
local layer = cc.Layer:create()
local function onEnter()
print("come in")
local s = cc.Director:getInstance():getWinSize()
local label = cc.Label:createWithTTF("Keypad Test", s_thonburiPath, 28)
layer:addChild(label, 0)
label:setAncho... | mit |
santssoft/darkstar | scripts/globals/mobskills/skullbreaker.lua | 11 | 1097 | ---------------------------------------------
-- Skullbreaker
--
-- Description: Lowers enemy's INT. Chance of lowering INT varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: 1 Shadow
-- Range: Melee
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/global... | gpl-3.0 |
m241dan/darkstar | scripts/globals/items/cup_of_healing_tea.lua | 17 | 1358 | -----------------------------------------
-- ID: 4286
-- Item: cup_of_healing_tea
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Magic 10
-- Vitality -1
-- Charisma 3
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------... | gpl-3.0 |
santssoft/darkstar | scripts/globals/items/broiled_trout.lua | 11 | 1071 | -----------------------------------------
-- ID: 4587
-- Item: Broiled Trout
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -1
-- Ranged ATT % 14 (cap 55)
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
-------... | gpl-3.0 |
dvr333/Zero-K | effects/cyclops_hit.lua | 10 | 10103 | -- cyclops_hit
return {
["cyclops_hit"] = {
air = true,
count = 10,
ground = true,
water = true,
sparks_wide = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
unit ... | gpl-2.0 |
dvr333/Zero-K | LuaUI/Widgets/chili/Skins/DarkHive/skin.lua | 8 | 4510 | --// =============================================================================
--// Skin
local skin = {
info = {
name = "DarkHive",
version = "0.1",
author = "luckywaldo7",
}
}
--// =============================================================================
--//
skin.general = {
--font = "F... | gpl-2.0 |
santssoft/darkstar | scripts/globals/items/plate_of_bream_sushi_+1.lua | 11 | 1374 | -----------------------------------------
-- ID: 5177
-- Item: plate_of_bream_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 5
-- Accuracy % 17 (cap 80)
-- Ranged ACC % 17 (cap 80)
-- Sleep Resist 2
-----------------------------------------
require("script... | gpl-3.0 |
m241dan/darkstar | scripts/zones/Northern_San_dOria/npcs/Antonian.lua | 1 | 1966 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Antonian
-- Regional Marchant NPC
-- Only sells when San d'Oria controlls Aragoneu.
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
condor-the-bird/tarantool | test/big/tree_pk.test.lua | 6 | 4665 | dofile('utils.lua')
s0 = box.schema.space.create('tweedledum')
i0 = s0:create_index('primary', { type = 'tree', parts = {1, 'num'}, unique = true })
bsize = i0:bsize()
-- integer keys
s0:insert{1, 'tuple'}
box.snapshot()
s0:insert{2, 'tuple 2'}
box.snapshot()
i0:bsize() > bsize
s0:insert{3, 'tuple 3'}
s0.index['pr... | bsd-2-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.