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
EvPowerTeam/EV_OP
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/csv.lua
80
1198
--[[ Luci configuration model for statistics - collectd csv plugin configuration (c) 2008 Freifunk Leipzig / 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 a...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iptables.lua
79
3679
--[[ Luci configuration model for statistics - collectd iptables plugin configuration (c) 2008 Freifunk Leipzig / 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 Lice...
gpl-2.0
sundream/gamesrv
script/card/neutral/card163011.lua
1
2213
--<<card 导表开始>> local super = require "script.card.init" ccard163011 = class("ccard163011",super,{ sid = 163011, race = 6, name = "拉文霍德刺客", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 1, magic_hurt_...
gpl-2.0
justintung/clumsy
premake4.lua
1
5789
-- currently only supports vs2010. -- and premake4 4.4 doesn't have vs2012 support yet. but seems auto upgrade works fine if _ACTION == 'clean' then os.rmdir('./build') os.rmdir('./bin') os.rmdir('./obj_vs') os.rmdir('./obj_gmake') end solution('clumsy') location("./build") configurations({'De...
mit
Sour/pfUI
env/translations_esES.lua
1
13792
pfUI_translation["esES"] = { ["40y-Range Check Interval"] = nil, ["Abbreviate Numbers (4200 -> 4.2k)"] = nil, ["Abort"] = nil, ["Action Bar Border Size"] = nil, ["Actionbar"] = nil, ["Active Addons"] = nil, ["Addon List"] = nil, ["AddOns"] = nil, ["Aggressive 40y-Range Check (Will break stuff)"] = nil...
mit
Midiman/Concrete
lib/hardon-collider/gjk.lua
2
5786
--[[ Copyright (c) 2012 Matthias Richter 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
EvPowerTeam/EV_OP
feeds/luci/applications/luci-firewall/luasrc/model/cbi/firewall/zone-details.lua
37
6267
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
gpl-2.0
sundream/gamesrv
script/card/neutral/card263011.lua
1
2227
--<<card 导表开始>> local super = require "script.card.neutral.card163011" ccard263011 = class("ccard263011",super,{ sid = 263011, race = 6, name = "拉文霍德刺客", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 1, ...
gpl-2.0
Choumiko/Factorio-Stdlib
stdlib/event/event.lua
1
6627
--- Makes working with events in factorio a lot more simple. -- <p>Factorio can only have one handler registered per event. This module -- allows you to easily register multiple handlers for each event. -- Using this module is as simple as replacing script.on_event(...) with Event.register(...)</p> -- @module Event -- ...
isc
dalvorsn/tests
data/compat.lua
1
27154
COMBAT_POISONDAMAGE = COMBAT_EARTHDAMAGE CONDITION_EXHAUST = CONDITION_EXHAUST_WEAPON TALKTYPE_ORANGE_1 = TALKTYPE_MONSTER_SAY TALKTYPE_ORANGE_2 = TALKTYPE_MONSTER_YELL function pushThing(thing) local t = {uid = 0, itemid = 0, type = 0, actionid = 0} if thing ~= nil then if thing:isItem() then t.uid = thing:get...
gpl-2.0
siggame/Joueur.lua
main.lua
2
1630
-- Please do not modify this file. -- Instead have a look at `README.md` for how to start writing you AI. require("joueur.utilities.table") -- extends the base table metatable require("joueur.utilities.string") -- extends the base string metatable local argparse = require("joueur.utilities.argparse") local run = requi...
mit
movb/Algorithm-Implementations
Negamax/Lua/Yonaba/handlers/tree_handler.lua
78
1131
-- Search tree class handler implementation local PATH = (...):gsub('handlers.tree_handler$','') local class = require (PATH .. '.utils.class') local tree = class () -- Tree initialization function tree:initialize() self.nodes = {} end -- Adds a node in the tree function tree:addNode(name, parent, value) asser...
mit
haochenx/mLOS
document.lua
1
4899
-- mLOS/document.lua -- -- Copyright (c) 2012 Hacohen Xie -- See the file license.txt for copying permission. -- -- This file tries to show how to work with mLOS, a Micro Lua Object -- System -- -- This file is created by Haochen Xie on Dec. 13, 2012 and is a part -- of Haochen's public project, mLOS, currently hosted ...
mit
movb/Algorithm-Implementations
Fisher-Yates/Lua/Yonaba/fisher_yates_test.lua
27
1376
-- Tests for fisher_yates.lua local shuffle = require 'fisher_yates' 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 loc...
mit
codemon66/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dynasm.lua
33
30989
------------------------------------------------------------------------------ -- DynASM. A dynamic assembler for code generation engines. -- Originally designed and implemented for LuaJIT. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See below for full copyright notice. ----------------------------...
mit
ElectricPrism/stargus
scripts/protoss/unit-protoss-gateway.lua
1
2888
-- -- unit-protoss-gateway -- DefineAnimations("animations-protoss-gateway", { Still = { "frame 0", "wait 125", }, Train = { "frame 0", "wait 125", }, }) DefineConstruction("construction-protoss-gateway", { Files = { File = "terran/units/building construction large.png", Size = {160, 128}}, ...
gpl-2.0
ld-test/lua-log
lua/log/writer/console/color.lua
1
9005
local io = require "io" local os = require "os" local Log = require "log" local make_attr, color_writeln, COLORS if not COLORS then -- afx cio local ok, cio = pcall(require, "cio") if ok then COLORS = { BLACK = 'n'; BLUE = 'b'; GREEN = 'g'; CYAN ...
mit
olostan/mudlet
src/mudlet-lua/lua/geyser/GeyserLabel.lua
13
3769
-------------------------------------- -- -- -- The Geyser Layout Manager by guy -- -- -- -------------------------------------- --- Represents a label like we all know and love. -- @class table -- @name Geyser.Label -- @field fillBg 1 if the background...
gpl-2.0
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/Texture2D.lua
1
5702
-------------------------------- -- @module Texture2D -- @extend Ref -------------------------------- -- @function [parent=#Texture2D] getMaxT -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#Texture2D] getStringForFormat -- @param self ...
mit
jhjin/nn8
THNN.lua
1
3818
local ffi = require 'ffi' local THNN = {} local generic_THNN_h = [[ TH_API void THNN_(Threshold_updateOutput)( THNNState *state, THTensor *input, THTensor *output, real threshold, real val, bool inplace); TH_API void THNN_(SpatialConvolutionMM_updateOutput)...
mit
shahpri/sina
plugins/muzic.lua
1
2845
--Shared @ThisIsArman And Coping-Shared channel @BlackHatchannel do   -- Base search URL   local BASE_URL = 'http://pleer.com/mobile/search?q='   -- Base download URL   local BASE_DL_URL = 'http://pleer.com/mobile/files_mobile/'   local htmlparser = require 'htmlparser'   -- Provide download link   local f...
gpl-2.0
ElectricPrism/stargus
scripts/protoss/unit-protoss-citadel-of-adun.lua
1
1826
-- -- -- unit-protoss-citadel-of-adun -- DefineAnimations("animations-protoss-citadel-of-adun", { Still = { "frame 0", "wait 125", }, Train = { "frame 0", "wait 125", }, }) DefineConstruction("construction-protoss-citadel-of-adun", { Files = { File = "terran/units/building construction large.png"...
gpl-2.0
bmcbarron/moonshine
extensions/luac/yueliang.lua
2
152334
-- Adapted from the amazing Yueliang project -- http://yueliang.luaforge.net/ --[[-------------------------------------------------------------------- luac.lua Primitive luac in Lua This file is part of Yueliang. Copyright (c) 2005-2007 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the condit...
mit
DedlySpyder/Proxy_Wars
scripts/surfaces.lua
1
1296
local teleport_accuracy = 20 --Attempts to teleport a player within teleport_accuracy tiles -- @param player obj -- @param surfaceName string -- @param position table -- @return true or false if successful function teleportPlayer(player, surfaceName, position) --Default position if not position then position = {0, 0}...
mit
EvPowerTeam/EV_OP
feeds/packages/net/luci-proto-openconnect/files/usr/lib/lua/luci/model/network/proto_openconnect.lua
15
1444
--[[ LuCI - Network model - dhcpv6 protocol extension Copyright 2012 David Woodhouse 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...
gpl-2.0
GabrielNicolasAvellaneda/boundary-plugin-mssql
init.lua
1
3353
-- Copyright 2015 Boundary, Inc. -- -- 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 agreed to i...
apache-2.0
movb/Algorithm-Implementations
The_Twelve_Days_Of_Xmas/Lua/Yonaba/the12daysofxmas.lua
26
1292
-- Lyrics for the song "The Twelve Days Of Xmas" -- See here: http://www.lyricsmode.com/lyrics/c/christmas_carols/the_twelve_days_of_christmas.html -- The days local days = { 'first', 'second', 'third', 'fourth', 'fifth', 'sixth', 'seventh', 'eighth', 'nineth', 'tenth', 'eleventh', 'twelfth' } -- The gifts my tru...
mit
weera00/nodemcu-firmware
lua_examples/make_phone_call.lua
75
3145
--[[ 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
EvPowerTeam/EV_OP
feeds/luci/contrib/luasrcdiet/lua/optparser.lua
122
23598
--[[-------------------------------------------------------------------- optparser.lua: does parser-based optimizations This file is part of LuaSrcDiet. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the ...
gpl-2.0
lhCheung1991/flappybird_cocos2dx_2
cocos2d/plugin/luabindings/auto/api/ProtocolAnalytics.lua
146
2113
-------------------------------- -- @module ProtocolAnalytics -- @extend PluginProtocol -- @parent_module plugin -------------------------------- -- brief Track an event begin.<br> -- param eventId The identity of event -- @function [parent=#ProtocolAnalytics] logTimedEventBegin -- @param self -- @param #char eventI...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna6.lua
38
1176
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Manuel Munz <freifunk at somakoma dot de> 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
rastin45/waqer12
plugins/anti-bot.lua
369
3064
local function isBotAllowed (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId local banned = redis:get(hash) return banned end local function allowBot (userId, chatId) local hash = 'anti-bot:allowed:'..chatId..':'..userId redis:set(hash, true) end local function disallowBot (userId, ch...
gpl-2.0
sami2448/set
plugins/yoda.lua
642
1199
local ltn12 = require "ltn12" local https = require "ssl.https" -- Edit data/mashape.lua with your Mashape API key -- http://docs.mashape.com/api-keys local mashape = load_from_file('data/mashape.lua', { api_key = '' }) local function request(text) local api = "https://yoda.p.mashape.com/yoda?" text = ...
gpl-2.0
jacklicn/mysql-proxy
tests/suite/base/t/bug_35729-mock.lua
4
1527
--[[ $%BEGINLICENSE%$ Copyright (c) 2009, 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
letmefly/skynet
service/snaxd.lua
17
2040
local skynet = require "skynet" local c = require "skynet.core" local snax_interface = require "snax.interface" local profile = require "profile" local snax = require "snax" local snax_name = tostring(...) local func, pattern = snax_interface(snax_name, _ENV) local snax_path = pattern:sub(1,pattern:find("?", 1, true)-...
mit
pandaforks/tido-rainbow
lua/Math.lua
1
2843
-- Rainbow math helper. -- -- Because none of us have a PhD in math (or physics). -- -- Note that if you're going to use any of these in a loop, it is better to -- inline them, e.g.: -- -- \code -- local Math = require(module_path .. "Math") -- -- function bad_code() -- local d = 1.0 -- while true do -- d = Mat...
mit
movb/Algorithm-Implementations
Cocktail_Sort/Lua/Yonaba/cocktail_sort_test.lua
26
2230
-- Tests for cocktail_sort.lua local cocktail_sort = require 'cocktail_sort' 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 = pa...
mit
nphilipp/ardour
scripts/s_chanmap.lua
9
1191
ardour { ["type"] = "Snippet", name = "plugin channel-map dev" } function factory () return function () -- first track needs to be stereo and have a stereo plugin -- (x42-eq with spectrum display, per channel processing, -- and pre/post visualization is very handy here) function checksetup (r) -- fail if Route...
gpl-2.0
digitalloggers/nodemcu-firmware
examples/telnet.lua
61
1070
print("====Wicon, a LUA console over wifi.==========") print("Author: openthings@163.com. copyright&GPL V2.") print("Last modified 2014-11-19. V0.2") print("Wicon Server starting ......") function startServer() print("Wifi AP connected. Wicon IP:") print(wifi.sta.getip()) sv=net.createServer(net.TCP, 180) ...
mit
sundream/gamesrv
script/card/neutral/card163021.lua
1
2831
--<<card 导表开始>> local super = require "script.card.init" ccard163021 = class("ccard163021",super,{ sid = 163021, race = 6, name = "小鬼召唤师", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_a...
gpl-2.0
sami2448/set
plugins/quran.lua
9
2535
--shared by @BlackHatchannel quran() {   local NAMA_SURAT=( . Al-Fatihah Al-Baqarah Ali-Imran An-Nisaa\' Al-Maaidah \   Al-An\'aam Al-A\'raaf Al-Anfaal At-Taubah Yunus Huud Yusuf Ar-Ra\'d Ibrahim \   Al-Hijr An-Nahl Al-Israa\' Al-Kahfi Maryam Thaahaa Al-Anbiyaa\' Al-Hajj \   Al-Mukminuun An-Nuur Al-Furqaan Ash-Shu...
gpl-2.0
sami2448/set
plugins/sticker_lock.lua
2
19246
-- data saved to data/moderation.json do local administrators_only = 'For administrator only!' local moderators_only = 'For moderators only!' local function create_group(msg) if not is_admin(msg) then return administrators_only end local group_creator = msg.from.print_name create_group_chat (group_creator, grou...
gpl-2.0
sundream/gamesrv
script/card/wood/card222002.lua
1
2269
--<<card 导表开始>> local super = require "script.card.wood.card122002" ccard222002 = class("ccard222002",super,{ sid = 222002, race = 2, name = "圣疗术", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, mag...
gpl-2.0
siggame/Joueur.lua
games/pirates/ai.lua
2
5211
-- This is where you build your AI for the Pirates game. local class = require("joueur.utilities.class") local BaseAI = require("joueur.baseAI") -- <<-- Creer-Merge: requires -->> - Code you add between this comment and the end comment will be preserved between Creer re-runs. -- you can add additional require(s) here...
mit
Midiman/Concrete
lib/hump/class.lua
1
3054
--[[ Copyright (c) 2010-2013 Matthias Richter 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, publis...
mit
jacklicn/mysql-proxy
examples/tutorial-rewrite.lua
6
2740
--[[ $%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
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d/external/lua/luajit/src/src/jit/dis_mips.lua
99
13222
---------------------------------------------------------------------------- -- LuaJIT MIPS disassembler module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------...
mit
alidess/aliali
plugins/moderation.lua
25
30112
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
sami2448/set
plugins/ownerspn.lua
7
14090
local function lock_group_namemod(msg, data, target) local group_name_set = data[tostring(target)]['settings']['set_name'] local group_name_lock = data[tostring(target)]['settings']['lock_name'] if group_name_lock == 'yes' then return 'اسم گروه قفل بود' else data[tostring(target)]['settings']['lock_nam...
gpl-2.0
tomm/pioneer
data/ui/StationView/Police.lua
1
2754
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of the GPL v3. See licenses/GPL-3.txt local Engine = import("Engine") local Lang = import("Lang") local Game = import("Game") local Rand = import("Rand") local Character = import("Character") local Format = import("For...
gpl-3.0
sundream/gamesrv
script/award/init.lua
1
3037
--[[ 奖励控制表格式: { { type = 1/2 #1--独立计算概率(概率基数为1000000),2--互斥概率 value = { [awardid1] = ratio1, [awardid2] = ratio2, ... } }, ... } 奖励项格式: { type = 资源ID/物品ID, num = 数量, #其他字段,如对于物品,bind字段 } ]] award = award or {} function award.orgaward(orgid,reward) end local BASE_RATIO = BASE_RATIO or 1000000 fu...
gpl-2.0
movb/Algorithm-Implementations
Depth_Limited_Search/Lua/Yonaba/handlers/gridmap_handler.lua
182
2356
-- A grid map handler -- Supports 4-directions and 8-directions moves -- This handler is devised for 2d bounded grid where nodes are indexed -- with a pair of (x, y) coordinates. It features straight (4-directions) -- and diagonal (8-directions) moves. local PATH = (...):gsub('handlers.gridmap_handler$','') local Nod...
mit
Choumiko/Factorio-Stdlib
stdlib/event/time.lua
2
3968
--- Raise events at certain times throughout a surfaces day, This module uses the stdlib Event system -- See also @{event.time.lua} -- @module Event.Time -- @usage require('stdlib/event/time') require 'stdlib/event/event' require 'stdlib/defines/time' Event.Time = {} --All times are offset by 0.5 --This is because b...
isc
letmefly/skynet
lualib/skynet/injectcode.lua
108
2610
local debug = debug local table = table local FUNC_TEMP=[[ local $ARGS return function(...) $SOURCE end, function() return {$LOCALS} end ]] local temp = {} local function wrap_locals(co, source, level, ext_funcs) if co == coroutine.running() then level = level + 3 end local f = debug.getinfo(co, level,"f").func ...
mit
siggame/Joueur.lua
games/saloon/furnishing.lua
2
2736
-- Furnishing: An furnishing in the Saloon that must be pathed around, or destroyed. -- 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.utili...
mit
sundream/gamesrv
script/card/neutral/card266010.lua
1
2257
--<<card 导表开始>> local super = require "script.card.neutral.card166010" ccard266010 = class("ccard266010",super,{ sid = 266010, race = 6, name = "欢乐姐妹", type = 201, magic_immune = 1, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, ...
gpl-2.0
nimaghorbani/THOR
plugins/plugins.lua
37
4733
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
Choumiko/Factorio-Stdlib
spec/data/data_spec.lua
1
2209
require 'stdlib/data/data' describe('Data Spec', function() before_each(function() _G.data = {} _G.data.raw = {} _G.data.raw.recipe = { ["copper-plate"] = { type = "recipe", name = "copper-plate", category = "smelting", ...
isc
SharpWoW/VellumWithdrawer
main.lua
1
3988
--[[ Copyright (c) 2014 by Adam Hellberg. 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, mer...
mit
erfan1292/sezar3
lang/portuguese_lang.lua
27
19623
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
bjornswenson/RxLua
tests/concat.lua
2
1626
describe('concat', function() it('produces an error if its parent errors', function() expect(Rx.Observable.throw():concat()).to.produce.error() end) it('returns the first argument if it is the only argument', function() local observable = Rx.Observable.fromRange(1, 3):concat() expect(observable).to.p...
mit
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/WavesTiles3D.lua
6
1251
-------------------------------- -- @module WavesTiles3D -- @extend TiledGrid3DAction -------------------------------- -- @function [parent=#WavesTiles3D] getAmplitudeRate -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#WavesTiles3D] set...
mit
Toukibi/ToSAddon
RemainingCounter/src/remainingcounter.lua
1
24877
local addonName = "RemainingCounter"; local verText = "1.07"; local autherName = "TOUKIBI"; local addonNameLower = string.lower(addonName); local SlashCommandList = {"rmcnt", "remcount"} -- {"/コマンド1", "/コマンド2", .......}; local CommandParamList = { update = {jp = "表示を更新", en = "The additional information displaye...
gpl-3.0
siggame/Joueur.lua
games/necrowar/unit.lua
1
4208
-- Unit: A unit in the game. May be a worker, zombie, ghoul, hound, abomination, wraith or horseman. -- 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 = requi...
mit
jacklicn/mysql-proxy
examples/tutorial-states.lua
6
2935
--[[ $%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
nimaghorbani/THOR
plugins/kickall.lua
1
1705
local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, ok_cb, true) end local function returnids(cb_extra, success, result) local receiver = cb_extra.receiver local chat_id = result.id local chatname = result.print_name loc...
gpl-2.0
alireasuzuki/LIZARD
bot/seedbot.lua
1
10204
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
gpl-2.0
Midiman/Concrete
lib/hump/vector.lua
1
5514
--[[ Copyright (c) 2010-2013 Matthias Richter 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, publis...
mit
sundream/gamesrv
script/card/golden/card114003.lua
1
2885
--<<card 导表开始>> local super = require "script.card.init" ccard114003 = class("ccard114003",super,{ sid = 114003, race = 1, name = "冰枪术", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_add...
gpl-2.0
Lynx3d/tinker_tools
Libraries/LibSimpleWidgets/tooltip.lua
2
5479
local PADDING = 10 -- tooltip border width local MAX_WIDTH = 250 local MAX_HEIGHT = 500 local MOUSE_X_OFFSET = 15 local MOUSE_Y_OFFSET = 20 -- Helper Functions local function ResizeToFit(self) self.text:ClearAll() local w = math.min(MAX_WIDTH, self.text:GetWidth()) self.text:SetWidth(w) local h = math.min(MAX...
bsd-3-clause
spark0511/revolt_bot
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
Houshalter/lw-replay
socket/tp.lua
81
3612
----------------------------------------------------------------------------- -- Unified SMTP/FTP subsystem -- LuaSocket toolkit. -- Author: Diego Nehab ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- -- Declare...
mit
rastin45/waqer12
plugins/weather.lua
351
1443
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' local b, c, h = http.request(url) if c ~= 200 then return nil end local weather = ...
gpl-2.0
gsingh93/ipscanner
app/src/main/assets/nmap/share/nmap/nselib/nsedebug.lua
2
3289
--- -- Debugging functions for Nmap scripts. -- -- This module contains various handy functions for debugging. These should -- never be used for actual results, only during testing. -- -- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html require "stdnse" local EMPTY = {}; -- Empty constant table mo...
mit
wangchenOS/skynet
examples/client.lua
4
2097
package.cpath = "luaclib/?.so" package.path = "lualib/?.lua;examples/?.lua" local socket = require "clientsocket" local bit32 = require "bit32" local proto = require "proto" local sproto = require "sproto" local host = sproto.new(proto.s2c):host "package" local request = host:attach(sproto.new(proto.c2s)) local fd =...
mit
codemon66/Urho3D
bin/Data/LuaScripts/30_LightAnimation.lua
24
9498
-- Light animation example. -- This sample is base on StaticScene, and it demonstrates: -- - Usage of attribute animation for light color & UI animation require "LuaScripts/Utilities/Sample" function Start() -- Execute the common startup for samples SampleStart() -- Create the UI content ...
mit
sami2448/set
plugins/botphoto.lua
6
1239
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
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/external/lua/luasocket/mbox.lua
89
2648
local _M = {} if module then mbox = _M end function _M.split_message(message_s) local message = {} message_s = string.gsub(message_s, "\r\n", "\n") string.gsub(message_s, "^(.-\n)\n", function (h) message.headers = h end) string.gsub(message_s, "^.-\n\n(.*)", function (b) message.body = b end) ...
mit
NotronXteam/seed_Notron
plugins/invite.lua
393
1225
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
siggame/Joueur.lua
games/newtonian/game.lua
1
4633
-- Game: Combine elements and be the first scientists to create fusion. -- 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.class") ...
mit
sundream/gamesrv
script/card/fire/card145006.lua
1
2681
--<<card 导表开始>> local super = require "script.card.init" ccard145006 = class("ccard145006",super,{ sid = 145006, race = 4, name = "苔原犀牛", type = 202, magic_immune = 0, assault = 1, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_ad...
gpl-2.0
jkhlf85/THETETOO_8
plugins/me.lua
6
3670
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY tetoo ▀▄ ▄▀ ▀▄ ▄▀ BY nmore (@l_l_lo) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY l_l_ll ▀▄ ▄▀ ▀▄ ▄▀ broadcast : موقــعي ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀...
agpl-3.0
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotaryLimit.lua
6
1199
-------------------------------- -- @module PhysicsJointRotaryLimit -- @extend PhysicsJoint -------------------------------- -- @function [parent=#PhysicsJointRotaryLimit] getMax -- @param self -- @return float#float ret (return value: float) -------------------------------- -- @function [parent=#PhysicsJoi...
mit
sundream/gamesrv
script/card/neutral/card166022.lua
1
3129
--<<card 导表开始>> local super = require "script.card.init" ccard166022 = class("ccard166022",super,{ sid = 166022, race = 6, name = "修理机器人", type = 206, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_a...
gpl-2.0
hellnet/dotfiles
.config/awesome/themes/custom01/theme.lua
1
4537
local awful = require("awful") awful.util = require("awful.util") theme = {} theme.confdir = awful.util.getdir("config") theme.wallpaper = confdir .. "/themes/custom01/default/bg.png" theme.font = "envy code r 9" theme.taglist_font = "envy code r 9" theme.fg_normal = "#a7a7a7" theme.fg_focus = "#ababab" them...
gpl-2.0
sundream/gamesrv
script/card/water/card134006.lua
1
2554
--<<card 导表开始>> local super = require "script.card.init" ccard134006 = class("ccard134006",super,{ sid = 134006, race = 3, name = "思维窃取", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_ad...
gpl-2.0
dalvorsn/tests
data/creaturescripts/scripts/playerdeath.lua
6
3139
local deathListEnabled = true local maxDeathRecords = 5 function onDeath(cid, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local player = Player(cid) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.") if not deathListEnabled then return end local byPlayer = 0 local killerCreat...
gpl-2.0
tltneon/NutScript
gamemode/core/derma/cl_information.lua
2
5679
local PANEL = {} function PANEL:Init() if (IsValid(nut.gui.info)) then nut.gui.info:Remove() end nut.gui.info = self self:SetSize(ScrW() * 0.6, ScrH() * 0.7) self:Center() local suppress = hook.Run("CanCreateCharInfo", self) if (!suppress or (suppress and !suppress.all)) then if (!suppress or !...
mit
facebokiii/facebookplug
plugins/twitter.lua
632
2555
local OAuth = require "OAuth" -- EDIT data/twitter.lua with the API keys local twitter_config = load_from_file('data/twitter.lua', { -- DON'T EDIT HERE. consumer_key = "", consumer_secret = "", access_token = "", access_token_secret = "" }) local client = OAuth.new(twitter_config.consumer_key, twitter_c...
gpl-2.0
cdhekne/My_Thesis
Thesis_JsonToRDF/data/rdf/final_Mooc.owl/Plugins/OWLGrEd_UserFields/axiom.lua
1
28579
module(..., package.seeall) require("lua_tda") tda_to_protege = require "tda_to_protege" styleMechanism = require "OWLGrEd_UserFields.styleMechanism" -- function axiom(diagram) -- local String = "" -- local tag = lQuery("Tag[key = 'owl_Fields_ImportSpec']"):each(function(obj) -- if obj:attr("value")~="" and obj:fi...
apache-2.0
EvPowerTeam/EV_OP
feeds/luci/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoa.lua
58
4064
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
gpl-2.0
movb/Algorithm-Implementations
Dijkstra_Search/Lua/Yonaba/handlers/linear_handler.lua
182
1721
-- A linear boundless 1D space map handler -- This handler is devised for 1-directional continuous space, where -- nodes are represented with consecutive integer values: 0, 1, 2, etc. -- Similar to a range (interval) with no bounds. -- i.e., the path from 5 to 0 would be 5, 4, 3, 2, 1, 0. local PATH = (...):gsub('han...
mit
sundream/gamesrv
script/card/water/card235002.lua
1
2317
--<<card 导表开始>> local super = require "script.card.water.card135002" ccard235002 = class("ccard235002",super,{ sid = 235002, race = 3, name = "神圣新星", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, m...
gpl-2.0
coordcn/miss-core
src/xml.lua
1
1314
-- Copyright © 2017 coord.cn. All rights reserved. -- @author QianYe(coordcn@163.com) -- @license MIT license local utils = require("miss-core.src.utils") local _M = {} -- @brief xml to lua table -- @param xml {string} -- <xml> -- <appid>123456</appid> -- <test>test</t...
mit
KristFoundation/Programs
LuaIDE.lua
1
59745
-- -- Lua IDE -- Made by GravityScore -- -- -------- Variables -- Version local version = "1.0" local args = {...} -- Editing local w, h = term.getSize() local tabWidth = 2 local autosaveInterval = 20 local allowEditorEvent = true local keyboardShortcutTimeout = 0.4 -- Clipboard local clipboard = nil -- ...
mit
yangboz/petulant-octo-dubstep
HP_ID_Print_App/cocos2d-x-3.2/cocos/scripting/lua-bindings/auto/api/MenuItemToggle.lua
6
1310
-------------------------------- -- @module MenuItemToggle -- @extend MenuItem -------------------------------- -- @function [parent=#MenuItemToggle] setSubItems -- @param self -- @param #array_table array -------------------------------- -- @function [parent=#MenuItemToggle] getSelectedIndex -- @param sel...
mit
matthew-parlette/dotfiles
vim/bundle/vim-lua-ftplugin/misc/lua-ftplugin/globals.lua
2
1515
#!/usr/bin/env lua -- Unpack arguments from Vim. local compiler = arg[1] local filename = arg[2] local verbose = tonumber(arg[3]) ~= 0 local function quote(s) return string.format('"%s"', (s:gsub('["\\]', '\\%0'))) end -- Parse output of "luac -l" for GETGLOBAL/SETGLOBAL instructions. local command = string.format...
unlicense
codemon66/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/typedef.lua
44
1696
-- tolua: typedef class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- enhancements...
mit
REZATITAN/AntiSpamBot
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0
shahpri/sina
plugins/anti_spam.lua
923
3750
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds local data = load_data(_config.moderation.data) -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id =...
gpl-2.0