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 |
|---|---|---|---|---|---|
OctoEnigma/shiny-octo-system | lua/postprocess/sunbeams.lua | 1 | 2914 |
local matSunbeams = Material( "pp/sunbeams" )
matSunbeams:SetTexture( "$fbtexture", render.GetScreenEffectTexture() )
--[[---------------------------------------------------------
Register the convars that will control this effect
-----------------------------------------------------------]]
local pp_sunbeams = Crea... | mit |
ld-test/loop | lua/loop/compiler/Arguments.lua | 12 | 3369 | --------------------------------------------------------------------------------
---------------------- ## ##### ##### ###### -----------------------
---------------------- ## ## ## ## ## ## ## -----------------------
---------------------- ## ## ## ## ## ###### --------------------... | mit |
ShahriyarB/Warcraft-Lua-Engine-2 | luasocket-master/test/ltn12test.lua | 31 | 9500 | local ltn12 = require("ltn12")
dofile("testsupport.lua")
local function format(chunk)
if chunk then
if chunk == "" then return "''"
else return string.len(chunk) end
else return "nil" end
end
local function show(name, input, output)
local sin = format(input)
local sout = format(output... | gpl-2.0 |
lichtl/darkstar | scripts/zones/Ghelsba_Outpost/Zone.lua | 32 | 1572 | -----------------------------------
--
-- Zone: Ghelsba_Outpost (140)
--
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Ghelsba_Outpost/TextIDs");
-----------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Lufaise_Meadows/npcs/Jersey.lua | 13 | 1910 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: Jersey
-- Type: Outpost Vendor
-- @pos -548.706 -7.197 -53.897 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("script... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Hilkomu-Makimu.lua | 17 | 1907 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Hilkomu-Makimu
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/T... | gpl-3.0 |
i32ropie/telegram-bot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
masoudre11/caffebot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
AMIRUJK/yapop | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
Maxsteam/BBBBKKKK | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
dwmw2/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i1... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Water_Elemental.lua | 28 | 1791 | -----------------------------------
-- Area: Temenos E T
-- NPC: Water_Elemental
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
jgm/lunamark-standalone | src/cosmo/grammar.lua | 9 | 4696 |
local lpeg = require "lpeg"
local re = require "re"
module(..., package.seeall)
local function parse_selector(selector, env)
env = env or "env"
selector = string.sub(selector, 2, #selector)
local parts = {}
for w in string.gmatch(selector, "[^|]+") do
local n = tonumber(w)
if n then
table.inser... | mit |
tempbottle/upb | third_party/lunit/lunit.lua | 19 | 18689 | --[[--------------------------------------------------------------------------
This file is part of lunit 0.5.
For Details about lunit look at: http://www.mroth.net/lunit/
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004, 2006-2010 Michael Roth <mroth@nessie.de>
Permission is hereby gr... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/West_Sarutabaruta/mobs/Numbing_Norman.lua | 16 | 1211 | -----------------------------------
-- Area: West Sarutabaruta
-- MOB: Numbing Norman
-----------------------------------
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setMobMod(MOBMOD_ADD_EF... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fa.lua | 13 | 1076 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 260 -34 -49 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
------... | gpl-3.0 |
emoon/docking_system | bin/win32/scripts/tundra/syntax/install.lua | 28 | 1133 | -- install.lua - Express file copying in unit form.
module(..., package.seeall)
local nodegen = require "tundra.nodegen"
local files = require "tundra.syntax.files"
local path = require "tundra.path"
local util = require "tundra.util"
local depgraph = require "tundra.depgraph"
local _mt = nodegen.create_... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Metalworks/TextIDs.lua | 15 | 3817 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6434; -- You cannot obtain the item <item>. Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6438; -- You cannot obtain the item <item>. Try trading again after sorting your inventory.
ITEM_OBTAINED =... | gpl-3.0 |
opentechinstitute/luci-commotion-linux | modules/admin-core/luasrc/controller/admin/servicectl.lua | 76 | 1376 | --[[
LuCI - Lua Configuration Interface
Copyright 2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
mo... | apache-2.0 |
sys4-fr/server-minetestforfun | mods/nether/nether/guide.lua | 1 | 16025 | local cube = minetest.inventorycube
-- the content of the guide
local guide_infos = {
{
description = "Mushrooms",
{"text", "Nether mushrooms can be found on the nether's ground and\n"..
"on netherrack soil, it can be dug by hand."},
{"image", {1, 1, "riesenpilz_nether_shroom_side.png"}},
{"y", 0.2},
{"t... | unlicense |
ddouglascarr/rooset | lfframework/framework/env/parse/date.lua | 3 | 3256 | local function map_2digit_year(y2)
local current_year = atom.date:get_current().year
local guess2 = math.floor(current_year / 100) * 100 + tonumber(y2)
local guess1 = guess2 - 100
local guess3 = guess2 + 100
if guess1 >= current_year - 80 and guess1 <= current_year + 10 then
return guess1
elseif guess2 ... | mit |
sys4-fr/server-minetestforfun | mods/chesttools/init.lua | 8 | 17095 | -- 05.10.14 Fixed bug in protection/access
chesttools = {}
chesttools.chest_add = {};
chesttools.chest_add.tiles = {
"chesttools_blue_chest_top.png", "chesttools_blue_chest_top.png", "chesttools_blue_chest_side.png",
"chesttools_blue_chest_side.png", "chesttools_blue_chest_side.png", "chesttools_blue_chest_lock.... | unlicense |
rrthomas/luarocks | src/luarocks/build/builtin.lua | 10 | 10890 |
--- A builtin build system: back-end to provide a portable way of building C-based Lua modules.
--module("luarocks.build.builtin", package.seeall)
local builtin = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local path = require("luarocks.path")
local util = require("luarocks.util")
loc... | mit |
d4rkboy/.... | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
nokizorque/ucd | UCDadmin/GUI/c_panel.lua | 1 | 35622 | adminPanel = {tab = {}, label = {}, tabpanel = {}, edit = {}, gridlist = {}, window = {}, checkbox = {}, button = {}}
confirm = {button = {}, window = {}, label = {}, edit = {}}
giveWeapon_ = {edit = {}, button = {}, window = {}, label = {}, combobox = {}}
WPT = {gridlist = {}, window = {}, button = {}, label = {}}
pun... | mit |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/HomePoint#2.lua | 13 | 1254 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#2
-- @pos: -78 2 2 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepoint");
----... | gpl-3.0 |
sik3/selfbot | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/_misc/uncraft_woll.lua | 2 | 1706 | -- récupéré les "cotton" des "wool" faite (récupère 3 aulieu de 4 et perte du colorant)
minetest.register_craft({
output = "farming:cotton 9",
recipe = {
{"wool:black"},
},
})
minetest.register_craft({
output = "farming:cotton 9",
recipe = {
{"wool:white"},
},
})
minetest.register_craft({
output = "farming... | unlicense |
rpetit3/darkstar | scripts/commands/addallspells.lua | 23 | 4989 | ---------------------------------------------------------------------------------------------------
-- func: addallspells
-- desc: Adds all valid spells to the given target. If no target; then to the current player.
---------------------------------------------------------------------------------------------------
cmd... | gpl-3.0 |
Endika/Algorithm-Implementations | Bellman_Ford_Search/Lua/Yonaba/bellmanford.lua | 26 | 3025 | -- Bellman Ford single source shortest path search algorithm implementation
-- See : https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm
-- Notes : this is a generic implementation of Bellman Ford search algorithm.
-- It is devised to be used on waypoint graphs.
-- The BellmanFord class expects a handler to b... | mit |
rpetit3/darkstar | scripts/zones/Windurst_Woods/npcs/HomePoint#3.lua | 27 | 1265 | -----------------------------------
-- Area: Windurst Woods
-- NPC: HomePoint#3
-- @pos -92 -5 62 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Woods/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
chrizel/Yzis | tests/scripts/luaunit.lua | 2 | 10213 | --[[
luaunit.lua
Description: A unit testing framework
Initial author: Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
improvements by Philippe Fremy <phil@freehackers.org>
Version: 1.1
Changes between 1.1 and 1.0:
- internal variables are not global anymore
- you can choose between assertEquals( actual, expe... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/HomePoint#1.lua | 27 | 1280 | -----------------------------------
-- Area: Windurst_Waters_[S]
-- NPC: HomePoint#1
-- @pos -32 -5 131 94
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Windurst_Waters_[S]/TextIDs");
require("scripts... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/weaponskills/ground_strike.lua | 25 | 1639 | -----------------------------------
-- Ground Strike
-- Great Sword weapon skill
-- Skill level: 250 QUESTED
-- Delivers a single-hit attack. Damage varies with TP.
-- Modifiers: STR:50% INT:50%
-- 100%TP 200%TP 300%TP
-- 1.5 1.75 3.0
-----------------------------------
require("scripts/globals/statu... | gpl-3.0 |
Aminkavari/xXD4RKXxBot | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
lukego/snabbswitch | lib/ljsyscall/doc/constants.lua | 23 | 1075 | -- Documentation of constants
-- Currently taken from FreeBSD man pages, so need Linux/NetBSD/OSX specific ones added
local d = {}
d.O = {
RDONLY = "open for reading only",
WRONLY = "open for writing only",
RDWR = "open for reading and writing",
EXEC = "open for execute only",
N... | apache-2.0 |
MHK-BOT/copy | plugins/Quran.lua | 2 | 1874 | do
local function dl_read(chat_id, target)
local f = io.open("./quran/Sura"..target..".mp3","r")
if f ~= nil then
io.close(f)
return send_document("chat#id"..chat_id,"./quran/Sura"..target..".mp3", ok_cb, false)
else
return 'مقدار وارد شده موجود نیست'
end
end
local function view_sura(chat_id, target)
local ... | gpl-2.0 |
vlapsley/outback | mods/spawn/init.lua | 1 | 2758 | -- Disable by mapgen, setting or if 'static_spawnpoint' is set
--------------------------------------------------------------
local mg_name = minetest.get_mapgen_setting("mg_name")
if mg_name == "v6" or mg_name == "singlenode" or
minetest.settings:get("static_spawnpoint") or
minetest.settings:get_bool("engin... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Bhaflau_Thickets/npcs/Daswil.lua | 18 | 2118 | -----------------------------------
-- Area: Bhaflau Thickets
-- NPC: Daswil
-- Type: Assault
-- @pos -208.720 -12.889 -779.713 52
-----------------------------------
package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bhaflau_Thickets/TextIDs");
r... | gpl-3.0 |
vseledkin/april-ann | packages/clustering/kmeans/matrix/package.lua | 3 | 1302 | package{ name = "clustering.kmeans.matrix",
version = "1.0",
depends = { "util", "dataset", "matrix", "random", "mathcore" },
keywords = { "clustering", "K-means" },
description = "K-means clustering algorithm",
-- targets como en ant
target{
name = "init",
mkdir{ dir = "build" },
mkdi... | gpl-3.0 |
vlapsley/outback | mods/pipeworks/pipes.lua | 2 | 6804 | -- This file supplies the steel pipes
local REGISTER_COMPATIBILITY = true
local pipes_empty_nodenames = {}
local pipes_full_nodenames = {}
local new_flow_logic_register = pipeworks.flowables.register
local polys = ""
if pipeworks.enable_lowpoly then polys = "_lowpoly" end
local vti = {4, 3, 2, 1, 6, 5}
local cconn... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Amagusa-Chigurusa.lua | 13 | 1469 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Amagusa-Chigurusa
-- Type: Standard NPC
-- @pos -28.746 -4.5 61.954 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
req... | gpl-3.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/tests/scripting_test.lua | 27 | 2059 | -- this is a script which is primarily intended to test the scripting bindings and be used with autotest
-- however it may be useful to some as a demo of how the API's can be used, this example is much less
-- heavily commented, and may require quite a bit more RAM to run in
local loop_time = 500 -- number of ms betwe... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Thubu_Parohren.lua | 44 | 1821 | -----------------------------------
-- Area: Port Windurst
-- NPC: Thubu Parohren
-- Type: Fishing Guild Master
-- @pos -182.230 -3.835 61.373 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
req... | gpl-3.0 |
spacebuild/spacebuild | lua/entities/rd_node_valve/init.lua | 3 | 5933 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:Initialize()
--self.BaseClass.Initialize(self) --use this in all ents
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:SetNetworkedInt( "overlaymode", 1 )
s... | apache-2.0 |
opentechinstitute/luci-commotion-linux | libs/sgi-cgi/luasrc/sgi/cgi.lua | 87 | 2260 | --[[
LuCI - SGI-Module for CGI
Description:
Server Gateway Interface for CGI
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... | apache-2.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/sandspin.lua | 25 | 1814 | -----------------------------------------
-- Spell: Sandspin
-- Deals earth damage to enemies within range. Additional Effect: Accuracy Down
-- Spell cost: 10 MP
-- Monster Type: Amorphs
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 2
-- Stat Bonus: VIT+1
-- Level: 1
-- Casting Time: 1.5 seconds
-- Recast Time: ... | gpl-3.0 |
vseledkin/april-ann | TEST/digitos/test.lua | 3 | 4065 | -- un generador de valores aleatorios... y otros parametros
bunch_size = tonumber(arg[1]) or 64
semilla = 1234
weights_random = random(semilla)
description = "256 inputs 256 tanh 128 tanh 10 log_softmax"
inf = -1
sup = 1
shuffle_random = random(5678)
learning_rate = 0.08
momentum ... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Gusgen_Mines/npcs/qm3.lua | 13 | 1625 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: qm3 (???)
-- Involved In Quest: Healing the Land
-- @pos -168 1 311 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("sc... | gpl-3.0 |
kobrabyte/ardupilot | Tools/CHDK-Scripts/kap_uav.lua | 183 | 28512 | --[[
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
@title KAP UAV 3.1
@param i Shot Interval (sec)
@default i 15
@range i 2 120
@param s Total Shots (0=infinite)
@default s 0
@range ... | gpl-3.0 |
irontec/Ikasesteka | Ikasesteka/cocos2d/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
Arlefreak/goToWork | frameworks/js-bindings/cocos2d-x/plugin/luabindings/auto/api/AgentManager.lua | 146 | 1798 |
--------------------------------
-- @module AgentManager
-- @parent_module plugin
--------------------------------
--
-- @function [parent=#AgentManager] getSocialPlugin
-- @param self
-- @return plugin::ProtocolSocial#plugin::ProtocolSocial ret (return value: cc.plugin::ProtocolSocial)
-------------------... | mit |
omidtarh/testbot | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
lukego/snabbswitch | lib/ljsyscall/examples/init.lua | 23 | 1241 | #!/bin/luajit
-- basic init process
-- note we do not catch all errors as we cannot do much about them
-- note that stdin, stderr should be attached to /dev/console
package.path = "/lib/?.lua;?"
local S = require "syscall"
local nl = require "syscall.nl"
local function fatal(s)
print(s)
os.exit()
end
function... | apache-2.0 |
spacebuild/spacebuild | lua/vgui/dcaf_collapsablecategory.lua | 2 | 8808 | --[[ _
( )
_| | __ _ __ ___ ___ _ _
/'_` | /'__`\( '__)/' _ ` _ `\ /'_` )
( (_| |( ___/| | | ( ) ( ) |( (_| |
`\__,_)`\____)(_) (_) (_) (_)`\__,_)
DCategoryCollapse
]]
local PANEL = {}
--Derma_Hook( PANEL, "Paint", "Paint", "... | apache-2.0 |
MinetestForFun/server-minetestforfun-creative | mods/plantlife_modpack/dryplants/reed.lua | 1 | 12211 | -----------------------------------------------------------------------------------------------
-- Dry Plants - Reed 0.0.5
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Looked at code from: darkage, default, stairs
-... | unlicense |
legoktm/wesnoth | data/ai/micro_ais/cas/ca_recruit_random.lua | 26 | 4781 | local H = wesnoth.require "lua/helper.lua"
local AH = wesnoth.require("ai/lua/ai_helper.lua")
local LS = wesnoth.dofile "lua/location_set.lua"
local recruit_type
local ca_recruit_random = {}
function ca_recruit_random:evaluation(ai, cfg)
-- Random recruiting from all the units the side has
-- Check if leade... | gpl-2.0 |
lukego/snabbswitch | lib/ljsyscall/syscall/netbsd/c.lua | 24 | 2452 | -- This sets up the table of C functions for BSD
-- We need to override functions that are versioned as the old ones selected otherwise
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmet... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Waughroon_Shrine/bcnms/up_in_arms.lua | 30 | 1813 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: up in arms
-- BCNM60
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zone... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Waughroon_Shrine/bcnms/operation_desert_swarm.lua | 30 | 1815 | -----------------------------------
-- Area: Waughroon_Shrine
-- Name: Operation desert swarm
-----------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/zo... | gpl-3.0 |
vlapsley/outback | mods/technic/technic/machines/other/coal_alloy_furnace.lua | 2 | 5908 |
-- Fuel driven alloy furnace. This uses no EUs:
local S = technic.getter
minetest.register_craft({
output = 'technic:coal_alloy_furnace',
recipe = {
{'default:brick', 'default:brick', 'default:brick'},
{'default:brick', '', 'default:brick'},
{'default:brick', 'default:brick', 'default:brick'},
... | lgpl-2.1 |
madmaxoft/ConsoleWorldCommander | Info.lua | 1 | 3163 |
-- Info.lua
-- Declares the plugin metadata, commands, permissions etc.
g_PluginInfo =
{
Name = "ConsoleWorldCommander",
Date = "2015-05-28",
Description =
[[
This is a plugin for {%a http://cuberite.org}Cuberite{%/a} that allows admins to manipulate world using console commands.
]],
SourceLocation = "h... | unlicense |
legoktm/wesnoth | data/ai/micro_ais/cas/ca_forest_animals_new_rabbit.lua | 26 | 2710 | local H = wesnoth.require "lua/helper.lua"
local W = H.set_wml_action_metatable {}
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_forest_animals_new_rabbit = {}
function ca_forest_animals_new_rabbit:evaluation(ai, cfg)
-- Put new rabbits on map if there are fewer than cfg.rabbit_number
-- To end t... | gpl-2.0 |
zhwsh00/DirectFire-android | cocos2d-2.1beta3-x-2.1.0/samples/TestLua/Resources/luaScript/testResource.lua | 13 | 1689 | s_pPathGrossini = "Images/grossini.png"
s_pPathSister1 = "Images/grossinis_sister1.png"
s_pPathSister2 = "Images/grossinis_sister2.png"
s_pPathB1 = "Images/b1.png"
s_pPathB2 = "Images/b2.png"
s_pPathR1 = "Images/r1.png"
s_pPathR2 = "Images/r2.png"
s_pP... | mit |
nokizorque/ucd | guieditor/client/font.lua | 2 | 24873 | --[[--------------------------------------------------
GUI Editor
client
font.lua
creates the font picker gui
--]]--------------------------------------------------
fontHeights = {
["default-normal"] = 15,
["default-small"] = 15,
["default-bold-small"] = 15,
["clear-normal"] = 15,
["sa-header"] = 60,
["sa... | mit |
tinchoss/Python_Android | lua/luasocket/src/mime.lua | 118 | 2433 | -----------------------------------------------------------------------------
-- MIME support for the Lua language.
-- Author: Diego Nehab
-- Conforming to RFCs 2045-2049
-- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $
-----------------------------------------------------------------------------
------... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Gusgen_Mines/Zone.lua | 13 | 1881 | -----------------------------------
--
-- Zone: Gusgen_Mines (196)
--
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Gusgen_Mines/TextIDs");
... | gpl-3.0 |
dmccuskey/dmc-objects | examples/Corona-Physics-ManyCrates/dmc_corona/lib/dmc_lua/lua_bytearray.lua | 40 | 9054 | --====================================================================--
-- dmc_lua/bytearray.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014- 2015 David McCuskey
Permission is hereby grant... | mit |
rpetit3/darkstar | scripts/globals/items/block_of_stone_cheese.lua | 18 | 1219 | -----------------------------------------
-- ID: 4460
-- Item: Block of Stone Cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 5.5
-- Health Cap 40
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/bluemagic/magnetite_cloud.lua | 26 | 1913 | -----------------------------------------
-- Spell: Magnetite Cloud
-- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight
-- Spell cost: 86 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+2
-- Level: 46
-- ... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Selbina/npcs/Lucia.lua | 13 | 1174 | -----------------------------------
-- Area: Selbina
-- NPC: Lucia
-- @zone
-- @pos
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
-----------------------------------
-- onTrade Action
-----------... | gpl-3.0 |
dwmw2/luci | libs/luci-lib-nixio/axTLS/samples/lua/axssl.lua | 176 | 19286 | #!/usr/local/bin/lua
--
-- Copyright (c) 2007, Cameron Rich
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-... | apache-2.0 |
rm-code/sakuraba | lib/screenmanager/Screen.lua | 1 | 3281 | --===============================================================================--
-- --
-- Copyright (c) 2014 - 2015 Robert Machmer --
-- ... | mit |
dmccuskey/dmc-objects | tests/dmc_objects_spec.lua | 1 | 7579 | module(..., package.seeall)
--====================================================================--
-- Test: dmc_objects
--====================================================================--
-- Semantic Versioning Specification: http://semver.org/
local VERSION = "0.1.0"
--=================================... | mit |
nokizorque/ucd | UCDvehicles/vehicleCruise.lua | 1 | 1551 | local cruise = false
local timer = false
local speed = 0
function togCruise()
if (cruise) then
local veh = getPedOccupiedVehicle(localPlayer)
if (not veh or not isElement(veh)) then return false end
local v1,v2,v3 = getElementVelocity(veh)
local currspeed = (v1^2 + v2^2 + v3^2)^(0.5)
if (currspeed < speed) ... | mit |
sys4-fr/server-minetestforfun | mods/WorldEdit/worldedit/primitives.lua | 8 | 8692 | --- Functions for creating primitive shapes.
-- @module worldedit.primitives
local mh = worldedit.manip_helpers
--- Adds a sphere of `node_name` centered at `pos`.
-- @param pos Position to center sphere at.
-- @param radius Sphere radius.
-- @param node_name Name of node to make shere of.
-- @param hollow... | unlicense |
lukego/snabbswitch | lib/ljsyscall/syscall/linux/arm64/ffi.lua | 24 | 1373 | -- arm64 specific definitions
return {
ucontext = [[
typedef unsigned long greg_t;
typedef unsigned long gregset_t[34];
typedef struct {
long double vregs[32];
unsigned int fpsr;
unsigned int fpcr;
} fpregset_t;
typedef struct sigcontext
{
unsigned long fault_address;
unsigned long regs[31];
unsigned lon... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Port_Windurst/npcs/Lebondur.lua | 12 | 1507 | -----------------------------------
-- Area: Port Windurst
-- NPC: Lebondur
-- Regional Marchant NPC
-- Only sells when Windurst controls Vollbow.
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zone... | gpl-3.0 |
vlapsley/outback | mods/technic/technic_worldgen/oregen.lua | 1 | 1553 | -- Sulfur
local sulfur_buf = {}
local sulfur_noise= nil
minetest.register_on_generated(function(minp, maxp, seed)
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local a = VoxelArea:new{
MinEdge = {x = emin.x, y = emin.y, z = emin.z},
MaxEdge = {x = emax.x, y = emax.y, z = emax.z},
}
local data... | lgpl-2.1 |
tommo/gii | template/game/lib/mock/tools/TMXTool.lua | 2 | 4632 | local function trynumber(v)
return tonumber(v) or v
end
local function copyNode(s,x)
local attr=x.attributes
if attr then
for k,v in pairs(attr) do
s[k]=trynumber(v)
end
end
end
local function parseTileSet(node)
local set={}
copyNode(set,node)
local image=node.children['image'][1]
assert(image, 'not su... | mit |
schidler/ionic-luci | applications/luci-app-freifunk-policyrouting/luasrc/model/cbi/freifunk/policyrouting.lua | 68 | 1703 | -- Copyright 2011 Manuel Munz <freifunk at somakoma de>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
m = Map("freifunk-policyrouting", translate("Policy Routing"), translate("These pages can be used to setup policy routing for certain firewall zones. "..
"This... | apache-2.0 |
sys4-fr/server-minetestforfun | mods/mobs_monster/mese_monster.lua | 1 | 3185 |
local S = mobs.intllib
-- Mese Monster by Zeg9
mobs:register_mob("mobs_monster:mese_monster", {
type = "monster",
passive = false,
damage = 3,
attack_type = "shoot",
shoot_interval = 0.5,
arrow = "mobs_monster:mese_arrow",
shoot_offset = 2,
hp_min = 10,
hp_max = 25,
armor = 80,
collisionbox = {-0.5, -1.5... | unlicense |
atkinson137/lootmasterplus | Libs/AceDB-3.0/AceDB-3.0.lua | 18 | 24717 | --- **AceDB-3.0** manages the SavedVariables of your addon.
-- It offers profile management, smart defaults and namespaces for modules.\\
-- Data can be saved in different data-types, depending on its intended usage.
-- The most common data-type is the `profile` type, which allows the user to choose
-- the active profi... | mit |
dani-sj/mahan03 | plugins/anti_spam.lua | 102 | 3744 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
schidler/ionic-luci | modules/luci-mod-freifunk/luasrc/controller/freifunk/remote_update.lua | 68 | 1475 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.freifunk.remote_update", package.seeall)
function index()
if not nixio.fs.access("/usr/sbin/remote-update") then
return
end
entry({"admin", "system", "remote_update"}, call("act_re... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Lower_Jeuno/npcs/Sattal-Mansal.lua | 25 | 2630 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Sattal-Mansal
-- Starts and Finishes Quest: Mysteries of Beadeaux I & II
-- @zone 245
-- @pos 40 3 -53
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
andmatand/kitty-jump-around | system/player-physics.lua | 1 | 4254 | require('class.system')
PlayerPhysicsSystem = System:extend()
PlayerPhysicsSystem.MAX_VELOCITY_X = 1
PlayerPhysicsSystem.MAX_VELOCITY_Y = 4
PlayerPhysicsSystem.GRAVITY = .1
function PlayerPhysicsSystem:new()
PlayerPhysicsSystem.super.new(self)
self.requiredComponents = {
'position',
'size',
... | mit |
sepehr5000/NOD32-BOT | plugins/all.lua | 88 | 4791 | do
data = load_data(_config.moderation.data)
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... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/items/melon_pie_+1.lua | 19 | 1318 | -----------------------------------------
-- ID: 4523
-- Item: melon_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic 30
-- Intelligence 5
-- Magic Regen While Healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------... | gpl-3.0 |
SnakeSVx/sbep | lua/data/sbep/smallbridge_filename_changes.lua | 3 | 90700 | ------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------
OLD | NEW ... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Empyreal_Paradox/npcs/Transcendental.lua | 13 | 1676 | -----------------------------------
-- Area: Empyreal_Paradox
-- NPC: Transcendental
-----------------------------------
package.loaded["scripts/zones/Empyreal_Paradox/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Empyreal_Paradox/TextIDs");
require("... | gpl-3.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/examples/LED_matrix_text.lua | 27 | 7707 | --[[
Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate
the LED interface for WS2812 LEDs
--]]
--[[
for this demo we will use a single strip with 30 LEDs
--]]
local matrix_x = 7
local matrix_y = 7
-- matrix to convert from x y pos to location in the strip
local id = {}
-... | gpl-3.0 |
lthall/Leonard_ardupilot | libraries/AP_Scripting/examples/ahrs-source-gps-wheelencoders.lua | 19 | 7934 | -- This script helps vehicles move between GPS and Non-GPS environments using GPS and Wheel Encoders
--
-- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=primary, middle=secondary, high=tertiary)
-- setup RCx_OPTION = 300 (Scripting1). When this switch is pulled high, the source will be automatically... | gpl-3.0 |
esguk811/DarkRP | entities/weapons/pocket/shared.lua | 5 | 2552 | AddCSLuaFile()
if SERVER then
AddCSLuaFile("cl_menu.lua")
include("sv_init.lua")
end
if CLIENT then
include("cl_menu.lua")
end
SWEP.PrintName = "Pocket"
SWEP.Slot = 1
SWEP.SlotPos = 1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.Base = "weapon_cs_base2"
SWEP.Author = "DarkRP Developers"
SWEP.In... | mit |
padrinoo1/geek | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
omidtarh/testbot | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
yaser1382/BDReborn | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/slice_of_ziz_meat.lua | 18 | 1335 | -----------------------------------------
-- ID: 5581
-- Item: Slice of Ziz Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Bostaunieux_Oubliette/mobs/Dark_Aspic.lua | 14 | 1063 | -----------------------------------
-- Area: Bostaunieux Oubliette (167)
-- Mob: Dark_Aspic
-----------------------------------
require("scripts/zones/Bostaunieux_Oubliette/MobIDs");
require("scripts/globals/groundsofvalor");
-----------------------------------
-- onMobDeath
-----------------------------------
func... | gpl-3.0 |
vfedoroff/prosody-modules | mod_muc_log_http/muc_log_http/mod_muc_log_http.lua | 32 | 22311 | module:depends("http");
local prosody = prosody;
local hosts = prosody.hosts;
local my_host = module:get_host();
local strchar = string.char;
local strformat = string.format;
local split_jid = require "util.jid".split;
local config_get = require "core.configmanager".get;
local urldecode = require "net.http".urldecode;... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.