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 |
|---|---|---|---|---|---|
CCQIU/CC | tools/ccnet/httpd/htdocs/ext/class.lua | 2 | 3416 | --[[]
require "global"
1.
local myclass = class("myclass")
function myclass:ctor(arg1, arg2)
end
return myclass
2.
local myclass2 = class("myclass2", myclass)
function myclass2:ctor()
self.super.ctor(self, 1, 2)
end
return myclass2
]]--
local setmetatableindex_= function(t, index)
if ... | lgpl-3.0 |
emoon/docking_system | bin/win32/scripts/tundra/syntax/dotnet.lua | 28 | 3090 | module(..., package.seeall)
local util = require "tundra.util"
local nodegen = require "tundra.nodegen"
local depgraph = require "tundra.depgraph"
local _csbase_mt = nodegen.create_eval_subclass {
DeclToEnvMappings = {
References = "CSLIBS",
RefPaths = "CSLIBPATH",
},
}
local _csexe_mt = nodegen.cre... | bsd-3-clause |
vlapsley/outback | mods/mesecons/mesecons_pistons/init.lua | 1 | 13658 | local specs = {
normal = {
offname = "mesecons_pistons:piston_normal_off",
onname = "mesecons_pistons:piston_normal_on",
pusher = "mesecons_pistons:piston_pusher_normal",
},
sticky = {
offname = "mesecons_pistons:piston_sticky_off",
onname = "mesecons_pistons:piston_sticky_on",
pusher = "mesecons_pistons... | lgpl-2.1 |
lukego/snabbswitch | src/apps/tap/tap.lua | 6 | 4124 | module(..., package.seeall)
local S = require("syscall")
local link = require("core.link")
local packet = require("core.packet")
local ffi = require("ffi")
local C = ffi.C
local const = require("syscall.linux.constants")
local os = require("os")
local t = S.types.t
Tap = { }
function Tap:new (name)
assert(name, ... | apache-2.0 |
rpetit3/darkstar | scripts/zones/East_Sarutabaruta/mobs/Crawler.lua | 13 | 1083 | -----------------------------------
-- Area: East Sarutabaruta
-- MOB: Crawler
-- Note: PH for Spiny Spipi
-----------------------------------
require("scripts/globals/fieldsofvalor");
require("scripts/zones/East_Sarutabaruta/MobIDs");
-----------------------------------
-- onMobDeath
-------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Goblin_Replica.lua | 22 | 1186 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
--------... | gpl-3.0 |
horizonrz/bteam | lang/italian_lang.lua | 32 | 20741 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
feidens/SwarmRoboticsChaining | examples/otherStrategies/1/srproject orieantation towards key members.lua | 1 | 11951 | -- Put your global variables here
-- variable for chain task
part_of_chain = 0
stigma_chain = 0.5
p_bpoc = 0 -- prob. to become part of chain
stigma_chain_delta = 0.3
stigma_chain_alpha = 0.1
search_prev_chain_member = 5
tMax = 100
-- Variables for sync
alphaSync = 2
betaSync = 10
counterSyncBeat = 0
x_Velo = 30... | mit |
rpetit3/darkstar | scripts/zones/Windurst_Walls/npcs/Chomomo.lua | 13 | 1458 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Chomomo
-- Type: Standard NPC
-- @pos -1.262 -11 290.224 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
gocha/emu2midi-lua | nes2midi.lua | 1 | 4086 | require("emu2midi")
local base64 = require("base64") -- http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbase64 (visit LuaForWindows for Windows installation)
function NESSoundWriter()
local self = VGMSoundWriter()
-- functions in base class
self.base = ToFunctionTable(self);
-- channel type list
self.CHANNEL_TYPE ... | mit |
rpetit3/darkstar | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 13 | 1654 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone: 247
-- @pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
SnakeSVx/sbep | lua/weapons/gmod_tool/stools/gyropod_advanced.lua | 3 | 6253 | TOOL.Category = "SBEP"
TOOL.Tab = "Spacebuild"
TOOL.Name = "#Gyro-Pod"
TOOL.Command = nil
TOOL.ConfigName = ""
TOOL.ent = {}
TOOL.ClientConVar[ "model" ] = "models/spacebuild/nova/drone2.mdl"
if ( CLIENT ) then
language.Add( "Tool.gyropod_advanced.name", "DataSchmuck's Enhanced Gyro-Pod" )
language.Add( "Too... | apache-2.0 |
matinbot/telerobot | 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 |
wez2020/ss | 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 |
rpetit3/darkstar | scripts/globals/items/blindfish.lua | 18 | 1309 | -----------------------------------------
-- ID: 4313
-- Item: Blindfish
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---------... | gpl-3.0 |
omidtarh/testbot | plugins/invite.lua | 299 | 1025 | -- 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 |
rpetit3/darkstar | scripts/zones/Nashmau/npcs/Abihaal.lua | 15 | 1045 | -----------------------------------
-- Area: Nashmau
-- NPC: Abihaal
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-----------------------------------
-- onTrade Action
-----... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/North_Gustaberg_[S]/npcs/Roderich.lua | 13 | 1351 | -----------------------------------
-- Area: North Gustaberg (S) (I-6)
-- NPC: Gebhardt
-- Involved in Quests: The Fighting Fourth
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg_[S]/TextIDs"] = nil;
package.loaded["scripts/globals/quests"] = nil;
-----------------------------------
r... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Misareaux_Coast/npcs/qm1.lua | 13 | 1339 | -----------------------------------
-- Area: Misareaux_Coast
-- NPC: ??? (Spawn Gration)
-- @pos 113.563 -16.302 38.912 25
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Misareaux_Coast/TextIDs");
---------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Upper_Jeuno/npcs/Areebah.lua | 13 | 1296 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Areebah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Upper_Delkfutts_Tower/npcs/HomePoint#1.lua | 27 | 1293 | -----------------------------------
-- Area: Upper Delkfutt's Tower
-- NPC: HomePoint#1
-- @pos -365 -176.5 -36 158
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Upper_Delkfutts_Tower/TextIDs");
req... | gpl-3.0 |
TakingInitiative/wesnoth | data/ai/micro_ais/cas/ca_bottleneck_move.lua | 3 | 20804 | local H = wesnoth.require "lua/helper.lua"
local LS = wesnoth.require "lua/location_set.lua"
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local BC = wesnoth.require "ai/lua/battle_calcs.lua"
local MAISD = wesnoth.require "ai/micro_ais/micro_ai_self_data.lua"
local function bottleneck_is_my_territory(map, enemy_ma... | gpl-2.0 |
asmagill/hs._asm.undocumented.spaces | examples/transition.lua | 1 | 6571 | --[[
DO NOT USE THIS BEFORE READING THE README.md and RawAccess.md FILES.
If you just want an example of things that can be done with this module,
the `init.lua` file of this module is a better, safer file to examine first.
This example can easily make your display very weird and hard to view if
m... | mit |
emoon/docking_system | bin/macosx/tundra/scripts/tundra/boot.lua | 25 | 4138 | module(..., package.seeall)
-- Use "strict" when developing to flag accesses to nil global variables
-- This has very low perf impact (<0.1%), so always leave it on.
require "strict"
local os = require "os"
local platform = require "tundra.platform"
local util = require "tundra.util"
local depgraph = re... | bsd-3-clause |
schidler/ionic-luci | applications/luci-app-modbusgw/luasrc/model/cbi/modbusgw/addr.lua | 2 | 1229 | --
-- Copyright 2015 Bright Things UN Ltd.
--
-- Maintainer: Lars Boegild Thomsen <lth@bright-things.com>
--
local ds = require "luci.dispatcher"
m = Map("modbusgw", translate("Modbus Gateway - Address"),
translate("Edit the address on this page."))
contact = m:section(NamedSection, arg[1], "contact", translate("C... | apache-2.0 |
lukego/snabbswitch | src/core/packet.lua | 13 | 3204 | module(...,package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local counter = require("core.counter")
local freelist_add, freelist_remove, freelist_nfree = ... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Windurst_Walls/npcs/Jack_of_Diamonds.lua | 13 | 1230 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Jack of Diamonds
-- Adventurer's Assistant
-- Working 100%
-------------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
require("scripts/zones/Windurst_Walls/TextI... | gpl-3.0 |
luizfeliperj/nodemcu-firmware | lua_examples/luaOTA/_provision.lua | 4 | 3668 | --SAFETRIM
-- function _provision(self,socket,first_rec)
local self, socket, first_rec = ...
local crypto, file, json, node, table = crypto, file, sjson, node, table
local stripdebug, gc = node.stripdebug, collectgarbage
local buf = {}
gc(); gc()
local function getbuf() -- upval: buf, table
if #buf > 0 then r... | mit |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Mamerie.lua | 13 | 1392 | -----------------------------------
-- Area: Kazham
-- NPC: Mamerie
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/mobskills/Pinning_Shot.lua | 33 | 1044 | ---------------------------------------------
-- Pinning Shot
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
------------------------------------... | gpl-3.0 |
nokizorque/ucd | guieditor/client/menus/items/item_multiple_selection.lua | 2 | 2244 | --[[--------------------------------------------------
GUI Editor
client
item_multiple_selection.lua
define the right click menu items that can be applied to multiple selections
--]]--------------------------------------------------
function createItem_multipleMove()
return MenuItem_Text:create("Move"):set({onC... | mit |
vfedoroff/prosody-modules | mod_mamsub/mod_mamsub.lua | 16 | 1948 | -- MAM Subscriptions prototype
-- Copyright (C) 2015 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local mt = require"util.multitable";
local st = require"util.stanza";
local xmlns_mamsub = "http://prosody.im/protocol/mamsub";
module:add_feature(xmlns_mamsub);
local host_sessions = prosody.hosts[module.host].ses... | mit |
rpetit3/darkstar | scripts/zones/RuLude_Gardens/npcs/Macchi_Gazlitah.lua | 12 | 1947 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Macchi Gazlitah
-- Standard Mechant NPC
-- Sells base items, then sells better items based
-- on a gil amount of what has been already purchased
-- in a given timeframe.
-----------------------------------
require("scripts/globals/shop");
r... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Rolanberry_Fields/npcs/Legion_Tome.lua | 29 | 1134 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: Legion Tome
-- Legion NPC
-- @pos 238 24 469 110
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/global... | gpl-3.0 |
nokizorque/ucd | UCDhousing/_shit/old/c_make.lua | 1 | 2905 |
GUIEditor = {
window = {},
edit = {},
label = {},
button = {}
}
function sendToSv()
houseInfo = {}
houseInfo["interiorID"] = guiGetText(GUIEditor.edit[1])
houseInfo["x"] = guiGetText(GUIEditor.edit[2])
houseInfo["y"] = guiGetText(GUIEditor.edit[3])
houseInfo["z"] = guiGetText(GUIEditor.edit[4])
hou... | mit |
sevenbot/etehadseven | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Disserond_RK.lua | 13 | 1082 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Disserond, R.K.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[S]... | gpl-3.0 |
slaubenberger/learn2love | demo004/libraries/LoveFrames/third-party/middleclass.lua | 4 | 5299 | -- middleclass.lua - v2.0 (2011-09)
-- Copyright (c) 2011 Enrique García Cota
-- 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,... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/spells/poison_ii.lua | 26 | 1374 | -----------------------------------------
-- Spell: Poison
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Abyssea-Grauberg/npcs/qm15.lua | 17 | 1535 | -----------------------------------
-- Zone: Abyssea-Grauberg
-- NPC: ???
-- Spawns: Raja
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,... | gpl-3.0 |
brendonjustin/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 |
vlapsley/outback | mods/fire/init.lua | 1 | 8889 | -- Global namespace for functions
fire = {}
--
-- Items
--
-- Flame nodes
minetest.register_node("fire:basic_flame", {
drawtype = "firelike",
tiles = {
{
name = "fire_basic_flame_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 1
},
},
},... | lgpl-2.1 |
MinetestForFun/server-minetestforfun-creative | mods/xconnected/xconnected.lua | 1 | 11782 |
xconnected = {}
-- change the drops value if you want the player to get one of the other node types when digged (i.e. c0 or ln or lp)
local drops = "c4";
-- this table contains the new postfix and param2 for a newly placed node
-- depending on its neighbours
local xconnected_get_candidate = {};
-- no neighbours
xcon... | unlicense |
vlapsley/outback | mods/carts/functions.lua | 1 | 5384 | function carts:get_sign(z)
if z == 0 then
return 0
else
return z / math.abs(z)
end
end
function carts:manage_attachment(player, obj)
if not player then
return
end
local status = obj ~= nil
local player_name = player:get_player_name()
if player_api.player_attached[player_name] == status then
return
end... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Sacrarium/npcs/qm6.lua | 13 | 1803 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm6 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 62.668 -3.111 -127.310 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sacrarium/Tex... | gpl-3.0 |
jasonleaster/Programming_In_Lua | chapter_23_The_Debug_Library/traceback.lua | 1 | 1626 | --[[---------------------------------------------------
Programmer : EOF
File : traceback.lua
Date : 2015.06.29
E-mail : jasonleaster@gmail.com
Chapter 23 of << Programming in Lua >>
Demonstration for "Introsoective Facilities"
------------------------------------------------------]]
--[[
The main introspective... | gpl-2.0 |
tonkah/Browser | build-utils/gentokens.lua | 5 | 3316 | #!/usr/bin/env lua
-- build-utils/gentokens.lua - gen tokenize lib
--
-- Copyright © 2010 Mason Larobina <mason.larobina@gmail.com>
--
-- 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 ... | gpl-3.0 |
dwmw2/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/exec.lua | 68 | 2536 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("Exec Plugin Configuration"),
translate(
"The exec plugin starts external commands to read values " ..
"from or to notify external processes when cer... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Den_of_Rancor/npcs/Treasure_Coffer.lua | 13 | 3854 | -----------------------------------
-- Area: Den of Rancor
-- NPC: Treasure Coffer
-- @zone 160
-- @pos
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
lexa/awesome | lib/awful/widget/button.lua | 11 | 1770 | ---------------------------------------------------------------------------
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008-2009 Julien Danjou
-- @release @AWESOME_VERSION@
-- @classmod awful.widget.button
---------------------------------------------------------------------------
local setmetat... | gpl-2.0 |
tullamods/Dominos_Progress | reputationBar.lua | 1 | 2491 | local AddonName, Addon = ...
local Dominos = _G.Dominos
local ReputationBar = Dominos:CreateClass('Frame', Addon.ProgressBar)
local L = LibStub('AceLocale-3.0'):GetLocale('Dominos-Progress')
local FRIEND_FACTION_COLOR_INDEX = 5
local PARAGON_FACTION_COLOR_INDEX = #FACTION_BAR_COLORS
local MAX_REPUTATION_REACTION = _G.M... | mit |
rpetit3/darkstar | scripts/zones/Northern_San_dOria/npcs/Pala_Korin.lua | 13 | 1412 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Pala_Korin
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
req... | gpl-3.0 |
drinkthere/redis-3.0-annotated | 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-3-clause |
spacebuild/spacebuild | lua/caf/core/shared/caf_tools.lua | 4 | 10661 | --
-- Custom Addon Framework TOOLS HAPPY-FUN TIME-SAVER FUNCTIONS
--
if ( SERVER ) then
AddCSLuaFile( "vgui/caf_gui.lua" )
AddCSLuaFile( "vgui/caf_gui_button.lua" )
-- Global list of callbacks
CAF_CallbackFuncs = {}
--DO NOT register this function with the duplication, you MUST wrap this function in anot... | apache-2.0 |
slaubenberger/learn2love | demo004/libraries/LoveFrames/objects/internal/scrollable/scrollarea.lua | 6 | 5550 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- scrollarea class
local newobject = loveframes.NewObject("scrollarea", "loveframes_object_scrollarea", true)
--[[-------------... | gpl-2.0 |
feidens/SwarmRoboticsChaining | examples/otherStrategies/5 1 strategy/srproject.lua | 1 | 14434 | -- Put your global variables here
-- variable for chain task
part_of_chain = 0
stigma_chain = 0.5
p_bpoc = 0 -- prob. to become part of chain
stigma_chain_delta = 0.3
stigma_chain_alpha = 0.1
found_prey = 0
search_nest = 40
leaves_nest = 0
tMax = 100
rID = 0
lastSeenID = 0
-- Variables for sync
alphaSync = 2
betaSy... | mit |
rpetit3/darkstar | scripts/zones/Cloister_of_Gales/bcnms/sugar-coated_directive.lua | 30 | 1808 | ----------------------------------------
-- Area: Cloister of Gales
-- BCNM: Sugar Coated Directive (ASA-4)
----------------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
----------------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/qu... | gpl-3.0 |
telemanagerplus/SelfBot | bot/utils.lua | 1 | 24168 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5cu.lua | 13 | 2537 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5cu (Magical Gizmo) #6
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Kyun_Magopiteh.lua | 15 | 1054 | -----------------------------------
-- Area: Kazham
-- NPC: Kyun Magopiteh
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
tvandijck/premake-core | modules/vstudio/vs2010_vcxproj.lua | 3 | 66859 | --
-- vs2010_vcxproj.lua
-- Generate a Visual Studio 201x C/C++ project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vc2010 = {}
local vstudio = p.vstudio
local project = p.project
local config = p.config
local fileconfig = p.fileconfig
local tree = p.tree
local m = ... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Western_Altepa_Desert/npcs/qm2.lua | 13 | 1774 | -----------------------------------
-- Area: Western Altepa Desert
-- NPC: qm2 (???)
-- Involved in Mission: Bastok 6-1
-- @pos -325 0 -111 125
-----------------------------------
package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/effects/magic_shield.lua | 33 | 1698 | -----------------------------------
--
-- Magic Shield BLOCKS all magic attacks
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if (effect:getPower() == 3)... | gpl-3.0 |
vlapsley/outback | mods/pipeworks/trashcan.lua | 4 | 1657 | minetest.register_node("pipeworks:trashcan", {
description = "Trash Can",
drawtype = "normal",
tiles = {
"pipeworks_trashcan_bottom.png",
"pipeworks_trashcan_bottom.png",
"pipeworks_trashcan_side.png",
"pipeworks_trashcan_side.png",
"pipeworks_trashcan_side.png",
"pipeworks_trashcan_side.png",
},
gr... | lgpl-2.1 |
ddouglascarr/rooset | lffrontend/app/main/member/_action/update.lua | 1 | 1588 | local fields = {
"organizational_unit",
"internal_posts",
"realname",
"birthday",
"address",
"email",
"xmpp_address",
"website",
"phone",
"mobile_phone",
"profession",
"external_memberships",
"external_posts"
}
local update_args = { app.session.member }
for i, field in ipairs(fields) do
if... | mit |
ddouglascarr/rooset | lffrontend/app/main/area/show.lua | 1 | 2004 | local area = Area:by_id(param.get_id())
if not area then
execute.view { module = "index", view = "404" }
request.set_status("404 Not Found")
return
end
request.data.area_id = area.id
request.data.area_name = area.name
request.data.area_current_external_reference = area.current_external_reference
area:load_dele... | mit |
DDDBTG/DDBTG | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
root4r08/RoOt3r08 | plugins/all.lua | 184 | 4452 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Al_Zahbi/npcs/Krujaal.lua | 13 | 1039 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Krujaal
-- Type: Residence Renter
-- @zone: 48
-- @pos 36.522 -1 -63.198
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Southern_San_dOria/npcs/Taumila.lua | 24 | 2350 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Taumila
-- Starts and Finishes Quest: Tiger's Teeth (R)
-- @pos -140 -5 -8 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
vseledkin/april-ann | tools/HMM_ANN/segmentation/resegment.lua | 3 | 4221 | ----------------------------------------------------------------------
-- argumentos
file_name_frames = arg[1]
origin_directory = arg[2]
destiny_directory = arg[3]
origin_numstates = tonumber(arg[4])
dest_numstates = tonumber(arg[5])
espace_index = 53
------------------------------... | gpl-3.0 |
vseledkin/april-ann | packages/trainable/test/qlearning_test.lua | 3 | 6185 | -- MOUNTAIN CAR TEST (http://en.wikipedia.org/wiki/Mountain_Car)
local strategies = trainable.qlearning_trainer.strategies
local num_runs = 10
local num_of_episodes = 101
local max_episode_length = 1000
local epsilon = 0.5 -- probability of random action, epsilon greedy
local epsilon_decay = 0.9999
local learning_ra... | gpl-3.0 |
tvandijck/premake-core | binmodules/luasocket/test/testclnt.lua | 20 | 22799 | local socket = require"socket"
host = host or "localhost"
port = port or "8383"
function printf(...)
io.stderr:write(string.format(...))
end
function pass(...)
printf(...)
io.stderr:write("\n")
end
function fail(...)
io.stderr:write("ERROR: ")
printf(...)
io.stderr:write("!\n")
os.exit()... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua | 2 | 1936 | -----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
f... | gpl-3.0 |
peterbarker/ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 96 | 29666 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
nokizorque/ucd | UCDadmin/GUI/c_input_box.lua | 1 | 2116 | confirm = {
button = {},
window = {},
label = {},
edit = {}
}
confirm.window[1] = nil
function createInputBox(title, message, default, action, var1, var2)
if (confirm.window[1] == nil) then
confirm.window[1] = guiCreateWindow(792, 480, 324, 111, "", false)
guiWindowSetSizable(confirm.window[1], f... | mit |
beko99/DEVBEKO | libs/serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-2.0 |
gligneul/FastLua | luatests/pm.lua | 1 | 11932 | -- $Id: pm.lua,v 1.47 2016/04/22 16:37:09 roberto Exp $
print('testing pattern matching')
local function checkerror (msg, f, ...)
local s, err = pcall(f, ...)
assert(not s and string.find(err, msg))
end
function f(s, p)
local i,e = string.find(s, p)
if i then return string.sub(s, i, e) end
end
a,b = string... | mit |
AMIRUJK/yapop | plugins/inrealm.lua | 1 | 25923 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
emoon/docking_system | bin/win32/scripts/tundra/decl.lua | 28 | 2152 | module(..., package.seeall)
local nodegen = require "tundra.nodegen"
local functions = {}
local _decl_meta = {}
_decl_meta.__index = _decl_meta
local current = nil
local function new_parser()
local obj = {
Functions = {},
Results = {},
DefaultTargets = {},
AlwaysTargets = {},
}
local outer_en... | bsd-3-clause |
lukego/snabbswitch | src/lib/macaddress.lua | 8 | 1192 | --- MAC address handling object.
-- depends on LuaJIT's 64-bit capabilities,
-- both for numbers and bit.* library
local bit = require "bit"
local ffi = require "ffi"
local mac_t = ffi.typeof('union { int64_t bits; uint8_t bytes[6];}')
local mac_mt = {}
mac_mt.__index = mac_mt
function mac_mt:new (m)
if ffi.istype... | apache-2.0 |
schidler/ionic-luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/overview.lua | 33 | 9247 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NXFS = require "nixio.fs"
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local HTTP = require "luci.htt... | apache-2.0 |
dwmw2/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/overview.lua | 33 | 9247 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local NXFS = require "nixio.fs"
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local HTTP = require "luci.htt... | apache-2.0 |
redsled84/walljumper | quads.lua | 1 | 1044 | local tileW, tileH = 32, 32
local class = require 'middleclass'
local Quads = class('Quads')
function Quads:initialize(x, y, w, h)
self.x = x
self.y = y
self.w = w
self.h = h
end
function Quads:loadQuadInfo(image)
local quadInfo = {}
imageTileWidth = image:getWidth() / tileW
imageTileHeight = ... | mit |
ddouglascarr/rooset | lffrontend/app/main/issue/_head2.lua | 1 | 3243 | local issue = param.get("issue", "table")
local for_history = param.get("for_history", atom.boolean)
ui.sectionHead( "issueInfo", function ()
ui.container { attr = { class = "left" }, content = function()
ui.heading { level = 1, content = issue.name }
end }
if app.session.member then
ui.container { attr ... | mit |
rpetit3/darkstar | scripts/zones/Upper_Jeuno/npcs/Mairee.lua | 27 | 1734 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mairee
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- o... | gpl-3.0 |
vseledkin/april-ann | packages/ann/graph/test/test-lstm-parity-problem.lua | 3 | 8878 | local CHECK_GRADIENTS = true
local BACKSTEP = math.huge
local MAX_ERROR = 0.04
local EPSILON = 0.01
local MAX_SEQ_SIZE = 10
local SEQ_STEP = 1
local MAX_EPOCHS = 1000 -- max epochs for sequence size = 2,MAX_SEQ_SIZE
local WEIGHT_DECAY = 0.00001
local H = 2 -- number ... | gpl-3.0 |
tonkah/Browser | lib/cookie_blocking.lua | 7 | 1954 | ------------------------------------------------------
-- Simple domain-based cookie blocking --
-- © 2011 Mason Larobina <mason.larobina@gmail.com> --
------------------------------------------------------
require "cookies"
cookies.whitelist_path = luakit.config_dir .. "/cookie.whitelist"
cookies.blackl... | gpl-3.0 |
spacebuild/spacebuild | lua/caf/addons/server/resourcedistribution.lua | 2 | 46844 | local RD = {}
local nettable = {};
local ent_table = {};
local resourcenames = {}
local resources = {}
local status = false
local rd_cache = cache.create(1, true) --Store data for 1 second
--Local functions/variables
--Precache some sounds for snapping
for i=1,3 do
util.PrecacheSound( "physics/metal/metal_computer... | apache-2.0 |
vseledkin/april-ann | packages/ann/graph/lua_src/ann_graph.lua | 3 | 52678 | local mop = matrix.op
local null_token = tokens.null()
-- The ann.graph package allows to implement ANNs as if they were a graph of
-- components. The nodes of the graph are operations (ANN components), and the
-- edges are connections between output and input of the components. The graph
-- is described as a d... | gpl-3.0 |
lexa/awesome | lib/menubar/menu_gen.lua | 11 | 5103 | ---------------------------------------------------------------------------
--- Menu generation module for menubar
--
-- @author Antonio Terceiro
-- @copyright 2009, 2011-2012 Antonio Terceiro, Alexander Yakushev
-- @release @AWESOME_VERSION@
-- @module menubar.menu_gen
-------------------------------------------------... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Serukoko.lua | 13 | 1055 | -----------------------------------
-- 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 |
rpetit3/darkstar | scripts/zones/Mhaura/npcs/Explorer_Moogle.lua | 13 | 1862 | -----------------------------------
-- Area: Mhaura
-- NPC: Explorer Moogle
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/telepor... | gpl-3.0 |
luizluca/openwrt-packages | utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua | 16 | 3707 | local ubus = require "ubus"
local function scrape()
local dsl_line_attenuation = metric("dsl_line_attenuation_db", "gauge")
local dsl_signal_attenuation = metric("dsl_signal_attenuation_db", "gauge")
local dsl_snr = metric("dsl_signal_to_noise_margin_db", "gauge")
local dsl_aggregated_transmit_power = metric("... | gpl-2.0 |
msva/verse | plugins/adhoc.lua | 1 | 3363 | local verse = require "verse";
local adhoc = require "lib.adhoc";
local xmlns_commands = "http://jabber.org/protocol/commands";
local xmlns_data = "jabber:x:data";
local command_mt = {};
command_mt.__index = command_mt;
-- Table of commands we provide
local commands = {};
function verse.plugins.adhoc(stream)
strea... | mit |
slaubenberger/learn2love | demo004/libraries/LoveFrames/skins/Blue/skin.lua | 4 | 52498 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2013 Kenny Shields --
--]]------------------------------------------------
-- skin table
local skin = {}
-- skin info (you always need this in a skin)
skin.name = "Blue"
skin.author = "Nikolai Resokav"
s... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Light_Elemental.lua | 28 | 1715 | -----------------------------------
-- Area: Temenos E T
-- NPC: Light_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/weaponskills/seraph_blade.lua | 23 | 1356 | -----------------------------------
-- Seraph Blade
-- Sword weapon skill
-- Skill Level: 125
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Ignores shadows.
-- Aligned with the Soil Gorget.
-- Aligned with the Soil Belt.
-- Element: Light
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%... | gpl-3.0 |
vseledkin/april-ann | packages/basics/stats/test/test-gs-pca.lua | 3 | 4018 | local check = utest.check
local T = utest.test
--
local base_dir = string.get_path(arg[0])
--------------------------------------------------------------------------
local ok,m = pcall(matrix.fromTabFilename, "/tmp/sample.txt.gz")
if not ok then
ok=os.execute("curl --connect-timeout 60 -0 http://cafre.dsic.upv.es:... | gpl-3.0 |
disslove7777/Mj.Dl-Bot | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.