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 |
|---|---|---|---|---|---|
TabitaPL/Pasjans | Angel-3.2/Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/lua/pl/comprehension.lua | 13 | 9071 | --- List comprehensions implemented in Lua.
--
-- See the [wiki page](http://lua-users.org/wiki/ListComprehensions)
--
-- local C= require 'pl.comprehension' . new()
--
-- C ('x for x=1,10') ()
-- ==> {1,2,3,4,5,6,7,8,9,10}
-- C 'x^2 for x=1,4' ()
-- ==> {1,4,9,16}
-- C '{x,x^2} for x=1,4' ()
-- ==... | mit |
hoku586/darkstar | scripts/globals/spells/bluemagic/foot_kick.lua | 35 | 1687 | -----------------------------------------
-- Spell: Foot Kick
-- Deals critical damage. Chance of critical hit varies with TP
-- Spell cost: 5 MP
-- Monster Type: Beasts
-- Spell Type: Physical (Slashing)
-- Blue Magic Points: 2
-- Stat Bonus: AGI+1
-- Level: 1
-- Casting Time: 0.5 seconds
-- Recast Time: 6.5 seconds
-... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Wajaom_Woodlands/TextIDs.lua | 7 | 1135 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
Vadavim/test | scripts/zones/Port_San_dOria/npcs/Sheridan.lua | 19 | 1770 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Sheridan
-- Involved in Quests: Riding on the Clouds
-- @zone 232
-- @pos -19 -8 -129
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
Vadavim/test | scripts/globals/items/plate_of_ic_pilav.lua | 35 | 1942 | -----------------------------------------
-- ID: 5584
-- Item: plate_of_ic_pilav
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 65
-- Strength 4
-- Vitality -1
-- Intelligence -1
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 65
-- Ran... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Kazham/npcs/Vanono.lua | 19 | 1423 | -----------------------------------
-- Area: Kazham
-- NPC: Vanono
-- Type: Standard NPC
-- @zone: 250
-- @pos -23.140 -5 -23.101
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
hoku586/darkstar | scripts/zones/AlTaieu/mobs/JoL_Qn_hpemde.lua | 15 | 1512 | -----------------------------------
-- Area: Al'Taieu
-- MOB: Qn'hpemde
-- Jailor of Love Pet version
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
mob:AnimationSub(6); -- Mouth Closed
end;
--------------... | gpl-3.0 |
3scale/docker-gateway | spec/resty/balancer_spec.lua | 2 | 4888 | local resty_balancer = require 'resty.balancer'
local round_robin = require 'resty.balancer.round_robin'
describe('resty.balancer', function()
describe('.new', function()
local new = resty_balancer.new
it('accepts mode', function()
local b, err = new(function() end)
assert.equal('function', ty... | mit |
Vadavim/test | scripts/zones/Alzadaal_Undersea_Ruins/Zone.lua | 7 | 5502 | -----------------------------------
--
-- Zone: Alzadaal_Undersea_Ruins (72)
--
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Alzadaal_Undersea_Ruins/Tex... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Windurst_Woods/npcs/Bin_Stejihna.lua | 17 | 1853 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Bin Stejihna
-- Only sells when Windurst controlls Zulkheim Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windurst_Wo... | gpl-3.0 |
ff94315/luci-1 | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 48 | 11450 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
-- Data init --
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
if not uci:get("network", "wan") ... | apache-2.0 |
grandboy0/wader | plugins/badword.lua | 17 | 2452 | --[[
#
# @WaderTGTeam
# @WaderTG
#
]]
local function addword(msg, name)
local hash = 'chat:'..msg.to.id..':badword'
redis:hset(hash, name, 'newword')
return "added the badword:\n\n>"..name
end
local function get_variables_hash(msg)
return 'chat:'..msg.to.id..':badword'
end
local funct... | gpl-2.0 |
Vadavim/test | scripts/zones/Windurst_Woods/npcs/Tesch_Garanjy.lua | 36 | 4446 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Tesch_Garanjy
-- Armor Storage NPC
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/armorstorage"... | gpl-3.0 |
CommandPost/CommandPost | src/extensions/cp/plugins/plugin.lua | 2 | 1278 | --- === cp.plugins.plugin ===
---
--- CommandPost Plugin.
local plugin = {}
plugin.__index = plugin
function plugin.init(pluginTable, status, scriptFile)
pluginTable._status = status
pluginTable._scriptFile = scriptFile
return setmetatable(pluginTable, plugin)
end
function plugin:getGroup()
return s... | mit |
likunpeng/cocos | luatest/src/TileMapTest/TileMapTest.lua | 11 | 39672 | local size = cc.Director:getInstance():getWinSize()
local scheduler = cc.Director:getInstance():getScheduler()
local kTagTileMap = 1
local function createTileDemoLayer(title, subtitle)
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
local titleStr = title == nil and "No title" or title
lo... | apache-2.0 |
hoku586/darkstar | scripts/globals/items/dish_of_spaghetti_vongole_rosso_+1.lua | 12 | 1665 | -----------------------------------------
-- ID: 5198
-- Item: Dish of Spaghetti Vongole Rosso +1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health % 20
-- Health Cap 95
-- Vitality 2
-- Mind -1
-- Defense % 25
-- Defense Cap 35
-- Store TP 6
-----------------------------------------
... | gpl-3.0 |
Vadavim/test | scripts/zones/Al_Zahbi/npcs/Talhaal.lua | 38 | 1028 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Talhaal
-- Type: Zazarg's Attendant
-- @zone: 48
-- @pos -35.897 -7 107.160
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
---------------------... | gpl-3.0 |
korialuo/skynet | examples/login/logind.lua | 29 | 1663 | local login = require "snax.loginserver"
local crypt = require "skynet.crypt"
local skynet = require "skynet"
local server = {
host = "127.0.0.1",
port = 8001,
multilogin = false, -- disallow multilogin
name = "login_master",
}
local server_list = {}
local user_online = {}
local user_login = {}
function server.a... | mit |
Elkazan/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm1.lua | 17 | 1630 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm1 (???)
-- Involved In Quest: Altana's Sorrow
-- @pos -282.339 0.001 261.707 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
hoku586/darkstar | scripts/zones/The_Ashu_Talif/Zone.lua | 10 | 1253 | -----------------------------------
--
-- Zone: The_Ashu_Talif
--
-----------------------------------
require("scripts/globals/settings");
local TheAshuTalif = require("scripts/zones/The_Ashu_Talif/IDs");
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(z... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Northern_San_dOria/npcs/Tavourine.lua | 36 | 1864 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Tavourine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/sh... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Bastok_Mines/npcs/HomePoint#2.lua | 27 | 1311 | -----------------------------------
-- Area: Bastok Mines
-- NPC: HomePoint#2
-- @pos 118 1 -58 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
package.loaded["scripts/globals/homepoint"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Bastok_Mi... | gpl-3.0 |
Vadavim/test | scripts/zones/VeLugannon_Palace/TextIDs.lua | 5 | 1036 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6382; -- Obtained: <item>
GIL_OBTAINED = 6383; -- Obtained <number> gil
KEYITEM_OBTAINED = 6385; -- Obtain... | gpl-3.0 |
Vadavim/test | scripts/zones/Oldton_Movalpolos/TextIDs.lua | 5 | 1146 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6382; -- Obtained: <item>.
GIL_OBTAINED = 6383; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6385; -- Obtained... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Marjami_Ravine/Zone.lua | 17 | 1221 | -----------------------------------
--
-- Zone: Marjami Ravine
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Marjami_Ravine/TextIDs"] = nil;
require("scripts/zones/Marjami_Ravine/TextIDs");
-----------------------------------
-- onInitialize
-------------... | gpl-3.0 |
hoku586/darkstar | scripts/commands/animatesubnpc.lua | 20 | 1046 | ---------------------------------------------------------------------------------------------------
-- func: animatesubnpc
-- desc: Changes the animationSub of the given npc. (For testing purposes.)
---------------------------------------------------------------------------------------------------
require("scripts/glo... | gpl-3.0 |
hoku586/darkstar | scripts/globals/mobskills/glittering_ruby.lua | 27 | 1144 | ---------------------------------------------------
-- Glittering Ruby
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onMobSkillCheck(ta... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/The_Celestial_Nexus/mobs/Orbital.lua | 18 | 2131 | -----------------------------------
-- Area: The Celestial Nexus
-- NPC: Orbital
-- Zilart Mission 16 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
function onMobInitialize(mob)
mob:addMod(MOD_REGAIN, 50);
end... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Kuftal_Tunnel/mobs/Guivre.lua | 17 | 14876 | ----------------------------------
-- Area: Gustav Tunnel
-- NM: Guivre
-----------------------------------
local path =
{
106.836830, 0.753614, -3.944333,
106.991020, 0.588184, -4.941793,
107.207207, 0.424275, -5.923915,
107.583046, 0.424275, -6.866960,
108.040382, 0.424275, -7.778655,
108.4... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Rabao/npcs/HomePoint#1.lua | 27 | 1250 | -----------------------------------
-- Area: Rabao
-- NPC: HomePoint#1
-- @pos -29.276 0.001 -76.585 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Rabao/TextIDs");
require("scripts/globals/homepoint");
-------... | gpl-3.0 |
Vadavim/test | scripts/globals/abilities/pets/healing_breath_i.lua | 6 | 1272 | ---------------------------------------------------
-- Healing Breath I
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
---------------------------------------------------
function onAb... | gpl-3.0 |
Gamerbude/Minetest_TNG | mods/armor/armor.lua | 4 | 3645 | armor.register_armor("wood", {
protection_lvl = 5, -- how much (%) it reduces the damage (for each element)
uses = 30, --number how often it protects (for each element)
elements = {
head = {
description = "Wooden Helmet",
inventory_image = "armor_wood_head_inv.png",
recipe = {
{"group:wood", "group:wo... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kuron-Makaron.lua | 38 | 1054 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kuron-Makaron
-- Type: Morale Manager
-- @zone: 94
-- @pos 10.422 -2.478 24.616
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = ... | gpl-3.0 |
ff94315/luci-1 | applications/luci-app-wshaper/luasrc/model/cbi/wshaper.lua | 56 | 1848 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
m = Map("wshaper", translate("Wondershaper"),
translate("Wondershaper shapes traffic to ensure low latencies for interactive traffic even when your " ..
"internet connec... | apache-2.0 |
Vadavim/test | scripts/zones/Abyssea-Attohwa/Zone.lua | 32 | 1548 | -----------------------------------
--
-- Zone: Abyssea - Attohwa
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Attohwa/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-... | gpl-3.0 |
koningdde/Arduitools | ESP8266/nodemcu-firmware-master/nodemcu-firmware-master/lua_examples/send_text_message.lua | 75 | 3151 | --[[
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, distribute,
sublicense, and/or sell copies... | gpl-3.0 |
otservme/global1041 | data/actions/scripts/other/windows.lua | 12 | 2054 | local windows = {
[5303] = 6448, [5304] = 6449, [6438] = 6436, [6436] = 6438,
[6439] = 6437, [6437] = 6439, [6442] = 6440, [6440] = 6442,
[6443] = 6441, [6441] = 6443, [6446] = 6444, [6444] = 6446,
[6447] = 6445, [6445] = 6447, [6448] = 5303, [6449] = 5304,
[6452] = 6450, [6450] = 6452, [6453] = 6451, [6451] = 645... | gpl-2.0 |
Vadavim/test | scripts/zones/Dynamis-Bastok/mobs/Gu_Dha_Effigy.lua | 11 | 1040 | -----------------------------------
-- Area: Dynamis Bastok
-- NPC: Gu'Dha Effigy
-- Mega Boss
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/titles");
require("scripts/globals/dynamis");
-----------------------------------
-- onMobSpawn Action
-------------... | gpl-3.0 |
Pawel-Kaminski/2dGame | code/libraries/sti/framework/corona.lua | 11 | 1357 | local lf = love.filesystem
local lg = love.graphics
local lm = love.math
local lp = love.physics
local framework = {}
framework.version = "Corona"
function framework.load(file)
return assert(lf.load(file), "File not found: " .. file)
end
function framework.newImage(path)
local image = lg.newImage(path)
image:setF... | gpl-2.0 |
Elkazan/darkstar | scripts/zones/Outer_RaKaznar/npcs/Liseran_Door_Exit.lua | 17 | 1227 | -----------------------------------
-- Area: Outer Ra'Kaznar
-- NPC: Liseran Door Exit
-- Zones out to Kamihr Drifts (zone 267)
-- @zone 274
-- @pos -34.549 -181.334 -20.031
-----------------------------------
package.loaded["scripts/zones/Outer_RaKaznar/TextIDs"] = nil;
-----------------------------------
r... | gpl-3.0 |
Vadavim/test | scripts/zones/Yuhtunga_Jungle/Zone.lua | 25 | 4227 | -----------------------------------
--
-- Zone: Yuhtunga_Jungle (123)
--
-----------------------------------
package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Yuhtunga_Jungle/TextID... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua | 16 | 2202 | -----------------------------------
-- Area: Batallia Downs [S]
-- NPC: Cavernous Maw
-- @pos -48 0 435 84
-- Teleports Players to Batallia Downs
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
hoku586/darkstar | scripts/globals/items/cup_of_chamomile_tea.lua | 12 | 1477 | -----------------------------------------
-- ID: 4603
-- Item: cup_of_chamomile_tea
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 8
-- Vitality -2
-- Charisma 2
-- Magic Regen While Healing 1
-- Sleep resistance -30
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
L3E8S0S6E5N1OA5N6D3T8W5O/MMMMMM | bot/bot.lua | 4 | 6839 | 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")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Elkazan/darkstar | scripts/globals/items/black_ghost.lua | 18 | 1260 | -----------------------------------------
-- ID: 5138
-- Item: Black Ghost
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
3scale/docker-gateway | spec/policy/caching/caching_spec.lua | 1 | 4683 | local resty_lrucache = require('resty.lrucache')
describe('Caching policy', function()
local cache
local caching_policy
local cache_handler
before_each(function()
cache = resty_lrucache.new(1)
-- The code uses ngx.shared.dict and it defines .add(), resty_lrucache
-- does not, so we need to implem... | mit |
Elkazan/darkstar | scripts/zones/Gusgen_Mines/npcs/Degga.lua | 34 | 1186 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Degga
-- Type: Standard Info NPC
-- @pos 40 -68 -259
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globa... | gpl-3.0 |
Vadavim/test | scripts/globals/items/baked_apple.lua | 35 | 1281 | -----------------------------------------
-- ID: 4406
-- Item: Baked Apple
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 20
-- Agility -1
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
hoku586/darkstar | scripts/globals/items/bowl_of_humpty_soup.lua | 12 | 1393 | -----------------------------------------
-- ID: 4521
-- Item: Bowl of Humpty Soup
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health % 6
-- Health Cap 35
-- Magic 5
-- Health Regen While Healing 5
-----------------------------------------
require("scripts/globals/status");
--------... | gpl-3.0 |
Vadavim/test | scripts/globals/weaponskills/atonement.lua | 12 | 4764 | -----------------------------------
-- Atonement
-- TODO: This needs to be reworked, as this weapon skill does damage based on current enmity, not based on stat modifiers. http://wiki.ffxiclopedia.org/wiki/Atonement http://www.bg-wiki.com/bg/Atonement
-- Sword weapon skill
-- Skill Level: N/A
-- Delivers a Twof... | gpl-3.0 |
CommandPost/CommandPost | src/tests/plugins/core/tangent/manager/group_spec.lua | 2 | 1618 | -- local log = require("hs.logger").new("t_binding")
-- local inspect = require("hs.inspect")
local require = require
local spec = require "cp.spec"
local expect = require "cp.spec.expect"
local group = require "group"
local describe, it = spec.describe, spec... | mit |
Elkazan/darkstar | scripts/zones/Norg/npcs/HomePoint#1.lua | 17 | 1232 | -----------------------------------
-- Area: Norg
-- NPC: HomePoint#1
-- @pos -26.910 0.296 -47.164 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/homepoint");
... | gpl-3.0 |
likunpeng/cocos | QuickGame/runtime/mac/PrebuiltRuntimeLua.app/Contents/Resources/src/framework/cocos2dx/OpenglConstants.lua | 78 | 27074 | --Encapsulate opengl constants.
gl = gl or {}
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_M... | apache-2.0 |
Elkazan/darkstar | scripts/zones/Apollyon/mobs/Na_Qba_Chirurgeon.lua | 16 | 2315 | -----------------------------------
-- Area: Apollyon CS
-- NPC: Na_Qba_Chirurgeon
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
------------------... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Korroloka_Tunnel/npcs/qm2.lua | 14 | 3352 | -----------------------------------
-- Area: Korroloka Tunnel
-- NPC: ??? (qm2)
-- Involved In Quest: Ayame and Kaede
-- @pos -208 -9 176 173
-----------------------------------
package.loaded["scripts/zones/Korroloka_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
req... | gpl-3.0 |
tcdog001/ap_project | feeds/luci/protocols/ipv6/luasrc/model/network/proto_6x4.lua | 78 | 1602 | --[[
LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions
Copyright 2011 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/L... | gpl-2.0 |
nimaghorbani/dozdi4 | plugins/search_youtube.lua | 674 | 1270 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
leeyiw/ngx_lua_anticc | cookie.lua | 2 | 1045 | local _M = {}
_M.challenge_code_tmpl = [[
<html>
<head>
<script type="text/javascript">
if (document.cookie) {
document.cookie += '; ';
}
document.cookie += '%s=%s';
window.location.reload();
</script>
</head>
<body>
</body>
]]
function _M.get()
local headers = ngx.req.get_headers(... | apache-2.0 |
Vadavim/test | scripts/zones/Port_Windurst/npcs/_6o7.lua | 37 | 1091 | -----------------------------------
-- Area: Port Windurst
-- NPC: Door: Arrivals Entrance
-- @zone 240
-- @pos 212 -6 96
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("script... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Mamool_Ja_Training_Grounds/Zone.lua | 17 | 1133 | -----------------------------------
--
-- Zone: Mamool_Ja_Training_Grounds
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Mamool_Ja_Training_Grounds/TextIDs"] = nil;
require("scripts/zones/Mamool_Ja_Training_Grounds/TextIDs");
------------------------------... | gpl-3.0 |
Elkazan/darkstar | scripts/globals/abilities/earth_shot.lua | 22 | 2949 | -----------------------------------
-- Ability: Earth Shot
-- Consumes a Earth Card to enhance earth-based debuffs. Deals earth-based magic damage
-- Rasp Effect: Enhanced DoT and DEX-, Slow Effect +10%
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p2.lua | 27 | 2156 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Dilapidated Gate
-- Entrance to Riverne Site #B01
-- @pos -259 -30 276 178
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua | 17 | 1731 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Explorer Moogle
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,t... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Bastok_Markets/npcs/Wulfnoth.lua | 53 | 1818 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Wulfnoth
-- Type: Goldsmithing Synthesis Image Support
-- @pos -211.937 -7.814 -56.292 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
LuaExtend/LuaExtend | tools/ZeroBraneStudio/myprograms/turtle-samples/demo.lua | 2 | 1035 | --[[ This program runs scripts that demonstrate what you can do with turtle graphics. To execute this program [click here](macro:run), press `F6` on the keyboard, or click on `Project | Run` menu at the top of this window. After you explore the demos you can open each of the files to study and tweak them. ]]
require "... | apache-2.0 |
CommandPost/CommandPost | src/plugins/finalcutpro/tangent/trim.lua | 2 | 2651 | --- === plugins.finalcutpro.tangent.trim ===
---
--- Final Cut Pro Tangent Trim Group
local require = require
local fcp = require("cp.apple.finalcutpro")
local i18n = require("cp.i18n")
local mod = {}
--- plugins.finalcutpro.tangent.trim.gro... | mit |
szagoruyko/torch7 | CmdLine.lua | 3 | 7177 | local CmdLine = torch.class('torch.CmdLine')
local function strip(str)
return string.match(str, '%-*(.*)')
end
local function pad(str, sz)
return str .. string.rep(' ', sz-#str)
end
function CmdLine:error(msg)
print('')
io.stderr:write(msg)
print('')
self:help()
os.exit(1)
end
function CmdLine:... | bsd-3-clause |
hoku586/darkstar | scripts/zones/Norg/npcs/Quntsu-Nointsu.lua | 27 | 2965 | -----------------------------------
-- Area: Norg
-- NPC: Quntsu-Nointsu
-- Title Change NPC
-- @pos -67 -1 34 252
-----------------------------------
require("scripts/globals/titles");
local title2 = { HONORARY_DOCTORATE_MAJORING_IN_TONBERRIES , BUSHIDO_BLADE , BLACK_MARKETEER , CRACKER_OF_THE_SECRET_CODE ,
... | gpl-3.0 |
Vadavim/test | scripts/zones/Stellar_Fulcrum/mobs/Kam_lanaut.lua | 27 | 1401 | -----------------------------------
-- Area: Stellar Fulcrum
-- NPC: Kam'lanaut
-- Zilart Mission 8 BCNM Fight
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
local blades = {567, 570, 572, 569, 568, 571};
------... | gpl-3.0 |
Moodstocks/fbcunn | test/test_DataParallelComprehensive.lua | 8 | 4447 | -- Copyright 2004-present Facebook. All Rights Reserved.
require 'optim'
require 'cunn'
require 'fbcunn' -- For nn.DataParallel
require 'fbnn' -- For nn.Optim
local base_gpu = 1 -- Primary GPU to use
local num_gpus = 2 -- We will use {base_gpu, base_gpu+1, etc} with modulus
torch.setdefaulttensortype('torch.Doubl... | bsd-3-clause |
Vadavim/test | scripts/zones/Windurst_Woods/npcs/Ronana.lua | 12 | 1748 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Ronana
-- Type: Bonecraft Image Support
-- @pos -1.540 -6.25 -144.517 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/... | gpl-3.0 |
BraedonWooding/ProjectPorcupine | Assets/StreamingAssets/LUA/Quest.lua | 20 | 1531 | -------------------------------------------------------
-- Project Porcupine Copyright(C) 2016 Team Porcupine
-- This program comes with ABSOLUTELY NO WARRANTY; This is free software,
-- and you are welcome to redistribute it under certain conditions; See
-- file LICENSE, which is part of this source code package, for ... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Mamook/npcs/qm1.lua | 30 | 1312 | -----------------------------------
-- Area: Mamook
-- NPC: ??? (Spawn Chamrosh(ZNM T1))
-- @pos 206 14 -285 65
-----------------------------------
package.loaded["scripts/zones/Mamook/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mamook/TextIDs");
require("scripts/globals/status");
----... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Wajaom_Woodlands/npcs/leypoint.lua | 17 | 2538 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: Leypoint
-- Teleport point, Quest -- NAVIGATING THE UNFRIENDLY SEAS RELATED --
-- @pos -200.027 -8.500 80.058 51
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require("scripts/globals/settings");
re... | gpl-3.0 |
hclhkbu/dlbench | synthetic/experiments/torch/cnn/resnet/datasets/cifar10-gen.lua | 11 | 2010 | --
-- Copyright (c) 2016, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Script to co... | mit |
hoku586/darkstar | scripts/zones/West_Sarutabaruta_[S]/TextIDs.lua | 7 | 1235 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
Vadavim/test | scripts/zones/Bibiki_Bay/npcs/Toh_Zonikki.lua | 11 | 4705 | -----------------------------------
-- Area: Bibiki Bay
-- NPC: Toh Zonikki
-- Type: Clamming NPC
-- @pos -371 -1 -421 4
-----------------------------------
package.loaded["scripts/zones/Bibiki_Bay/TextIDs"] = nil;
require("scripts/zones/Bibiki_Bay/TextIDs");
require("scripts/globals/keyitems");
-------------------... | gpl-3.0 |
githubmereza/telejack_1 | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
mirbot1122/uzzbot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Vadavim/test | scripts/zones/Norg/npcs/Ryoma.lua | 17 | 3871 | -----------------------------------
-- Area: Norg
-- NPC: Ryoma
-- Start and Finish Quest: 20 in Pirate Years, I'll Take the Big Box, True Will
-- Involved in Quest: Ayame and Kaede
-- @pos -23 0 -9 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
--------------------... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Kazham/npcs/Jakoh_Wahcondalo.lua | 19 | 1677 | -----------------------------------
-- Area: Kazham
-- NPC: Jakoh Wahcondalo
-- @pos 101 -16 -115 250
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Kazham/TextIDs");
-----------... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Windurst_Woods/npcs/Retto-Marutto.lua | 27 | 1193 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Retto-Marutto
-- Guild Merchant NPC: Bonecrafting Guild
-- @pos -6.142 -6.55 -132.639 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/The_Boyahda_Tree/npcs/Treasure_Coffer.lua | 17 | 4279 | -----------------------------------
-- Area: The Boyahada Tree
-- NPC: Treasure Coffer
-- @pos 27 6 144 153
-----------------------------------
package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/key... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Arrapago_Remnants/IDs.lua | 13 | 1635 | Arrapago = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6384, -- Obtained: <item>
GIL_OBTAINED = 6385, -- Obtained <number> gil
KEYITEM_OBTAINED = 6387, -- Obtain... | gpl-3.0 |
hoku586/darkstar | scripts/globals/items/bowl_of_ulbuconut_milk_+1.lua | 12 | 1209 | -----------------------------------------
-- ID: 5977
-- Item: Bowl of Ulbuconut Milk +1
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Charisma +4
-- Vitality -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnI... | gpl-3.0 |
hoku586/darkstar | scripts/zones/LaLoff_Amphitheater/Zone.lua | 30 | 1744 | -----------------------------------
--
-- Zone: LaLoff_Amphitheater (180)
--
-----------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/LaLoff_Amphitheater/TextIDs");
-----------... | gpl-3.0 |
suzuren/some-mmorpg | 3rd/skynet/lualib/http/httpc.lua | 13 | 3184 | local socket = require "http.sockethelper"
local url = require "http.url"
local internal = require "http.internal"
local dns = require "dns"
local string = string
local table = table
local httpc = {}
local function request(fd, method, host, url, recvheader, header, content)
local read = socket.readfunc(fd)
local wr... | mit |
tcdog001/ap_project | feeds/luci/modules/rpc/luasrc/jsonrpcbind/uci.lua | 81 | 1914 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
ht... | gpl-2.0 |
Elkazan/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_545.lua | 17 | 1599 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Involved in Missions: THREE_PATHS
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
CommandPost/CommandPost | src/extensions/cp/apple/finalcutpro/inspector/color/ColorBoard.lua | 2 | 11040 | --- === cp.apple.finalcutpro.inspector.color.ColorBoard ===
---
--- Color Board Module.
local require = require
--local log = require "hs.logger".new "colorBoard"
local Aspect = require "cp.apple.finalcutpro.inspector.color.ColorBoardAspect"
local axutils ... | mit |
Vadavim/test | scripts/zones/Windurst_Woods/npcs/Manyny.lua | 36 | 1453 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Manyny
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst_Woods/Tex... | gpl-3.0 |
Banasura/ntui | level0-script.lua | 2 | 8986 | --[[ NEVER TRUST USER'S INPUT non-released v0.1 alpha
--------------------------------------------------------------------
This file is part of N.T.U.I.
N.T.U.I. 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 Soft... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Port_Windurst/npcs/Janshura-Rashura.lua | 14 | 2913 | -----------------------------------
-- Area: Port Windurst
-- NPC: Janshura Rashura
-- Starts Windurst Missions
-- @pos -227 -8 184 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
-----------------------------------
... | gpl-3.0 |
tcdog001/ap_project | feeds/luci/libs/nixio/axTLS/www/lua/download.lua | 180 | 1550 | #!/usr/local/bin/lua
require"luasocket"
function receive (connection)
connection:settimeout(0)
local s, status = connection:receive (2^10)
if status == "timeout" then
coroutine.yield (connection)
end
return s, status
end
function download (host, file, outfile)
--local f = assert (io.open (outfile, "w"))
loc... | gpl-2.0 |
Elkazan/darkstar | scripts/zones/Norg/npcs/Parlemaille.lua | 34 | 1924 | -----------------------------------
-- Area: Norg
-- NPC: Parlemaille
-- Standard Info NPC
-----------------------------------
require("scripts/globals/pathfind");
local path = {
-20.369047, 1.097733, -24.847025,
-20.327482, 1.097733, -25.914215,
-20.272402, 1.097733, -27.108938,
-20.094927, 1.097733, -26... | gpl-3.0 |
likunpeng/cocos | QuickGame/frameworks/cocos2d-x/external/lua/luajit/src/dynasm/dasm_arm.lua | 74 | 34483 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | apache-2.0 |
likunpeng/cocos | QuickGame/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua | 6 | 3682 |
--------------------------------
-- @module Sprite3D
-- @extend Node,BlendProtocol
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Sprite3D] setCullFaceEnabled
-- @param self
-- @param #bool enable
--------------------------------
-- @overload self, cc.Texture2D
-- @... | apache-2.0 |
Vadavim/test | scripts/zones/Rolanberry_Fields_[S]/npcs/Cavernous_Maw.lua | 13 | 1434 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- @pos -198 8 360 91
-- Teleports Players to Rolanberry Fields
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Vadavim/test | scripts/zones/Northern_San_dOria/npcs/Miageau.lua | 17 | 2458 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Miageau
-- Type: Quest Giver NPC
-- @zone: 231
-- @pos 115 0 108
--
-- Starts and Finishes: Waters of Cheval
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
---------------------... | gpl-3.0 |
otservme/global1041 | data/actions/scripts/pits of inferno quest/pitsOfInfernoQuestLevers.lua | 1 | 2516 | local pos = {
[2050] = {text = "You flipped the first level. Hurry up and find the next one!", number = 1},
[2051] = {text = "You flipped the second level. Hurry up and find the next one!", number = 2},
[2052] = {text = "You flipped the third level. Hurry up and find the next one!", number = 3},
[2053] = {text = "Y... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.