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
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_EDT.lua
1
22698
-- Global Variables DPSMate.Modules.DetailsEDT = {} -- Local variables local DetailsArr, DetailsTotal, DmgArr, DetailsUser, DetailsSelected = {}, 0, {}, "", 1 local DetailsArrComp, DetailsTotalComp, DmgArrComp, DetailsUserComp, DetailsSelectedComp = {}, 0, {}, "", 1 local g, g2, g3, g4, g7 local curKey = 1 local db,...
gpl-3.0
Oliveryo/Interface
AddOns/enemyFrames/globals/spellCastingCore.lua
1
28268
local Cast = {} local casts = {} local Heal = {} local heals = {} local InstaBuff = {} local iBuffs = {} local buff = {} local buffList = {} local dreturns = {} local dreturnsList = {} local buffQueue = {} local buffQueueList = {} Cast.__index = spellCast Heal.__index = Heal In...
gpl-3.0
mohammadclashclash/info1
plugins/Add_Bot.lua
29
1484
--[[ Bot can join into a group by replying a message contain an invite link or by typing !join [invite link]. URL.parse cannot parsing complicated message. So, this plugin only works for single [invite link] in a post. [invite link] may be preceeded but must not followed by another characters. --]] do local functio...
gpl-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/view/object/object_property_window.lua
1
23957
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) ObjectPropertyWindow = Editor:extends{} ObjectPropertyWindow:Register({ name = "objectPropertyWindow", tab = "Objects", caption = "Properties", tooltip = "Edit object properties", image = Path.Join(SB.DIRS.IMG, 'anatomy.png'), order = 2, ...
mit
aure/Soundpipe
modules/data/tenvx.lua
3
1643
sptbl["tenvx"] = { files = { module = "tenvx.c", header = "tenvx.h", example = "ex_tenvx.c", }, func = { create = "sp_tenvx_create", destroy = "sp_tenvx_destroy", init = "sp_tenvx_init", compute = "sp_tenvx_compute", }, params = { op...
mit
NerdWalletOSS/Q
UTILS/test/test_save_restore.lua
1
2882
local Q = require 'Q' local Scalar = require 'libsclr' local tests = {} local qconsts = require 'Q/UTILS/lua/q_consts' tests.t1 = function() -- Simple test to check save() & restore() functionality col1 = Q.mk_col({10,20,30,40,50}, "I4") Q.save("/tmp/saving_it.lua") -- nullifying col1 before restoring co...
mit
codergreen/ValyriaTear
dat/battles/characters_animations/kalya_attack.lua
1
5548
-- Filename: thanis_attack.lua -- This file is scripting Bronann's attack animation, called by attack skills. -- The initialize() function is called once, followed by calls to the update function. -- When the update function returns true, the attack is finished. -- Set the namespace local ns = {}; setmetatable(ns, {__...
gpl-2.0
titansec/openwaf
lib/twaf/inc/request.lua
1
22155
-- Copyright (C) Miracle -- Copyright (C) OpenWAF local _M = { _VERSION = "1.1.0" } local twaf_func = require "lib.twaf.inc.twaf_func" local redis_m = require "resty.redis" local ngx_var = ngx.var local ngx_now = ngx.now local ngx_log = ngx.log local ngx_ERR ...
apache-2.0
keyidadi/luci
modules/base/luasrc/http.lua
27
8237
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor License: 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 Lice...
apache-2.0
Flexibity/luci
libs/web/luasrc/http/protocol/mime.lua
88
2933
--[[ HTTP protocol implementation for LuCI - mime handling (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 at http://www....
apache-2.0
keyidadi/luci
applications/luci-commands/luasrc/controller/commands.lua
76
5959
--[[ LuCI - Lua Configuration Interface Copyright 2012 Jo-Philipp Wich <jow@openwrt.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 ]]-- module("...
apache-2.0
Oliveryo/Interface
AddOns/aux-addon/tabs/post/core.lua
1
17842
module 'aux.tabs.post' include 'T' include 'aux' local info = require 'aux.util.info' local sort_util = require 'aux.util.sort' local persistence = require 'aux.util.persistence' local money = require 'aux.util.money' local scan_util = require 'aux.util.scan' local post = require 'aux.core.post' local scan = require ...
gpl-3.0
Flexibity/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua
80
2561
--[[ LuCI - Lua Configuration Interface Copyright 2008 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 $Id$ ]]-- l...
apache-2.0
codergreen/ValyriaTear
dat/effects/lightning.lua
6
17504
------------------------------------------------------------------------------[[ -- Filename: lightning.lua -- -- Description: This file contains the declaration of the light intensity values -- used to display a lightning effect. -- The audio part parameter are used to trigger the lightning strike sounds. ------------...
gpl-2.0
tboox/xmake
xmake/modules/detect/tools/find_windres.lua
1
1638
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
Flexibity/luci
applications/luci-statistics/luasrc/statistics/datatree.lua
77
4394
--[[ Luci statistics - rrd data tree builder (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 at http://www.apache.org/licenses/...
apache-2.0
mentor81/kgbot
bot/bot.lua
1
7118
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 = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
Rhalyf/RhalyfsKeybindings
lib/LibAddonMenu-2.0/controls/slider.lua
7
5924
--[[sliderData = { type = "slider", name = "My Slider", tooltip = "Slider's tooltip text.", min = 0, max = 20, step = 1, --(optional) getFunc = function() return db.var end, setFunc = function(value) db.var = value doStuff() end, width = "full", --or "half" (optional) disabled = function() return db.someBoole...
mit
NerdWalletOSS/Q
OPERATORS/F1F2OPF3/test/testcases/c_testing/f1f2opf3.lua
1
3298
local ffi = require 'Q/UTILS/lua/q_ffi' local g_err = require 'Q/UTILS/lua/error_code' local qc = require 'Q/UTILS/lua/q_core' local qconsts = require 'Q/UTILS/lua/q_consts' local cmem = require 'libcmem' local get_ptr = require 'Q/UTILS/lua/get_ptr' -- allocate chunk and prepare convertor function for calling C apis ...
mit
fperrad/lua
t/shootout/fannkuch_lua-3.lua
5
1474
-- The Computer Language Shootout -- http://shootout.alioth.debian.org/ -- contributed by Mike Pall local function fannkuch(n) local p, q, s, odd, check, maxflips = {}, {}, {}, true, 0, 0 for i=1,n do p[i] = i; s[i] = i end repeat -- Print max. 30 permutations. if check < 30 then if not p[n] then r...
artistic-2.0
MrMime71/PLHv2
PersonalLootHelper/PersonalLootHelper-Test.lua
1
11923
--[[ TEST ITEMS ]] -- local TEST_SIMPLE_ITEM = nil local TEST_EQUIPPED_HELM = nil local TEST_BASIC_GEAR_LINK = nil local TEST_UPGRADED_GEAR_LINK = nil local TEST_WAND = nil local TEST_HELD_IN_OFFHAND = nil local TEST_NECK = nil local TEST_SHIELD = nil local TEST_CROSSBOW = nil local TEST_GUN = nil local T...
gpl-3.0
tboox/xmake
xmake/modules/core/tools/swiftc.lua
1
6314
--!A cross-platform build utility based on Lua -- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apach...
apache-2.0
Oliveryo/Interface
AddOns/BigWigs/Libs/AceModuleCore-2.0/AceModuleCore-2.0.lua
1
13981
--[[ Name: AceModuleCore-2.0 Revision: $Rev: 17998 $ Developed by: The Ace Development Team (http://www.wowace.com/index.php/The_Ace_Development_Team) Inspired By: Ace 1.x by Turan (turan@gryphon.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/index.php/AceModuleCore-2.0 SVN: http://svn.wowace...
gpl-3.0
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/datafiles.lua
2
11318
--- -- Read and parse some of Nmap's data files: <code>nmap-protocols</code>, -- <code>nmap-rpc</code>, <code>nmap-services</code>, and -- <code>nmap-mac-prefixes</code>. -- -- The functions in this module return values appropriate for use with exception -- handling via <code>nmap.new_try</code>. On success, they retu...
gpl-3.0
keyidadi/luci
applications/luci-minidlna/luasrc/controller/minidlna.lua
73
1448
--[[ LuCI - Lua Configuration Interface - miniDLNA support Copyright 2012 Gabor Juhos <juhosg@openwrt.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...
apache-2.0
Flexibity/luci
applications/luci-openvpn/luasrc/model/cbi/openvpn.lua
7
3315
--[[ 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...
apache-2.0
starius/kodomoquiz
quiz/lua2hw.lua
1
7919
local lua2hw = {} function lua2hw.statement1(req) return '', '=', '+', '..', 'f()', [[Что из перечисленного является оператором?]] end function lua2hw.statement2(req) return '', 'if', '~=', '==', 'print', [[Что из перечисленного является оператором?]] end funct...
mit
RamiLego4Game/PixelizerBox-Sandbox
Helpers/loveframes/objects/internal/modalbackground.lua
16
2647
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.internal.modalbackgro...
apache-2.0
LuaDist2/lua-websockets
src/websocket/frame.lua
5
5551
-- Following Websocket RFC: http://tools.ietf.org/html/rfc6455 local bit = require'websocket.bit' local band = bit.band local bxor = bit.bxor local bor = bit.bor local tremove = table.remove local srep = string.rep local ssub = string.sub local sbyte = string.byte local schar = string.char local band = bit.band local r...
mit
FlightControl-Master/MOOSE
Moose Development/Moose/AI/AI_Air_Squadron.lua
1
7754
--- **AI** - Models squadrons for airplanes and helicopters. -- -- This is a class used in the @{AI.AI_Air_Dispatcher} and derived dispatcher classes. -- -- === -- -- ### Author: **FlightControl** -- -- === -- -- @module AI.AI_Air_Squadron -- @image MOOSE.JPG --- @type AI_AIR_SQUADRON -- @extends Core.Base...
gpl-3.0
EnglandTeam/EnglandTeamBot
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/view/dialog/dialog.lua
1
1520
SB.Include(Path.Join(SB.DIRS.SRC, 'view/editor.lua')) Dialog = Editor:extends{} function Dialog:init(opts) Editor.init(self) -- if opts.OnOK ~= nil then -- assert(type(opts.OnOK) == 'table') -- self.OnOK = opts.OnOK -- end -- if opts.OnCancel ~= nil then -- assert(type(opts.On...
mit
leecrest/luvit
tests/utils.lua
15
1222
local function deep_equal(expected, actual, path) if expected == actual then return true end local prefix = path and (path .. ": ") or "" local expectedType = type(expected) local actualType = type(actual) if expectedType ~= actualType then return false, prefix .. "Expected type " .. expectedType .....
apache-2.0
aure/Soundpipe
modules/data/pareq.lua
3
1642
sptbl["pareq"] = { files = { module = "pareq.c", header = "pareq.h", example = "ex_pareq.c", }, func = { create = "sp_pareq_create", destroy = "sp_pareq_destroy", init = "sp_pareq_init", compute = "sp_pareq_compute", }, params = { op...
mit
bighil/aeslua
src/aeslua/gf.lua
2
2289
require("bit"); -- finite field with base 2 and modulo irreducible polynom x^8+x^4+x^3+x+1 = 0x11d local private = {}; local public = {}; aeslua.gf = public; -- private data of gf private.n = 0x100; private.ord = 0xff; private.irrPolynom = 0x11b; private.exp = {}; private.log = {}; -- -- add two polynoms (its simpl...
lgpl-2.1
keyidadi/luci
modules/base/luasrc/model/ipkg.lua
82
5778
--[[ LuCI - Lua Configuration Interface (c) 2008-2011 Jo-Philipp Wich <xm@subsignal.org> (c) 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.apach...
apache-2.0
Rhalyf/RhalyfsKeybindings
lib/LibAddonMenu-2.0/controls/header.lua
7
1479
--[[headerData = { type = "header", name = "My Header", width = "full", --or "half" (optional) reference = "MyAddonHeader" --(optional) unique global reference to control } ]] local widgetVersion = 6 local LAM = LibStub("LibAddonMenu-2.0") if not LAM:RegisterWidget("header", widgetVersion) then return end local ...
mit
dabbler0/seq2seq-comparison
s2sa/extract_states.lua
2
17412
require 'nn' require 'string' require 'hdf5' require 'nngraph' require 'models.lua' require 'data.lua' require 'util.lua' stringx = require('pl.stringx') cmd = torch.CmdLine() -- file location cmd:option('-model', 'seq2seq_lstm_attn.t7.', [[Path to model .t7 file]]) cmd:option('-src_file', '', [[Source sequence to ...
mit
DSUK/OpenRA
mods/ra/maps/allies-02/allies02.lua
5
8126
ConstructionVehicleReinforcements = { "mcv" } ConstructionVehiclePath = { ReinforcementsEntryPoint.Location, DeployPoint.Location } JeepReinforcements = { "e1", "e1", "e1", "jeep" } JeepPath = { ReinforcementsEntryPoint.Location, ReinforcementsRallyPoint.Location } TruckReinforcements = { "truk", "truk", "truk" } Tru...
gpl-3.0
FlightControl-Master/MOOSE
Moose Development/Moose/Tasking/Task_A2G_Dispatcher.lua
1
38361
--- **Tasking** - Dynamically allocates A2G tasks to human players, based on detected ground targets through reconnaissance. -- -- **Features:** -- -- * Dynamically assign tasks to human players based on detected targets. -- * Dynamically change the tasks as the tactical situation evolves during the mission. -- *...
gpl-3.0
NerdWalletOSS/Q
UTILS/lua/gen_code.lua
1
1226
local file_exists = require 'Q/UTILS/lua/file_exists' local section = { c = 'definition', h = 'declaration' } local function do_replacements(tmpl, subs) local T if ( file_exists(tmpl) ) then T = assert(dofile(tmpl)) else assert(nil) --[[ TODO P1 Is it okay to comment this out? local filename =...
mit
AliKhodadad/Dark-Boys
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
ramin65/cia
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
ahnqirage/thrift
lib/lua/TSocket.lua
113
2996
---- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may...
apache-2.0
Oliveryo/Interface
AddOns/KLHThreatMeter/Code/KTM_Combat.lua
1
26648
--! This module references these other modules: --! boss: mastertarget, targetismaster, mttruetarget, --! data: spells, rockbiter, threatconstants, spellmatchesset, --! my: class, ability, states, mods, globalthreat, --! out: checktrace, printtrace, --! table: mydata, raiddata, newdatastruct, getraidthreat, resetr...
gpl-3.0
Oliveryo/Interface
AddOns/BigWigs/Raids/Naxxramas/Sapphiron.lua
1
9150
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Sapphiron"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) local time local cachedUnitId local lastTarget ---------------------------- -- Localization -- ----...
gpl-3.0
Oliveryo/Interface
AddOns/ShaguQuest/EQL3_Tracker.lua
1
26058
function EQL_QuestTracker_OnLoad() this:RegisterEvent("QUEST_FINISHED"); this:RegisterEvent("QUEST_COMPLETE"); this:RegisterEvent("VARIABLES_LOADED"); this:RegisterEvent("UI_INFO_MESSAGE"); this:RegisterEvent("CHAT_MSG_SYSTEM"); this:RegisterEvent("UNIT_QUEST_LOG_CHANGED"); end function EQL3_QuestWatchFra...
gpl-3.0
keyidadi/luci
applications/luci-ddns/luasrc/model/cbi/ddns/ddns.lua
18
3692
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Copyright 2013 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...
apache-2.0
leecrest/luvit
tests/test-http-parse-error.lua
11
1778
--[[ Copyright 2012-2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
apache-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/view/trigger/type_panel.lua
1
6767
TypePanel = Editor:extends{} function TypePanel:init(opts) Editor.init(self) self.stackPanel = opts.parent assert(opts.dataType, "dataType cannot be nil") assert(opts.parent, "parent cannot be nil") --assert(opts.trigger, "trigger cannot be nil") assert(opts.params, "params cannot be nil") ...
mit
FlightControl-Master/MOOSE
Moose Development/Moose/Core/UserFlag.lua
1
2942
--- **Core** - Manage user flags to interact with the mission editor trigger system and server side scripts. -- -- === -- -- ## Features: -- -- * Set or get DCS user flags within running missions. -- -- === -- -- ### Author: **FlightControl** -- -- === -- -- @module Core.UserFlag -- @image Core_Userflag.JPG -- ...
gpl-3.0
satta/annot-nf
bin/pseudo_merge_blast.lua
4
3475
--[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2014 Genome Research Ltd Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWA...
isc
Oliveryo/Interface
AddOns/dpsmate/DPSMate_Options.lua
1
79339
-- Global Variables DPSMate.Options.fonts = { ["FRIZQT"] = "Fonts\\FRIZQT__.TTF", ["ARIALN"] = "Fonts\\ARIALN.TTF", ["MORPHEUS"] = "Fonts\\MORPHEUS.TTF", ["ABF"] = "Interface\\AddOns\\DPSMate\\fonts\\ABF.TTF", ["Accidental Presidency"] = "Interface\\AddOns\\DPSMate\\fonts\\Accidental Presidency.TTF", ["Adventure"...
gpl-3.0
jie-meng/Lunar
publish/tools/cocos2dx/cocos_lua_generate_get_set.lua
2
2818
local file_ext = require('file_ext') local table_ext = require('table_ext') local pattern_ctor = [[function%s+[%w_]+:ctor%(%s*%)]] local pattern_field = [[self.([%w_]+)]] print("Input target class name:") local class = util.strTrim(io.read()) local filepath = util.currentPath() .. '/' .. class .. '.lua' print("File: ...
gpl-2.0
Flexibity/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/ping.lua
80
1397
--[[ Luci configuration model for statistics - collectd ping 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 ...
apache-2.0
NerdWalletOSS/Q
OPERATORS/MK_COL/test/testcases/handle_category.lua
1
4282
local Q = require 'Q' local plstring = require 'pl.stringx' local qconsts = require 'Q/UTILS/lua/q_consts' local convert_c_to_txt = require 'Q/UTILS/lua/C_to_txt' local print_csv = require 'Q/OPERATORS/PRINT/lua/print_csv' local fns = {} fns.increment_failed_mkcol = function (index, v, str) print("testcase name :"....
mit
Flexibity/luci
libs/web/luasrc/http.lua
4
8181
--[[ LuCI - HTTP-Interaction Description: HTTP-Header manipulator and form variable preprocessor FileId: $Id$ License: 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 co...
apache-2.0
m-2k/wrk
deps/luajit/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
apache-2.0
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/msrpcperformance.lua
2
29517
--- -- This module is designed to parse the <code>PERF_DATA_BLOCK</code> structure, which is -- stored in the registry under HKEY_PERFORMANCE_DATA. By querying this structure, you can -- get a whole lot of information about what's going on. -- -- To use this from a script, see <code>get_performance_data</code>, it is ...
gpl-3.0
Rodeo314/tim-vlc
share/lua/playlist/koreus.lua
57
4037
--[[ Copyright © 2009 the VideoLAN team 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. This program is distributed in ...
gpl-2.0
Goodzilam/Good1
plugins/stats.lua
168
4001
do -- Returns a table with `name` and `msgs` 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_prin...
gpl-2.0
Oliveryo/Interface
AddOns/AtlasQuest/Constants.lua
1
1077
--[[ More constants soon ]] --Vesiontext festlegen (als variable) local VERSION_CORE = "|cffff00003"; local VERSION_INSTANZEN = "20"; local VERSION_REST = "56|r" ATLASQUEST_VERSION = "AtlasQuest |cFFFF8080PRE-TBC|r v"..VERSION_CORE.."."..VERSION_INSTANZEN.."."..VERSION_REST..""; --------------DEADMINES/Inst1--------...
gpl-3.0
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Casts.lua
1
3935
-- Global Variables DPSMate.Modules.Casts = {} DPSMate.Modules.Casts.Hist = "EDTaken" DPSMate.Options.Options[1]["args"]["casts"] = { order = 270, type = 'toggle', name = DPSMate.L["casts"], desc = DPSMate.L["show"].." "..DPSMate.L["casts"]..".", get = function() return DPSMateSettings["windows"][DPSMate.Options.D...
gpl-3.0
disslove3/MAX4-BOT
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
scripts/turrettorp.lua
16
2934
include "constants.lua" local base = piece 'base' local arm1 = piece 'arm1' local arm2 = piece 'arm2' local turret = piece 'turret' local firepoint = piece 'firepoint' local waterFire = false local smokePiece = {base} -- Signal definitions local SIG_AIM = 2 local function Bob(rot) while true do Turn(base, ...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/cmd_remove_wait.lua
7
1499
if not gadgetHandler:IsSyncedCode() then return end function gadget:GetInfo() return { name = "Remove Wait", desc = "Removes wait from structures which have no need for the command.", author = "GoogleFrog", date = "3 April 2015", license = "GNU GPL, v2 or later", layer = 0, enabled = true, } end local sp...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
effects/tremor.lua
8
6910
-- tremor return { ["tremor"] = { air = false, count = 1, ground = true, water = false, debris1 = { air = false, class = [[CSimpleParticleSystem]], count = 5, ground =...
gpl-2.0
Scavenge/darkstar
scripts/globals/spells/knights_minne_v.lua
27
1498
----------------------------------------- -- Spell: Knight's Minne V -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(cast...
gpl-3.0
viluon/cccitygen
Classes/Facing.lua
1
1365
local orientations = { "north", "east", "south", "west", } class "Facing" { direction = 0; } function Facing:Facing( d ) d = d or 1 if type( d ) == "string" then for i = 1, #orientations do if orientations[ i ] == d:lower() then self.direction = i return end end error( "Unknown orientation ...
gpl-3.0
OpenPrograms/mpmxyz-Programs
lib/drivers/sign.lua
2
1468
----------------------------------------------------- --name : lib/drivers/sign.lua --description: adds a devfs driver for sign upgrades --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : none ----------------------------------------------------- --This driver creates a file...
mit
Scavenge/darkstar
scripts/zones/Crawlers_Nest/npcs/qm12.lua
57
2120
----------------------------------- -- Area: Crawlers' Nest -- NPC: qm12 (??? - Exoray Mold Crumbs) -- Involved in Quest: In Defiant Challenge -- @pos 99.326 -0.126 -188.869 197 ----------------------------------- package.loaded["scripts/zones/Crawlers_Nest/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
Dyaxler/SpartanUI
Modules/PlayerFrames/scripts/Global-Features.lua
1
19472
local SUI = SUI local PlayerFrames = SUI:NewModule('PlayerFrames') SUI.PlayerFrames = PlayerFrames ---------------------------------------------------------------------------------------------------- function PlayerFrames:round(val, decimal) if (decimal) then return math.floor((val * 10 ^ decimal) + 0.5) / (10 ^ de...
gpl-3.0
PaulBatchelor/Soundpipe
modules/data/crossfade.lua
3
1127
sptbl["crossfade"] = { files = { module = "crossfade.c", header = "crossfade.h", example = "ex_crossfade.c", }, func = { create = "sp_crossfade_create", destroy = "sp_crossfade_destroy", init = "sp_crossfade_init", compute = "sp_crossfade_compute", ...
mit
Scavenge/darkstar
scripts/zones/Port_Windurst/npcs/Gold_Skull.lua
17
2443
----------------------------------- -- Area: Port Windurst -- NPC: Gold Skull -- Mission NPC ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/z...
gpl-3.0
kjc88/sl4a
lua/luasocket/src/ftp.lua
144
9120
----------------------------------------------------------------------------- -- FTP support for the Lua language -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ftp.lua,v 1.45 2007/07/11 19:25:47 diego Exp $ ----------------------------------------------------------------------------- -------------------...
apache-2.0
shashlik/android-skia
tools/lua/scrape.lua
145
2246
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
Scavenge/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Rytaal.lua
24
4539
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Rytaal -- Type: Standard NPC -- @pos 112.002 -1.338 -45.038 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegat...
gpl-3.0
Kyklas/luci-proto-hso
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
37
5651
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> 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://w...
apache-2.0
Scavenge/darkstar
scripts/globals/weaponskills.lua
4
37878
-- Contains all common weaponskill calculations including but not limited to: -- fSTR -- Alpha -- Ratio -> cRatio -- min/max cRatio -- applications of fTP -- applications of critical hits ('Critical hit rate varies with TP.') -- applications of accuracy mods ('Accuracy varies with TP.') -- applications of damage mods (...
gpl-3.0
cohadar/tanks-of-harmony-and-love
libs/Quickie/mouse.lua
10
3265
--[[ 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, distribu...
mit
kjc88/sl4a
lua/luasocket/src/ltn12.lua
127
8177
----------------------------------------------------------------------------- -- LTN12 - Filters, sources, sinks and pumps. -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- -------...
apache-2.0
maksym1221/nlp-rnn
model/IRNN.lua
1
2126
--require 'util.ELU' --require 'util.LinearFixed' --require 'util.L2Linear' --require 'util.EigenvalueL2Linear' local RNN = {} function RNN.rnn(input_size, rnn_size, n, dropout, embedding) -- there are n+1 inputs (hiddens on each layer and x) local inputs = {} table.insert(inputs, nn.Identity()()) -- x for...
gpl-3.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/libraries/notifications.lua
12
15836
NOTIFICATIONS_VERSION = "1.00" --[[ Sample Panorama Notifications Library by BMD Installation -"require" this file inside your code in order to gain access to the Notifications class for sending notifications to players, teams, or all clients. -Ensure that you have the barebones_notifications.xml, barebones_n...
apache-2.0
xincun/nginx-openresty-windows
lua-resty-memcached-0.13/lib/resty/memcached.lua
11
14805
-- Copyright (C) 2012-2013 Yichun Zhang (agentzh), CloudFlare Inc. local sub = string.sub local escape_uri = ngx.escape_uri local unescape_uri = ngx.unescape_uri local match = string.match local tcp = ngx.socket.tcp local strlen = string.len local concat = table.concat local setmetatable = setmetatable local type = t...
bsd-2-clause
Grade-A-Software/Comcast-DASH-VLC
share/lua/intf/cli.lua
35
31833
--[==========================================================================[ cli.lua: CLI module for VLC --[==========================================================================[ Copyright (C) 2007-2011 the VideoLAN team $Id$ Authors: Antoine Cellerier <dionoea at videolan dot org> Pierre Ynard ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Abyssea-Tahrongi/npcs/qm15.lua
14
1566
----------------------------------- -- Zone: Abyssea-Tahrongi -- NPC: ??? -- Spawns Lacovie -- @pos ? ? ? 45 ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/status"); ----------------------------------- -- onTrigger Action ----------------------------------- function...
gpl-3.0
taxler/radish
lua/parse/substitution/charset/csISO886914.lua
1
2031
local byte = require 'parse.substitution.charset.byte' return byte + { ['\xa1'] = '\u{1e02}'; -- latin capital letter b with dot above ['\xa2'] = '\u{1e03}'; -- latin small letter b with dot above ['\xa4'] = '\u{10a}'; -- latin capital letter c with dot above ['\xa5'] = '\u{10b}'; -- latin small letter c with dot...
mit
Zomis/FactorioMods
train-log_1.1.5/train_log.lua
1
5238
local events = require("__flib__.event") local tables = require("__flib__.table") local MAX_KEEP = 60 * 60 * 60 * 24 -- ticks * seconds * minutes * hours local function clear_older_force(force_index, older_than) -- local old_size = table_size(global.history) global.history = tables.filter(global.history, funct...
mit
Scavenge/darkstar
scripts/zones/Lower_Jeuno/npcs/_6tc.lua
25
4144
----------------------------------- -- Area: Lower Jeuno -- NPC: Door: "Neptune's Spire" -- Starts and Finishes Quest: Beat Around the Bushin -- @zone 245 -- @pos 35 0 -15 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts...
gpl-3.0
Scavenge/darkstar
scripts/zones/Bastok_Markets/npcs/Offa.lua
14
1306
----------------------------------- -- Area: Bastok Markets -- NPC: Offa -- Type: Quest NPC -- @pos -281.628 -16.971 -140.607 235 -- -- Auto-Script: Requires Verification. Verified standard dialog - thrydwolf 12/18/2011 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = ni...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/tortilla_bueno.lua
12
1180
----------------------------------------- -- ID: 5181 -- Item: tortilla_bueno -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 8 -- Vitality 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
RazorKitty/dotfiles
.config/awesome/terrible/container/menu.lua
1
3733
local gtable = require('gears.table') local layout = require('wibox.layout.fixed') local keygrabber = require('awful.keygrabber') local menu = {} local menu_mt = {} menu.class = 'menu' function menu.set_focus(self, index) if index ~= self.focus then if self.focus then self.children[self.focus]...
unlicense
ihcfan/NautiPlot
hmi-cocos2d-x/cocos/scripting/lua/script/DrawPrimitives.lua
57
12038
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = CCApplication:getInstance():getTargetPlatform() loca...
gpl-2.0
taxler/radish
lua/parse/substitution/charset/csISOLatin2.lua
1
3384
local byte = require 'parse.substitution.charset.byte' return byte + { ['\xa1'] = '\u{104}'; -- latin capital letter a with ogonek ['\xa2'] = '\u{2d8}'; -- breve ['\xa3'] = '\u{141}'; -- latin capital letter l with stroke ['\xa5'] = '\u{13d}'; -- latin capital letter l with caron ['\xa6'] = '\u{15a}'; -- latin c...
mit
tempbottle/tundra
scripts/tundra/tools/generic-cpp.lua
13
3616
module(..., package.seeall) local nodegen = require "tundra.nodegen" local boot = require "tundra.boot" local util = require "tundra.util" local path = require "tundra.path" local scanner = require "tundra.scanner" local depgraph = require "tundra.depgraph" local scanner_cache = {} function get_cpp_sca...
gpl-3.0
dani-sj/evilbot03
plugins/inpm.lua
243
3007
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
tarikgwa/nfd
lua/test/database_test.lua
1
3195
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2014 Star2Billing S.L. -- --...
mpl-2.0
Scavenge/darkstar
scripts/zones/Southern_San_dOria/npcs/Carautia.lua
14
2251
----------------------------------- -- Area: Carautia -- NPC: Southern San d'Oria -- Standard Merchant NPC -- @zone 230 -- @pos 70 0 39 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require...
gpl-3.0
1yvT0s/wax
examples/TwitterApp/scripts/TwitterTableViewController.lua
17
1076
waxClass{"TwitterTableViewController", UITableViewController} function init(self) self.super:initWithStyle(UITableViewStylePlain) self.trends = {} return self end function viewDidLoad(self) wax.http.request{"http://search.twitter.com/trends.json", callback = function(json, response) if response:statusC...
mit
omidtarh/wezard
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0