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 |
|---|---|---|---|---|---|
kaen/Zero-K | LuaRules/Gadgets/CAI/UnitListHandler.lua | 7 | 7249 | --[[ Handles Lists of Units
* Create as a list of unit with some functions.
* Can get total unit cost, a random unit, units in area etc..
* Elements can have custom data.
== CreateUnitList(losCheckAllyTeamID)
losCheckAllyTeamID is the point of view that the return functions should take
regarding LOS. A non-cheat... | gpl-2.0 |
sepehrpk/bot1 | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
mohammadclashclash/elll2014 | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
geanux/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Somnolent_Rooster.lua | 34 | 1042 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Somnolent Rooster
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
... | gpl-3.0 |
forward619/luci | applications/luci-app-splash/luasrc/model/cbi/splash/splashtext.lua | 78 | 1663 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Copyright 2010 Manuel Munz <freifunk@somakoma.de>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local splashtextfile = "/usr/lib/luci-splash/splashtext.html"
local splash... | apache-2.0 |
geanux/darkstar | scripts/zones/Dangruf_Wadi/Zone.lua | 17 | 3020 | -----------------------------------
--
-- Zone: Dangruf_Wadi (191)
--
-----------------------------------
package.loaded["scripts/zones/Dangruf_Wadi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/status")... | gpl-3.0 |
Greentwip/CodyCobain | src/cocos/framework/package_support.lua | 45 | 4006 | --[[
Copyright (c) 2011-2015 chukong-incc.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | gpl-3.0 |
geanux/darkstar | scripts/zones/East_Ronfaure_[S]/Zone.lua | 12 | 1804 | -----------------------------------
--
-- Zone: East_Ronfaure_[S] (81)
--
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/East_Ronfaure_[S]/TextIDs");
require("... | gpl-3.0 |
gwx/tome-elementals-race | superload/mod/class/Grid.lua | 1 | 3560 | -- Elementals Race, for Tales of Maj'Eyal.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- This program is ... | gpl-3.0 |
geanux/darkstar | scripts/zones/Xarcabard/npcs/Heavy_Bear_IM.lua | 30 | 3041 | -----------------------------------
-- Area: Xarcabard
-- NPC: Heavy Bear, I.M.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
legend18/dragonbone_cocos2dx-3.x | demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotaryLimit.lua | 6 | 1184 |
--------------------------------
-- @module PhysicsJointRotaryLimit
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
-- @function [parent=#PhysicsJointRotaryLimit] getMax
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @functio... | mit |
geanux/darkstar | scripts/globals/abilities/dark_maneuver.lua | 54 | 1332 | -----------------------------------
-- Ability: Dark Maneuver
-- Enhances the effect of dark 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 |
geanux/darkstar | scripts/globals/items/zucchini.lua | 36 | 1223 | -----------------------------------------
-- ID: 5726
-- Item: Zucchini
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality -3
-- Defense -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCh... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/LuaRocks/lua/luarocks/tools/patch.lua | 7 | 22059 | --- Patch utility to apply unified diffs.
--
-- http://lua-users.org/wiki/LuaPatch
--
-- (c) 2008 David Manura, Licensed under the same terms as Lua (MIT license).
-- Code is heavilly based on the Python-based patch.py version 8.06-1
-- Copyright (c) 2008 rainforce.org, MIT License
-- Project home: http://code.goog... | gpl-2.0 |
omapzoom/platform-external-skia | tools/lua/bitmap_statistics.lua | 207 | 1862 | function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
geanux/darkstar | scripts/globals/items/slice_of_tavnazian_ram_meat.lua | 18 | 1335 | -----------------------------------------
-- ID: 5208
-- Item: slice_of_tavnazian_ram_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua | 19 | 1204 | -----------------------------------
-- Area: The Boyahda Tree
-- NPC: HomePoint#1
-- @pos 88 -15 -217 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/The_Boyahda_Tree/TextIDs");
require("scripts/global... | gpl-3.0 |
aqasaeed/sparta4 | plugins/invite.lua | 26 | 1071 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) or is_gbanned(result.id) then -- Ignore bans and globall bans
send_large_msg(chat, 'User is banned.')
else
ch... | gpl-2.0 |
jiangzhhhh/slua | jit/jit/p.lua | 55 | 9135 | ----------------------------------------------------------------------------
-- LuaJIT profiler.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
--
-- This modul... | mit |
geanux/darkstar | scripts/zones/Southern_San_dOria/npcs/Vemalpeau.lua | 17 | 2519 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Vemalpeau
-- Involved in Quests: Under Oath
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts... | gpl-3.0 |
geanux/darkstar | scripts/globals/spells/bluemagic/actinic_burst.lua | 18 | 1492 | -----------------------------------------
-- Spell: Actinic Burst
-- Greatly lowers the accuracy of enemies within range for a brief period of time
-- Spell cost: 24 MP
-- Monster Type: Luminions
-- Spell Type: Magical (Light)
-- Blue Magic Points: 4
-- Stat Bonus: CHR+2, HP+20
-- Level: 74
-- Casting Time: 0.... | gpl-3.0 |
3iran/XY-spamer | plugins/plugins.lua | 88 | 6304 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
kaen/Zero-K | effects/gundam_330rlexplode.lua | 19 | 4743 | -- 330rlexplode
return {
["330rlexplode"] = {
dirt = {
count = 4,
ground = true,
properties = {
alphafalloff = 2,
color = [[0.2, 0.1, 0.05]],
pos = [[r-10 r10, 0, r-10 r10]],
size = 22,
... | gpl-2.0 |
geanux/darkstar | scripts/zones/Windurst_Waters/npcs/Kerutoto.lua | 17 | 11600 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Kerutoto
-- Starts Quest Food For Thought
-- Involved in Quest: Riding on the Clouds
-- @zone 238
-- @pos 13 -5 -157
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
package.loaded["scripts/g... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/galkan_sausage_+3.lua | 35 | 1364 | -----------------------------------------
-- ID: 5861
-- Item: galkan_sausage_+3
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 6
-- Intelligence -7
-- Attack 12
-- Ranged Attack 12
-----------------------------------------
require("scripts/globals/status");
------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Silver_Knife/Zone.lua | 36 | 1113 | -----------------------------------
--
-- Zone: Silver Knife
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Silver_Knife/TextIDs"] = nil;
require("scripts/zones/Silver_Knife/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
ld-test/lua-cassandra | spec/spec_utils.lua | 1 | 3858 | local say = require "say"
local types = require "cassandra.types"
local assert = require "luassert.assert"
local string_utils = require "cassandra.utils.string"
local unpack
if _VERSION == "Lua 5.3" then
unpack = table.unpack
else
unpack = _G.unpack
end
local _M = {}
function _M.create_keyspace(session, keyspace... | mit |
cpluscpu/episss | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
kaen/Zero-K | LuaRules/Gadgets/dbg_animator.lua | 7 | 6670 | ------------------------
function gadget:GetInfo()
return {
name = "Animator",
desc = "v0.002 Moves and turns pieces.",
author = "CarRepairer & knorke",
date = "2010-03-05",
license = "raubkopierer sind verbrecher",
layer = 0,
enabled = false,
}
end
local fu... | gpl-2.0 |
rmackay9/rmackay9-ardupilot | libraries/AP_Scripting/examples/RCIN_test.lua | 21 | 1255 | -- example of getting RC input
local scripting_rc_1 = rc:find_channel_for_option(300)
local scripting_rc_2 = rc:find_channel_for_option(301)
local flip_flop = 0
function update()
pwm1 = rc:get_pwm(1)
pwm2 = rc:get_pwm(2)
pwm3 = rc:get_pwm(3)
pwm4 = rc:get_pwm(4)
gcs:send_text(0, "RCIN 1:" .. tostring(pwm1) ... | gpl-3.0 |
geanux/darkstar | scripts/zones/Norg/npcs/Fouvia.lua | 38 | 1611 | -----------------------------------
-- Area: Norg
-- NPC: Fouvia
-- Type: Wyvern Name Changer
-- @zone: 252
-- @pos -84.066 -6.414 47.826
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/... | gpl-3.0 |
SquidDev-CC/Blue-Shiny-Rocks | bsrocks/lib/diffmatchpatch.lua | 1 | 69557 | --[[
* Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser.
* Ported to Lua by Duncan Cross.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance ... | mit |
kaen/Zero-K | LuaRules/Configs/MetalSpots/Barren.lua | 11 | 1519 | return {
spots = {
{x = 1304, z = 2680, metal = 1.7523200511932},
{x = 440, z = 248, metal = 1.0419199466705},
{x = 344, z = 888, metal = 1.0419199466705},
{x = 3992, z = 3176, metal = 1.7590396404266},
{x = 104, z = 3448, metal = 1.39583... | gpl-2.0 |
geanux/darkstar | scripts/zones/Cloister_of_Flames/Zone.lua | 32 | 1663 | -----------------------------------
--
-- Zone: Cloister_of_Flames (207)
--
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Cloister_of_Flames/TextIDs");
---... | gpl-3.0 |
kaen/Zero-K | units/blastwing.lua | 3 | 5818 | unitDef = {
unitname = [[blastwing]],
name = [[Blastwing]],
description = [[Flying Bomb]],
acceleration = 0.25,
altfromsealevel = [[30]],
amphibious = true,
bankscale = [[1.64]],
brakeRate = 0.25,
buildCo... | gpl-2.0 |
geanux/darkstar | scripts/globals/spells/mages_ballad_ii.lua | 31 | 1186 | -----------------------------------------
-- Spell: Mage's Ballad II
-- Gradually restores target's MP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingChe... | gpl-3.0 |
yurenyong123/nodemcu-firmware | lua_modules/bmp085/bmp085.lua | 69 | 5037 | --------------------------------------------------------------------------------
-- BMP085 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Christee <Christee@nodemcu.com>
--------------------------------------------------------------------------------
local moduleName = ... ... | mit |
kaen/Zero-K | scripts/shipraider.lua | 4 | 3353 | include "constants.lua"
local base = piece 'base'
local hull = piece 'hull'
local gunf = piece 'gunf'
local barrelfl = piece 'barrelfl'
local flarefl = piece 'flarefl'
local barrelfr = piece 'barrelfr'
local flarefr = piece 'flarefr'
local gunb = piece 'gunb'
local barrelbl = piece 'barrelbl'
local flarebl = ... | gpl-2.0 |
legend18/dragonbone_cocos2dx-3.x | demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/Frame.lua | 7 | 1476 |
--------------------------------
-- @module Frame
-- @extend Ref
-- @parent_module ccs
--------------------------------
-- @function [parent=#Frame] clone
-- @param self
-- @return Frame#Frame ret (return value: ccs.Frame)
--------------------------------
-- @function [parent=#Frame] setNode
-- @param self... | mit |
geanux/darkstar | scripts/zones/VeLugannon_Palace/mobs/Zipacna.lua | 16 | 1795 | -----------------------------------
-- Area: VeLugannon Palace
-- NPC: Zipacna
-----------------------------------
local path = {
-202, 0, 391,
-209, 0, 387,
-214, 0, 381,
-238, 0, 380,
-256, 4, 381,
-261, 8, 400,
-257, 12, 417,
-240, 16, 420,
-257, 12, 417,
-261, 8, 400,
-256, 4, 381,
-238, 0, 380,
-214, 0, 381,
-209... | gpl-3.0 |
geanux/darkstar | scripts/zones/Nashmau/npcs/Neneroon.lua | 38 | 1033 | ----------------------------------
-- Area: Nashmau
-- NPC: Neneroon
-- Type: Item Deliverer
-- @pos -0.866 -5.999 36.942 53
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
-------------------... | gpl-3.0 |
geanux/darkstar | scripts/zones/Riverne-Site_A01/npcs/_0u1.lua | 17 | 1340 | -----------------------------------
-- Area: Riverne Site #A01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_A01/Text... | gpl-3.0 |
tonylauCN/tutorials | lua/debugger/lualibs/lexers/fsharp.lua | 5 | 2551 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- F# LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'fsharp'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local line_com... | apache-2.0 |
h0tw1r3/mame | 3rdparty/genie/src/actions/vstudio/vs2010_vcxproj.lua | 3 | 37567 | --
-- vs2010_vcxproj.lua
-- Generate a Visual Studio 2010 C/C++ project.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
premake.vstudio.vc2010 = { }
local vc2010 = premake.vstudio.vc2010
local vstudio = premake.vstudio
local function vs2010_config(prj)
_p(1,'<ItemGroup Label="ProjectConfig... | gpl-2.0 |
kaen/Zero-K | LuaRules/Gadgets/mission_orbital_drop.lua | 3 | 13761 | function gadget:GetInfo()
return {
name = "Orbital Drop",
desc = "Makes units spawned with GG.DropUnit fall from the sky.",
author = "quantum, msafwan", --msafwan add dynamic/configurable orbital drop
date = "November 2010", --7 April 2013
license = "GNU GPL, v2 or later",
... | gpl-2.0 |
kaen/Zero-K | scripts/bomberlaser.lua | 11 | 1161 | local base = piece 'base'
local body = piece 'body'
local jet = piece 'jet'
local wingtipl = piece 'wingtipl'
local wingtipr = piece 'wingtipr'
local smokePiece = {body, jet}
include "constants.lua"
include "bombers.lua"
local function Lights()
while select(5, Spring.GetUnitHealth(unitID)) < 1 do
Sleep(400)
... | gpl-2.0 |
tonyshow/UniLua | Assets/StreamingAssets/LuaRoot/benchmark/sci_mark.lua | 5 | 11948 | ------------------------------------------------------------------------------
-- Lua SciMark (2010-12-20).
--
-- A literal translation of SciMark 2.0a, written in Java and C.
-- Credits go to the original authors Roldan Pozo and Bruce Miller.
-- See: http://math.nist.gov/scimark2/
-------------------------------------... | mit |
lipp/nodish | src/nodish/buffer.lua | 1 | 4399 | local ffi = require'ffi'
local S = require'syscall'
local types = {
Double = {
ctype = 'double',
size = 8,
},
Float = {
ctype = 'float',
size = 4
},
UInt8 = {
ctype = 'uint8_t',
size = 1,
},
UInt16 = {
ctype = 'uint16_t',
size = 2,
},
UInt32 = {
ctype = 'uint32_t'... | mit |
ghaznaviali1375/ali2 | plugins/stats.lua | 13 | 4010 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
legend18/dragonbone_cocos2dx-3.x | demos/cocos2d-x-3.x/DragonBonesCppDemos/cocos2d/cocos/scripting/lua-bindings/auto/api/UserDefault.lua | 6 | 2689 |
--------------------------------
-- @module UserDefault
-- @parent_module cc
--------------------------------
-- @function [parent=#UserDefault] setIntegerForKey
-- @param self
-- @param #char char
-- @param #int int
--------------------------------
-- @overload self, char, float
-- @overload self,... | mit |
geanux/darkstar | scripts/zones/Aydeewa_Subterrane/npcs/qm1.lua | 16 | 1219 | -----------------------------------
-- Area: Aydeewa Subterrane
-- NPC: ??? (Spawn Nosferatu(ZNM T3))
-- @pos -199 8 -62 68
-----------------------------------
package.loaded["scripts/zones/Aydeewa_Subterrane/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aydeewa_Subterrane/TextIDs");
--... | gpl-3.0 |
geanux/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rt.lua | 17 | 1611 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna... | gpl-3.0 |
kling-igor/particle-designer | conf.lua | 1 | 3028 | function love.conf(t)
t.identity = 'particle-designer' -- The name of the save directory (string)
t.version = '0.9.2' -- The LÖVE version this game was made for (string)
t.console = false -- Attach a console (boolean, Windows only)
t.window.title = 'LÖVE Particle Desi... | mit |
geanux/darkstar | scripts/globals/weaponskills/seraph_strike.lua | 30 | 1314 | -----------------------------------
-- Seraph Strike
-- Club weapon skill
-- Skill level: 40
-- Deals light elemental damage to enemy. Damage varies with TP.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:40% ; MND:40%
-- 100%TP 200%TP 300%TP
-- ... | gpl-3.0 |
evilexecutable/ResourceKeeper | install/LuaRocks/lua/luarocks/upload/multipart.lua | 25 | 2800 |
local multipart = {}
local File = {}
local unpack = unpack or table.unpack
math.randomseed(os.time())
-- socket.url.escape(s) from LuaSocket 3.0rc1
function multipart.url_escape(s)
return (string.gsub(s, "([^A-Za-z0-9_])", function(c)
return string.format("%%%02x", string.byte(c))
end))
end
function F... | gpl-2.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/idl.lua | 5 | 1957 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- IDL LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'idl'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-- Comments.
local line_comme... | apache-2.0 |
371816210/vlc_vlc | share/lua/meta/art/01_googleimage.lua | 30 | 1659 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 2007 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 la... | gpl-2.0 |
kaen/Zero-K | units/armca.lua | 5 | 5975 | unitDef = {
unitname = [[armca]],
name = [[Crane]],
description = [[Construction Aircraft, Builds at 4 m/s]],
acceleration = 0.1,
airStrafe = 0,
amphibious = true,
brakeRate = 0.1,
buildCostEnergy = 220,
buildCostMetal = 22... | gpl-2.0 |
criezy/scummvm | devtools/create_ultima/files/ultima6/scripts/md/lang/en/game.lua | 18 | 15179 | return {
PASS="Pass!\n",
YOU_SEE="you see %s",
ON="On - ",
TO="To - ",
NOTHING="nothing!\n",
NO_EFFECT="\nNo effect\n",
AARGH="Aargh!\n",
BLOCKED="Blocked!\n",
HOW_MANY="How many? ",
YOU_ARE_CARRYING_TOO_MUCH_ALREADY="You are carrying too much already.\n",
YOU_PRIED_THE_NAILS_OUT_OF_THE_CRATE="You pried the nails out o... | gpl-3.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/socket/http.lua | 45 | 12330 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------------... | apache-2.0 |
geanux/darkstar | scripts/zones/Gusgen_Mines/npcs/Treasure_Chest.lua | 19 | 3229 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Treasure Chest
-- Involved In Quest: The Goblin Tailor
-- @zone 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("script... | gpl-3.0 |
forward619/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua | 58 | 2299 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("network",
translate("Routes"),
translate("Routes specify over which interface and gateway a certain host or network " ..
"can ... | apache-2.0 |
kaen/Zero-K | LuaRules/Gadgets/CAI/UnitClusterHandler.lua | 7 | 5449 | --[[ Determines the cluster structure of a list of units.
== CreateUnitList(losCheckAllyTeamID, clusterRadius)
losCheckAllyTeamID is for the underlying UnitList.
clusterRadius is how close two units need to be to be within the
same cluster. Close units may be in different clusters depending
on how the boundari... | gpl-2.0 |
geanux/darkstar | scripts/globals/mobskills/Chains_of_Cowardice.lua | 25 | 1179 | ---------------------------------------------
-- Chains of Apathy
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/keyitems");
require("scripts/zones/Empyreal_Paradox/TextIDs");
-... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/dish_of_spaghetti_marinara.lua | 35 | 1471 | -----------------------------------------
-- ID: 5719
-- Item: dish_of_spaghetti_marinara
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 15 (cap 120)
-- Vitality 2
-- Defense 5
-- Store TP 7
-----------------------------------------
require("scripts/globals/status");
-... | gpl-3.0 |
lipari/flux-sched | rdl/RDL/ResourceData.lua | 4 | 4016 | --/***************************************************************************\
-- Copyright (c) 2014 Lawrence Livermore National Security, LLC. Produced at
-- the Lawrence Livermore National Laboratory (cf, AUTHORS, DISCLAIMER.LLNS).
-- LLNL-CODE-658032 All rights reserved.
--
-- This file is part of the Flux res... | gpl-2.0 |
geanux/darkstar | scripts/zones/West_Sarutabaruta/npcs/Twinkle_Tree.lua | 34 | 2209 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Twinkle Tree
-- Involved in Quest: To Catch a Falling Star
-- Note: EventID for Twinkle Tree is unknown. Quest funtions but the full event is not played.
-- @pos 156.003 -40.753 333.742 115
-----------------------------------
package.loade... | gpl-3.0 |
PhearNet/scanner | bin/nmap-openshift/nselib/rpcap.lua | 8 | 11458 | ---
-- This library implements the fundamentals needed to communicate with the
-- WinPcap Remote Capture Daemon. It currently supports authenticating to
-- the service using either NULL-, or Password-based authentication.
-- In addition it has the capabilities to list the interfaces that may be
-- used for sniffing.
--... | mit |
ethantang95/DIGITS | digits/tools/torch/utils.lua | 7 | 8567 | -- Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
require 'torch' -- torch
require 'image' -- for color transforms
package.path = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path
require 'logmessage'
------------- UTILITY FUNCTIONS ---------------------------... | bsd-3-clause |
kling-igor/particle-designer | lovefs/lovefs.lua | 1 | 11363 | --[[------------------------------------
LoveFS v0.8
Pure Lua FileSystem Access
Under the MIT license.
copyright(c) 2012 Caldas Lopes aka linux-man
--]]------------------------------------
local lovefs_dir = 'lovefs'
local cp_table = {'737', '775', '850', '852', '855', '866', '8859-1', '8859-2', '8859-4', '8859-5', '8... | mit |
geanux/darkstar | scripts/globals/abilities/light_arts.lua | 28 | 1759 | -----------------------------------
-- Ability: Light Arts
-- Optimizes white magic capability while lowering black magic proficiency. Grants a bonus to divine, enhancing, enfeebling, and healing magic. Also grants access to Stratagems.
-- Obtained: Scholar Level 10
-- Recast Time: 1:00
-- Duration: 2:00:00
-----... | gpl-3.0 |
geanux/darkstar | scripts/zones/Northern_San_dOria/npcs/Taulenne.lua | 34 | 4855 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Taulenne
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
package.loaded["scripts/globals/armorstorage"] = nil;
-----------------------------------
require("script... | gpl-3.0 |
geanux/darkstar | scripts/zones/Southern_San_dOria/npcs/Deraquien.lua | 17 | 2392 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Deraquien
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -98 -2 31 230
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("... | gpl-3.0 |
ld-test/lua-resty-template | lib/resty/template.lua | 9 | 9237 | local setmetatable = setmetatable
local tostring = tostring
local setfenv = setfenv
local concat = table.concat
local assert = assert
local write = io.write
local open = io.open
local load = load
local type = type
local dump = string.dump
local find = string.find
local gsub = string.gsub
local byte = string.byte
local ... | bsd-3-clause |
h0tw1r3/mame | scripts/target/mame/arcade.lua | 1 | 175819 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- mame.lua
--
-- MAME target makefile
--
---------------------------------------------------------------------------
--------------------------------------------------
-- speci... | gpl-2.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/awk.lua | 5 | 9795 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- AWK LPeg lexer.
-- Modified by Wolfgang Seeberg 2012, 2013.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'awk'}
local LEFTBRACKET = '['
local RIGHTBRACKET ... | apache-2.0 |
evilexecutable/ResourceKeeper | install/LuaRocks/lua/luarocks/fs/lua.lua | 7 | 27577 |
--- Native Lua implementation of filesystem and platform abstractions,
-- using LuaFileSystem, LZLib, MD5 and LuaCurl.
-- module("luarocks.fs.lua")
local fs_lua = {}
local fs = require("luarocks.fs")
local cfg = require("luarocks.cfg")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
local p... | gpl-2.0 |
marek-g/vlc-signio | share/lua/playlist/zapiks.lua | 17 | 2964 | --[[
$Id$
Copyright © 2011 the VideoLAN team
Authors: Konstantin Pavlov (thresh@videolan.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your opt... | gpl-2.0 |
no1dead/xenia | src/xenia/app/premake5.lua | 2 | 1337 | project_root = "../../.."
include(project_root.."/tools/build")
group("src")
project("xenia-app")
uuid("d7e98620-d007-4ad8-9dbd-b47c8853a17f")
kind("WindowedApp")
targetname("xenia")
language("C++")
links({
"gflags",
"imgui",
"xenia-apu",
"xenia-apu-nop",
"xenia-base",
"xenia-core",
... | bsd-3-clause |
geanux/darkstar | scripts/zones/Selbina/npcs/Mendoline.lua | 17 | 1185 | -----------------------------------
-- Area: Selbina
-- NPC: Mendoline
-- Guild Merchant NPC: Fishing Guild
-- @pos -13.603 -7.287 10.916 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
r... | gpl-3.0 |
geanux/darkstar | scripts/zones/Upper_Jeuno/npcs/_6s1.lua | 17 | 4057 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Marble Bridge Eatery (Door)
-- @pos -96.6 -0.2 92.3 244
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glo... | gpl-3.0 |
geanux/darkstar | scripts/zones/Dynamis-Beaucedine/bcnms/dynamis_beaucedine.lua | 16 | 1101 | -----------------------------------
-- Area: Dynamis Beaucedine
-- Name: Dynamis Beaucedine
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaBeaucedine]UniqueID",player:getDynamisUniqueID(1284));
SetServerVar... | gpl-3.0 |
kaen/Zero-K | LuaUI/Widgets/unit_icons.lua | 5 | 9458 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Unit Icons",
desc = "v0.033 Shows icons above units",
author = "CarRepairer a... | gpl-2.0 |
geanux/darkstar | scripts/zones/Windurst_Waters/npcs/Orn.lua | 17 | 1664 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orn
-- @pos -68 -9 30 238
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
end;
--... | gpl-3.0 |
kaen/Zero-K | scripts/amphartillery.lua | 11 | 4976 | --linear constant 65536
include "constants.lua"
local ground, pelvis, turret, gun1, gun2, lleg, rleg, lfoot, rfoot, firept1, firept2 = piece('ground', 'pelvis', 'turret', 'gun1', 'gun2', 'lleg', 'rleg', 'lfoot', 'rfoot', 'firept1', 'firept2')
local SIG_AIM = {}
local firepoints = {[0] = firept1, [1] = firept2}
local ... | gpl-2.0 |
evilexecutable/ResourceKeeper | install/Lua/lib/lua/oil/kernel/base/Proxies/asynchronous.lua | 6 | 2034 | local oo = require "oil.oo" --[[VERBOSE]] local verbose = require "oil.verbose"
local utils = require "oil.kernel.base.Proxies.utils"
local assertresults = utils.assertresults
local unpackrequest = utils.unpackrequest
---------------------------------------------... | gpl-2.0 |
geanux/darkstar | scripts/globals/items/tonosama_rice_ball.lua | 21 | 1508 | -----------------------------------------
-- ID: 4277
-- Item: Tonosama Rice Ball
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP +15
-- Dex +3
-- Vit +3
-- Chr +3
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Atk +50
-- Def +30
-- D... | gpl-3.0 |
geanux/darkstar | scripts/zones/Talacca_Cove/npcs/qm1.lua | 42 | 1267 | -----------------------------------
-- Area: Talacca_Cove
-- NPC: ??? (corsair job flag quest)
--
-----------------------------------
package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Talacca_Cove/TextIDs");
require("scripts/globals/keyitems");
--... | gpl-3.0 |
geanux/darkstar | scripts/globals/items/dhalmel_pie_+1.lua | 35 | 1882 | -----------------------------------------
-- ID: 4322
-- Item: dhalmel_pie_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 25
-- Strength 4
-- Agility 2
-- Vitality 1
-- Intelligence -2
-- Mind 1
-- Attack % 25
-- Attack Cap 50
-- Ranged ATT % 25
-- Ranged ATT Cap 5... | gpl-3.0 |
kaen/Zero-K | units/reef.lua | 2 | 8815 | unitDef = {
unitname = [[reef]],
name = [[Reef]],
description = [[Aircraft Carrier (Bombardment) & Anti-Nuke]],
acceleration = 0.0354,
activateWhenBuilt = true,
brakeRate = 0.0466,
buildCostEnergy = 3500,
buildCostMetal ... | gpl-2.0 |
shayan-soft/virus | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
geanux/darkstar | scripts/globals/abilities/pets/tail_whip.lua | 18 | 1262 | ---------------------------------------------------
-- Tail Whip M=5
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/summon");
--------------------------------------... | gpl-3.0 |
geanux/darkstar | scripts/globals/spells/invisible.lua | 22 | 1187 | -----------------------------------------
-- Spell: Invisible
-- Lessens chance of being detected by sight.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
Volker2014/ESP8266_weather | test/lcov.lua | 1 | 73299 | --[[
---------------------------------------------------------------------------
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2013 Tysen Moore
Everyone is permitted to copy and distribute verbatim or modified
copies of this licen... | gpl-3.0 |
tonylauCN/tutorials | openresty/debugger/lualibs/lexers/asp.lua | 5 | 1385 | -- Copyright 2006-2016 Mitchell mitchell.att.foicica.com. See LICENSE.
-- ASP LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'asp'}
-- Embedded in HTML.
local html = l.load('html')
-- Embedded VB.
local vb = l.load('vb... | apache-2.0 |
ameuret/mongrel2 | examples/bbs/ui.lua | 96 | 2026 | local coroutine = coroutine
module 'ui'
local SCREENS = {
['welcome'] = [[
__ __ ____ ____ ____ ____
| \/ |___ \| __ )| __ ) ___|
| |\/| | __) | _ \| _ \___ \
| | | |/ __/| |_) | |_) |__) |
|_| |_|_____|____/|____/____/
Welcome to the Mongrel2 BBS.
]],
['name']... | bsd-3-clause |
geanux/darkstar | scripts/globals/items/pogaca.lua | 35 | 1247 | -----------------------------------------
-- ID: 5637
-- Item: pogaca
-- Food Effect: 5Min, All Races
-----------------------------------------
-- HP Recovered While Healing 4
-- MP Recovered While Healing 4
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
kaen/Zero-K | ModOptions.lua | 1 | 16010 |
-- $Id: ModOptions.lua 4642 2009-05-22 05:32:36Z carrepairer $
-- Custom Options Definition Table format
-- NOTES:
-- - using an enumerated table lets you specify the options order
--
-- These keywords must be lowercase for LuaParser to read them.
--
-- key: the string used in the script.txt
-- name: ... | gpl-2.0 |
geanux/darkstar | scripts/zones/Metalworks/npcs/Lexun-Marixun_WW.lua | 30 | 4752 | -----------------------------------
-- Area: Metalworks
-- NPC: Lexun-Maxirun, W.W.
-- @pos 28 -16 28 237
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start Su... | gpl-3.0 |
unrealviking/ServiceAdvertisement | AdServer/server.lua | 1 | 1812 | #!/bin/lua5.1
local socket = require("socket")
local json = require("dkjson")
-- list of advertisements
local ads = {{checksum = 1,contend = "hallo"}}
-- some functions
local send_by_checksum = function(client,cs)
for i,ad in ipairs(ads) do
if ad.checksum == cs then
print("send requested ad")
local str ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.