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
ElectricPrism/stargus
scripts/tilesets/installation.lua
1
200981
DefineTileset( "name", "Installation", "image", "tilesets/installation/installation.png", "slots", { "solid", { "light-grass", "land", "unpassable", { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -- 000 }}, "solid", { "light-grass", "land", "unpassable", { 0,...
gpl-2.0
sundream/gamesrv
script/card/wood/card224003.lua
1
2332
--<<card 导表开始>> local super = require "script.card.wood.card124003" ccard224003 = class("ccard224003",super,{ sid = 224003, race = 2, name = "崇高牺牲", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ma...
gpl-2.0
GhoulofGSG9/Shine-Epsilon
lua/shine/extensions/verboselogging.lua
1
2093
--[[ A verbose logging plugin intended to track down certain issues ]] local StringFormat = string.format local Plugin = Shine.Plugin( ... ) Plugin.Version = "1.0" Plugin.HasConfig = true Plugin.ConfigName = "VerboseLogging.json" Plugin.DefaultConfig = { LogSpecs = true, } Plugin.CheckConfig = true Plugin.Ch...
mit
jacklicn/mysql-proxy
lib/xtab.lua
6
13591
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
Lynx3d/tinker_tools
Libraries/LibString/split.lua
2
2163
local strfind = string.find local strsub = string.sub --- Split a string into substrings according to a provided separator. -- @param sep The separator string. -- @param patterned If this parameter evaluates to true the separation is performed on search patterns, otherwise plain strings. -- @return A table with all st...
bsd-3-clause
sundream/gamesrv
script/card/neutral/card164025.lua
1
2207
--<<card 导表开始>> local super = require "script.card.init" ccard164025 = class("ccard164025",super,{ sid = 164025, race = 6, name = "丛林猎豹", type = 202, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 1, magic_hurt_ad...
gpl-2.0
mortezaand/tgpragramer
rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
sami2448/set
plugins/welcome2.lua
114
3529
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua
80
1260
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson 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$ ]]-- m = Map("mactodevinfo", lu...
gpl-2.0
promptcode/CoronaDatabaseManager
database/dba.lua
1
3938
------------------------------------------------- -- CORONA SDK - DATABASE MANAGER -- Version: 1.0.0 -- Used for handling database connection, tables and queries -- -- Revised BSD License: -- -- Copyright (c) 2014, Daniel Strmečki <email: daniel.strmecki@gmail.com, web: promptcode.com> -- All rights reserved. -- Redis...
bsd-3-clause
SeyedKia/alpha
libs/lua-redis.lua
580
35599
local redis = { _VERSION = 'redis-lua 2.0.4', _DESCRIPTION = 'A Lua client library for the redis key value storage system.', _COPYRIGHT = 'Copyright (C) 2009-2012 Daniele Alessandri', } -- The following line is used for backwards compatibility in order to keep the `Redis` -- global module name. Using...
agpl-3.0
alimashmamali/test
plugins/all.lua
1321
4661
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
A-N-bot/NA
plugins/anti_ads.lua
61
1032
local function run(msg) local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['antilink'] == 'yes' then if not is_momod(msg) then chat_del_user('chat#id'..msg.to.id, 'user#id'..msg.from.id, ok_cb, true) local msgads = 'ForbiddenAdText' ...
gpl-2.0
siggame/Joueur.lua
joueur/utilities/string.lua
3
8336
-- extensions/string - add more string functions -- @author Jacob Fischer, jacob.t.fischer@gmail.com --- -- splits the string by pattern a maxsplit number of time. -- @param s string to split -- @param pattern string pattern to split between, will not be part of returned strings -- @param maxsplit (Optional) max times...
mit
ElectricPrism/stargus
scripts/protoss/unit-protoss-zealot.lua
1
2371
-- -- unit-protoss-zealot -- DefineAnimations("animations-protoss-zealot", { Still = { "frame 85", "wait 125", }, Move = {"unbreakable begin", "move 4", "wait 1", "frame 85", "move 4", "wait 1", "frame 102", "move 4", "wait 1", "frame 119", "move 4", "wait 1", "frame 136", "move 4", "wait 1", "frame...
gpl-2.0
Sour/pfUI
modules/raid.lua
1
1736
pfUI:RegisterModule("raid", function () -- do not go further on disabled UFs if C.unitframes.disable == "1" then return end local default_border = C.appearance.border.default if C.appearance.border.unitframes ~= "-1" then default_border = C.appearance.border.unitframes end pfUI.uf.raid = CreateFrame("...
mit
zhaojh329/evmongoose
example/lua/simplest_web.lua
1
1789
#!/usr/bin/lua local ev = require("ev") -- https://github.com/LuaDist/lzlib local lz = require("zlib") local evmg = require("evmongoose") local loop = ev.Loop.default local function ev_handle(con, event) if event ~= evmg.MG_EV_HTTP_REQUEST then return end -- Fetch http message local hm = con:get_evdata() local u...
gpl-3.0
sundream/gamesrv
script/task/init.lua
1
1122
ctask = class("ctask") function ctask:init(conf) conf = deepcopy(conf) self.taskid = assert(conf.taskid) self.state = assert(conf.state) self.type = assert(conf.type) self.exceedtime = conf.exceedtime self.data = conf.data or {} end function ctask:load(data) if not data or not next(data) then return end se...
gpl-2.0
tudor-berariu/activity-recognition
src/preprocessor.lua
1
3891
-------------------------------------------------------------------------------- --- 1. Load required libraries local class = require("class") -------------------------------------------------------------------------------- --- 2. Define the preprocessor class --- --- The preprocessor applies individual transformatio...
mit
mjaric/chameleon
chameleon/strategies/default_strategy.lua
1
1960
local utils = require('chameleon.utils'); local config = require('chameleon.config'); local ngx = ngx; local balance = balance; local setmetatable = setmetatable; local type = type; local tostring = tostring; module(...); local DefaultStrategy_mt = { __index = _M }; function create(self, tbl) tbl = tbl or {}; loca...
gpl-3.0
weera00/nodemcu-firmware
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...
mit
Midiman/Concrete
lib/bump/example_advanced/entities/player.lua
1
5772
--[[ -- Player Class -- This entity collides "sliding" over walls and floors. -- -- It also models flying (when at full health) and jumping (when not at full health). -- -- Health continuously regenerates. The player can survive 1 hit from a grenade, but the second one needs to happen -- at least 4 secons later....
mit
sundream/gamesrv
script/card/wood/card225001.lua
1
2219
--<<card 导表开始>> local super = require "script.card.wood.card125001" ccard225001 = class("ccard225001",super,{ sid = 225001, race = 2, name = "圣光的正义", type = 301, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, m...
gpl-2.0
LuaDist2/lua-curl
examples/cURLv3/rss.lua
4
1095
-- use LuaExpat and Lua-CuRL together for On-The-Fly XML parsing local lxp = require "lxp" local cURL = require "cURL" -- create XML parser items, tags = {}, {} p = lxp.new{ StartElement = function (parser, tagname) tags[#tags + 1] = tagname if (tagname == "item") then items[#items + 1] = {}...
mit
uiii/GeconPC
config/premake4/qt-support.lua
1
27446
-- -- qt-support.lua -- Support for Qt Framework for Premake -- Copyright (c) 2011 Konstantin Tokarev -- -- Version 1.0 -- -- Known limitations: -- only gmake -- on Mac OS X only framework configuration of Qt is supported -- the next Qt modules are not supported: -- ActiveQt -- QtDBus -- ...
gpl-3.0
LukeFarrell/incubator-openwhisk-apigateway
tests/fakeredis.lua
1
43750
local unpack = table.unpack or unpack --- Bit operations local bit do if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function...
apache-2.0
sundream/gamesrv
script/net/friend.lua
1
1653
netfriend = netfriend or {} -- c2s local REQUEST = {} netfriend.REQUEST = REQUEST function REQUEST.apply_addfriend(player,request) local pid = assert(request.pid) return player.frienddb:apply_addfriend(pid) end function REQUEST.agree_addfriend(player,request) local pid = assert(request.pid) return player.friendd...
gpl-2.0
mortezaand/tgpragramer
meme.lua
637
5791
local helpers = require "OAuth.helpers" local _file_memes = './data/memes.lua' local _cache = {} local function post_petition(url, arguments) local response_body = {} local request_constructor = { url = url, method = "POST", sink = ltn12.sink.table(response_body), headers = {}, red...
gpl-2.0
sundream/gamesrv
script/card/neutral/card166001.lua
1
2196
--<<card 导表开始>> local super = require "script.card.init" ccard166001 = class("ccard166001",super,{ sid = 166001, race = 6, name = "侍从", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_adde...
gpl-2.0
mortezaand/tgpragramer
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
rastin45/waqer12
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
reonZ/Release-the-Hounds
game/dota_addons/release_the_hounds/scripts/vscripts/abilities/ability_ground_smash.lua
1
1523
function OnSpellStart( keys ) local caster = keys.caster local caster_coords = caster:GetAbsOrigin() local caster_direction = caster:GetForwardVector() local team_ally = caster:GetTeam() local ability = keys.ability local range = ability:GetCastRange() local radius = ability:GetSpecialValueFor( 'radius' ) ...
mit
Choumiko/Factorio-Stdlib
spec/area/tile_spec.lua
1
3103
require 'spec/defines' require 'stdlib/area/tile' describe('Tile Spec', function() it('should give the correct tile coordinates for a position', function() assert.same(0, Tile.from_position({0, 34}).x) assert.same(34, Tile.from_position({0, 34}).y) assert.same(-67, Tile.from_position({-66....
isc
CodingKitsune/Riritools
riritools/lua/date.lua
5
32259
--------------------------------------------------------------------------------------- -- Module for date and time calculations -- -- Version 2.1.1 -- Copyright (C) 2006, by Jas Latrix (jastejada@yahoo.com) -- Copyright (C) 2013-2014, by Thijs Schreijer -- Licensed under MIT, http://opensource.org/licenses/MIT --[[ C...
mit
libremesh/lime-packages
packages/pirania/files/usr/lib/lua/voucher/cgi_handlers.lua
1
2979
local vouchera = require('voucher.vouchera') local utils = require('voucher.utils') handlers = {} local TESTING_URL_INFO = '/info' local TESTING_URL_FAIL = '/fail' local TESTING_URL_AUTHENTICATED = '/authenticated' function handlers.preactivate_voucher() local uci_cursor = require('uci').cursor() --! using...
agpl-3.0
sundream/gamesrv
script/card/neutral/card263014.lua
1
2304
--<<card 导表开始>> local super = require "script.card.neutral.card163014" ccard263014 = class("ccard263014",super,{ sid = 263014, race = 6, name = "精神控制技师", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 0, ...
gpl-2.0
HannesTuhkala/saitohud
src/SaitoHUD/lua/saitohud/init.lua
3
3492
-- SaitoHUD -- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com> -- Copyright (c) 2010 BoJaN -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 2 of the License, or ...
gpl-2.0
sundream/gamesrv
script/card/neutral/card161007.lua
1
2724
--<<card 导表开始>> local super = require "script.card.init" ccard161007 = class("ccard161007",super,{ sid = 161007, race = 6, name = "炎魔之王拉格纳罗斯", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hu...
gpl-2.0
dalvorsn/tests
data/npc/lib/npcsystem/keywordhandler.lua
8
5090
-- Advanced NPC System by Jiddo if KeywordHandler == nil then KeywordNode = { keywords = nil, callback = nil, parameters = nil, children = nil, parent = nil } -- Created a new keywordnode with the given keywords, callback function and parameters and without any childNodes. function KeywordNode:new(keys,...
gpl-2.0
sundream/gamesrv
script/card/soil/card256015.lua
1
2228
--<<card 导表开始>> local super = require "script.card.soil.card156015" ccard256015 = class("ccard256015",super,{ sid = 256015, race = 5, name = "利爪德鲁伊(冲锋)", type = 201, magic_immune = 0, assault = 1, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ...
gpl-2.0
sundream/gamesrv
script/card/neutral/card265037.lua
1
2280
--<<card 导表开始>> local super = require "script.card.neutral.card165037" ccard265037 = class("ccard265037",super,{ sid = 265037, race = 6, name = "暗鳞治愈者", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 0, ...
gpl-2.0
movb/Algorithm-Implementations
Run_Length_Encoding/Lua/Yonaba/rle_test.lua
26
1931
-- Tests for rle.lua local rle = require 'rle' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local status = ok...
mit
louxiu/Penguin-warrior
src/opponent.lua
1
2622
-- refer opponent.tcl and opponent.scm world = { width = 0, height = 0, } -- player's thrust is not used in this script now player = { x = 0, y = 0, angle = 0, accel = 0, thrust = { forward = 0, reverse = 0, } } opponent = { x = 0, y = 0, angle = 0, accel = 0, thrus...
gpl-3.0
mahyarnajibi/fast-rcnn-torch
train/WeightedSmoothL1Criterion.lua
1
1541
local WeightedSmoothL1Criterion, parent = torch.class('detection.WeightedSmoothL1Criterion', 'nn.Criterion') function WeightedSmoothL1Criterion:__init(sizeAverage) parent.__init(self) -- Local SmoothL1Loss self._smoothL1Loss = nn.SmoothL1Criterion():cuda() self._smoothL1Loss.sizeAverage = false end functi...
mit
kobakei/CCLocalNotification
cocos2d/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
movb/Algorithm-Implementations
Knuth_Morris_Pratt/Lua/Yonaba/kmp.lua
26
1219
-- Knuth-Morris-Pratt string searching algorithm implementation -- See: http://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm local function kmp_table(pattern) local result = {} for i = 1, #pattern+1,1 do local j = i while true do if j == 1 then result[#result + 1] = 1 ...
mit
vo0doO/sipml5
asterisk/etc/extensions.lua
317
5827
CONSOLE = "Console/dsp" -- Console interface for demo --CONSOLE = "DAHDI/1" --CONSOLE = "Phone/phone0" IAXINFO = "guest" -- IAXtel username/password --IAXINFO = "myuser:mypass" TRUNK = "DAHDI/G2" TRUNKMSD = 1 -- TRUNK = "IAX2/user:pass@provider" -- -- Extensions are expected to be defined in a global table ...
bsd-3-clause
wangchenOS/skynet
service/clusterd.lua
12
2799
local skynet = require "skynet" local sc = require "socketchannel" local socket = require "socket" local cluster = require "cluster.core" local config_name = skynet.getenv "cluster" local node_address = {} local function loadconfig() local f = assert(io.open(config_name)) local source = f:read "*a" f:close() asse...
mit
Tele-Fox/CYR
plugins/plugins.lua
2
4751
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-3.0
siggame/Joueur.lua
games/stumped/game.lua
1
4198
-- Game: Gather branches and build up your lodge as beavers fight to survive. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.cl...
mit
jrversteegh/softsailor
deps/swig-2.0.4/Examples/lua/owner/runme.lua
2
3358
-- Operator overloading example ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else -- lua 5.1 does require('example') end print "ok, lets t...
gpl-3.0
sundream/gamesrv
script/card/neutral/card264028.lua
1
2276
--<<card 导表开始>> local super = require "script.card.neutral.card164028" ccard264028 = class("ccard264028",super,{ sid = 264028, race = 6, name = "冰霜元素", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 1, ...
gpl-2.0
Xeptix/framework
Services/FrameworkInternalService.lua
1
13173
-- All internal. Use with caution. local _sha1 return {"FrameworkInternalService", "FrameworkInternalService", {-- _StartService = function(self, a, b, c, d, e, f, g, h, i, j, k, l) game, Game, workspace, Workspace, table, string, math, typeof, type, Instance, print, require = a, b, c, d, e, f, g, h, i, j, k, l ...
gpl-3.0
ld-test/lua-log
lua/log.lua
1
3696
--- -- @module log -- local _VERSION = "0.1.5" local table = require "table" local string = require "string" local date = require "date" local destroy_list = {} local loggers_list = setmetatable({},{__mode = 'k'}) local emptyfn = function() end local LOG_LVL = { EMERG = 1; ALERT = 2; ...
mit
jxskiss/orange
bin/utils/logger.lua
4
1389
local ansicolors = require("bin.lib.ansicolors") local colors = {} for _, v in ipairs({"red", "green", "yellow", "blue"}) do colors[v] = function(str) return ansicolors("%{"..v.."}"..str.."%{reset}") end end local Logger = {} Logger.colors = colors function Logger:set_silent(silent) self._silent = silent ...
mit
sundream/gamesrv
script/card/water/card235005.lua
1
2275
--<<card 导表开始>> local super = require "script.card.water.card135005" ccard235005 = class("ccard235005",super,{ sid = 235005, race = 3, name = "北郡牧师", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, m...
gpl-2.0
thousandsofthem/FrameworkBenchmarks
frameworks/Lua/lapis/web.lua
72
5957
local lapis = require("lapis") local db = require("lapis.db") local Model do local _obj_0 = require("lapis.db.model") Model = _obj_0.Model end local config do local _obj_0 = require("lapis.config") config = _obj_0.config end local insert do local _obj_0 = table insert = _obj_0.insert end local sort do loc...
bsd-3-clause
dalvorsn/tests
data/talkactions/scripts/mccheck.lua
10
1054
function onSay(cid, words, param) local player = Player(cid) if not player:getGroup():getAccess() then return true end if player:getAccountType() < ACCOUNT_TYPE_GOD then return false end player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Multiclient Check List:") local ipList = {} local players = Game...
gpl-2.0
mortezaand/tgpragramer
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
gsingh93/ipscanner
app/src/main/assets/nmap/share/nmap/nselib/sasl.lua
2
14259
--- -- Simple Authentication and Security Layer (SASL). -- -- The library contains some low level functions and a high level class. -- -- The <code>DigestMD5</code> class contains all code necessary to calculate -- a DIGEST-MD5 response based on the servers challenge and the other -- necessary arguments (@see DigestMD5...
mit
rastin45/waqer12
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
sundream/gamesrv
script/card/golden/card215006.lua
1
2253
--<<card 导表开始>> local super = require "script.card.golden.card115006" ccard215006 = class("ccard215006",super,{ sid = 215006, race = 1, name = "水元素", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, m...
gpl-2.0
sundream/gamesrv
script/card/wood/card126003.lua
1
2202
--<<card 导表开始>> local super = require "script.card.init" ccard126003 = class("ccard126003",super,{ sid = 126003, race = 2, name = "灰烬使者", type = 301, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_ad...
gpl-2.0
rastin45/waqer12
plugins/time.lua
771
2865
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
erfan1292/sezar3
plugins/moderation.lua
42
30441
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
porya0909/anti-spam
plugins/saveplug.lua
1
1044
--Created by: @janlou & @Alirezame --Powered by: @SUDO_TM & @AdvanTM --??CopyRight all right reserved?? local function saveplug(extra, success, result) local msg = extra.msg local name = extra.name local receiver = get_receiver(msg) if success then local file = 'plugins/'..name..'.lua' print('File savi...
gpl-2.0
harryzeng/skynet
lualib/mqueue.lua
115
1798
-- This is a deprecated module, use skynet.queue instead. local skynet = require "skynet" local c = require "skynet.core" local mqueue = {} local init_once local thread_id local message_queue = {} skynet.register_protocol { name = "queue", -- please read skynet.h for magic number 8 id = 8, pack = skynet.pack, u...
mit
sundream/gamesrv
script/card/soil/card256011.lua
1
2249
--<<card 导表开始>> local super = require "script.card.soil.card156011" ccard256011 = class("ccard256011",super,{ sid = 256011, race = 5, name = "丛林守卫者(抉择1)", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ...
gpl-2.0
smasty/LunaCI
lunaci/tasks/dependencies.lua
1
2089
-- LunaCI dependency task -- Part of the LuaDist project - http://luadist.org -- Author: Martin Srank, hello@smasty.net -- License: MIT module("lunaci.tasks.dependencies", package.seeall) -- Check error message for Lua version-related failures local check_lua_version = function(err) return err:match("No suitable...
mit
EvPowerTeam/EV_OP
feeds/routing/luci-app-bmx6/files/usr/lib/lua/luci/model/cbi/bmx6/plugins.lua
20
1493
--[[ Copyright (C) 2011 Pau Escrich <pau@dabax.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Th...
gpl-2.0
sundream/gamesrv
script/card/neutral/card163026.lua
1
2767
--<<card 导表开始>> local super = require "script.card.init" ccard163026 = class("ccard163026",super,{ sid = 163026, race = 6, name = "寒光先知", type = 203, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 1, dieeffect = 0, sneak = 0, magic_hurt_ad...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-qos/luasrc/model/cbi/qos/qos.lua
41
2689
--[[ LuCI - Lua Configuration Interface Copyright 2008 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$ ]]-- loc...
gpl-2.0
sami2448/set
plugins/plugins.lua
13
6195
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
sundream/gamesrv
3rd/behaviourtree/examples/random.lua
1
1057
local BT = require('lib/behaviour_tree') local Frank = BT:new({ object = {name = 'test'}, tree = BT.Sequence:new({ nodes = { BT.Task:new({ run = function(self, object) print(object.name .. " looking") success() end }), BT.Random:new({ nodes = { ...
gpl-2.0
harryzeng/skynet
test/testredis2.lua
82
1043
local skynet = require "skynet" local redis = require "redis" local db function add1(key, count) local t = {} for i = 1, count do t[2*i -1] = "key" ..i t[2*i] = "value" .. i end db:hmset(key, table.unpack(t)) end function add2(key, count) local t = {} for i = 1, count do ...
mit
hacker44-h44/n32
plugins/arabic_lock.lua
30
1090
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id...
gpl-2.0
digitalloggers/nodemcu-firmware
lua_modules/dht_lib/dht_lib.lua
51
4895
-- *************************************************************************** -- DHTxx(11,21,22) module for ESP8266 with nodeMCU -- -- Written by Javier Yanez mod by Martin -- but based on a script of Pigs Fly from ESP8266.com forum -- -- MIT license, http://opensource.org/licenses/MIT -- *****************************...
mit
sundream/gamesrv
script/card/neutral/card266025.lua
1
2321
--<<card 导表开始>> local super = require "script.card.neutral.card166025" ccard266025 = class("ccard266025",super,{ sid = 266025, race = 6, name = "壮胆机器人3000型", type = 206, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = ...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/protocols/ipv6/luasrc/model/network/proto_4x6.lua
63
1522
--[[ LuCI - Network model - 6to4, 6in4 & 6rd protocol extensions Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 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 ...
gpl-2.0
rastin45/waqer12
plugins/unname.lua
4
3339
--[[ -----Studio Command Bar ModuleScript Auto Loader by dennis96411/PickleSammiches----- The purpose of this plugin is to auto-require a ModuleScript and set a reference to it for the studio command bar environment. Change ScriptName to the name of your ModuleScript, VariableName to the...
gpl-2.0
jxskiss/orange
bin/cmds/restart.lua
4
1175
local ngx_handle = require("bin.utils.ngx_handle") local start_cmd = require("bin.cmds.start") local stop_cmd = require("bin.cmds.stop") local logger = require("bin.utils.logger") local _M = {} _M.help = [[ Usage: orange restart [OPTIONS] Restart Orange with configurations(prefix/orange_conf/ngx_conf). Options: ...
mit
ElectricPrism/stargus
scripts/terran/unit-terran-starport.lua
1
2783
-- -- unit-terran-starport -- DefineAnimations("animations-terran-starport", { Still = { "frame 0", "wait 125", }, Train = {--[[FIXME: active overlay 320]] "frame 0", "wait 125", }, }) DefineConstruction("construction-terran-starport", { Files = { File = "terran/units/building construction large...
gpl-2.0
gsingh93/ipscanner
app/src/main/assets/nmap/share/nmap/nselib/smbauth.lua
2
33842
--- -- This module takes care of the authentication used in SMB (LM, NTLM, LMv2, NTLMv2). -- -- There is a lot to this functionality, so if you're interested in how it works, read -- on. -- In SMB authentication, there are two distinct concepts. Each will be dealt with -- separately. There are: -- * Stored hashes -- ...
mit
sundream/gamesrv
script/test/test_card.lua
1
2446
require "script.playermgr" require "script.war.auxilary" local function test(pid) pid = assert(tonumber(pid),"Invalid pid:" .. tostring(pid)) local player = playermgr.getplayer(pid) if not player then return end player.cardlib:clear() player.cardtablelib:clear() player.cardbaglib:clear() player:addchip(10...
gpl-2.0
ElectricPrism/stargus
scripts/terran/unit-terran-marine.lua
1
3845
-- -- unit-terran-marine -- DefineAnimations("animations-terran-marine-death", { Death = {"unbreakable begin", "frame 0", "wait 50", "frame 1", "wait 50", "frame 2", "wait 50", "unbreakable end", "wait 1", }, }) DefineUnitType("unit-terran-marine-death", { Name = "Dead Marine", Image = {"file", "terran/units...
gpl-2.0
spark0511/revolt_bot
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
kobakei/CCLocalNotification
cocos2d/external/lua/luajit/src/src/host/genminilua.lua
73
11943
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2013 Mike P...
apache-2.0
ElectricPrism/stargus
scripts/zerg/unit-zerg-hydralisk-den.lua
1
1347
-- -- unit-zerg-hydralisk-den -- DefineAnimations("animations-zerg-hydralisk-den", { Still = { "frame 1", "wait 2", "frame 2", "wait 4", "frame 1", "wait 2", "frame 0", "wait 4", }, }) DefineUnitType("unit-zerg-hydralisk-den", { Name = "Hydralisk Den", Image = {"file", "zerg/units/hydralisk den.png", ...
gpl-2.0
jdourlens/Driver-Arduino-IDE
LoveFrames/objects/list.lua
5
18625
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- list class local newobject = loveframes.NewObject("list", "loveframes_object_list", true) --[[-------------------------------...
mit
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/GridBase.lua
1
2834
-------------------------------- -- @module GridBase -- @extend Ref -------------------------------- -- @function [parent=#GridBase] setGridSize -- @param self -- @param #size_table size -------------------------------- -- @function [parent=#GridBase] calculateVertexPoints -- @param self ---------...
mit
LuaDist2/lua-curl
test/lunit/console.lua
19
3798
--[[-------------------------------------------------------------------------- This file is part of lunit 0.6. For Details about lunit look at: http://www.mroth.net/lunit/ Author: Michael Roth <mroth@nessie.de> Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de> Permission is hereby granted...
mit
EvPowerTeam/EV_OP
feeds/luci/contrib/luadoc/lua/luadoc/taglet/standard.lua
93
16319
------------------------------------------------------------------------------- -- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $ ------------------------------------------------------------------------------- local assert, pairs, tostring, type = assert, pairs, tostring, type local io = require "io...
gpl-2.0
magnum357i/Magnum-s-Aegisub-Scripts
automation/autoload/mag.delete_lines.lua
1
27653
function lang_switch_keys(lang) local in_lang = {} local langs = { [1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Sil", sub_menu = "Satır/Sil"}, [2] = {lang_key = "en", lang_name = "English", script_name = "Delete Lines", sub_menu = "Lines/Delete"} } local lang_list = {} local ...
mit
movb/Algorithm-Implementations
Bogosort/Lua/Yonaba/bogosort.lua
27
1070
-- A custom array shuffle implementation -- This is not part of the Bogosort algorithm local function shuffle(list) local n = #list for i = 1, n do local j, k = math.random(1,n), math.random(1,n) list[j], list[k] = list[k], list[j] end return list end -- Checks if an array is sorted local function is_sorted...
mit
jdourlens/Driver-Arduino-IDE
LoveFrames/init.lua
3
8610
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ local path = ... -- central library table loveframes = {} -- library info loveframes.author = "Kenny Shields" loveframes.versio...
mit
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d/external/lua/luasocket/ltn12.lua
71
8331
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ------------------------------------------------------------------------...
mit
nginxsuper/gin
gin/db/sql.lua
3
1540
-- perf local error = error local pairs = pairs local require = require local setmetatable = setmetatable local tconcat = table.concat local function tappend(t, v) t[#t+1] = v end local SqlDatabase = {} SqlDatabase.__index = SqlDatabase function SqlDatabase.new(options) -- check for required params local req...
mit
tltneon/NutScript
gamemode/core/libs/sv_player.lua
5
2097
local playerMeta = FindMetaTable("Player") -- Player data (outside of characters) handling. do function playerMeta:loadNutData(callback) local name = self:steamName() local steamID64 = self:SteamID64() local timeStamp = math.floor(os.time()) local ip = self:IPAddress():match("%d+%.%d+%.%d+%.%d+") nut.db.qu...
mit
facebokiii/facebookplug
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
telergybot/telergy2
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0