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 |
|---|---|---|---|---|---|
kumpuu/factorio-helicopters | stdlib/utils/vendor/inspect.lua | 1 | 11143 | --- human-readable representations of tables
-- @script inspect
local inspect = {
_VERSION = 'inspect.lua 3.1.0',
_URL = 'http://github.com/kikito/inspect.lua',
_DESCRIPTION = 'human-readable representations of tables',
_LICENSE = [[
MIT LICENSE
Copyright (c) 2013 Enrique García Cota
Perm... | mit |
OpenNMT/OpenNMT | onmt/modules/Bridge.lua | 8 | 2185 | --[[ Bridge between encoder and decoder. ]]
local Bridge, parent = torch.class('onmt.Bridge', 'onmt.Network')
local options = {
{
'-bridge', 'copy',
[[Define how to pass encoder states to the decoder. With `copy`, the encoder and decoder
must have the same number of layers.]],
{
enum = {'copy... | mit |
sharklinux/shark | deps/socket/ftp.lua | 144 | 9120 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $
-----------------------------------------------------------------------------
-------------------... | lgpl-2.1 |
stuta/Luajit-Tcp-Server | TestLinux.lua | 1 | 3639 | -- TestLinux.lua
print()
print(" -- TestLinux.lua start -- ")
print()
local arg = {...}
local ffi = require "ffi"
local C = ffi.C
local bit = require "bit"
--local pthread = ffi.load("/lib/i386-linux-gnu/libpthread-2.15.so")
ffi.cdef[[
typedef int64_t off_t;
typedef uint16_t mode_t;
typedef unsigned long int pth... | bsd-3-clause |
thedraked/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Komalata.lua | 17 | 1572 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Komalata
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
------------------------... | gpl-3.0 |
thomasekdahlN/jeti | ecu/lib/window2.lua | 1 | 3643 | -- #############################################################################
-- # Jeti helper library - supporting internal generic alarm format
-- #
-- # Copyright (c) 2017, Original idea by Thomas Ekdahl (thomas@ekdahl.no)
-- #
-- # License: Share alike
-- # Can be used and... | mit |
rohitguptacs/ReVal | relatedness/trainingscript.lua | 1 | 5086 | --[[/**************************************************************************
ReVal - A Simple and Effective Machine Translation Evaluation Metric Based on Recurrent Neural Networks.
Copyright (C) 2014 Rohit Gupta, University of Wolverhampton
This file is part of ReVal and is a modified version of the code distr... | gpl-2.0 |
Xkeeper0/emu-lua | legacy/nes/faria.lua | 1 | 3364 |
require "x_functions";
if not x_requires then
-- Sanity check. If they require a newer version, let them know.
timer = 1;
while (true) do
timer = timer + 1;
for i = 0, 32 do
gui.drawbox( 6, 28 + i, 250, 92 - i, "#000000");
end;
gui.text( 10, 32, string.format("This Lua script requires the x_functions li... | mit |
thedraked/darkstar | scripts/zones/Northern_San_dOria/npcs/Chasalvige.lua | 14 | 1743 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Chasalvige
-- Type: Standard Info NPC
-- Involved in Mission: The Road Forks
-- Involved in Mission: Promathia Mission 5 - Three Paths
-- @zone 231
-- @pos 96.432 -0.520 134.046
--
-----------------------------------
require("scripts/globals... | gpl-3.0 |
TitanTeamGit/SelfBot | bot/bot.lua | 2 | 7203 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
require("./bot/permissions")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:... | gpl-2.0 |
muhkuh-sys/org.muhkuh.lua-lua51-romloader | plugins/romloader/_test/test_romloader.lua | 1 | 24180 | -----------------------------------------------------------------------------
-- Copyright (C) 2012 by Christoph Thelen --
-- doc_bacardi@users.sourceforge.net --
-- --
-- Thi... | gpl-2.0 |
jefferai/vlcfix | share/lua/intf/cli.lua | 35 | 31833 | --[==========================================================================[
cli.lua: CLI module for VLC
--[==========================================================================[
Copyright (C) 2007-2011 the VideoLAN team
$Id$
Authors: Antoine Cellerier <dionoea at videolan dot org>
Pierre Ynard
... | gpl-2.0 |
gmorishere/lolsh | plugins/spammer.lua | 2 | 71371 | do
function run(msg, matches)
return " Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (shieldteam) Nxt hamatuno migad (s... | gpl-2.0 |
thedraked/darkstar | scripts/globals/mobskills/Sand_Blast.lua | 24 | 1154 | ---------------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/derfland_pear.lua | 18 | 1191 | -----------------------------------------
-- ID: 4352
-- Item: derfland_pear
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/himesama_rice_ball.lua | 51 | 1477 | -----------------------------------------
-- ID: 5928
-- Item: Himesama Rice Ball
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- HP +25
-- Dexterity +4
-- Vitality +4
-- Character +4
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Attack +60
-- De... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/unit_dgun_aim.lua | 17 | 1026 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "D-Gun Aim Fix",
desc = 'Makes d-guns aim at units instead of the ground',
author = "Kin... | gpl-2.0 |
thedraked/darkstar | scripts/globals/abilities/wind_maneuver.lua | 19 | 1605 | -----------------------------------
-- Ability: Wind Maneuver
-- Enhances the effect of wind attachments. Must have animator equipped.
-- Obtained: Puppetmaster level 1
-- Recast Time: 10 seconds (shared with all maneuvers)
-- Duration: 1 minute
-----------------------------------
require("scripts/globals/status");
re... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Widgets/cmd_newton_firezone.lua | 2 | 31128 | local versionNum = '0.308'
function widget:GetInfo()
return {
name = "Newton Firezone",
desc = "v".. (versionNum) .."Adds the Firezone command for Newtons. Allies in an area are targeted.",
author = "wolas, xponen, Google Frog", --xponen (add crash location estimator)
date = "2013",
license = "GNU GPL... | gpl-2.0 |
jhjin/nn | FlattenTable.lua | 21 | 3205 | local FlattenTable, parent = torch.class('nn.FlattenTable', 'nn.Module')
function FlattenTable:__init()
parent.__init(self)
self.output = {}
self.input_map = {}
self.gradInput = {}
end
-- Recursive function to flatten a table (output is a table)
local function flatten(output, input)
local input_map -- has... | bsd-3-clause |
thedraked/darkstar | scripts/zones/Horlais_Peak/bcnms/under_observation.lua | 30 | 1739 | -----------------------------------
-- Area: Horlias peak
-- Name: under_observation
-- BCNM40
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Horlais_Peak/TextIDs");
-----------------------------------
-- EXAMP... | gpl-3.0 |
SnabbCo/snabbswitch | src/lib/protocol/gre.lua | 9 | 5188 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local ffi = require("ffi")
local C = ffi.C
local header = require("lib.protocol.header")
local lib = require("core.lib")
local bitfield = lib.bitfield
local ipsum = require("lib.checksum").ipsum
local ntohs, hton... | apache-2.0 |
thedraked/darkstar | scripts/globals/spells/advancing_march.lua | 27 | 1451 | -----------------------------------------
-- Spell: Advancing March
-- Gives party members Haste
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,s... | gpl-3.0 |
BlueHammer/focr | game/dota_addons/focr/scripts/vscripts/libraries/modifiers/modifier_animation_translate_permanent.lua | 26 | 10553 | modifier_animation_translate_permanent = class({})
local _CODE_TO_ANIMATION_TRANSLATE = {
[0]= "loadout",
[1]= "split_shot",
[2]= "chemical_rage",
[3]= "agedspirit",
[4]= "aggressive",
[5]= "injured",
[6]= "ancient_armor",
[7]= "anvil",
[8]= "arcana",
[9]= "techies_arcana",
[10]= "fast",
[11]= ... | mit |
thedraked/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Cermet_Door.lua | 27 | 1148 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Leads to Upper Delkfutt's Tower.
-- @pos 524 16 20 184
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
mtroyka/Zero-K | effects/krow.lua | 25 | 2897 | return {
["krowdust"] = {
clouds0 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 0,
ground = true,
underwater = 0,
water = false,
properties = {
airdrag = 0.96,
... | gpl-2.0 |
pengsun/lstm-char-cnn | util/TensorProd.lua | 9 | 3807 | --[[
Torch module for tensor product
vec1 = first input vector (size n)
vec2 = second input vector (size m)
T = 3D tensor (size o x n x m where o is the output size)
output = vec1 x T x vec2 (size o)
--]]
local TensorProd, parent = torch.class('nn.TensorProd', 'nn.Module')
function TensorProd:__init(vec1_size, vec2_s... | mit |
thedraked/darkstar | scripts/globals/items/chunk_of_orobon_meat.lua | 18 | 1586 | -----------------------------------------
-- ID: 5563
-- Item: Chunk of Orobon Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- HP 10
-- MP -10
-- Strength +6
-- Intelligence -8
-- Demon Killer 10
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Escha_ZiTah/Zone.lua | 34 | 1440 | -----------------------------------
--
-- Zone: Escha - Zi'Tah (288)
--
-----------------------------------
package.loaded["scripts/zones/Escha_ZiTah/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Escha_ZiTah/TextIDs");
require("scripts/globals/settings");
require("scripts/globals/zone");
... | gpl-3.0 |
duane-r/cityscape | buildings.lua | 1 | 11297 | local node = cityscape.node
local breaker = cityscape.breaker
local pcount = 0
local function pstore(param, x, y, z, p)
pcount = pcount + 1
if param[pcount] then
param[pcount][1] = x
param[pcount][2] = y
param[pcount][3] = z
param[pcount][4] = p
else
param[pcount] = {x, y, z, p}
end
end
local function... | cc0-1.0 |
NPLPackages/main | script/ide/Animation/Motion/KeyFrames/AnimationUsingKeyFrames.lua | 1 | 8613 | --[[
Title: AnimationUsingKeyFrames
Author(s): Leio Zhang
Date: 2008/7/21
Desc:
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/Animation/Motion/KeyFrames/AnimationUsingKeyFrames.lua");
------------------------------------------------------------
--]]
NPL.load("(gl)s... | gpl-2.0 |
thedraked/darkstar | scripts/globals/items/bowl_of_eyeball_soup.lua | 18 | 1388 | -----------------------------------------
-- ID: 4453
-- Item: Bowl of Eyeball Soup
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Charisma -10
-- Health Regen While Healing 4
-- Accuracy 12
-- Ranged ACC 12
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/cmd_factory_stop_production.lua | 5 | 2836 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Factory Stop Production",
desc = "Adds a command to clear the factory queue",
author = "Google... | gpl-2.0 |
cjp39/naev | dat/news/news_empire.lua | 1 | 1716 | --[[
Random Generic News
--]]
function news_greetEmpire ()
local greet, greettable
-- Set the greeting
greet = "Welcome to the Empire News Centre."
-- Add a little phrase
greettable = {
"Fresh news from around the Empire.",
"Remembering the Incident.",
"Keeping you informed."
... | gpl-3.0 |
mtroyka/Zero-K | scripts/funnelweb.lua | 9 | 4045 | include "constants.lua"
include "spider_walking.lua"
local ALLY_ACCESS = {allied = true}
local notum = piece 'notum'
local gaster = piece 'gaster'
local gunL, gunR, flareL, flareR, aimpoint = piece('gunl', 'gunr', 'flarel', 'flarer', 'aimpoint')
local shieldArm, shield, eye, eyeflare = piece('shield_arm', 'shield', ... | gpl-2.0 |
latenitefilms/hammerspoon | extensions/canvas/canvas_matrix.lua | 4 | 2375 | --- === hs.canvas.matrix ===
---
--- A sub module to `hs.canvas` which provides support for basic matrix manipulations which can be used as the values for `transformation` attributes in the `hs.canvas` module.
---
--- For mathematical reasons that are beyond the scope of this document, a 3x3 matrix can be used to repre... | mit |
thedraked/darkstar | scripts/zones/Valkurm_Dunes/mobs/Damselfly.lua | 14 | 1115 | -----------------------------------
-- Area: Valkurm Dunes
-- MOB: Damselfly
-- Note: Place holder Valkurm Emperor
-----------------------------------
require("scripts/zones/Valkurm_Dunes/MobIDs");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobDeath
---------------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm17.lua | 14 | 1904 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns Glavoid
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
function... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Al_Zahbi/npcs/Allard.lua | 17 | 1180 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Allard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onTrade Action
--... | gpl-3.0 |
SnabbCo/snabbswitch | lib/luajit/testsuite/bench/pidigits-nogmp.lua | 6 | 3336 |
-- Start of dynamically compiled chunk.
local chunk = [=[
-- Factory function for multi-precision number (mpn) operations.
local function fmm(fa, fb)
return loadstring([[
return function(y, a, ka, b, kb)
local carry, n = 0, #a ]]..(fb == 0 and "" or [[
local na, nb = n, #b -- Need to adjust lengths.... | apache-2.0 |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/vstruct/test.lua | 4 | 1562 | -- top-level test module for vstruct
-- run with 'lua test.lua' or, if vstruct is installed, with
-- 'lua -lvstruct.test -e ""'
-- Runs a "sensible default" set of tests against the vstruct module. Exits
-- cleanly if all of them passed; if any failed, reports the failed tests
-- on stdout and then raises an error.
l... | mit |
xinmingyao/skynet | lualib/snax/hotfix.lua | 21 | 2186 | local si = require "snax.interface"
local io = io
local hotfix = {}
local function envid(f)
local i = 1
while true do
local name, value = debug.getupvalue(f, i)
if name == nil then
return
end
if name == "_ENV" then
return debug.upvalueid(f, i)
end
i = i + 1
end
end
local function collect_uv(f , ... | mit |
thedraked/darkstar | scripts/zones/Dynamis-Beaucedine/mobs/Goblin_Statue.lua | 22 | 1841 | -----------------------------------
-- Area: Dynamis Beaucedine
-- MOB: Goblin Statue
-- Map Position: http://images1.wikia.nocookie.net/__cb20090312005233/ffxi/images/thumb/b/b6/Bea.jpg/375px-Bea.jpg
-----------------------------------
package.loaded["scripts/zones/Dynamis-Beaucedine/TextIDs"] = nil;
----------------... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/moon_carrot.lua | 18 | 1173 | -----------------------------------------
-- ID: 4567
-- Item: moon_carrot
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Resauchamet.lua | 17 | 1028 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Resauchamet
-- Standard Info NPC
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
-----------------------------------
-- onTrig... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/dragon_steak.lua | 18 | 1866 | -----------------------------------------
-- ID: 4350
-- Item: dragon_steak
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 25
-- Strength 7
-- Intelligence -3
-- Health Regen While Healing 2
-- Attack % 20
-- Attack Cap 150
-- Ranged ATT % 20
-- Ranged ATT Cap 150
-- Demon Killer ... | gpl-3.0 |
latenitefilms/hammerspoon | extensions/spotify/spotify.lua | 6 | 7890 | --- === hs.spotify ===
---
--- Controls for Spotify music player
local spotify = {}
local alert = require "hs.alert"
local as = require "hs.applescript"
local app = require "hs.application"
--- hs.spotify.state_paused
--- Constant
--- Returned by `hs.spotify.getPlaybackState()` to indicates Spotify is paused
spotify... | mit |
mtroyka/Zero-K | LuaUI/Widgets/gui_chili_economy_panel2.lua | 1 | 40215 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Chili Economy Panel Default",
desc = "",
author = "jK, Shadowfury333, GoogleFrog",
... | gpl-2.0 |
Devul/DarkRP | entities/weapons/stick_base/shared.lua | 8 | 4475 | AddCSLuaFile()
if CLIENT then
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
end
DEFINE_BASECLASS("weapon_cs_base2")
SWEP.Author = "DarkRP Developers"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.IconLetter = ""
SWEP.ViewModelFOV = 62
SWEP.ViewModelFlip = false
SWEP.AnimPrefix = "stunstick"
SWEP.AdminOnly = ... | mit |
NPLPackages/main | script/test/TestMeshLOD.lua | 1 | 7682 | --[[
Author: Li,Xizhi
Date: 2007-12-21
Desc: testing XML parser.
-----------------------------------------------
NPL.load("(gl)script/test/TestMeshLOD.lua");
TestBMaxModel_ExportSTL("test/default.bmax");
TestBMaxModel_ExportSTL("test/default.bmax",true);
TestBMaxModel("test_bmax_template.bmax");
TestMeshFBX();
TestMesh... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Port_Windurst/npcs/Kuroido-Moido.lua | 28 | 4137 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kuriodo-Moido
-- Involved In Quest: Making Amends, Wonder Wands
-- Starts and Finishes: Making Amens!
-- Working 100%
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
SnabbCo/snabbswitch | src/program/loadtest/promise.lua | 9 | 1774 | module(..., package.seeall)
Promise = {}
Promise.__index = Promise
local function is_promise(val)
return type(val) == 'table' and val.and_then
end
local function curry(f, ...)
local curried_args = { ... }
if #curried_args == 0 then return f end
return function(...)
local args = { ... }
-- Pre... | apache-2.0 |
gmorishere/lolsh | 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 |
thedraked/darkstar | scripts/zones/Ifrits_Cauldron/npcs/HomePoint#1.lua | 27 | 1269 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: HomePoint#1
-- @pos -63 50 81 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Ifrits_Cauldron/TextIDs");
require("scripts/globals/ho... | gpl-3.0 |
jhasse/wxFormBuilder | build/premake/4.3/src/actions/make/make_csharp.lua | 7 | 8344 | --
-- make_csharp.lua
-- Generate a C# project makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
--
-- Given a .resx resource file, builds the path to corresponding .resource
-- file, matching the behavior and naming of Visual Studio.
--
local function getresourcefilename(cfg, fname)
... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e6.lua | 22 | 1709 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Dem
-- @pos -243.723 -41.482 -289.937 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfe... | gpl-3.0 |
master041/tele-master-asli | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
xinmingyao/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
yunGit/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
thedraked/darkstar | scripts/globals/events/harvest_festivals.lua | 3 | 11444 | ---------------------------------------------------------
---------------------------------------------------------
------------ Harvest Festivals --------------------
---------------------------------------------------------
---------------------------------------------------------
require("scripts/globals/stat... | gpl-3.0 |
cjp39/naev | dat/events/tutorial/tutorial-basic.lua | 1 | 6931 | -- This is the first tutorial: basic operation.
include("scripts/proximity.lua")
include("dat/events/tutorial/tutorial-common.lua")
-- localization stuff, translators would work here
lang = naev.lang()
if lang == "es" then
else -- default english
title1 = "Tutorial: Basic Operation"
message1 = [[Welcome to th... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/chocolate_rarab_tail.lua | 18 | 1193 | -----------------------------------------
-- ID: 5921
-- Item: Chocolate Rarab Tail
-- Food Effect: 3 Min, All Races
-----------------------------------------
-- Dexterity 1
-- Speed 12.5%
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
ctfuckme/ctr | plugins/id.lua | 13 | 2706 | local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name..' '
end
if user.lastname then
text = text..user.last_name
end
return text
end
local function returnids(cb_extra, success, result)
local re... | gpl-2.0 |
mtroyka/Zero-K | scripts/armcrabe.lua | 4 | 10164 | include 'constants.lua'
include 'reliableStartMoving.lua'
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local ground = piece 'ground'
local turret = piece 'turret'
... | gpl-2.0 |
thedraked/darkstar | scripts/globals/weaponskills/avalanche_axe.lua | 25 | 1381 | -----------------------------------
-- Avalanche Axe
-- Axe weapon skill
-- Skill level: 100
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- ... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Halvung/npcs/qm3.lua | 30 | 1312 | -----------------------------------
-- Area: Halvung
-- NPC: ??? (Spawn Reacton(ZNM T2))
-- @pos 18 -9 213 62
-----------------------------------
package.loaded["scripts/zones/Halvung/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Halvung/TextIDs");
require("scripts/globals/status");
----... | gpl-3.0 |
mtroyka/Zero-K | LuaUI/Fonts/FreeSansBold_16.lua | 26 | 33900 | -- $Id: FreeSansBold_16.lua 3171 2008-11-06 09:06:29Z det $
local fontSpecs = {
srcFile = [[FreeSansBold.ttf]],
family = [[FreeSans]],
style = [[Bold]],
yStep = 17,
height = 16,
xTexSize = 512,
yTexSize = 256,
outlineRadius = 2,
outlineWeight = 100,
}
local glyphs = {}
glyphs[32] = { --'... | gpl-2.0 |
jakesnell/matchet | matchet/autogradengine.lua | 1 | 3065 | local matchet = require 'matchet.env'
local tnt = require 'torchnet'
local AutogradEngine, Engine = torch.class('AutogradEngine', 'tnt.Engine', tnt)
function AutogradEngine:__init()
Engine.__init(self, {
"onStart", "onStartEpoch",
"onSample", "onForward", "onBackward",
"onEndEpoch", "onUpdate", ... | mit |
thedraked/darkstar | scripts/zones/Xarcabard/npcs/Kaya_IM.lua | 14 | 3316 | -----------------------------------
-- Area: Xarcabard
-- NPC: Kaya, I.M.
-- Type: Outpost Conquest Guards
-- @pos 207.548 -24.795 -203.694 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require(... | gpl-3.0 |
dmccuskey/lua-error | spec/lua_error_spec.lua | 1 | 4303 | --====================================================================--
-- lua_error_spec.lua
--
-- Unit Testing for lua_error using Busted
--====================================================================--
package.path = './dmc_lua/?.lua;' .. package.path
--=================================================... | mit |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/luarocks/fetch/hg.lua | 2 | 1842 |
--- Fetch back-end for retrieving sources from HG.
module("luarocks.fetch.hg", package.seeall)
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
--- Download sources for building a rock, using hg.
-- @param rockspec table: The rockspec table
-- @param extract... | mit |
mason-larobina/luakit | lib/lousy/uri.lua | 2 | 6394 | --- lousy.uri library.
--
-- URI parsing functions
--
-- @module lousy.uri
-- @copyright 2011 Mason Larobina <mason.larobina@gmail.com>
local lfs = require "lfs"
-- Get luakit environment
local util = require "lousy.util"
local uri_encode = luakit.uri_encode
local uri_decode = luakit.uri_decode
local _M = {}
local ... | gpl-3.0 |
supasate/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... | bsd-3-clause |
jefferai/vlcfix | share/lua/meta/fetcher/tvrage.lua | 48 | 2571 | --[[
Gets metas for tv episode using tvrage.
$Id$
Copyright © 2010 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 of the License, or
(at your option) any l... | gpl-2.0 |
cjp39/naev | ai/pirate.lua | 1 | 2557 | include("ai/tpl/generic.lua")
include("ai/personality/patrol.lua")
--[[
Pirate AI
--]]
-- Settings
mem.aggressive = true
mem.safe_distance = 500
mem.armour_run = 80
mem.armour_return = 100
mem.atk_board = true
mem.atk_kill = false
function create ()
-- Some pirates do kill
if rnd.rn... | gpl-3.0 |
SFML/SFML-glLoadGen | modules/LoadLuaSpec.lua | 3 | 5530 | --[[
The function, LoadLuaSpec exposed here will load a spec.lua file. It takes a filename
pointing to a spec.lua file.
This function will also add some features to the object before returning it.
The format will be as defined in LuaFormat.md, with the following addendums:
- enumtable: A table of enumerators, indexe... | mit |
NPLPackages/main | script/ide/System/Core/Core.lua | 1 | 1082 | --[[
Title: Core
Author(s): LiXizhi,
Date: 2015/7/19
Desc: include core files (only some)
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/System/Core/Core.lua");
------------------------------------------------------------
]]
NPL.load("(gl)script/ide/ParaEngineExtensi... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h1.lua | 14 | 2389 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Prince Regent's Rm
-- Starts and Finishes Quest: Prelude of Black and White (Start), Pieuje's Decision (Start)
-- @pos -37 -3 31 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------... | gpl-3.0 |
nicholas-leonard/dp | test/test.lua | 4 | 45446 | local mytester
local dptest = {}
function dptest.uniqueID()
local uid1 = dp.uniqueID()
mytester:asserteq(type(uid1), 'string', 'type(uid1) == string')
local uid2 = dp.uniqueID()
local uid3 = dp.uniqueID('mynamespace')
mytester:assertne(uid1, uid2, 'uid1 ~= uid2')
mytester:assertne(uid2, uid3, 'uid2 ... | bsd-3-clause |
dmolina/my-config | awesome/.config/awesome/themes/steamburn/theme.lua | 7 | 2312 |
--[[
Steamburn Awesome WM config 3.0
github.com/copycat-killer
--]]
theme = {}
themes_dir = os.getenv("HOME") .. "/.config/awesome/themes/steamburn"
theme.wallpaper ... | gpl-3.0 |
garlick/flux-core | src/shell/lua.d/intel_mpi.lua | 7 | 1063 | -------------------------------------------------------------
-- Copyright 2020 Lawrence Livermore National Security, LLC
-- (c.f. AUTHORS, NOTICE.LLNS, COPYING)
--
-- This file is part of the Flux resource manager framework.
-- For details, see https://github.com/flux-framework.
--
-- SPDX-License-Identifier: LGPL-3.0... | lgpl-3.0 |
mtroyka/Zero-K | LuaRules/Utilities/tablefunctions.lua | 2 | 3407 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
--deep not safe with circular tables! defaults To false
function Spring.Utilities.CopyTable(tableToCopy, deep)
local copy = {}
for key, value in... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Valley_of_Sorrows/npcs/Field_Manual.lua | 29 | 1049 | -----------------------------------
-- Area: Valley of Sorrows
-- Field Manual
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onTrigger Action
--------------------------------... | gpl-3.0 |
buddycloud/starfleet-command | .cfg/prosody.cfg.lua | 1 | 1999 | modules_enabled = {
"roster"; "saslauth"; "tls"; "dialback"; "disco"; "time"; "ping"; "posix";
"register"; "bosh"; "watchregistrations"; "compression"; "legacyauth";
};
daemonize = true
storage = "sql"
sql = { driver = "PostgreSQL"; database = "sfc_prosody"; host = "localhost" ;
username = "sfc";... | apache-2.0 |
thedraked/darkstar | scripts/globals/mobskills/Wire_Cutter.lua | 35 | 1160 | ---------------------------------------------------
-- Wire_Cutter
-- Single-target damage (~500-1500), absorbed by 2 Utsusemi shadows.
--
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------------... | gpl-3.0 |
horizonrz/DBTeam | plugins/plugins.lua | 35 | 5971 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
SnabbCo/snabbswitch | src/program/lwaftr/quickcheck/utils.lua | 10 | 3042 | module(...,package.seeall)
local S = require("syscall")
function gmtime()
local tv = S.gettimeofday()
local secs = tonumber(tv.tv_sec)
secs = secs + tonumber(tv.tv_usec) * 1e-6
return secs
end
function concat(a, b)
local ret = {}
for _, v in ipairs(a) do table.insert(ret, v) end
for _, v in ipai... | apache-2.0 |
Wiladams/LJIT2systemd | testy/test_SDJournal_fun.lua | 1 | 1423 | -- test_journal.lua
--[[
Test cursoring over journal, turning each entry
into a lua table to be used with luafun filters and whatnot
--]]
package.path = package.path..";../src/?.lua"
local SDJournal = require("SDJournal")
local sysd = require("systemd_ffi")
local fun = require("fun")()
-- Feed this routine a table ... | mit |
dmolina/my-config | awesome/.config/awesome/lain/widgets/contrib/kbdlayout.lua | 2 | 2508 |
--[[
Licensed under GNU General Public License v2
* (c) 2015, Dario Gjorgjevski
--]]
local newtimer = require("lain.helpers").newtimer
local read_pipe = require("lain.helpers").read_... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Abyssea-Tahrongi/mobs/Iratham.lua | 17 | 1284 | -----------------------------------
-- Area: Abyssea - Tahrongi
-- Mob: Iratham
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
end;
----... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Al_Zahbi/npcs/Rughadjeen.lua | 14 | 1043 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Rughadjeen
-- Type: Skyserpent General
-- @zone 48
-- @pos -74.150 -7 70.656
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
SnabbCo/snabbswitch | lib/ljsyscall/test/bsd.lua | 5 | 16451 | -- General BSD tests
local function init(S)
local helpers = require "test.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local bit = require "syscall.bit"
local ffi = require "ffi"
local t, pt, s = types.t, types.pt, types.s
local assert = helpers.assert
local function fork_assert(cond, err, ...) ... | apache-2.0 |
gowadbd/gowad | 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 |
thedraked/darkstar | scripts/globals/chocobo_digging.lua | 46 | 7397 | -- chocobo_digging.lua
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/settings");
-----------------------------------
-- DIG REQUIREMENTS
-----------------------------------
DIGREQ_NONE = 0;
DIGREQ_BURROW = 1;
DIGREQ_BORE = 2;
DIGREQ_MODIFIER = 4;
DIGREQ_NIGHT ... | gpl-3.0 |
nicholas-leonard/dp | observer/errorminima.lua | 5 | 3545 | ------------------------------------------------------------------------
--[[ ErrorMinima ]]--
-- Observer.
-- Notifies listeners when a new minima is found
-- Should only be called on Experiment, Propagator or Model subjects.
-- It is useful to use the Minima directly, as opposed to using a
-- subclass like EarlyStop... | bsd-3-clause |
delshimy/REMC | OSCeleton_for_REMC/liblo-0.26-modified/build/premake4.lua | 5 | 5326 | ----------------------------------------------------------------------
-- Premake4 configuration script for LibLo
-- Adapted from ODE's build script by Jason Perkins.
-- For more information on Premake: http://industriousone.com/premake
----------------------------------------------------------------------
-----... | gpl-3.0 |
thedraked/darkstar | scripts/globals/abilities/scholars_roll.lua | 19 | 2280 | -----------------------------------
-- Ability: Scholar's Roll
-- Enhances Conserve MP effect for party members within area of effect
-- Optimal Job: Scholar
-- Lucky Number: 2
-- Unlucky Number: 6
-- Level: 64
--
-- Data unknown
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
redstormbot/redstormbot | bot/seedbot.lua | 1 | 9377 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
thedraked/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm0_4.lua | 17 | 1168 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: qm0 (warp player outside after they win fight)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/pestle.lua | 41 | 1123 | -----------------------------------------
-- ID: 18599
-- Item: Pestle
-- Additional effect: MP Drain
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
fun... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.