repo_name
stringlengths
6
78
path
stringlengths
4
206
copies
stringclasses
281 values
size
stringlengths
4
7
content
stringlengths
625
1.05M
license
stringclasses
15 values
Flexibity/luci
libs/core/luasrc/model/firewall.lua
13
11139
--[[ LuCI - Firewall model Copyright 2009 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 Unless required by applica...
apache-2.0
sysuzhang/arcemu
src/scripts/lua/Lua/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Julianne.lua
30
1106
function Julianne_Eternal_Affection(Unit, event, miscunit, misc) print "Julianne Eternal Affection" Unit:FullCastSpell(30878) Unit:SendChatMessage(11, 0, "HEAL...") end function Julianne_Powerful_Attraction(Unit, event, miscunit, misc) print "Julianne Powerful Attraction" Unit:FullCastSpellOnTarget(30889,Unit:Get...
agpl-3.0
xkfz007/vlc
share/lua/meta/art/02_frenchtv.lua
51
2724
--[[ Gets an artwork from amazon $Id$ Copyright © 2007 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...
lgpl-2.1
g0t-ya/XiaoyuBox
luci/model/cbi/pppoeserver.lua
1
3992
--[[ LuCI - Lua Configuration Interface ]]-- local wa = require "luci.tools.webadmin" local fs = require "nixio.fs" local running=(luci.sys.call("pidof pppoe-server > /dev/null") == 0) if running then m = Map("pppoeserver", translate("PPPOE_Server"), translate("PPPOE_Server is running")) else m = Map("pppoeserver"...
lgpl-3.0
NerdWalletOSS/Q
OPERATORS/IDX_SORT/lua/idx_sort.lua
1
2254
local function idx_sort(idx, val, ordr) local Q = require 'Q/q_export' local qc = require 'Q/UTILS/lua/q_core' local is_base_qtype = require 'Q/UTILS/lua/is_base_qtype' local get_ptr = require 'Q/UTILS/lua/get_ptr' local ffi = require 'Q/UTILS/lua/q_ffi' local qconsts = require 'Q/UTILS/lua/q_cons...
mit
Flexibity/luci
applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
7
7776
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010 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
Oliveryo/Interface
AddOns/AtlasLoot/Core/Sets.lua
1
34998
function AtlasLoot_SetMenu(setname) if(setname=="AQ40SET") then getglobal("AtlasLootItemsFrame_Druid"):Show(); getglobal("AtlasLootItemsFrame_Druid").lootpage="AQ40Druid"; getglobal("AtlasLootItemsFrame_Hunter"):Show(); getglobal("AtlasLootItemsFrame_Hunter").lootpage="AQ40Hunter"; ...
gpl-3.0
XeonSquared/PsychOS
modules/net/ncd.lua
1
4232
net = {} net.id = computer.address():sub(1,8) net.delay = 2 net.np = 4957 net.cache = true net.cache_time = 16 net.log = false if cdlib and relib then spawn("ncd",function() print(pcall(function() local olog = log local function log(...) if net.log then for k,v in ipairs({...}) do olog("[ncd] " .. tostring(...
mpl-2.0
Oliveryo/Interface
AddOns/KLHThreatMeter/Code/KTM_CombatParser.lua
1
12400
--! This module references these other modules: --! combat: specialattack, normalattack, taunt, possibleoverheal, powergain, --! data: spells, --! out: checktrace, printtrace, --! regex: parse, addparsestring, --! string: unlocalise, --! This module is referenced by these other modules: -- Add the module to the...
gpl-3.0
XeonSquared/PsychOS
modules/lib/buffer.lua
1
1598
_G.buffer = {} function buffer.ucreate() local b = {} b.b,b.s = "","open" function b.write(s,d) if b.s == "open" then s.b = s.b .. tostring(d) return(tostring(d):len()) end end function b.read(s,l) if b.s == "open" then if type(l) == "number" then local ns,bs=s.b:sub(1,l),s.b:sub(l+1) s.b = ...
mpl-2.0
Oliveryo/Interface
AddOns/Cartographer/Libs/Dewdrop-2.0/Dewdrop-2.0.lua
2
82495
--[[ Name: Dewdrop-2.0 Revision: $Rev: 15987 $ Author(s): ckknight (ckknight@gmail.com) Website: http://ckknight.wowinterface.com/ Documentation: http://wiki.wowace.com/index.php/Dewdrop-2.0 SVN: http://svn.wowace.com/root/trunk/DewdropLib/Dewdrop-2.0 Description: A library to provide a clean dropdown menu interface. D...
gpl-3.0
Oliveryo/Interface
AddOns/HealComm/libs/HealComm-1.0/HealComm-1.0.lua
1
59442
--[[ Name: HealComm-1.0 Revision: $Rev: 11400 $ Author(s): aviana Website: https://github.com/Aviana Description: A library to provide communication of heals and resurrections. Dependencies: AceLibrary, AceEvent-2.0, RosterLib-2.0 ]] local MAJOR_VERSION = "HealComm-1.0" local MINOR_VERSION = "$Revision: 11400 $" if n...
gpl-3.0
tboox/xmake
xmake/core/sandbox/modules/import/core/sandbox/module.lua
1
14509
--!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
hsharsha/couchstore
tests/compact.lua
6
1515
package.path = package.path .. ";tests/?.lua" local testlib = require("testlib") local function check_table(db, t) for i,v in ipairs(t) do local k = v[1] testlib.check_doc(db, k, v[2]) end local found = 0 db:changes(0, 0, function(di) found = found + 1 end) if found ~= #t then error("...
apache-2.0
eagle14/Snippy-robot
plugins/anti-bot.lua
29
3063
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, cha...
gpl-2.0
Oliveryo/Interface
AddOns/pfUI/modules/xpbar.lua
1
7077
pfUI:RegisterModule("xpbar", function () pfUI.xp = CreateFrame("Frame",nil, UIParent) pfUI.xp:SetWidth(5) if pfUI.chat then pfUI.xp:SetPoint("TOPLEFT", pfUI.chat.left, "TOPRIGHT", pfUI_config.appearance.border.default*2, 0) pfUI.xp:SetPoint("BOTTOMLEFT", pfUI.chat.left, "BOTTOMRIGHT", pfUI_config.appearan...
gpl-3.0
eagle14/Snippy-robot
plugikiackandban.lua
24
19084
-- data saved to moderation.json do -- make sure to set with value that not higher than stats.lua local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 4 local NO_KICK = 'I will not kick myself, sudoers, admins or moderators!' local NO_BAN = 'I will not ban myself, sudoe...
gpl-2.0
tboox/xmake
xmake/modules/net/fasturl.lua
1
2432
--!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
tboox/xmake
xmake/modules/detect/tools/find_lldb.lua
1
1726
--!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
EvilHero90/forgottenserver
data/scripts/eventcallbacks/player/default_onReportRuleViolation.lua
6
1478
local function hasPendingReport(name, targetName, reportType) local f = io.open(string.format("data/reports/players/%s-%s-%d.txt", name, targetName, reportType), "r") if f then io.close(f) return true end return false end local ec = EventCallback ec.onReportRuleViolation = function(self, targetName, reportTyp...
gpl-2.0
Rodeo314/tim-vlc
share/lua/playlist/anevia_xml.lua
124
3618
--[[ Parse list of available streams on Anevia servers. The URI http://ipaddress/ws/Mgmt/* describes a list of available streams on the server. Copyright © 2009 M2X BV Authors: Jean-Paul Saman <jpsaman@videolan.org> This program is free software; you can redistribute it and/or modify it under the terms of the...
gpl-2.0
TeslaCloud/TTTRewrite
terrortown/entities/weapons/weapon_zm_carry.lua
1
16096
---- Carry weapon SWEP AddCSLuaFile() SWEP.HoldType = "pistol" if CLIENT then SWEP.PrintName = "magnet_name" SWEP.Slot = 4 end SWEP.Base = "weapon_tttbase" SWEP.AutoSpawnable = false SWEP.ViewModel = Model("models/weapons/v_stunbaton.mdl") SWEP.WorldModel = ...
mit
kvalium/loveGame
character.lua
1
1676
Object = require "lib.classic" Character = Object:extend() local assetSpritesFolder = 'assets/images/' local assetSoundsFolder = 'assets/sounds/' local badAssets = { { sprite = 'fantome.png', hitSound = 'fantome.wav', deathSound = '8.ogg' }, { sprite = 'scarabee.png', hitSound = 'Chipster.wav', deathSound = ...
gpl-3.0
blablacio/uwsgi
tests/websockets_chat_async.lua
8
2647
#!./uwsgi --http :9090 --http-modifier1 6 --http-raw-body --async 256 --ugreen --master --lua tests/websockets_chat_async.lua -- Same worker = Same luaState = Same chat room local PAGE_STATIC = [[<html> <head> <script language="Javascript"> var s = new WebSocket("%s://%s/foobar/", ["chat","foo","bar"]); s.o...
gpl-2.0
aure/Soundpipe
modules/data/paulstretch.lua
2
1628
sptbl["paulstretch"] = { files = { module = "paulstretch.c", header = "paulstretch.h", example = "ex_paulstretch.c", }, func = { create = "sp_paulstretch_create", destroy = "sp_paulstretch_destroy", init = "sp_paulstretch_init", compute = "sp_paulstr...
mit
satta/annot-nf
bin/truncate_header.lua
4
1078
#!/usr/bin/env gt --[[ 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 co...
isc
tboox/xmake
xmake/modules/detect/tools/find_go.lua
1
1650
--!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
kvalium/loveGame
lib/sti/plugins/bump.lua
1
3596
--- Bump.lua plugin for STI -- @module bump.lua -- @author David Serrano (BobbyJones|FrenchFryLord) -- @copyright 2016 -- @license MIT/X11 return { bump_LICENSE = "MIT/X11", bump_URL = "https://github.com/karai17/Simple-Tiled-Implementation", bump_VERSION = "3.1.5.3", bump_DESCRIPTION ...
gpl-3.0
Flexibity/luci
modules/niu/luasrc/model/cbi/niu/network/lan.lua
51
1037
local uci = require "luci.model.uci" local cursor = uci.cursor() local d = Delegator() d.allow_finish = true d.allow_back = true d.allow_cancel = true d:add("lan1", "niu/network/lan1") function d.on_cancel() cursor:revert("network") cursor:revert("dhcp") end function d.on_done() if uci.inst_state:get("network", "...
apache-2.0
keyidadi/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...
apache-2.0
NerdWalletOSS/Q
OPERATORS/DEPRECATED/DATA_LOAD/test/testcases/map_metadata_data.lua
1
9178
--[[ Guideline for adding new testcases in this file File : map_metadata_data.lua In this file, all the testcases are written in the format meta = <meta file>, data = <csv_file>, category = <category_number>, output_regex = <expected_output> They are added as a row in the below LUA table. category1 - error code testcas...
mit
disslove3/MAX4-BOT
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- 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 api_key = mashape.api_key if ...
gpl-2.0
mentor81/kgbot
plugins/isX.lua
605
2031
local https = require "ssl.https" local ltn12 = require "ltn12" local function request(imageUrl) -- 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 api_key = mashape.api_key if ...
gpl-2.0
Flexibity/luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua
25
7206
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2009 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
slayerrensky/luci
modules/luci-base/luasrc/model/cbi/admin_network/proto_dhcp.lua
74
1873
-- Copyright 2011-2012 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ifc = net:get_interface() local hostname, accept_ra, send_rs local bcast, defaultroute, peerdns, dns, metric, clientid, vendorclass hostname = section:taboption("gener...
apache-2.0
celarco/ardupilot
libraries/AP_Scripting/examples/LED_poslight.lua
22
2147
--[[ Script to use LED strips as position lights. For this script we will use two strips with up to 8 LEDs each. --]] local num_leds = 8 local timer = 0 -- Brightness for green or red light. local br_color = 255 -- Brightness for flash light when armed. local br_flash = 255 --[[ Use SERVOn_FUNCTION 94 for left L...
gpl-3.0
g0t-ya/XiaoyuBox
luci/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...
lgpl-3.0
funshine/nodemcu-firmware
lua_examples/u8glib/u8g_graphics_test.lua
10
4488
-- *************************************************************************** -- Graphics Test -- -- This script executes several features of u8glib to test their Lua bindings. -- -- Note: It is prepared for SSD1306-based displays. Select your connectivity -- type by calling either init_i2c_display() or init_spi...
mit
Yonaba/character-physics-demo
integrators/implicitEuler.lua
2
1519
--[[ Copyright (c) 2012 Roland Yonaba 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, ...
mit
iranianhacker40/ARCHON-TEAM
plugins/webshot.lua
14
3715
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
tboox/xmake
xmake/modules/detect/sdks/find_mingw.lua
1
3808
--!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
satta/annot-nf
data/weight/weight_plasmodium.lua
8
4266
function count_stopcodons(s) local pat = "[+*#]" local n = 0 local percent = function(s) n = n + 1 end s:gsub(pat, percent) return n end -- XXX make this more generic valid_splice_sites_fwd = { five_prime = { GT = true, gt = true }, three_prime = { AG = true, ag = true }} valid_splice_...
isc
slayerrensky/luci
protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
46
1462
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Copyright 2013 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local peeraddr, ip6addr local tunlink, defaultroute, metric, ttl, mtu peeraddr = section:taboption("general", Value, "peerad...
apache-2.0
NerdWalletOSS/Q
GRAPH/ATTRIBUTION/lua/load_alpha.lua
1
1041
local Q = require 'Q' local function load_alpha() local A = { { 1 }, { 2/3, 1/3 }, { 4/7, 2/7, 1/7 }, { 8/15, 4/15, 2/15, 1/15 }, { 16/31, 8/31, 4/31, 2/31, 1/31 }, { 32/63, 16/63, 8/63, 4/63, 2/63, 1/63, }, { 64/127, 32/137, 16/127, 8/127, 4/127, 2/127, 1/127, }, { 128/255...
mit
celarco/ardupilot
libraries/AP_Scripting/examples/param_get_set_test.lua
8
3087
-- This script is a test of param set and get local count = 0 -- for fast param acess it is better to get a param object, -- this saves the code searching for the param by name every time local VM_I_Count = Parameter() if not VM_I_Count:init('SCR_VM_I_COUNT') then gcs:send_text(6, 'get SCR_VM_I_COUNT failed') end -...
gpl-3.0
TeslaCloud/TTTRewrite
terrortown/gamemode/libs/cl_scoring_events.lua
1
7445
---- Event display information for Event Log in the Round Report ---- Usage: -- Declare a *unique* event identifier in a shared file, eg. -- EVENT_PANTS = 800 -- -- Use SCORE:AddEvent serverside in whatever way you want. -- -- Clientside, tell CLSCORE how to display it, like so: -- -- CLSCORE.DeclareEventDisplay(EVENT...
mit
Oliveryo/Interface
AddOns/dpsmate/libs/GraphLib/Graph-1.0/Graph-1.0.lua
1
64492
--[[ Name: GraphLib-1.0 Revision: $Rev: 36224 $ Author(s): Cryect (cryect@gmail.com) Website: http://www.wowace.com/ Documentation: http://www.wowace.com/wiki/GraphLib SVN: http://svn.wowace.com/root/trunk/GraphLib/ Description: Allows for easy creation of graphs ]] --Thanks to Nelson Minar for catching several errors...
gpl-3.0
keyidadi/luci
applications/luci-pbx/luasrc/model/cbi/pbx-voip.lua
128
4540
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
apache-2.0
tboox/xmake
xmake/plugins/project/vstudio/impl/vs201x_vcxproj_filters.lua
1
5740
--!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...
apache-2.0
keyidadi/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/ping.lua
78
1192
--[[ Luci statistics - ping plugin diagram definition (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.apach...
apache-2.0
celarco/ardupilot
libraries/AP_Scripting/examples/NMEA-decode.lua
23
3236
-- Script decodes, checks and prints NMEA messages -- find the serial first (0) scripting serial port instance local port = serial:find_serial(0) if not port then gcs:send_text(0, "No Scripting Serial Port") return end -- begin the serial port -- NMEA is usually 4800 or 9600 port:begin(4800) port:set_flow_co...
gpl-3.0
g0t-ya/XiaoyuBox
luci/model/cbi/admin_network/proto_static.lua
60
2663
--[[ 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...
lgpl-3.0
NoobieDog/nexmon
app/app/src/main/external/src/libwireshark_helper/wireshark/epan/wslua/dtd_gen.lua
7
8425
-- dtd_gen.lua -- -- a DTD generator for wireshark -- -- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org> -- -- $Id: dtd_gen.lua 28700 2009-06-11 13:08:06Z stig $ -- -- Wireshark - Network traffic analyzer -- By Gerald Combs <gerald@wireshark.org> -- Copyright 1998 Gerald Combs -- -- This program is free software; y...
gpl-3.0
Oliveryo/Interface
AddOns/ShaguQuest/EQL3_Tooltip.lua
1
3747
function EQL3_Tooltip_OnLoad() -- this will catch mobs needed for quests this:RegisterEvent('UPDATE_MOUSEOVER_UNIT'); -- this should catch items when you're going to sell them EQL3_ContainerFrameItemButton_OnEnter = ContainerFrameItemButton_OnEnter; ContainerFrameItemButton_OnEnter = EQL3_New_ContainerFrameIte...
gpl-3.0
endavis/bastmush
Bast/lua/eqdb.lua
1
48150
-- $Id$ --[[ item details - fields serial (key) keywords cname name type level worth weight wearable material score flags foundat clanitem SELECT * FROM itemdetails WHERE serial NOT IN(SELECT serial FROM items) --]] require 'tprint' require ...
gpl-2.0
Flexibity/luci
libs/lucid-http/luasrc/lucid/http/handler/luci.lua
50
2663
--[[ LuCId HTTP-Slave (c) 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local dsp = require "...
apache-2.0
codergreen/ValyriaTear
img/sprites/map/enemies/big_slime_walk.lua
4
1988
-- Sprite animation file descriptor -- This file will describe the frames used to load the sprite animations -- This files is following a special format compared to other animation scripts. local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH; local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; local ANIM_WEST = vt_map.MapMode.ANI...
gpl-2.0
funshine/nodemcu-firmware
lua_modules/tsl2561/tsl2561.lua
9
7550
-- *************************************************************************** -- tsl2561.lua -- Module for ESP8266 with nodeMCU -- Ported from github.com/Seeed-Studio/Grove_Digital_Light_Sensor -- -- Copyright (c) 2012 seeed technology inc. -- Website : www.seeed.cc -- Author : zhangkun -- Create Time: -- Chang...
mit
antivo/FEatheR
project/LuaFER.lua
1
22679
-- ----------------------------- -- Database functions -- ----------------------------- -- Gets column data as text. From a query, at the current cursor position. Data convertet to string function DBCursorGetColumnText(cursor, column) local buffer = mosync.SysAlloc(2048) local size = mosync.maDBCursorGetColumnText(...
gpl-2.0
Flexibity/luci
libs/lucid-http/luasrc/lucid/http/handler/catchall.lua
52
2325
--[[ LuCId HTTP-Slave (c) 2009 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- local srv = require "...
apache-2.0
tboox/xmake
xmake/modules/detect/tools/find_tcc.lua
1
1731
--!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
slayerrensky/luci
applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-format.lua
68
3423
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. cbimap = Map("asterisk", "asterisk", "") module = cbimap:section(TypedSection, "module", "Modules", "") module.anonymous = true format_au = module:option(Lis...
apache-2.0
padrinoo/padrino85
plugins/exchange.lua
352
2076
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 function comma_value(n) -- credit http://richard.warburton.it local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('...
gpl-2.0
Shayan123456/botttttt2
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
willmoffat/lua-fmt
test/lua-5.3.4-tests/out.lua
15
11972
-- $Id: pm.lua,v 1.48 2016/11/07 13:11:28 roberto Exp $ -- See Copyright Notice in file all.lua print('testing pattern matching') local function checkerror (msg, f, ...) local s, err = pcall(f, ...) assert(not s and string.find(err, msg)) end function f(s, p) local i,e = string.find(s, p) if i then return s...
mit
Oliveryo/Interface
AddOns/!Questie/Libs/AceLocale-2.2/AceLocale-2.2.lua
4
15823
--[[ Name: AceLocale-2.2 Revision: $Rev: 15291 $ 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/AceLocale-2.2 SVN: http://svn.wowace.com/roo...
gpl-3.0
g0t-ya/XiaoyuBox
luci/controller/admin/status.lua
56
4609
--[[ 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...
lgpl-3.0
cc122cc/THETETOO2
plugins/badword.lua
7
3344
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ block word : منع كلمات ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
aure/Soundpipe
modules/data/reson.lua
2
1240
sptbl["reson"] = { files = { module = "reson.c", header = "reson.h", example = "ex_reson.c", }, func = { create = "sp_reson_create", destroy = "sp_reson_destroy", init = "sp_reson_init", compute = "sp_reson_compute", }, params = { ...
mit
moteus/lzmq-dist
lzmq/src/lua/lzmq/ffi/api.lua
1
22384
local ffi = require "ffi" local IS_WINDOWS = (ffi.os:lower() == 'windows') or (package.config:sub(1,1) == '\\') local function orequire(...) local err = "" for _, name in ipairs{...} do local ok, mod = pcall(require, name) if ok then return mod, name end err = err .. "\n" .. mod ...
mit
MaliciouZzHD/AndroidChromeCastControl
files/nmap/nselib/tls.lua
1
38581
--- -- A library providing functions for doing TLS/SSL communications -- -- These functions will build strings and process buffers. Socket communication -- is left to the script to implement. -- -- @author "Daniel Miller <bonsaiviking@gmail.com>" local stdnse = require "stdnse" local bin = require "bin" local os = req...
gpl-3.0
NerdWalletOSS/Q
ML/DT/lua/export_to_graphviz.lua
1
2373
local function print_dt( D, -- prepared decision tree f -- file_descriptor ) -- Preorder local seperator = "<br/>" local label = D.node_idx if D.left then local condition if D.left.feature then condition = " [label=<" .. D.left.feature_name .. " &le; " .. D.left.threshol...
mit
mcastron/TinyBRL
scripts/lua_scripts/makeRE.lua
3
8314
local agents = require "data.agents" local gridComputing = require "data.gridComputing" local experiments_accurate = require "data.experiments_accurate" local experiments_inaccurate = require "data.experiments_inaccurate" local experiments_options = require "data.experiments_options" local experiments = ...
gpl-2.0
jie-meng/Lunar
publish/tools/cocos2dx/generate_cocos2dx-lua_api.lua
2
13046
local table_ext = require('table_ext') --[[ ApiModule start --]] local ApiModule = { name_ = nil, parent_ = nil, tmp_function_ = nil, extend_ = {}, functions_ = {} } function ApiModule:new(o) local o = o or {} setmetatable(o, self) self.__index = self o.extend_ = {} o.fun...
gpl-2.0
tboox/xmake
xmake/actions/clean/main.lua
1
5994
--!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
disslove3/MAX4-BOT
plugins/anti-flood.lua
9
2259
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 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, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
tboox/xmake
xmake/languages/rust/load.lua
9
1088
--!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
x-v8/bkb
bkb/lib/profi.lua
1
15229
--[[ ProFi v1.3, by Luke Perkin 2012. MIT Licence http://www.opensource.org/licenses/mit-license.php. Example: ProFi = require 'ProFi' ProFi:start() some_function() another_function() coroutine.resume( some_coroutine ) ProFi:stop() ProFi:writeReport( 'MyP...
mit
keyidadi/luci
applications/luci-upnp/luasrc/controller/upnp.lua
66
2082
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
jie-meng/Lunar
publish/plugins/goto_cocos_lua.lua
2
5662
local table_ext = require('table_ext') local pattern_import_lua = [[([%w_]+)%s*=%s*import%(["']([%w_%.%s]+)["']%)]] local pattern_importer_lua = [[([%w_]+)%s*=%s*[%w]+%.import%(["']([%w_%.%s]+)["']%)]] local pattern_class_lua = [[([%w_]+)%s*=%s*class%(["'][%w_]+["'](["%%()%,%.%s%w_]*)%)]] function gotoDefinition(text...
gpl-2.0
rijkvanzanten/luaus
nodemcu/servo.lua
1
1626
local servo = {} -- -- define a servo entry where left is the servo value -- at which it is at 0 degrees and right is the value -- at which it is at 180 degrees. -- -- example: -- defineservo(4,200,1850) -- -- the parameters are saved in servoleft and servoright -- and a timernumber is generated and remembered so yo...
mit
x-v8/bkb
bkb/lib/rfc5424.lua
1
3056
-- FROM RFC 5424 https://tools.ietf.org/html/rfc5424#page-8 local _M = {} local LOG_EMERG = 0 -- system is unusable local LOG_ALERT = 1 -- action must be taken immediately local LOG_CRIT = 2 -- critical conditions local LOG_ERR = 3 -- error conditions local LOG_WARNING ...
mit
NerdWalletOSS/Q
ML/LOGREG/test/test_logit.lua
1
1538
-- FUNCTIONAL require 'Q/UTILS/lua/strict' local Q = require 'Q' local Scalar = require 'libsclr' local lr_logit = require 'Q/ML/LOGREG/lua/lr_logit' local qconsts = require 'Q/UTILS/lua/q_consts' local conjoin = require 'Q/RUNTIME/lua/conjoin' local tests = {} tests.t1 = function( no_memo, is_conjoin ...
mit
ponywolf/ponyblitz
com/ponywolf/csv.lua
1
3572
local M = {} --local translate = require "com.ponywolf.translator" local function luafy(tbl) for k, v in pairs(tbl) do if type(v) == "string" and v:lower()=="true" then tbl[k]=true elseif type(v) == "string" and v:lower()=="false" then tbl[k]=false elseif tonumber(v) then tbl[k]=tonumb...
mit
Oliveryo/Interface
AddOns/dpsmate/DPSMate_ParserENUS.lua
1
46850
local t = {} local strgfind = string.gfind local DB = DPSMate.DB local tnbr = tonumber local npcdb = DPSMate.NPCDB local GT = GetTime local strsub = string.sub ---------------------------------------------------------------------------------- -------------- Damage Done --------...
gpl-3.0
xkfz007/vlc
share/lua/playlist/jamendo.lua
11
3115
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> 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 ...
lgpl-2.1
weirdouncle/QSanguosha-For-Hegemony
lua/ai/basara-ai.lua
6
10593
--[[******************************************************************** Copyright (c) 2013-2014 - QSanguosha-Rara This file is part of QSanguosha-Hegemony. This game 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...
gpl-3.0
TeslaCloud/TTTRewrite
terrortown/entities/effects/teleport_beamup.lua
3
2635
local mat_rising = Material( "models/props_combine/stasisshield_sheet" ) --local mat_rising = Material( "models/shadertest/shader4" ) --local mat_rising = Material( "models/props_lab/Tank_Glass001" ) local mat_sparkle = Material("models/effects/comball_tape") --local mat_sparkle = Material( "models/props_combine/stasi...
mit
slayerrensky/luci
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua
68
3418
-- Copyright 2011 Manuel Munz <freifunk at somakoma dot de> -- Licensed to the public under the Apache License 2.0. module("luci.statistics.rrdtool.definitions.olsrd", package.seeall) function rrdargs( graph, plugin, plugin_instance, dtype ) local g = { } if plugin_instance == "routes" then g[#g+1] = { ...
apache-2.0
aure/Soundpipe
modules/data/voc.lua
2
1340
sptbl["voc"] = { files = { module = "voc.c", header = "voc.h", example = "ex_voc.c", }, func = { create = "sp_voc_create", destroy = "sp_voc_destroy", init = "sp_voc_init", compute = "sp_voc_compute", }, params = { }, modtype = "mod...
mit
keyidadi/luci
applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
68
1501
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
apache-2.0
tboox/xmake
xmake/modules/ui/app/version.lua
1
1810
--!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
sysuzhang/arcemu
src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Event-MagisterTerrace-PriestessDelrissa.lua
30
11306
--[[ *************************** * .-. * * `-.. ..-. + + * * `-''-'' ' * * OpenSource Scripting * * Team * * http://sunplusplus.info * * * *************************** This software is provided as free and open source by the staff...
agpl-3.0
DecoppaJe/SELF_BOT
plugins/help.lua
3
2640
do function run(msg, matches) local help = [[🤖دستورات فارسی ربات ☑️ربات روشن ✔️فعال کردن بوت در يک گروه خواص 🔋ربات خاموش ✔️غير فعال کردن بوت در يک گروه خواض ❌پلاگین ها ✔️مشاهده ليست پلاگين ها 🚀پلاگین بشه (نام پلاگین به انگلیسی) ✔️فعال کردن پلاگيني با نام (plugin name) ❤️پلاگین پاک شه (نام پلاگین به انگلی...
gpl-2.0
leecrest/luvit
tests/test-colors.lua
12
3279
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
apache-2.0
iranianhacker40/ARCHON-TEAM
plugins/echoset.lua
11
2498
do local function save_file(name, text) local file = io.open("./data/echo/"..name, "w") --save file to echo folder ! file:write(text) file:flush() file:close() end function run(msg, matches) if matches[1] == "echo>" and is_sudo(msg) then --Sudo only ! local name = matches[2] loc...
gpl-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/state/state_manager.lua
1
5251
SB.Include(Path.Join(SB.DIRS.SRC, 'state/abstract_state.lua')) SB.IncludeDir(Path.Join(SB.DIRS.SRC, 'state')) --- StateManager class. StateManager = LCS.class{} --------------------------- -- API --------------------------- --- Get current state. -- @return current state function StateManager:GetCurrentState() r...
mit
toophy/gopher-lua
_lua5.1-tests/code.lua
21
3240
if T==nil then (Message or print)('\a\n >>> testC not active: skipping opcode tests <<<\n\a') return end print "testing code generation and optimizations" -- this code gave an error for the code checker do local function f (a) for k,v,w in a do end end end function check (f, ...) local c = T.listcode(f...
mit
xkfz007/vlc
share/lua/playlist/extreme.lua
11
3720
--[[ $Id$ Copyright © 2011 the VideoLAN team Authors: Konstantin Pavlov (thresh@videolan.org) 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 opt...
lgpl-2.1
tboox/xmake
xmake/core/sandbox/modules/import/core/platform/menu.lua
1
1489
--!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