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 |
|---|---|---|---|---|---|
amheydari/cardpeek | dot_cardpeek_dir/scripts/lib/currency_codes.lua | 16 | 5759 |
CURRENCY_NUM_CODES = {
[008]={"Lek",2},
[012]={"Algerian Dinar",2},
[032]={"Argentine Peso",2},
[036]={"Australian Dollar",2},
[044]={"Bahamian Dollar",2},
[048]={"Bahraini Dinar",3},
[050]={"Taka",2},
[051]={"Armenian Dram",2},
[052]={"Barbados Dollar",2},
[060]={"Bermudian Dollar",2},
[064]={"N... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Caedarva_Mire/npcs/qm1.lua | 15 | 1168 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Verdelet(ZNM T2))
-- @pos 417 -19 -69 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
-----------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Cruor_Prospector.lua | 33 | 1112 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Cruor Prospector
-- Type: Cruor NPC
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/abyssea")... | gpl-3.0 |
cmotc/awesome | tests/examples/wibox/container/arcchart/rounded_edge.lua | 6 | 3003 | --DOC_HIDE_ALL
local parent = ...
local wibox = require( "wibox" )
local beautiful = require( "beautiful" )
parent:add(wibox.widget {
{
{
markup = "<b>rounded_edge</b> = <i>false</i>",
widget = wibox.widget.textbox
},
... | gpl-2.0 |
Whit3Tig3R/Telegram-Bot | plugins/admin.lua | 53 | 2402 | 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(rec... | gpl-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/external/lua/luajit/src/dynasm/dasm_x86.lua | 73 | 58651 | ------------------------------------------------------------------------------
-- DynASM x86/x64 module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local x64 = x64
-- Module i... | mit |
samael65535/quick-ng | quick/samples/physics/src/scenes/MainScene.lua | 8 | 2918 |
local MainScene = class("MainScene", function()
return display.newPhysicsScene("MainScene")
-- return display.newScene("MainScene")
end)
local GRAVITY = -200
local COIN_MASS = 100
local COIN_RADIUS = 46
local COIN_FRICTION = 0.8
local COIN_ELASTICITY = 0.8
local WALL_THICKNESS = 64
local ... | mit |
mperham2/google-diff-match-patch | lua/diff_match_patch.lua | 265 | 73869 | --[[
* 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 ... | apache-2.0 |
wfriesen/google-diff-match-patch | lua/diff_match_patch.lua | 265 | 73869 | --[[
* 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 ... | apache-2.0 |
garious/flake | flake/main.lua | 1 | 6336 | function __FILE__() return debug.getinfo(2,'S').source:sub(2,-1) end
function __LINE__() return debug.getinfo(2,'l').currentline end
local path = require 'path'
function __DIR__() return path.takeDirectory(debug.getinfo(2,'S').source:sub(2,-1)) end
-- Disallow reading or writing global variables
setmetatable(_G, {
... | mit |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Milazahn.lua | 34 | 1033 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Milazahn
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
---------... | gpl-3.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/core/ModulesJsonCollector.lua | 1 | 1591 | if AkDebugLoad then print("[#Start] Loading ak.core.ModulesJsonCollector ...") end
local EventBroker = require("ak.util.EventBroker")
local TableUtils = require("ak.util.TableUtils")
---@class JsonCollector
ModulesJsonCollector = {}
local enabled = true
local initialized = false
ModulesJsonCollector.name = "ak.core.Mo... | mit |
xdemolish/darkstar | scripts/zones/Port_Jeuno/npcs/Home_Point.lua | 8 | 1184 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Home Point
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/zones/Port_Jeuno/TextIDs");
-----------------------------------
-- onTrade Action
--... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionClass.lua | 61 | 4838 | if nil == cc.Control then
return
end
-- This is the DeprecatedExtensionClass
DeprecatedExtensionClass = {} or DeprecatedExtensionClass
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--CCControl ... | mit |
xdemolish/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/Treasure_Chest.lua | 1 | 2591 | -----------------------------------
-- Area: Horutoto Ruins
-- NPC: Treasure Chest
-- @zone 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require(... | gpl-3.0 |
TetsOrga/tets | plugins/setlang.lua | 5 | 1050 | local function doKeyboard_lang()
local keyboard = {
inline_keyboard = {}
}
for lang, flag in pairs(config.available_languages) do
local line = {{text = flag, callback_data = 'langselected:'..lang}}
table.insert(keyboard.inline_keyboard, line)
end
return keyboard
end
local action = function(msg, blocks)
if ... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Zwinam.lua | 34 | 1031 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Zwinam
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
-----------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua | 7 | 41174 | --------------------------------
-- @module cc
--------------------------------------------------------
-- the cc Ref
-- @field [parent=#cc] Ref#Ref Ref preloaded module
--------------------------------------------------------
-- the cc Console
-- @field [parent=#cc] Console#Console Console preloaded module
------... | mit |
xdemolish/darkstar | scripts/zones/Port_Windurst/npcs/Pichichi.lua | 36 | 2675 | -----------------------------------
-- Area: Port Windurst
-- NPC: Pichichi
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require("scripts/zones/Port_W... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Varun.lua | 19 | 2170 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Varun
-- Type: Standard NPC
-- @zone: 241
-- @pos 7.800 -3.5 -10.064
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/z... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/The_Colosseum/Zone.lua | 36 | 1116 | -----------------------------------
--
-- Zone: The_Colosseum
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/The_Colosseum/TextIDs"] = nil;
require("scripts/zones/The_Colosseum/TextIDs");
-----------------------------------
-- onInitialize
----... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/qm1.lua | 34 | 1033 | -----------------------------------
-- Area: Phomiuna Aqueducts
-- NPC: qm1 (???)
-- Notes: Opens east door @ F-7
-- @pos -44.550 -24.601 106.495 27
-----------------------------------
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,tra... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/WebViewTest/WebViewTest.lua | 6 | 5467 |
----------------------------------------
----WebViewTest
----------------------------------------
local WebViewTest = class("WebViewTest", function ()
local layer = cc.Layer:create()
return layer
end)
function WebViewTest:ctor()
self:init()
end
function WebViewTest:init()
Helper.initWithLayer(self)
... | apache-2.0 |
rwh86/darktable | tools/lua_doc/old_api/dt_api202.lua | 7 | 170644 | API = {
["__text"] = [[This documentation is for the *development* version of darktable. for the stable version, please visit the user manual
To access the darktable specific functions you must load the darktable environment:<code>darktable = require "darktable"</code>All functions and data are accessed through the dar... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Bastok/npcs/Bagnobrok.lua | 36 | 1585 | -----------------------------------
-- Area: Port Bastok
-- NPC: Bagnobrok
-- Only sells when Bastok controls Movalpolos
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Port_Bastok/Tex... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/weaponskills/vorpal_blade.lua | 1 | 1261 | -----------------------------------
-- Vorpal Blade
-- Sword weapon skill
-- Skill Level: 200
-- Delivers a four-hit attack. Chance of params.critical varies with TP.
-- Stacks with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Labyrinth_of_Onzozo/Zone.lua | 3 | 1914 | -----------------------------------
--
-- Zone: Labyrinth_of_Onzozo (213)
--
-----------------------------------
package.loaded["scripts/zones/Labyrinth_of_Onzozo/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Korroloka_Tunnel/MobIDs.lua | 65 | 1094 | -----------------------------------
-- Area: Korroloka Tunnel (173)
-- Comments: -- posX, posY, posZ
-- (Taken from 'mob_spawn_points' table)
-----------------------------------
-- Cargo_Crab_Colin
Cargo_Crab_Colin=17485980;
Cargo_Crab_Colin_PH={
[17486002] = '1', -- -30.384, 1.000, -33.277
[17486095] = '1' ... | gpl-3.0 |
ld-test/dromozoa-unix | test/test_gettimeofday.lua | 1 | 1110 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-unix.
--
-- dromozoa-unix 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
-... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/galette_des_rois.lua | 39 | 1322 | -----------------------------------------
-- ID: 5875
-- Item: Galette Des Rois
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- MP % 1
-- Intelligence +2
-- Random Jewel
-----------------------------------------
require("scripts/globals/status");
require("scripts/zones/Bastok_Mines/Text... | gpl-3.0 |
qwer34/EasyLuaEncryptor | proj.win32/lua/jit/bc.lua | 78 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
SoHeil-R/Part | bot/utils.lua | 1 | 15065 | function serialize_to_file(data, file, uglify)
file = io.open(file, 'w+')
local serialized
if not uglify then
serialized = serpent.block(data, {
comment = false,
name = '_'
})
else
serialized = serpent.dump(data)
end
file:write(serialized)
file:close()
end
function string.ran... | mit |
xdemolish/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Hieroglyphics.lua | 17 | 2352 | -----------------------------------
-- Area: Tavnazian_Safehold
-- NPC: Hieroglyphics
-- Notes: Dynamis Tavnazia Enter
-- @pos 3.674 -7.278 -27.856 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
mohammad12344/DEFENDER | plugins/lo_ads.lua | 19 | 1159 | local function run(msg, matches)
if is_owner(msg) then
return
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings'] then
if data[tostring(msg.to.id)]['settings']['lock_ads'] then
lock_ads... | gpl-2.0 |
Neopallium/lua-zmq | src/socket.nobj.lua | 1 | 31133 | -- Copyright (c) 2011 by Robert G. Jakabosky <bobby@sharedrealm.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 u... | mit |
marmeladema/libprelude | bindings/tests/test.lua | 3 | 1732 | #!/usr/bin/env lua
require("prelude")
function my_cb(level, log)
io.write("log: " .. log)
end
prelude.PreludeLog_setCallback(my_cb)
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/_544.lua | 16 | 1666 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Door opens when you trade Delkfutt Key to it
-- @pos 345 0.1 20 184
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/Waves3D.lua | 7 | 2263 |
--------------------------------
-- @module Waves3D
-- @extend Grid3DAction
-- @parent_module cc
--------------------------------
-- brief Get the amplitude rate of the effect.<br>
-- return Return the amplitude rate of the effect.
-- @function [parent=#Waves3D] getAmplitudeRate
-- @param self
-- @return float#float... | mit |
xdemolish/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Crochepallade.lua | 36 | 1043 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Crochepallade -- Name is Moogle for some reason
-- @zone 80
-- @pos -46 2 -8
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextI... | gpl-3.0 |
willfrey/torch-ctcdecode | lua/NGramDecoder.lua | 1 | 3624 | local ctcdecode = require 'ctcdecode.env'
local argcheck = require 'argcheck'
local ffi = require 'ffi'
ffi.cdef[[
typedef struct NGramBeamScorer NGramBeamScorer;
typedef struct NGramDecoder NGramDecoder;
typedef struct NGramBeamScorer NGramBeamScorer;
typedef struct NGramDecoder NGramDecoder;
void *NGramDecoder_new... | mit |
xdemolish/darkstar | scripts/zones/Windurst_Waters/npcs/Chyuk-Kochak.lua | 38 | 1048 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chyuk-Kochak
-- Type: Standard NPC
-- @zone: 238
-- @pos -252.162 -6.319 -307.011
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-... | gpl-3.0 |
samael65535/quick-ng | quick/framework/cc/net/SocketTCP.lua | 17 | 6391 | --[[
For quick-cocos2d-x
SocketTCP lua
@author zrong (zengrong.net)
Creation: 2013-11-12
Last Modification: 2013-12-05
@see http://cn.quick-x.com/?topic=quickkydsocketfzl
]]
local SOCKET_TICK_TIME = 0.1 -- check socket data interval
local SOCKET_RECONNECT_TIME = 5 -- socket reconnect try interval
local SOCKET_CONN... | mit |
xdemolish/darkstar | scripts/zones/Windurst_Walls/npcs/Chomomo.lua | 38 | 1404 | -----------------------------------
-- Area: Windurst Walls
-- NPC: Chomomo
-- Type: Standard NPC
-- @pos -1.262 -11 290.224 239
-----------------------------------
package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Apollyon/mobs/Bardha.lua | 17 | 1397 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Act... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Batallia_Downs_[S]/npcs/Cavernous_Maw.lua | 5 | 1332 | -----------------------------------
-- Cavernous Maw
-- Teleports Players to Batallia Downs
-- @pos -48 0 435 84
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/teleports");
require("scripts/glob... | gpl-3.0 |
eiffelqiu/candle | lib/candle/generators/lua/wax/lib/stdlib/helpers/cache.lua | 19 | 1993 | wax.cache = {}
setmetatable(wax.cache, wax.cache)
-- Returns contents of cache keys
-- key: string # value for cache
-- maxAge: number (optional) # max age of file in seconds
function wax.cache.get(key, maxAge)
local path = wax.cache.pathFor(key)
if not wax.filesystem.isFile(path) then return nil end
if ... | mit |
samael65535/quick-ng | cocos/scripting/lua-bindings/script/framework/init.lua | 35 | 2697 | --[[
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... | mit |
BlackMesaRP/NS-Black-Mesa | plugins/m9k/entities/weapons/m9k_tar21/shared.lua | 2 | 3246 | -- Variables that are used on both client and server
SWEP.Gun = ("m9k_tar21") -- must be the name of your swep but NO CAPITALS!
SWEP.Category = "M9K Assault Rifles"
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models o... | gpl-3.0 |
kissthink/OpenRA | lua/stacktraceplus.lua | 59 | 12006 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must be availa... | gpl-3.0 |
yangchaogit/ABTestingGateway | admin/runtime/set.lua | 22 | 4799 | local runtimeModule = require('abtesting.adapter.runtime')
local policyModule = require('abtesting.adapter.policy')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local utils = require... | mit |
a20251313/wax | lib/stdlib/luaspec/luamock.lua | 19 | 2283 | Mock = { calls = {}, return_values = {} }
-- we store all calls and requested return values indexed
-- by the mock object, we don't want to hold onto references
-- when they should be garbage collected to make the tables
-- be weak
setmetatable(Mock.calls, { __mode="k" })
setmetatable(Mock.return_values, { __mode="k" ... | mit |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Qutiba.lua | 19 | 2148 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Qutiba
-- Type: Standard NPC
-- @pos 92.341 -7.5 -129.980 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require(... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Rolanberry_Fields/npcs/qm1.lua | 5 | 1570 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: qm1 (???)
-- @pos -686.216 -31.556 -369.723 110
-- Notes: Spawns Chuglix Berrypaws for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
----------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/serving_of_karni_yarik.lua | 35 | 1391 | -----------------------------------------
-- ID: 5588
-- Item: serving_of_karni_yarik
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Agility 3
-- Vitality -1
-- Attack % 20
-- Attack Cap 65
-----------------------------------------
require("scripts/globals/status");
-------... | gpl-3.0 |
ld-test/sunclass | sunclass.lua | 3 | 4246 |
--------------------------------------------------------------------------------
-- The MIT License (MIT)
-- Copyright (c) 2014 Henry Quoc Tran
-- 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 So... | mit |
xdemolish/darkstar | scripts/zones/Sacrarium/npcs/qm5.lua | 9 | 1736 | -----------------------------------
-- Area: Sacrarium
-- NPC: qm5 (???)
-- Notes: Used to spawn Old Prof. Mariselle
-- @pos 102.670 -3.111 -127.318 28
-----------------------------------
package.loaded["scripts/zones/Sacrarium/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sac... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/ActionEase.lua | 7 | 1302 |
--------------------------------
-- @module ActionEase
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- brief Get the pointer of the inner action.<br>
-- return The pointer of the inner action.
-- @function [parent=#ActionEase] getInnerAction
-- @param self
-- @return ActionInterval... | mit |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Banjanu.lua | 38 | 1025 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Banjanu
-- Type: Standard NPC
-- @zone: 48
-- @pos -75.954 0.999 105.367
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Caedarva_Mire/npcs/Jazaraat_s_Headstone.lua | 13 | 1058 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: Jazaraat's Headstone
-- Involved in mission: The Lost Kingdom (TOAUM 13)
-- @pos -389 6 -570 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
require("scripts/zones/Caedarva_Mire/TextIDs");
... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/bowl_of_ambrosia.lua | 35 | 2277 | -----------------------------------------
-- ID: 4511
-- Item: Bowl of Ambrosia
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Health 7
-- Magic 7
-- Strength 7
-- Dexterity 7
-- Agility 7
-- Vitality 7
-- Intelligence 7
-- Mind 7
-- Charisma 7
-- Health Regen While Healing... | gpl-3.0 |
MockbaTheBorg/GTALuaF | Lua/globals/enums.lua | 1 | 40070 | -- enum eAudioFlag
AudioFlagActivateSwitchWheelAudio = 0
AudioFlagAllowCutsceneOverScreenFade = 1
AudioFlagAllowForceRadioAfterRetune = 2
AudioFlagAllowPainAndAmbientSpeechToPlayDuringCutscene = 3
AudioFlagAllowPlayerAIOnMission = 4
AudioFlagAllowPoliceScannerWhenPlayerHasNoControl = 5
AudioFlagAllowRadioDuringSwitch =... | mit |
xdemolish/darkstar | scripts/zones/Spire_of_Dem/bcnms/ancient_flames_beckon.lua | 5 | 3038 | -----------------------------------
-- Area: Spire_of_Dem
-- Name: ancient_flames_backon
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_San_dOria/npcs/Auvare.lua | 19 | 1428 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Auvare
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
require("scripts/zones/Port_San_dOria/TextIDs");
-----------------------------------
-- onTrade Action
---------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/TextField.lua | 7 | 12195 |
--------------------------------
-- @module TextField
-- @extend Widget
-- @parent_module ccui
--------------------------------
-- brief Toggle attach with IME.<br>
-- param attach True if attach with IME, false otherwise.
-- @function [parent=#TextField] setAttachWithIME
-- @param self
-- @param #bool attach
-- @re... | mit |
lukego/snabb | lib/ljsyscall/syscall/netbsd/fcntl.lua | 24 | 1318 | -- NetBSD fcntl
local require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string =
require, error, assert, tonumber, tostring,
setmetatable, pairs, ipairs, unpack, rawget, rawset,
pcall, type, table, string
local function init(types)
local c = require... | apache-2.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/modellpacker/AkModellPacker.lua | 1 | 2094 | local AkModellPacker = {}
function AkModellPacker.schreibeDatei(dateiname, inhalt)
local file = io.open(dateiname, "w+")
assert(file, dateiname)
io.output(file)
io.write(inhalt)
io.close(file)
print("[#ModellPacker] ----- Start " .. dateiname ..
" -------------------------------------... | mit |
BlackMesaRP/NS-Black-Mesa | plugins/m9k/entities/entities/m9k_ammo_smg/shared.lua | 2 | 3861 | ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "SMG Rounds"
ENT.Category = "M9K Ammunition"
ENT.Spawnable = true
ENT.AdminSpawnable = true
if SERVER then
AddCSLuaFile("shared.lua")
function ENT:SpawnFunction(ply, tr)
if (!tr.Hit) then return end
local SpawnPos = tr.HitPos + tr.HitNormal * 16... | gpl-3.0 |
lighter-cd/premake4-mobile | src/base/globals.lua | 2 | 2984 | --
-- globals.lua
-- Global tables and variables, replacements and extensions to Lua's global functions.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
-- A top-level namespace for support functions
premake = { }
-- The list of supported platforms; also update list in cmdline.lua
premake... | mit |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Animation3D.lua | 11 | 1271 |
--------------------------------
-- @module Animation3D
-- @extend Ref
-- @parent_module cc
--------------------------------
-- init Animation3D with file name and animation name
-- @function [parent=#Animation3D] initWithFile
-- @param self
-- @param #string filename
-- @param #string animationName
-- @return bool#... | apache-2.0 |
chris5560/openwrt-luci | libs/luci-lib-nixio/docsrc/nixio.bit.lua | 171 | 2044 | --- Bitfield operators and mainpulation functions.
-- Can be used as a drop-in replacement for bitlib.
module "nixio.bit"
--- Bitwise OR several numbers.
-- @class function
-- @name bor
-- @param oper1 First Operand
-- @param oper2 Second Operand
-- @param ... More Operands
-- @return number
--- Invert given number.
... | apache-2.0 |
robotics-erlangen/autoref | autoref/rules/stopspeed.lua | 1 | 2671 | --[[***********************************************************************
* Copyright 2018 Alexander Danzer, Andreas Wendler *
* Robotics Erlangen e.V. *
* http://www.robotics-erlangen.de/ *
* info@robotic... | gpl-3.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TextureCache.lua | 10 | 3328 |
--------------------------------
-- @module TextureCache
-- @extend Ref
-- @parent_module cc
--------------------------------
-- Reload texture from the image file<br>
-- If the file image hasn't loaded before, load it.<br>
-- Otherwise the texture will be reloaded from the file image.<br>
-- The "filenName" paramet... | mit |
shayanchabok007/iran_power | plugins/inrealm.lua | 3 | 25189 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/dish_of_spaghetti_boscaiola.lua | 35 | 1721 | -----------------------------------------
-- ID: 5192
-- Item: dish_of_spaghetti_boscaiola
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 18
-- Health Cap 120
-- Magic 35
-- Strength -5
-- Dexterity -2
-- Vitality 2
-- Mind 4
-- Magic Regen While Healing 1
----------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/MenuItem.lua | 7 | 1678 |
--------------------------------
-- @module MenuItem
-- @extend Node
-- @parent_module cc
--------------------------------
-- Enables or disables the item.
-- @function [parent=#MenuItem] setEnabled
-- @param self
-- @param #bool value
-- @return MenuItem#MenuItem self (return value: cc.MenuItem)
--------... | mit |
Neopallium/lua-handlers | examples/zmq_xrep_server.lua | 2 | 1524 | -- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.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
-... | mit |
robotics-erlangen/autoref | autoref/rules/freekickdistance.lua | 1 | 2958 | --[[***********************************************************************
* Copyright 2015 Alexander Danzer, Lukas Wegmann *
* Robotics Erlangen e.V. *
* http://www.robotics-erlangen.de/ *
* info@robotic... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/The_Boyahda_Tree/mobs/Demonic_Rose.lua | 10 | 1478 | -----------------------------------
-- Area: The Boyahda Tree
-- Mob: Demonic Rose
-- Note: Placeholder V. Vivian
-----------------------------------
require("/scripts/zones/The_Boyahda_Tree/MobIDs");
-----------------------------------
-- onMobDeath
-----------------------------------
function onM... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Metalworks/npcs/Fariel.lua | 34 | 2197 | -----------------------------------
-- Area: Metalworks
-- NPC: Fariel
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/pathfind");... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/script/network/DeprecatedNetworkFunc.lua | 61 | 1123 | if nil == cc.XMLHttpRequest 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 WebSocket will be deprecated begin
local targetPlatform = CCApplication:getInstance():get... | mit |
chris5560/openwrt-luci | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_order.lua | 15 | 1080 | -- Copyright 2017 Dirk Brenken (dev@brenken.org)
-- This is free software, licensed under the Apache License, Version 2.0
local http = require("luci.http")
local cfg = http.formvalue("cfg")
local dir = http.formvalue("dir")
local uci = require("luci.model.uci").cursor()
local trmiface = uci:get("travelmate", "global",... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/king_truffle.lua | 35 | 1193 | -----------------------------------------
-- ID: 4386
-- King Truffle
-- 5 Minutes, food effect, All Races
-----------------------------------------
-- Strength -6
-- Mind +4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnIt... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Iruki-Waraki.lua | 38 | 2851 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Iruki-Waraki
-- Type: Standard NPC
-- Involved in quest: No Strings Attached
-- @pos 101.329 -6.999 -29.042 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
hfjgjfg/armanarman | plugins/linkpv.lua | 66 | 30275 | 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
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
lukego/snabb | src/dasm_mm.lua | 22 | 3988 |
--wrappers around mmap to support dynamic code exection.
--Written by Cosmin Apreutesei. Public Domain.
--Tested with Windows, Linux and OSX, x86 and x86-64.
local ffi = require'ffi'
local C = ffi.C
local function checkh(ptr) return assert(ptr ~= nil and ptr) end
local function checkz(ret) assert(ret == 0) end
local... | apache-2.0 |
xdemolish/darkstar | scripts/zones/RuLude_Gardens/npcs/Magian_Moogle_Orange.lua | 48 | 2326 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Magian Moogle (Orange Bobble)
-- Type: Magian Trials NPC (Weapon/Empyrean Armor)
-- @pos -11 2.453 118 64
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/data/DataLuaModule.lua | 1 | 1889 | if AkDebugLoad then print("[#Start] Loading ak.data.DataLuaModule ...") end
---@class DataLuaModule
DataLuaModule = {}
DataLuaModule.id = "e538a124-3f0a-4848-98cf-02b08563bf32"
DataLuaModule.enabled = true
local initialized = false
-- Jedes Modul hat einen eindeutigen Namen
DataLuaModule.name = "ak.data.DataLuaModule"
... | mit |
PlexChat/premake-core | tests/base/test_include.lua | 16 | 1701 | --
-- tests/base/test_include.lua
-- Test the include() function, for including external scripts
-- Copyright (c) 2011-2014 Jason Perkins and the Premake project
--
local suite = test.declare("include")
--
-- Setup and teardown
--
function suite.teardown()
-- clear the list of included files after each run
i... | bsd-3-clause |
jaseweston/NAMAS | summary/util.lua | 9 | 1617 | --
-- Copyright (c) 2015, 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.
--
-- Author: Alex... | bsd-3-clause |
chris5560/openwrt-luci | protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 52 | 4346 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password, dialnumber
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
d... | apache-2.0 |
xdemolish/darkstar | scripts/zones/The_Garden_of_RuHmet/npcs/qm3.lua | 4 | 1585 | -----------------------------------
-- Area: The_Garden_of_RuHmet
-- NPC: ??? (Jailer of Faith Spawn)
-- Allows players to spawn the Jailer of Faith by trading 1 High-Quality Euvhi Organ to a ???.
-- @pos ,-260 0 -645
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = n... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Hazhalm_Testing_Grounds/Zone.lua | 8 | 1314 | -----------------------------------
--
-- Zone: Hazhalm_Testing_Grounds (78)
--
-----------------------------------
package.loaded["scripts/zones/Hazhalm_Testing_Grounds/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Hazhalm_Testing_Grounds/TextIDs");
--------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Palborough_Mines/npcs/qm1.lua | 11 | 1291 | -----------------------------------
-- Area: Palborough Mines
-- NPC: ???
-- Involved In Quest: The Talekeeper's Truth
-- @zone 143
-- @pos 15 -31 -94
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
czfshine/UpAndAway | code/prefabs/gummybear_den.lua | 2 | 7791 | BindGlobal()
local assets =
{
Asset("ANIM", "anim/gummybear_den.zip"),
}
local prefabs =
{
"merm",
"collapse_big",
}
local loot =
{
"log",
"log",
"goldnugget",
"trinket_2",
}
local function onlightning(inst)
inst.SoundEmitter:PlaySound("dontstarve/common/lig... | gpl-2.0 |
soravux/pytorch | test/test_call_lua.lua | 2 | 1663 | require 'torch'
require 'nn'
local TestCallLua = torch.class('TestCallLua')
function TestCallLua:__init(someName)
print('TestCallLua:__init(', someName, ')')
assert(someName == 'green')
self.someName = someName
end
function TestCallLua:getName()
return self.someName
end
function TestCallLua:getOut(inTensor,... | bsd-2-clause |
PlexChat/premake-core | tests/actions/make/workspace/test_config_maps.lua | 9 | 1357 | --
-- tests/actions/make/test_config_maps.lua
-- Validate handling of configuration maps in makefiles.
-- Copyright (c) 2012 Jason Perkins and the Premake project
--
T.make_config_maps = {}
local suite = T.make_config_maps
local make = premake.make
--
-- Setup/teardown
--
local wks, prj
function suite.setup()... | bsd-3-clause |
xdemolish/darkstar | scripts/globals/items/anthos_xiphos.lua | 16 | 1037 | -----------------------------------------
-- ID: 17750
-- Item: Anthos Xiphos
-- Additional Effect: Water Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/blacksmiths_belt.lua | 5 | 1205 | -----------------------------------------
-- ID: 15445
-- Item: Blacksmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-----------------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Smithing Skill +1
-----------------------------------------
requ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Gioh_Ajihri.lua | 36 | 2813 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Gioh Ajihri
-- Starts & Finishes Repeatable Quest: Twinstone Bonding
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
requ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Newton_Movalpolos/npcs/Sleakachiq.lua | 19 | 1793 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Sleakachiq
-- @pos 162.504 14.999 136.901 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Newton_Movalpolos/TextIDs");
---------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.