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 |
|---|---|---|---|---|---|
Anubhav652/GTW-RPG | [misc]/modloader/handling.lua | 3 | 3015 | handlingProperties = {
"identifier", "mass", "turnMass", "dragCoeff", "centerOfMassX", "centerOfMassY",
"centerOfMassZ", "percentSubmerged", "tractionMultiplier", "tractionLoss", "tractionBias", "numberOfGears",
"maxVelocity", "engineAcceleration", "engineInertia", "driveType", "engineType", "brakeDecelera... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/slice_of_karakul_meat.lua | 18 | 1289 | -----------------------------------------
-- ID: 5571
-- Item: Slice of Karakul Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +2
-- Intelligence -4
-----------------------------------------
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
redstormbot/rsbi | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
thesrinivas/rakshak | rakshak-probe/userspace/sysdig/chisels/topfiles_errors.lua | 6 | 1637 | --[[
Copyright (C) 2013-2014 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without e... | gpl-2.0 |
DI3HARD139/dcb-everamzah- | mods/foodblock/rice.lua | 1 | 4510 | -- Onigiri Block
minetest.register_node("foodblock:onigiri", {
description = "Onigiri Block",
drawtype = "nodebox",
paramtype2 = "facedir",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-8/16,-8/16,-8/16, 8/16, 2/16, 8/16},
{-7/16, 2/16,-8/16, 7/16, 6/16, 8/16},
{-6/16, 6/16,-8/16, 6/16... | gpl-3.0 |
b03605079/darkstar | scripts/globals/mobskills/Wind_Shear_ZNM.lua | 6 | 1128 | ---------------------------------------------
-- Wind Shear
--
-- Description: Deals damage to enemies within an area of effect. Additional effect: Knockback
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: 10' radial
-- Notes: The knockback is rather severe. Vulpangue uses an enhanced ver... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/bowl_of_adoulin_soup_+1.lua | 36 | 1507 | -----------------------------------------
-- ID: 5999
-- Item: Bowl of Adoulin Soup +1
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- HP % 4 Cap 45
-- Vitality 4
-- Defense % 16 Cap 75
-- HP Healing 7
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
FrankMuenzner/proxmark3 | client/scripts/dumptoemul.lua | 8 | 2919 | -- The getopt-functionality is loaded from pm3/getopt.lua
-- Have a look there for further details
getopt = require('getopt')
bin = require('bin')
example = "script run dumptoemul -i dumpdata-foobar.bin"
author = "Martin Holst Swende"
usage = "script run dumptoemul [-i <file>] [-o <file>]"
desc =[[
This script takes a... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Beadeaux_[S]/Zone.lua | 8 | 1278 | -----------------------------------
--
-- Zone: Beadeaux_[S] (92)
--
-----------------------------------
package.loaded["scripts/zones/Beadeaux_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Beadeaux_[S]/TextIDs");
-----------------------------------
-- onInitialize
-----... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/massacre_elegy.lua | 2 | 1901 | -----------------------------------------
-- Spell: Battlefield Elegy
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,tar... | gpl-3.0 |
FlightControl-Master/MOOSE_MISSIONS | ZON - Zones/ZON-401 - Radius Zone - Random Point/ZON-401 - Radius Zone - Random Point.lua | 1 | 1549 | ---
-- Name: ZON-401 - Radius Zone - Random Point
-- Author: FlightControl
-- Date Created: 18 Feb 2017
--
-- # Situation:
--
-- Three zones are defined.
-- 15 points are smoked in each zone.
-- The first 15 points are blue smoked using the GetRandomVec2() API.
-- The second 15 points are orange smoked using... | gpl-3.0 |
Azrael1/treelstm | models/ChildSumTreeLSTM.lua | 10 | 5023 | --[[
A Child-Sum Tree-LSTM with input at each node.
--]]
local ChildSumTreeLSTM, parent = torch.class('treelstm.ChildSumTreeLSTM', 'treelstm.TreeLSTM')
function ChildSumTreeLSTM:__init(config)
parent.__init(self, config)
self.gate_output = config.gate_output
if self.gate_output == nil then self.gate_output ... | gpl-2.0 |
PicassoCT/Journeywar | gamedata/explosions/firecolumn.lua | 1 | 3112 |
-- dirt
return {
["firecolumn"] = {
frontalFire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 5,
ground = true,
properties = {
airdrag = 1,
alwaysvisible = true,
colormap ... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/prime_beef_stewpot.lua | 36 | 1890 | -----------------------------------------
-- ID: 5548
-- Item: Prime Beef Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Strength +2
-- Agility +1
-- Mind +1
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Atta... | gpl-3.0 |
Aquanim/Zero-K | units/chicken_leaper.lua | 2 | 2999 | return { chicken_leaper = {
unitname = [[chicken_leaper]],
name = [[Leaper]],
description = [[Hopping Raider]],
acceleration = 1.5,
brakeRate = 1.23,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = ... | gpl-2.0 |
bakpakin/heroku-buildpack-moonmint | heroku/share/lua/5.1/luarocks/doc.lua | 3 | 5035 |
--- Module implementing the LuaRocks "doc" command.
-- Shows documentation for an installed rock.
local doc = {}
package.loaded["luarocks.doc"] = doc
local util = require("luarocks.util")
local search = require("luarocks.search")
local path = require("luarocks.path")
local dir = require("luarocks.dir")
local fetch = ... | mit |
Aquanim/Zero-K | lups/ParticleClasses/JitterParticles.lua | 8 | 12027 | -- $Id: JitterParticles.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local JitterParticles = {}
Jitt... | gpl-2.0 |
stepelu/lua-sci | quad/_dblexp.lua | 1 | 3900 | --------------------------------------------------------------------------------
-- Double exponential method for fast numerical integration of analytic real
-- functions, see:
-- http://crd-legacy.lbl.gov/~dhbailey/dhbpapers/dhb-tanh-sinh.pdf
-- and its references.
--
-- Copyright (C) 2011-2016 Stefano Peluchett... | mit |
b03605079/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm1.lua | 4 | 1569 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm1 (???)
-- @pos 203.939 0.000 -238.811 120
-- Notes: Spawns Dribblix Greasemaw for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
------------... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/endpoints/Indices/Get.lua | 2 | 1975 | -------------------------------------------------------------------------------
-- Importing modules
-------------------------------------------------------------------------------
local IndicesEndpoint = require "elasticsearch.endpoints.Indices.IndicesEndpoint"
--------------------------------------------------------... | gpl-2.0 |
atsepkov/awesome-zen | bootstrap.lua | 1 | 3153 | -- Alexander Tsepkov, 2015
--
-- Collection of utilities for awesome WM to import/use awesome-zen platform better.
local awful = require("awful")
local naughty = require("naughty")
-- spawn a system tool/utility once, useful for those pesky system tray icons that keep stacking with themselves,
-- also can be used ... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Lower_Jeuno/npcs/Vola.lua | 17 | 3168 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Vola
-- Starts and Finishes Quest: Fistful of Fury
-- Involved in Quests: Beat Around the Bushin (before the quest)
-- @zone 245
-- @pos 43 3 -45
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
pack... | gpl-3.0 |
dyrock/trafficserver | plugins/lua/business/sethost.lua | 17 | 1188 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); y... | apache-2.0 |
b03605079/darkstar | scripts/globals/spells/sleepga_ii.lua | 2 | 1040 | -----------------------------------------
-- Spell: Sleep II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,tar... | gpl-3.0 |
FlightControl-Master/MOOSE_MISSIONS | AID - AI Dispatching/AID-A2A - AI A2A Dispatching/AID-A2A-031 - CAP out of fuel/AID-A2A-031 - CAP out of fuel.lua | 1 | 1494 | ---
-- Name: AID-A2A-031 - CAP out of fuel
-- Author: FlightControl
-- Date Created: 30 Aug 2017
-- Define a SET_GROUP object that builds a collection of groups that define the EWR network.
-- Here we build the network with all the groups that have a name starting with DF CCCP AWACS and DF CCCP EWR.
Detection... | gpl-3.0 |
b03605079/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f5.lua | 34 | 1106 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 270 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs")... | gpl-3.0 |
apc-llc/likwid | src/applications/likwid-topology.lua | 7 | 16132 | #!<PREFIX>/bin/likwid-lua
--[[
* =======================================================================================
*
* Filename: likwid-topology.lua
*
* Description: A application to determine the thread and cache topology
* on x86 processors.
*
* Version: <VERSION>
... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/src/elasticsearch/connection/Connection.lua | 1 | 6378 | -------------------------------------------------------------------------------
-- Importing module
-------------------------------------------------------------------------------
local http = require "socket.http"
local url = require "socket.url"
local table = require "table"
local ltn12 = require "ltn12"
-----------... | gpl-2.0 |
thesrinivas/rakshak | rakshak-probe.bkup/userspace/sysdig/chisels/topprocs_cpu.lua | 6 | 3367 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without e... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/Bone.lua | 8 | 8058 |
--------------------------------
-- @module Bone
-- @extend Node
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#Bone] isTransformDirty
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
--
-- @function [parent=#Bone] setBlendFunc ... | mit |
thesrinivas/rakshak | rakshak-probe/userspace/elasticsearch-lua/tests/endpoints/IndicesTest/RefreshTest.lua | 2 | 1205 | -- Importing modules
local Refresh = require "elasticsearch.endpoints.Indices.Refresh"
local MockTransport = require "lib.MockTransport"
local getmetatable = getmetatable
-- Setting up environment
local _ENV = lunit.TEST_CASE "tests.endpoints.IndicesTest.RefreshTest"
-- Declaring local variables
local endpoint
local ... | gpl-2.0 |
b03605079/darkstar | scripts/globals/spells/curaga.lua | 13 | 1210 | -----------------------------------------
-- Spell: Curaga
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/bluemagic/cimicine_discharge.lua | 2 | 1352 | -----------------------------------------
-- Bluemagic: Cimicine Discharge
-- Reduces the attack speed of enemies within range.
-- DEX +1 AGI +2
-- Lvl.: 78 MP Cost: 32 Blue Points: 3
--
-- Duration: Variable, with max of 3 min
-----------------------------------------
require("scripts/globals/magic");
requ... | gpl-3.0 |
mehrdad79/shield5 | plugins/antiemoji.lua | 1 | 1356 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['antiemoji'] then
lock_em... | gpl-2.0 |
cs-willian-silva/vlc | share/lua/playlist/katsomo.lua | 97 | 2906 | --[[
Translate www.katsomo.fi video webpages URLs to the corresponding
movie URL
$Id$
Copyright © 2009 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 o... | gpl-2.0 |
stars2014/quick-ng | cocos/scripting/lua-bindings/auto/api/EaseOut.lua | 7 | 1073 |
--------------------------------
-- @module EaseOut
-- @extend EaseRateAction
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action and the rate parameter.<br>
-- param action The pointer of the inner action.<br>
-- param rate The value of the rate parameter.<br>
-- re... | mit |
b03605079/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/Grounds_Tome.lua | 34 | 1144 | -----------------------------------
-- Area: Shrine of Ru'Avitau
-- NPC: Grounds Tome
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onTrade Action
-----------------------------------
function onT... | gpl-3.0 |
sgraf812/push | src/push_test.lua | 1 | 2630 | local push = require("push")
do
local p = push.property()
assert(p() == nil)
assert(p.name == "<unnamed>")
p = push.property("bar", "name")
assert(p() == "bar")
assert(p.name == "name")
assert(p("foo") == "foo")
assert(p() == "foo")
end
do
local both = push.property()
local get = push.readonly(both)... | mit |
htbegin/pyftk | script_binding/lua/demo_popup.lua | 9 | 1611 | function OnMenuItemClicked(info)
print("OnMenuItemClicked: " .. info.text)
end
items={"Cut", "Copy", "Paste", "Select All"}
function ShowPopup(type)
local icon = FtkTheme.LoadImage(Ftk.DefaultTheme(), "info.png")
local popup = FtkPopupMenu.Create(0, 0, 0, 200, icon, "Edit")
info = FtkListItemInfo.Create();
info.... | lgpl-3.0 |
Aquanim/Zero-K | LuaUI/Widgets/gfx_outline_no_shader.lua | 2 | 15383 | -- $Id: gfx_outline.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gfx_outline.lua
-- brief: Displays a nice cartoon like outline around units
-- aut... | gpl-2.0 |
felipeprov/premake-core | tests/base/test_override.lua | 18 | 1484 | --
-- tests/base/test_override.lua
-- Verify function override support.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.premake_override = {}
local suite = T.premake_override
--
-- Setup
--
local X = {}
function suite.setup()
X.testfunc = function(value)
return value or "testfunc"
end
... | bsd-3-clause |
centaure/S4 | examples/patterns/ellipse.lua | 7 | 1268 | -- Run as
-- S4 ellipse.lua >ellipse_eps_cell.txt 2>ellipse_eps_real.txt
S = S4.NewSimulation()
S:SetLattice({1,0}, {0,1})
S:SetNumG(80)
-- Material definition
S:AddMaterial('Silicon', {12,0}) -- real and imag parts
S:AddMaterial('Vacuum', {1,0})
-- Structure definition
S:AddLayer('AirAbove', -- layer... | gpl-2.0 |
larsnorbergofficial/DiabolicUI | modules/actionbars/elements/bar3.lua | 2 | 5474 | local _, Engine = ...
local Module = Engine:GetModule("ActionBars")
local BarWidget = Module:SetWidget("Bar: 3")
-- Lua API
local select = select
local setmetatable = setmetatable
-- WoW API
local CreateFrame = CreateFrame
local RegisterStateDriver = RegisterStateDriver
-- Client version constants
local ENGINE_MOP... | mit |
Sakura-Winkey/LuCI | applications/luci-app-freifunk-widgets/luasrc/model/cbi/freifunk/widgets/widget.lua | 68 | 1039 | -- Copyright 2012 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local dsp = require "luci.dispatcher"
local utl = require "luci.util"
local widget = uci:get("freifunk-widgets", arg[1], "template")
local title = uci:get("f... | apache-2.0 |
b03605079/darkstar | scripts/globals/items/salmon_rice_ball.lua | 14 | 1739 | -----------------------------------------
-- ID: 4590
-- Item: salmon_rice_ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +25, Dex +2, Vit +2, Mnd -1, hHP +1 (Atk +40, Def +40)*enhances rice ball effect
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
Aquanim/Zero-K | units/tankraid.lua | 2 | 4365 | return { tankraid = {
unitname = [[tankraid]],
name = [[Kodachi]],
description = [[Raider Tank]],
acceleration = 0.75,
brakeRate = 1.65,
buildCostMetal = 170,
builder = false,
buildPic = [[tankraid.png]],
canGuard ... | gpl-2.0 |
PicassoCT/Journeywar | units/centrail/crestrictor.lua | 1 | 1233 | local unitName = "crestrictor"
local unitDef = {
name = "Restrictor",
Description = "fast Scout. Stuns Enemy Buildings with Groundconcussion. <Scout Buff Unit>",
objectName = "res.s3o",
script = "cres.lua",
buildPic = "crestrictor.png",
--cost
buildCostMetal = 380,
buildCostEnergy = 120,
buildTime = 9,
--Health
maxDam... | gpl-3.0 |
Aquanim/Zero-K | scripts/letsNotFailAtTrig.lua | 8 | 1604 | -- TODO: CACHE INCLUDE FILE
-- Only Krow and Jugglenaut use this
local hpi = math.pi*0.5
local cos = math.cos
local sin = math.sin
local acos = math.acos
local asin = math.asin
function rotateXaxis(v, angle)
return {v[1], v[2]*cos(angle) - v[3]*sin(angle), v[3]*cos(angle) + v[2]*sin(angle)}
end
function rotateYaxis... | gpl-2.0 |
PicassoCT/Journeywar | units/journey/jTree2.lua | 1 | 1385 | local unitName = "jtree2"
local unitDef = {
name = "Future Tree",
Description = " Grows into a Dream Tree with Radiation <Energy>",
objectName = "jEtree2.s3o",
script = "jTree2.lua",
buildPic = "jtree2.png",
--cost
buildCostMetal = 100,
buildCostEnergy = 50,
buildTime =1,
--Health
maxDamage = 400,
idleAuto... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Port_Bastok/npcs/Valah_Molkot.lua | 35 | 3185 | -----------------------------------
-- Area: Port Bastok
-- NPC: Valah Molkot
-- Starts and Finishes Quest: A Lady's Heart
-- @zone 236
-- @pos 59 8 -221
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Wajaom_Woodlands/npcs/qm1.lua | 15 | 1188 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Vulpangue(ZNM T1))
-- @pos -697 -7 -123 51
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
------... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/bowl_of_sutlac.lua | 36 | 1315 | -----------------------------------------
-- ID: 5577
-- Item: Bowl of Sutlac
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +8
-- MP +10
-- INT +1
-- MP Recovered while healing +2
-----------------------------------------
require("scripts/globals/status");
----... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Valley_of_Sorrows/mobs/Adamantoise.lua | 8 | 1656 | -----------------------------------
-- Area: Valley of Sorrows
-- NPC: Adamantoise
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
------------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Promyvion-Dem/mobs/Memory_Receptacle.lua | 12 | 6792 | -----------------------------------
-- Area: Promyvion-Dem
-- MOB: Memory Receptacle
-----------------------------------
package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require( "scripts/zones/Promyvion-Dem/TextIDs" );
-... | gpl-3.0 |
b03605079/darkstar | scripts/commands/zone.lua | 7 | 13713 | ---------------------------------------------------------------------------------------------------
-- func: zone
-- auth: <Unknown> :: Modded by atom0s.
-- desc: Teleports a player to the given zone.
---------------------------------------------------------------------------------------------------
cmdprops =
... | gpl-3.0 |
zdszxp/gamesrc | Trdlib/src/redis/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | gpl-3.0 |
JRHZRD/swapdb | swap-redis-4.0.0/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-2-clause |
witgo/nn | HingeEmbeddingCriterion.lua | 50 | 1290 | local HingeEmbeddingCriterion, parent = torch.class('nn.HingeEmbeddingCriterion', 'nn.Criterion')
function HingeEmbeddingCriterion:__init(margin)
parent.__init(self)
self.margin = margin or 1
self.sizeAverage = true
end
function HingeEmbeddingCriterion:updateOutput(input,y)
self.buffer = self.buffer or ... | bsd-3-clause |
Aquanim/Zero-K | LuaUI/Widgets/gfx_projectile_lights.lua | 2 | 17217 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Projectile Lights",
version = 3,
desc = "Collects projectiles and sends them to the deferred re... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua | 19 | 2403 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Pradiulot
-- Involved in Quest: Unforgiven
-- @zone 26
-- @pos -20.814 -22 8.399
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zon... | gpl-3.0 |
PicassoCT/Journeywar | scripts/beanstalkscript.lua | 1 | 18587 | include "createCorpse.lua"
include "lib_OS.lua"
include "lib_UnitScript.lua"
include "lib_Animation.lua"
include "lib_Build.lua"
include "lib_jw.lua"
center = piece "center"
beans = piece "beans"
beanstalk = piece "beanstalk"
introgroup = piece "introgroup"
bean1 = piece "bean1"
seed = piece "seed"
rootGroup = piece "... | gpl-3.0 |
stars2014/quick-ng | quick/framework/cc/sdk/Store.lua | 13 | 3883 |
local Store = {}
local function checkCCStore()
if not cc.Store then
printError("framework.cc.sdk.Store - cc.Store not exists.")
return false
end
return true
end
function Store.init(listener)
if not checkCCStore() then return false end
if cc.storeProvider then
printError("... | mit |
b03605079/darkstar | scripts/zones/East_Ronfaure_[S]/Zone.lua | 22 | 1336 | -----------------------------------
--
-- Zone: East_Ronfaure_[S] (81)
--
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/East_Ronfaure_[S]/TextIDs");
-------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Temenos/mobs/Goblin_Theurgist.lua | 17 | 1149 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Theurgist
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
---------------------... | gpl-3.0 |
krattai/noo-ebs | docs/zeroMQ-guide2/examples/Lua/ppworker.lua | 2 | 3526 | --
-- Paranoid Pirate worker
--
-- Author: Robert G. Jakabosky <bobby@sharedrealm.com>
--
require"zmq"
require"zmq.poller"
require"zmsg"
local HEARTBEAT_LIVENESS = 3 -- 3-5 is reasonable
local HEARTBEAT_INTERVAL = 1000 -- msecs
local INTERVAL_INIT = 1000 -- Initial reconnect
local INTERVAL_... | bsd-2-clause |
chanko08/KillerLibrarian | lib/hump/class.lua | 35 | 2925 | --[[
Copyright (c) 2010-2013 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, dis... | mit |
b03605079/darkstar | scripts/zones/RuLude_Gardens/npcs/Laityn.lua | 17 | 1187 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Laityn
-- Involved In Quest: Recollections
-----------------------------------
require("scripts/globals/quests");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trad... | gpl-3.0 |
Aquanim/Zero-K | units/zenith.lua | 2 | 11351 | return { zenith = {
unitname = [[zenith]],
name = [[Zenith]],
description = [[Meteor Controller]],
activateWhenBuilt = true,
buildCostMetal = 36000,
builder = false,
buildingGroundDecalDecaySpe... | gpl-2.0 |
immibis/wiremod | lua/wire/gates/arithmetic.lua | 18 | 8263 | --[[
Arithmetic Gates
]]
GateActions("Arithmetic")
GateActions["increment"] = {
name = "Increment",
inputs = { "A", "Clk", "Reset" },
output = function(gate, A, Clk, Reset)
local clk = ( Clk > 0 )
local reset = ( Reset > 0 )
if ( gate.PrevValue ~= clk ) then
gate.PrevValue = clk
if ( clk ) then
... | apache-2.0 |
DI3HARD139/dcb-everamzah- | mods/xdecor/xwall.lua | 1 | 4623 | -- Code by Sokomine (https://github.com/Sokomine/xconnected)
-- License : GPLv3
-- Optimized by kilbith
local xwall = {}
xwall.get_candidate = {}
local profiles = {
{0, "_c0", 0}, {1, "_c1", 1}, {2, "_c1", 0}, {4, "_c1", 3},
{8, "_c1", 2}, {5, "_ln", 1}, {10, "_ln", 0}, {3, "_c2", 0},
{6, "_c2", 3}, {12, "_c2", 2}... | gpl-3.0 |
Aquanim/Zero-K | LuaRules/Gadgets/unit_dont_fire_at_radar.lua | 6 | 7267 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g7.lua | 12 | 2606 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Strange Apparatus
-- @pos: 219 -39 255 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
require("scripts/zones/Gusgen_Mines/TextIDs");
require("scripts/globals/strangeapparatus");
--------------------... | gpl-3.0 |
DebugBill/domoticz | dzVents/runtime/EventHelpers.lua | 3 | 28621 | local GLOBAL_DATA_MODULE = 'global_data'
local GLOBAL = false
local LOCAL = true
local utils = require('Utils')
local persistence = require('persistence')
local HTTPResponse = require('HTTPResponse')
local Timer = require('Timer')
local Security = require('Security')
local HistoricalStorage = require('HistoricalStora... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Yughott_Grotto/npcs/HomePoint#1.lua | 12 | 1255 | -----------------------------------
-- Area: Yughott_Grotto
-- NPC: HomePoint#1
-- @pos 434 -40.299 171 142
-----------------------------------
package.loaded["scripts/zones/Yughott_Grotto/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Yughott_Grotto/TextIDs");
require("script... | gpl-3.0 |
jsykes/million-tile-engine | legacy/Million Tile Engine 0v990/Sample Projects/Coronastein3D (Experimental)/Coronastein3D 17/mte.lua | 2 | 176568 | --mte 0v728
local M = {}
local json = require("json")
local ceil = math.ceil
local floor = math.floor
local abs = math.abs
local tileSets = {}
local loadedTileSets = {}
local tileSetNames = {}
local map = {}
local worldSizeX
local worldSizeY
local layerWidth = {}
local layerHeight = {}
local imageDirectory = ""
loca... | mit |
b03605079/darkstar | scripts/globals/mobskills/Sledgehammer.lua | 6 | 1069 | ---------------------------------------------
-- Sledgehammer
--
-- Description: Delivers a sledgehammer blow to all targets in front. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 3 shadows
-- Range: Front cone
-- Notes: Only used by Gurfurlur the Menacing.
----------------... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Xarcabard/npcs/Jeantelas_RK.lua | 8 | 2933 | -----------------------------------
-- Area: Xarcabard
-- NPC: Jeantelas, R.K.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Palborough_Mines/npcs/_3z6.lua | 58 | 1142 | -----------------------------------
-- Elevator in Palborough
-- Notes: Used to operate Elevator @3z0
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
re... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Palborough_Mines/npcs/_3z7.lua | 58 | 1142 | -----------------------------------
-- Elevator in Palborough
-- Notes: Used to operate Elevator @3z0
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/settings");
re... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/trilobite.lua | 18 | 1337 | -----------------------------------------
-- ID: 4317
-- Item: Trilobite
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 3
-- Defense +16%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- O... | gpl-3.0 |
b03605079/darkstar | scripts/globals/spells/foe_lullaby_ii.lua | 2 | 1297 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
b03605079/darkstar | scripts/zones/Bastok_Markets/npcs/Loulia.lua | 37 | 1076 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Loulia
-- Type: Room Renters
-- @zone: 235
-- @pos -176.212 -9 -25.049
--
-- Auto-Script: Requires Verification. Validated standard dialog - thrydwolf 12/8/2011
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/Tex... | gpl-3.0 |
b03605079/darkstar | scripts/globals/items/crayfish.lua | 17 | 1408 | -----------------------------------------
-- ID: 4472
-- Item: crayfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -3
-- Vitality 1
-- defense 10
-----------------------------------------
require("scripts/globals/status");
-------------------------------------... | gpl-3.0 |
raymond-w-ko/vim-lua-indent | tests/tsukuyomi/tsukuyomi_006.in.lua | 3 | 2793 | -- vim: et sw=2 sts=2 ts=2
local tsukuyomi = tsukuyomi
local util = require('tsukuyomi.thirdparty.util')
local PersistentList = tsukuyomi.lang.PersistentList
local PersistentVector = tsukuyomi.lang.PersistentVector
local PersistentHashMap = tsukuyomi.lang.PersistentHashMap
local ArraySeq = tsukuyomi.lang.ArraySeq
loca... | mit |
cs-willian-silva/vlc | share/lua/playlist/liveleak.lua | 91 | 1883 | --[[
$Id$
Copyright © 2012 VideoLAN and AUTHORS
Authors: Ludovic Fauvet <etix@videolan.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your optio... | gpl-2.0 |
felipeprov/premake-core | tests/actions/make/cpp/test_objects.lua | 5 | 3012 | --
-- tests/actions/make/cpp/test_objects.lua
-- Validate the list of objects for a makefile.
-- Copyright (c) 2009-2014 Jason Perkins and the Premake project
--
local suite = test.declare("make_cpp_objects")
local make = premake.make
local project = premake.project
--
-- Setup
--
local sln, prj
function suit... | bsd-3-clause |
geoffleyland/rima | lua/rima/core.lua | 1 | 3681 | -- Copyright (c) 2009-2011 Incremental IP Limited
-- see LICENSE for license information
local lib = require("rima.lib")
local trace = require("rima.lib.trace")
local object = require("rima.lib.object")
local typeinfo = object.typeinfo
------------------------------------------------------------------------------
... | mit |
Aquanim/Zero-K | LuaUI/Widgets/gui_chili_space_waster.lua | 6 | 1748 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Space Waster",
desc = "Wastes space to make the UI look 'better'.",
author = "GoogleFrog... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Southern_San_dOria/npcs/Dahjal.lua | 34 | 1231 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Dahjal
-- first in conquest Npc
-- @zone 230
-- @pos
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Southern_San_dOria/T... | gpl-3.0 |
b03605079/darkstar | scripts/zones/RuLude_Gardens/npcs/Nelcabrit.lua | 19 | 2831 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Nelcabrit
-- Involved in Mission: San d'Oria 3-3, 4-1
-- @pos -32 9 -49 243
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
------------------... | gpl-3.0 |
thesrinivas/rakshak | rakshak-probe/userspace/sysdig/chisels/v_page_faults.lua | 2 | 2752 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
b03605079/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Ryunchi-Pauchi_WW.lua | 8 | 2965 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Ryunchi-Pauchi, W.W.
-- Type: Outpost Conquest Guards
-- @pos -24.351 -60.421 -114.215 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
larsnorbergofficial/DiabolicUI | modules/unitframes/units/arena.lua | 2 | 16286 | local Addon, Engine = ...
local Module = Engine:GetModule("UnitFrames")
local UnitFrameWidget = Module:SetWidget("Unit: Arena")
-- Register incompabilities to avoid conflicts
UnitFrameWidget:SetIncompatible("Gladius")
UnitFrameWidget:SetIncompatible("GladiusEx")
local UnitFrame = Engine:GetHandler("UnitFrame")
local ... | mit |
witgo/nn | SpatialSubSampling.lua | 44 | 1412 | local SpatialSubSampling, parent = torch.class('nn.SpatialSubSampling', 'nn.Module')
function SpatialSubSampling:__init(nInputPlane, kW, kH, dW, dH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.kW = kW
self.kH = kH
self.dW = dW
self.dH = dH
self.weight... | bsd-3-clause |
b03605079/darkstar | scripts/zones/Dynamis-Bastok/mobs/Adamantking_Effigy.lua | 16 | 3794 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: Adamantking Effigy
-- Map Position: http://www.dynamislounge.com/html/zone/frame_bas1.htm
-- Map Position: http://www.dynamislounge.com/html/zone/frame_bas2.htm
-----------------------------------
package.loaded["scripts/zones/Dynamis-Bastok/Tex... | gpl-3.0 |
Arashbrsh/niko | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
DebugBill/domoticz | dzVents/runtime/lodash.lua | 11 | 65212 | ---
-- lodash for lua
-- @module lodash
-- @author Ted Moghimi
-- @license MIT
local _ = {
_VERSION = '0.02'
}
--- Array
-- @section Array
---
-- Creates an array of elements split into groups the length of size.
-- If collection can’t be split evenly, the final chunk will be the
-- remaining elements.
-- @usa... | gpl-3.0 |
node-wot/node-wot | lua_examples/email/send_email_smtp.lua | 82 | 4640 | ---
-- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU
-- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access.
-- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access.
-- To o... | mit |
b03605079/darkstar | scripts/globals/items/margherita_pizza.lua | 35 | 1220 | -----------------------------------------
-- ID: 5695
-- Item: margherita_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Attack 10
-- Health Points 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
arychen/GlobalCall | feeds/luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/netlink.lua | 68 | 2502 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
local devices = luci.sys.net.devices()
m = Map("luci_statistics",
translate("Netlink Plugin Configuration"),
translate(
"The netlink plugin collects extended informa... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.