repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
Neopallium/LuaNativeObjects | examples/gdImage.nobj.lua | 1 | 2027 | object "gdImage" {
-- Use `ffi_cdef` records to pass extra C type info to FFI.
ffi_cdef[[
typedef struct gdImageStruct gdImage;
]],
-- The first constructor can be called as: gd.gdImage(x,y) or gd.gdImage.new(x,y)
-- The default name for a constructor is 'new'
constructor {
c_call "gdImage *" "gdImageCreate"... | mit |
TeleDALAD/DALADtm | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
dxmgame/dxm-cocos | src/apps/lua-tests/Resources/src/CocoStudioTest/CocoStudioSceneTest/TriggerCode/cons.lua | 10 | 1517 | local NodeInRect = class("NodeInRect")
NodeInRect._tag = -1
NodeInRect._origin = nil
NodeInRect._size = nil
function NodeInRect:ctor()
self._tag = -1
self._origin = nil
self._size = nil
self._origin = cc.p(0, 0)
self._size = cc.size(0, 0)
end
function NodeInRect:init()
return true
end
... | mit |
TeoTwawki/darkstar | scripts/globals/items/prime_angler_stewpot.lua | 11 | 1854 | -----------------------------------------
-- ID: 5612
-- Item: Prime Angler Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% (cap 200)
-- MP +15
-- Dexterity 2
-- Agility 1
-- Mind 1
-- HP Recovered while healing 7
-- MP Recovered while healing 2
-- Acc... | gpl-3.0 |
TeoTwawki/darkstar | scripts/commands/hastitle.lua | 14 | 1382 | ---------------------------------------------------------------------------------------------------
-- func: hastitle
-- desc: Check if player already has a title.
---------------------------------------------------------------------------------------------------
require("scripts/globals/titles");
cmdprops =
{
pe... | gpl-3.0 |
riidt/neox | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ClippingNode.lua | 1 | 1435 |
--------------------------------
-- @module ClippingNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- @function [parent=#ClippingNode] isInverted
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ClippingNode] setI... | mit |
TeoTwawki/darkstar | scripts/zones/Port_San_dOria/npcs/Miene.lua | 2 | 2280 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Miene
-- NPC for Quest "The Pickpocket"
-- !pos 0.750 -4.000 -81.438 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/settings")
require("scrip... | gpl-3.0 |
detect00r/zes | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
Elv13/awesome-1 | tests/examples/shims/beautiful.lua | 5 | 5141 | local lgi = require("lgi")
local Pango = lgi.Pango
local cairo = lgi.cairo
-- A simple Awesome logo
local function logo()
local img = cairo.ImageSurface.create(cairo.Format.ARGB32, 22, 22)
local cr = cairo.Context(img)
-- Awesome default #555555
cr:set_source_rgb(0.21568627451, 0.21568627451, 0.215686... | gpl-2.0 |
TeoTwawki/darkstar | scripts/globals/weaponskills/sunburst.lua | 10 | 1319 | -----------------------------------
-- Sunburst
-- Staff weapon skill
-- Skill Level: 150
-- Deals light or darkness elemental damage. Damage varies with TP.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Belt & Aqua Belt.
-- Element: Light/Dark
-- Modifiers: : STR:40% MND:40%
-- 100%TP ... | gpl-3.0 |
SBT-community/Starbound_RU | translations/others/items/buildscripts/buildweapon.lua | 8 | 9186 | require "/scripts/util.lua"
require "/scripts/vec2.lua"
require "/scripts/versioningutils.lua"
require "/scripts/staticrandom.lua"
require "/items/buildscripts/abilities.lua"
function build(directory, config, parameters, level, seed)
local configParameter = function(keyName, defaultValue)
if parameters[keyName] ... | apache-2.0 |
981213/luci-1 | applications/luci-app-qos-guoguo/luasrc/model/cbi/qos_guoguo/download.lua | 2 | 5311 | --[[
luci for QoS by GuoGuo
Based on luci-app-qos-gargoyle.
]]--
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
local sys = require "luci.sys"
m = Map("qos_guoguo", translate("Download Settings"))
s = m:section(TypedSection, "download_class", translate("Service Classes"),
translate("Each ... | apache-2.0 |
TeoTwawki/darkstar | scripts/zones/Bastok_Markets/npcs/Hortense.lua | 12 | 1211 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Hortense
-- Standard Merchant NPC
-- !pos -82.503 -4.849 -132.376 235
-----------------------------------
local ID = require("scripts/zones/Bastok_Markets/IDs")
require("scripts/globals/shop")
function onTrigger(player,npc)
local stock =
{
... | gpl-3.0 |
ReWrite94/iLife | client/Quests/Scripts/27.lua | 2 | 2354 | local QuestID = 27
local Quest = Quests[QuestID]
local QuestFunctions = {}
local QuestElements = {}
--Set this true to lock this script.
local QuestLocked = false
--[[
ACCEPT TRIGGERS HERE
]]
-- ID: QuestID
-- State = Aktueller Queststatus
-- tblData = Zu übertragende Daten
local CallClientQuestScript = function(ID,... | mit |
GoogleCloudPlatform/ops-agent | confgenerator/testdata/valid/linux/logging-receiver_nginx/225e92459016a127db9896a0161a1d93.lua | 1 | 1165 |
function process(tag, timestamp, record)
local __field_0 = (function()
return record["agent.googleapis.com/log_file_path"]
end)();
local __field_1 = (function()
if record["logging.googleapis.com/labels"] == nil
then
return nil
end
return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"]
e... | apache-2.0 |
TeoTwawki/darkstar | scripts/globals/spells/bluemagic/magnetite_cloud.lua | 12 | 1868 | -----------------------------------------
-- Spell: Magnetite Cloud
-- Deals earth damage to enemies within a fan-shaped area originating from the caster. Additional effect: Weight
-- Spell cost: 86 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+2
-- Level: 46
-- ... | gpl-3.0 |
TeoTwawki/darkstar | scripts/globals/abilities/pets/attachments/ice_maker.lua | 11 | 1758 | -----------------------------------
-- Attachment: Ice Maker
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
pet:addListener("MAGIC_START", "AUTO_ICE_MAKER_START", function(pet, spell, action)
if spell:getSkillType() ~= dsp.ski... | gpl-3.0 |
dxmgame/dxm-cocos | src/apps/lua-simulator/Resources/src/cocos/cocostudio/DeprecatedCocoStudioFunc.lua | 61 | 3456 | if nil == ccs then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of GUIReader will be deprecated begin
local GUIReaderDeprecated = { }
function GUIReaderDeprecated.shareRe... | mit |
TeoTwawki/darkstar | scripts/globals/items/plate_of_patlican_salata.lua | 11 | 1051 | -----------------------------------------
-- ID: 5582
-- Item: plate_of_patlican_salata
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Agility 4
-- Vitality -1
-- Evasion +6
-- hHP +2
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg... | gpl-3.0 |
Elv13/awesome-1 | tests/examples/wibox/container/defaults/arcchart.lua | 5 | 1117 | --DOC_HIDE_ALL
--DOC_GEN_IMAGE
local wibox = require("wibox")
local beautiful = require("beautiful")
return {
text = "Before",
align = "center",
valign = "center",
widget = wibox.widget.textbox,
},
{
{
{
text = "After",
align = "center",
valign ... | gpl-2.0 |
WeakAuras/WeakAuras2 | WeakAuras/Transmission.lua | 1 | 22568 | --[[ Transmisson.lua
This file contains all transmission related functionality, e.g. import/export and chat links.
For that it hooks into the chat frame and addon message channels.
Noteable functions in this file are:
DisplayToString(id, forChat)
Converts the display id to a plain text string
DataToString(id)
Conver... | gpl-2.0 |
ReWrite94/iLife | client/Manager/cWaffentruckManager.lua | 2 | 5544 | --
-- Created by IntelliJ IDEA.
-- User: Noneatme
-- Date: 22.12.2014
-- Time: 11:30
-- Project: MTA iLife
--
cWaffentruckManager = {};
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function cWaffentruckManager:new(...)
local ... | mit |
detect00r/zes | plugins/moderation.lua | 336 | 9979 | do
local function check_member(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
local username = v.username
data[tostring(m... | gpl-2.0 |
IoveSunny/DreamBox | feeds/luci/luci/luci/applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 11 | 1695 | --[[
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
h... | gpl-2.0 |
ddevelhanter/gamecode4 | Assets/Scripts/LevelInit.lua | 44 | 3469 | --========================================================================
-- LevelInit.lua : A script that's executed when the level is initializing
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - ... | lgpl-3.0 |
joseph3713/gamecode4 | Assets/Scripts/LevelInit.lua | 44 | 3469 | --========================================================================
-- LevelInit.lua : A script that's executed when the level is initializing
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - ... | lgpl-3.0 |
wiremod/wire | lua/entities/gmod_wire_expression2/core/files.lua | 1 | 11841 | --[[
File Extension
By: Dan (McLovin)
]]--
local cv_transfer_delay = CreateConVar( "wire_expression2_file_delay", "5", { FCVAR_ARCHIVE } )
local cv_max_transfer_size = CreateConVar( "wire_expression2_file_max_size", "300", { FCVAR_REPLICATED, FCVAR_ARCHIVE } ) -- in kib
local download_chunk_size = 20000 -- Our o... | apache-2.0 |
981213/luci-1 | applications/luci-app-mwan3/luasrc/model/cbi/mwan/notify.lua | 6 | 1796 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local fs = require "nixio.fs"
local ut = require "luci.util"
script = "/etc/mwan3.user"
m5 = SimpleForm("luci", translate("MWAN - Notification"))
... | apache-2.0 |
riidt/neox | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SpriteBatchNode.lua | 1 | 4595 |
--------------------------------
-- @module SpriteBatchNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @function [parent=#SpriteBatchNode] appendChild
-- @param self
-- @param #cc.Sprite sprite
--------------------------------
-- @function [parent=#SpriteBatchNo... | mit |
TeoTwawki/darkstar | scripts/zones/Rabao/IDs.lua | 3 | 2384 | -----------------------------------
-- Area: Rabao
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.RABAO] =
{
text =
{
HOMEPOINT_SET = 2, -- Home point set!
ITEM_CANNOT_BE_OBTAINED = 6404, -- Y... | gpl-3.0 |
cuit-zhaxin/quick-ng | cocos/scripting/lua-bindings/auto/api/DirectionLight.lua | 8 | 1377 |
--------------------------------
-- @module DirectionLight
-- @extend BaseLight
-- @parent_module cc
--------------------------------
-- Returns the Direction in parent.
-- @function [parent=#DirectionLight] getDirection
-- @param self
-- @return vec3_table#vec3_table ret (return value: vec3_table)
--------... | mit |
cuit-zhaxin/quick-ng | quick/samples/touch/src/app/MyApp.lua | 8 | 1490 |
require("config")
require("framework.init")
local MyApp = class("MyApp", cc.mvc.AppBase)
local TESTS_LIST = {
"TestSingleTouch1Scene",
"TestSingleTouch2Scene",
"TestSingleTouch3Scene",
"TestSingleTouch4Scene",
"TestMultiTouches1Scene",
"TestMultiTouches2Scene",
"TestMultiTouches3Scene",
}... | mit |
TeoTwawki/darkstar | scripts/zones/RuLude_Gardens/npcs/Pakh_Jatalfih.lua | 2 | 2396 | -----------------------------------
-- Area: Ru'Lud Gardens
-- NPC: Pakh Jatalfih
-- !pos 34 8 -35 243
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,np... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Count_Vine.lua | 1 | 1275 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Count Vine
-----------------------------------
local ID = require("scripts/zones/Dynamis-Xarcabard/IDs")
mixins =
{
require("scripts/mixins/dynamis_beastmen"),
require("scripts/mixins/job_special")
}
-----------------------------------
fun... | gpl-3.0 |
kaszubowski/nadzoru | class/scada/server.lua | 1 | 22057 | --[[
This file is part of nadzoru.
nadzoru is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
nadzoru is distri... | lgpl-3.0 |
yangxuan0261/Testmmo-server | server/lualib/agent/friend_handler.lua | 1 | 2032 | local skynet = require "skynet"
-- local sharedata = require "sharedata"
local sharedata = require "skynet.sharedata"
local syslog = require "syslog"
local handler = require "agent.handler"
local dbpacker = require "db.packer"
local RPC = {}
local CMD = {}
handler = handler.new (RPC, nil, CMD)
local user
local datab... | mit |
mentor81/k2hV2 | plugins/minecraft.lua | 624 | 2605 | local usage = {
"!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565",
"!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.",
}
local ltn12 = require "ltn12"
local function mineSearch(ip, port, receiver) --25565
local responseText = ""
l... | gpl-2.0 |
cohadar/love-graphics-experiments | text.lua | 1 | 2277 | --- @module text
local text = {}
local MAX_FLOATING = 20
local FPS = 60
local FLOAT_START_Y = 100
local FLOAT_SPACING = 12
local _floating = {}
local _lastFloating = 0
local _lastY = 100
local _status = { text = "welcome", duration = 10 * FPS, active = true }
---------------------------------------------------------... | mit |
sundream/skynet | service/sharedatad.lua | 8 | 3329 | local skynet = require "skynet"
local sharedata = require "skynet.sharedata.corelib"
local table = table
local cache = require "skynet.codecache"
cache.mode "OFF" -- turn off codecache, because CMD.new may load data file
local NORET = {}
local pool = {}
local pool_count = {}
local objmap = {}
local collect_tick = 10
... | mit |
wiremod/wire | lua/entities/gmod_wire_grabber.lua | 3 | 5636 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Grabber"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.WireDebugName = "Grabber"
function ENT:SetupDataTables()
self:NetworkVar( "Float", 0, "BeamLength" )
end
if CLIENT then return end -- No more client
function ENT:Initialize()
self:Phys... | apache-2.0 |
dxmgame/dxm-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/RichElementText.lua | 13 | 1722 |
--------------------------------
-- @module RichElementText
-- @extend RichElement
-- @parent_module ccui
--------------------------------
-- brief Initialize a RichElementText with various arguments.<br>
-- param tag A integer tag value.<br>
-- param color A color in Color3B.<br>
-- param opacity A opacity in GLubyt... | mit |
gameCreator2s/BorderExpansion | Tools/exceltoconf/exceltoconf/bin/Debug/client/tb_table_alliance_build.lua | 1 | 12709 | tb_table_alliance_build = {
[1]={
id=1,
type=101,
name="联盟要塞",
level=1,
uplevel_cost={{1,600000,},},
need_build_level={{103,1,},},
effect={{1,1,},},
des="联盟等级提升为1级",
},
[2]={
id=2,
type=101,
name="联盟要塞",
level=2,
uplevel_cost={{1,3000000,},},
need_build_leve... | apache-2.0 |
TeoTwawki/darkstar | scripts/globals/spells/blind.lua | 12 | 1512 | -----------------------------------------
-- Spell: Blind
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
require("scripts/globals/utils")
-----------------------------------------
function onMagicCastingCheck(caster, target, s... | gpl-3.0 |
koltegirish/esp8266-devkit | Espressif/examples/nodemcu-firmware/lua_examples/yet-another-dht22.lua | 65 | 2195 | ------------------------------------------------------------------------------
-- DHT11/22 query module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- print("DHT11", dofile("dht22.lua").read(4))
-- print("DHT22", dofile("dht22.lua").read(4, true))
-- NB: ... | gpl-3.0 |
JakubLukas/LumixEngine | data/pipelines/ssao.lua | 1 | 1944 | radius = 0.2
intensity = 1
local ssao_size = 1024
function blur(env, buffer, format, w, h, tmp_rb_dbg_name)
local blur_buf = env.createRenderbuffer(w, h, false, format, tmp_rb_dbg_name)
env.setRenderTargets(blur_buf)
env.viewport(0, 0, w, h)
env.drawArray(0, 4, env.blur_shader
, { buffer }
, { {1.0 / w, 1.0 /... | mit |
TeoTwawki/darkstar | scripts/globals/items/crepe_belle_helene.lua | 11 | 1185 | -----------------------------------------
-- ID: 5778
-- Item: Crepe Belle Helene
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +3
-- Magic Accuracy +21% (cap 50)
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
TeoTwawki/darkstar | scripts/globals/items/serving_of_dusky_indulgence.lua | 11 | 1303 | -----------------------------------------
-- ID: 5553
-- Item: Serving of Dusky Indulgence
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10
-- MP +5% Cap 30
-- Intelligence +5
-- HP Recovered while healing +2
-- MP Recovered while healing +2
--------------------... | gpl-3.0 |
dxmgame/dxm-cocos | src/oslibs/cocos/cocos-src/external/lua/luasocket/script/socket/url.lua | 31 | 11037 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
--------------------------------------------------------------... | mit |
loud-hound/effil | tests/lua/gc.lua | 2 | 2263 | require "bootstrap-tests"
local gc = effil.gc
test.gc.tear_down = default_tear_down
test.gc.cleanup = function ()
collectgarbage()
gc.collect()
test.equal(gc.count(), 1)
for i = 0, 10000 do
local tmp = effil.table()
end
collectgarbage()
gc.collect()
test.equal(gc.count(), 1)... | mit |
jhegg/wow-heroic-raid-ready | HeroicRaidReady/lib/LibStub/tests/test2.lua | 100 | 1112 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
for major, library in LibStub:IterateLibraries() do
-- check that MyLib doesn't exist yet, by iterating through all the libraries
assert(major ~= "MyLib")
end
assert(not LibStub:GetLibrary("MyLib", true)) -- check that MyLib doesn't ... | mit |
GoogleCloudPlatform/ops-agent | confgenerator/testdata/valid/linux/logging-receiver_mysql/11ac784ca2ed5e7de92e22eddba3eb6c.lua | 1 | 1163 |
function process(tag, timestamp, record)
local __field_0 = (function()
return record["agent.googleapis.com/log_file_path"]
end)();
local __field_1 = (function()
if record["logging.googleapis.com/labels"] == nil
then
return nil
end
return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"]
e... | apache-2.0 |
cuit-zhaxin/quick-ng | cocos/scripting/lua-bindings/auto/api/EaseBackIn.lua | 7 | 1027 |
--------------------------------
-- @module EaseBackIn
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseBackIn action. If creation failed, return nil.
-- @fu... | mit |
X-Coder/SBEP-Weapons | lua/entities/holobutton/cl_init.lua | 1 | 9697 | include('shared.lua')
local BMat = Material( "tripmine_laser" )
local SMat = Material( "sprites/light_glow02_add" )
ENT.RenderGroup = RENDERGROUP_BOTH
surface.CreateFont ("Trebuchet", {
font = "TrebuchetH",
size = 25,
weight = 500,
antialias = true,
shadow = false,
} )
function ENT:Initialize()
self.IncZ = 0
sel... | apache-2.0 |
TeoTwawki/darkstar | scripts/globals/spells/voidstorm.lua | 12 | 1293 | --------------------------------------
-- Spell: Voidstorm
-- Changes the weather around target party member to "gloomy."
--------------------------------------
require("scripts/globals/magic")
require("scripts/globals/status")
--------------------------------------
function onMagicCastingCheck(caster, target, spe... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Port_Windurst/npcs/Hohbiba-Mubiba.lua | 12 | 1078 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hohbiba-Mubiba
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs")
require("scripts/globals/shop")
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
local stock =
... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Bastok_Markets/npcs/Wulfnoth.lua | 6 | 1274 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Wulfnoth
-- Type: Goldsmithing Synthesis Image Support
-- !pos -211.937 -7.814 -56.292 235
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/crafting");
local ID = require("scripts/zones/Bastok_Markets/IDs... | gpl-3.0 |
GoogleCloudPlatform/ops-agent | confgenerator/testdata/valid/linux/logging-receiver_couchbase/c0d36db93e58b33b322082768a734a61.lua | 1 | 1174 |
function process(tag, timestamp, record)
local __field_0 = (function()
return record["agent.googleapis.com/log_file_path"]
end)();
local __field_1 = (function()
if record["logging.googleapis.com/labels"] == nil
then
return nil
end
return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"]
e... | apache-2.0 |
czfshine-self/ds_mod_creator | tool/批量动画--linux/zip.lua | 4 | 41005 | return {
-- Table: {1}
{
["maxwelllight"]={2},
["spiderden"]={3},
["batbat"]={4},
["mole"]={5},
["cave_banana_tree"]={6},
["pond"]={7},
["walrus_camp"]={8},
["boomerang"]={9},
["walrus"]={10},
["mosquito"]={11},
["plant_normal"]={12},
["firepit"]={13},
["papyrus"]={14},
["rabbi... | gpl-2.0 |
cuit-zhaxin/quick-ng | cocos/scripting/lua-bindings/auto/api/FadeOutUpTiles.lua | 7 | 1314 |
--------------------------------
-- @module FadeOutUpTiles
-- @extend FadeOutTRTiles
-- @parent_module cc
--------------------------------
-- brief Create the action with the grid size and the duration.<br>
-- param duration Specify the duration of the FadeOutUpTiles action. It's a value in seconds.<br>
-- param grid... | mit |
dxmgame/dxm-cocos | src/oslibs/cocos/cocos-src/tests/lua-tests/src/KeypadTest/KeypadTest.lua | 13 | 1640 | local function KeypadMainLayer()
local layer = cc.Layer:create()
local function onEnter()
print("come in")
local s = cc.Director:getInstance():getWinSize()
local label = cc.Label:createWithTTF("Keypad Test", s_thonburiPath, 28)
layer:addChild(label, 0)
label:setAncho... | mit |
TeoTwawki/darkstar | scripts/globals/mobskills/skullbreaker.lua | 11 | 1097 | ---------------------------------------------
-- Skullbreaker
--
-- Description: Lowers enemy's INT. Chance of lowering INT varies with TP.
-- Type: Physical
-- Utsusemi/Blink absorb: 1 Shadow
-- Range: Melee
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/global... | gpl-3.0 |
cuit-zhaxin/quick-ng | external/lua/luajit/luajit-2.1/src/jit/bcsave.lua | 28 | 18091 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
prapin/premake-core | src/base/config.lua | 9 | 15931 | --
-- config.lua
-- Premake configuration object API
-- Copyright (c) 2011-2015 Jason Perkins and the Premake project
--
local p = premake
p.config = {}
local project = p.project
local config = p.config
---
-- Helper function for getlinkinfo() and gettargetinfo(); builds the
-- name parts for a configuration, ... | bsd-3-clause |
GoogleCloudPlatform/ops-agent | confgenerator/testdata/valid/linux/logging-receiver_forward_multiple_receivers_with_dot/3c585601a7ae432cb2188758a0a7943d.lua | 1 | 1167 |
function process(tag, timestamp, record)
local __field_0 = (function()
return record["agent.googleapis.com/log_file_path"]
end)();
local __field_1 = (function()
if record["logging.googleapis.com/labels"] == nil
then
return nil
end
return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"]
e... | apache-2.0 |
lindig/quest | share/mips.lua | 1 | 3012 | $file "demo.lua"
$line 1
--
-- $Id: mips.lua 3 2006-04-29 13:17:19Z lindig $
--
-- Sample Generator for Quest.
R = Rand
Mips = {}
Mips.members = R.choose(1,4) -- for structs, unions
Mips.argc = R.choose(1,8)
Mips.vargc = R.oneof { R.unit(0), R.choose(1,4) } -- vargv length
Mips.simple ... | bsd-2-clause |
Elv13/awesome-1 | tests/examples/wibox/awidget/prompt/hooks.lua | 4 | 2138 | --DOC_GEN_IMAGE --DOC_HIDE
local parent = ... --DOC_NO_USAGE --DOC_HIDE
local wibox = require( "wibox" ) --DOC_HIDE
local awful = { prompt = require("awful.prompt"),--DOC_HIDE
util = require("awful.util"), --DOC_HIDE
spawn = function () end } --DOC_HIDE
local be... | gpl-2.0 |
T4Larson/OpenTomb | scripts/strings/russian/generic.lua | 1 | 4140 | -- OPENTOMB GENERIC STRINGS - RUSSIAN LANGUAGE
-- by Lwmte, Jan 2015
--------------------------------------------------------------------------------
-- This set of strings is used globally in all engine versions for various
-- menu entries, notify pop-ups, inventory entries etc.
--------------------------------... | lgpl-3.0 |
TeoTwawki/darkstar | scripts/globals/abilities/pets/attachments/mana_channeler_ii.lua | 11 | 1251 | -----------------------------------
-- Attachment: Mana Channeler II
-----------------------------------
require("scripts/globals/status")
-----------------------------------
function onEquip(pet)
pet:addMod(dsp.mod.MATT, 20) -- Values unknown, best guess based on other attachment methods
pet:addMod(dsp.mod.A... | gpl-3.0 |
IoveSunny/DreamBox | feeds/luci/luci/luci/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | 11 | 10095 | --[[
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 |
ReWrite94/iLife | server/Manager/Achievement/cAchievementManager.lua | 2 | 1267 | CAchievementManager = inherit(cSingleton)
function CAchievementManager:constructor()
local start = getTickCount()
--Categories
local result = CDatabase:getInstance():query("SELECT * FROM achievement_category")
if (#result > 0) then
for k,v in ipairs(result) do
new(CAchievementCategory, v["ID"], v["Name"], v["... | mit |
libgui/luabind | example/glut/glut_bindings.lua | 38 | 1543 | quit = false
function resize_func(w, h)
local ratio = w / h
print('====== resize')
glMatrixMode(gl.PROJECTION)
glLoadIdentity()
glViewport(0,0,w,h)
gluPerspective(45,ratio,1,1000)
glMatrixMode(gl.MODELVIEW)
glLoadIdentity()
end
angle = 0
angle2 = 0
previous_time = 0
function display_func()
if quit the... | mit |
GoogleCloudPlatform/ops-agent | confgenerator/testdata/valid/linux/logging-receiver_hadoop_refresh_interval/4e27215af24d890aac36d668be04c8a1.lua | 2 | 1159 |
function process(tag, timestamp, record)
local __field_0 = (function()
return record["agent.googleapis.com/log_file_path"]
end)();
local __field_1 = (function()
if record["logging.googleapis.com/labels"] == nil
then
return nil
end
return record["logging.googleapis.com/labels"]["compute.googleapis.com/resource_name"]
e... | apache-2.0 |
IoveSunny/DreamBox | feeds/luci/luci/luci/libs/nixio/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | gpl-2.0 |
wiremod/wire | lua/wire/stools/button.lua | 8 | 1716 | WireToolSetup.setCategory( "Input, Output" )
WireToolSetup.open( "button", "Button", "gmod_wire_button", nil, "Buttons" )
if CLIENT then
language.Add( "tool.wire_button.name", "Button Tool (Wire)" )
language.Add( "tool.wire_button.desc", "Spawns a button for use with the wire system." )
language.Add( "WireButtonToo... | apache-2.0 |
TeoTwawki/darkstar | scripts/globals/items/b.e.w._pitaru.lua | 11 | 1039 | -----------------------------------------
-- ID: 5892
-- Item: b.e.w._pitaru
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- MP +9% (cap 130)
-- Increases rate of magic skill gains by 80%
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Port_Windurst/npcs/Hakkuru-Rinkuru.lua | 2 | 8930 | -----------------------------------
-- Area: Port Windurst
-- NPC: Hakkuru-Rinkuru
-- Involved In Quest: Making Amends
-- Starts and Ends Quest: Wonder Wands
-- !pos -111 -4 101 240
-----------------------------------
local ID = require("scripts/zones/Port_Windurst/IDs");
require("scripts/globals/settings");
require("... | gpl-3.0 |
jozeff3/devill | plugins/ty.lua | 1 | 1605 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄
#devil_bot @jozef3
please join to Channel Oscar Team @fr300t
▀▄ ▄▀ ▀▄ ▄▀
▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀
--]]
do
local function o... | gpl-2.0 |
dani-sj/capitan03 | plugins/admin.lua | 46 | 6101 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
mentor81/k2hV2 | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
TeoTwawki/darkstar | scripts/globals/mobskills/warm-up.lua | 12 | 1751 | ---------------------------------------------
-- Warm-Up
--
-- Description: Enhances accuracy and evasion.
-- Type: Magical (Earth)
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settings")
require("scripts/globals/status")
------------------------------... | gpl-3.0 |
cuit-zhaxin/quick-ng | cocos/scripting/lua-bindings/auto/api/AtlasNode.lua | 7 | 3990 |
--------------------------------
-- @module AtlasNode
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- updates the Atlas (indexed vertex array).<br>
-- Shall be overridden in subclasses.
-- @function [parent=#AtlasNode] updateAtlasValues
-- @param self
-- @return AtlasNode#At... | mit |
TeoTwawki/darkstar | scripts/globals/abilities/pets/armor_shatterer.lua | 14 | 1298 | ---------------------------------------------------
-- Armor Shatterer
---------------------------------------------------
require("scripts/globals/status")
require("scripts/globals/settings")
require("scripts/globals/automatonweaponskills")
---------------------------------------------------
function onMobSkillCheck... | gpl-3.0 |
TeoTwawki/darkstar | scripts/zones/Bearclaw_Pinnacle/npcs/Armoury_Crate.lua | 1 | 4819 | -----------------------------------
-- Area: Bearclaw Pinnacle
-- NPC: Armoury Crate
-----------------------------------
require("scripts/globals/battlefield")
require("scripts/globals/titles")
require("scripts/globals/quests")
-----------------------------------
local loot =
{
-- ENM: Follow the White Rabbit (Wik... | gpl-3.0 |
dxmgame/dxm-cocos | src/oslibs/cocos/cocos-src/cocos/scripting/lua-bindings/auto/api/SceneReader.lua | 19 | 1434 |
--------------------------------
-- @module SceneReader
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#SceneReader] setTarget
-- @param self
-- @param #function selector
-- @return SceneReader#SceneReader self (return value: ccs.SceneReader)
--------------------------------... | mit |
TeoTwawki/darkstar | scripts/zones/Norg/npcs/Laisrean.lua | 11 | 1878 | -----------------------------------
-- Area: Norg
-- NPC: Laisrean
-- Starts and Ends Quest: The Sahagin's Stash
-- !pos -2.251 -1 21.654 252
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/quests"... | gpl-3.0 |
cuit-zhaxin/quick-ng | cocos/scripting/lua-bindings/auto/api/TMXMapInfo.lua | 14 | 7295 |
--------------------------------
-- @module TMXMapInfo
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TMXMapInfo] setObjectGroups
-- @param self
-- @param #array_table groups
-- @return TMXMapInfo#TMXMapInfo self (return value: cc.TMXMapInfo)
--------------------------------... | mit |
oeuftete/wx-xword | premake4_wxlibs.lua | 1 | 2900 | -- wxWidgets links
if os.is("windows") then
configuration "windows"
libdirs { _OPTIONS["wx-prefix"].."/lib/vc_lib" }
links {
"winmm",
"comctl32",
"rpcrt4",
"wsock32",
"odbc32",
"oleacc",
}
-- Determine the version by looking at the director... | gpl-3.0 |
ReWrite94/iLife | client/Classes/util/CSurfaces.lua | 2 | 6886 | -- #######################################
-- ## Project: HUD iLife ##
-- ## For MTA: San Andreas ##
-- ## Name: Surfaces.lua ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc = {};... | mit |
wildstarnasa/LibBusted | ExampleAddon/BustedTest/libs/LibBusted-2.0/LibBusted-2.0.lua | 2 | 13971 | local MAJOR,MINOR = "Lib:Busted-2.0", 6
-- Get a reference to the package information if any
local APkg = Apollo.GetPackage(MAJOR)
-- If there was an older version loaded we need to see if this is newer
if APkg and (APkg.nVersion or 0) >= MINOR then
return -- no upgrade needed
end
-- Set a reference to the actual p... | mit |
oeuftete/wx-xword | scripts/cluejump/init.lua | 2 | 3018 | -- ============================================================================
-- Clue Jump
-- Searche the selected clue for the first clue-reference if can find, and
-- jump to that clue. If there is no reference in the current clue, search
-- all clues for a reference to the current clue and jump to... | gpl-3.0 |
jozeff3/devill | plugins/ar-boomzain.lua | 6 | 2218 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY jOker ▀▄ ▄▀
▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀
▀▄ ▄▀ broadcast : كلمه ضد الجيوش ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
dxmgame/dxm-cocos | src/oslibs/cocos/cocos-src/tests/lua-tests/src/CocosStudio3DTest/CocosStudio3DTest.lua | 3 | 2639 | ----------------------------------------
----CSNode3DTest
----------------------------------------
local CSNode3DTest = {}
CSNode3DTest.__index = CSNode3DTest
function CSNode3DTest.create()
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
Helper.titleLabel:setString("Node3DReader Test")
lo... | mit |
TeoTwawki/darkstar | scripts/globals/items/remedy.lua | 12 | 1152 | -----------------------------------------
-- ID: 4155
-- Item: Remedy
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and disease.
-----------------------------------------
require("scripts/globals/status")
-----------------------------------------
function onIt... | gpl-3.0 |
981213/luci-1 | protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua | 11 | 2780 | -- Copyright 2014 Nikos Mavrogiannopoulos <nmav@gnutls.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password, cert, ca
local oc_cert_file, oc_key_file, oc_ca_file
local ifc = net:get_interface():name()
oc_cert_file = "/etc/openconnect/user-cert-"... | apache-2.0 |
hpedrorodrigues/TimeRunner | src/constant/images.lua | 1 | 1584 | local BASE_IMAGE_PATH = 'assets/images/'
local SPRITES_PATH = BASE_IMAGE_PATH .. 'sprites/'
local BACKGROUNDS_PATH = BASE_IMAGE_PATH .. 'backgrounds/'
local BUTTONS_PATH = BASE_IMAGE_PATH .. 'buttons/'
local SCENES_PATH = BASE_IMAGE_PATH .. 'scenes/'
local GENERAL_PATH = BASE_IMAGE_PATH .. 'general/'
return {
LIF... | apache-2.0 |
TeoTwawki/darkstar | scripts/globals/spells/poisonga.lua | 12 | 1432 | -----------------------------------------
-- Spell: Poisonga
-----------------------------------------
require("scripts/globals/magic")
require("scripts/globals/msg")
require("scripts/globals/status")
-----------------------------------------
function onMagicCastingCheck(caster, target, spell)
return 0
end
functi... | gpl-3.0 |
riidt/neox | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua | 7 | 1272 |
--------------------------------
-- @module WavesTiles3D
-- @extend TiledGrid3DAction
-- @parent_module cc
--------------------------------
-- @function [parent=#WavesTiles3D] getAmplitudeRate
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [pare... | mit |
jeduan/lua-fiber | fiber.lua | 1 | 2403 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | apache-2.0 |
X-Coder/SBEP-Weapons | lua/entities/tfuelspray/init.lua | 1 | 5299 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include( 'shared.lua' )
function ENT:Initialize()
self.Entity:SetModel( "models/items/combine_rifle_ammo01.mdl" )
self.Entity:SetName("Fuel Cloud")
--self.Entity:PhysicsInit( SOLID_VPHYSICS )
local r = 5
self.Entity:PhysicsInitSphere(r)
self.Entity:Set... | apache-2.0 |
ReWrite94/iLife | client/Classes/RadialMenu/CEMenu.lua | 2 | 3071 | -- #######################################
-- ## Project: HUD iLife ##
-- ## For MTA: San Andreas ##
-- ## Name: EMenu.lua ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc = {}; -... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.