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
githabbot/server22
plugins/welcome.lua
3
3672
local add_user_cfg = load_from_file('data/add_user_cfg.lua') local function template_add_user(base, to_username, from_username, chat_name, chat_id) base = base or '' to_username = '@' .. (to_username or '') from_username = '@' .. (from_username or '') chat_name = string.gsub(chat_name, '_', ' ') or '' c...
gpl-2.0
yetsky/luci
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_config.lua
80
1274
--[[ LuCI - Lua Configuration Interface (c) 2009 Daniel Dickinson Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- require("luci.controller.l...
apache-2.0
vsergeev/lua-periphery
tests/test_i2c.lua
1
3463
-- -- lua-periphery by vsergeev -- https://github.com/vsergeev/lua-periphery -- License: MIT -- require('test') local periphery = require('periphery') local I2C = periphery.I2C -------------------------------------------------------------------------------- local device = nil ---------------------------------------...
mit
VisionLabs/torch-opencv
cv/objdetect/init.lua
1
13597
local cv = require 'cv._env' local ffi = require 'ffi' ffi.cdef[[ struct TensorPlusRectArray groupRectangles(struct RectArray rectList, int groupThreshold, double eps); bool BaseCascadeClassifier_empty(struct PtrWrapper ptr); bool BaseCascadeClassifier_load(struct PtrWrapper ptr, const char *filename); bool BaseCa...
mit
joaofvieira/luci
modules/luci-base/luasrc/model/firewall.lua
67
10658
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local type, pairs, ipairs, table, luci, math = type, pairs, ipairs, table, luci, math local tpl = require "luci.template.parser" local utl = require "luci.util" local uci = require "luci.model.uci" module "lu...
apache-2.0
joaofvieira/luci
libs/luci-lib-nixio/docsrc/README.lua
62
4758
--- General Information. module "nixio.README" --- General error handling information. -- <ul> -- <li> Most of the functions available in this library may fail. If any error -- occurs the function returns <strong>nil or false</strong>, an error code -- (usually errno) and an additional error message text (if avaialabl...
apache-2.0
mcdonnelldean/eso-pad-merchant
PadMerchant/lib/LibAddonMenu-2.0/controls/checkbox.lua
7
4736
--[[checkboxData = { type = "checkbox", name = "My Checkbox", tooltip = "Checkbox's tooltip text.", getFunc = function() return db.var end, setFunc = function(value) db.var = value doStuff() end, width = "full", --or "half" (optional) disabled = function() return db.someBooleanSetting end, --or boolean (optional...
mit
ZerothAngel/FtDScripts
utility/cannoncontrol.lua
1
2900
--@ commonstargets commonsweapons commons ballistic weapontypes -- Cannon fire control module -- Limits by slot CannonLimits = {} -- Fill out CannonLimits for _,Config in pairs(CannonConfigs) do CannonLimits[Config.WeaponSlot] = Config.Limits end function CannonControl_Update(I) -- Pick highest priority target...
mit
hechenfon/torch7
test/test_writeObject.lua
56
1897
local myTester = torch.Tester() local tests = {} -- checks that an object can be written and unwritten -- returns false if an error occurs local function serializeAndDeserialize(obj) local file = torch.MemoryFile() file:binary() local ok, msg = pcall (file.writeObject, file, obj) myTester:assert(ok, 'err...
bsd-3-clause
WangHong-yang/torch7
test/test_writeObject.lua
56
1897
local myTester = torch.Tester() local tests = {} -- checks that an object can be written and unwritten -- returns false if an error occurs local function serializeAndDeserialize(obj) local file = torch.MemoryFile() file:binary() local ok, msg = pcall (file.writeObject, file, obj) myTester:assert(ok, 'err...
bsd-3-clause
joaofvieira/luci
applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua
61
5427
-- Copyright 2009 Daniel Dickinson -- Licensed to the public under the Apache License 2.0. module("luci.controller.luci_diag.devinfo_common", package.seeall) require("luci.i18n") require("luci.util") require("luci.sys") require("luci.cbi") require("luci.model.uci") local translate = luci.i18n.translate local DummyVa...
apache-2.0
philsiff/Red-Vs-Blue
Very Basic TDM [Gamemode]/gamemodes/vbtdm/entities/entities/base_entity/init.lua
1
1621
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include('shared.lua') include('outputs.lua') --[[--------------------------------------------------------- Name: Initialize Desc: First function called. Use to set up your entity -----------------------------------------------------------]] function E...
mit
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/EaseCubicActionIn.lua
7
1153
-------------------------------- -- @module EaseCubicActionIn -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseCubicActionIn action. If creation failed, retu...
mit
bottelebot/Umbrella
plugins/torrent_search.lua
411
1622
--[[ NOT USED DUE TO SSL ERROR -- See https://getstrike.net/api/ local function strike_search(query) local strike_base = 'http://getstrike.net/api/v2/torrents/' local url = strike_base..'search/?phrase='..URL.escape(query) print(url) local b,c = http.request(url) print(b,c) local search = json:decode(b) v...
gpl-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/autorun/properties/keep_upright.lua
1
2653
AddCSLuaFile() properties.Add( "keepupright", { MenuLabel = "Keep Upright", Order = 900, MenuIcon = "icon16/arrow_up.png", Filter = function( self, ent, ply ) if ( !IsValid( ent ) ) then return false end if ( ent:GetClass() != "prop_physics" ) then return false end if ( ent:GetNWBool( "Is...
mit
sdgdsffdsfff/nginx-openresty-windows
lua-resty-upstream-healthcheck-0.03/t/lib/ljson.lua
76
1871
local ngx_null = ngx.null local tostring = tostring local byte = string.byte local gsub = string.gsub local sort = table.sort local pairs = pairs local ipairs = ipairs local concat = table.concat local ok, new_tab = pcall(require, "table.new") if not ok then new_tab = function (narr, nrec) return {} end end local...
bsd-2-clause
nfleet1080/DSSW_Mod
modmain.lua
1
1925
PrefabFiles = { "ehrieana", "cellphone", "pepperoniroll" } Assets = { Asset( "IMAGE", "images/saveslot_portraits/ehrieana.tex" ), Asset( "ATLAS", "images/saveslot_portraits/ehrieana.xml" ), Asset( "IMAGE", "images/selectscreen_portraits/ehrieana.tex" ), Asset( "ATLAS", "images/selectscreen_portr...
mit
githabbot/server22
plugins/tex.lua
14
2803
do local function send_title(cb_extra, success, result) if success then send_msg(cb_extra[1], cb_extra[2], ok_cb, false) end end local function run(msg, matches) local eq = URL.escape(matches[1]) local url = "http://latex.codecogs.com/png.download?" .."\\dpi{300}%20\\LARGE%20"..eq local receiver =...
gpl-2.0
MRMV2000/amira-o
plugins/sudo.lua
22
38760
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'system/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
amir-sereen/DBTeam
plugins/version.lua
1
1028
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
siktirmirza/dt
plugins/export_gban.lua
82
2310
-------------------------------------------------- -- ____ ____ _____ -- -- | \| _ )_ _|___ ____ __ __ -- -- | |_ ) _ \ | |/ ·__| _ \_| \/ | -- -- |____/|____/ |_|\____/\_____|_/\/\_| -- -- -- --------------...
gpl-2.0
LuaDist2/luarocks
spec/build_spec.lua
7
9953
local test_env = require("test/test_environment") local lfs = require("lfs") local run = test_env.run local testing_paths = test_env.testing_paths test_env.unload_luarocks() local extra_rocks = { "/lmathx-20120430.51-1.src.rock", "/lmathx-20120430.51-1.rockspec", "/lmathx-20120430.52-1.src.rock", "/lmathx...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/weapons/weapon_fists.lua
1
5113
AddCSLuaFile() SWEP.Author = "robotboy655 & MaxOfS2D" SWEP.Purpose = "Well we sure as heck didn't use guns! We would wrestle Hunters to the ground with our bare hands! I would get ten, twenty a day, just using my fists." SWEP.Spawnable = true SWEP.UseHands = true SWEP.ViewModel = "models/weapons/c_arms_cit...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/mapvote/cl_mapvote.lua
1
9343
surface.CreateFont("RAM_VoteFont", { font = "Trebuchet MS", size = 19, weight = 700, antialias = true, shadow = true }) surface.CreateFont("RAM_VoteFontCountdown", { font = "Tahoma", size = 32, weight = 700, antialias = true, shadow = true }) surface.CreateFont("RAM_VoteSysButt...
mit
ohwgiles/fivehundred
scripts/Ariadne.lua
1
19345
sameColour = { Spades = 'Clubs', Clubs = 'Spades', Diamonds = 'Hearts', Hearts = 'Diamonds' } --CONFIDENCE = {} --ENEMY_STRENGTH = nil --PARTNER_STRENGTH = nil --BID_WINNER = nil --WINNING_BID = nil --TRICKS_REQUIRED = 0 --TRUMP_SUIT = "" --CARDS_PLAYED = {} --WINNING_CARDS = {} --SHORT_SUI...
gpl-3.0
yetsky/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/network.lua
80
3002
--[[ Luci configuration model for statistics - collectd network 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 Licen...
apache-2.0
mp4saeed/energy28
plugins.lua
1
7997
do -- #Begin plugins.lua by @Saee_d_28 -- 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 fo...
gpl-3.0
pazos/koreader
frontend/apps/reader/modules/readertypography.lua
2
44762
local BD = require("ui/bidi") local Device = require("device") local Event = require("ui/event") local InfoMessage = require("ui/widget/infomessage") local InputContainer = require("ui/widget/container/inputcontainer") local MultiConfirmBox = require("ui/widget/multiconfirmbox") local UIManager = require("ui/uimanager"...
agpl-3.0
VisionLabs/torch-opencv
cv/cudaoptflow/init.lua
1
22352
local cv = require 'cv._env' require 'cutorch' -- TODO: remove this after gathering all CUDA packages in a single submodule cv.cuda = cv.cuda or require 'cv._env_cuda' local ffi = require 'ffi' ffi.cdef[[ struct TensorWrapper DenseOpticalFlow_calcCuda(struct cutorchInfo info, struct PtrWrapper ptr, struct Tensor...
mit
mp4saeed/energy28
nerkh.lua
3
1162
-----my_name_is_ehsan*#@mafia_boy -----@ENERGY_TEAM FOR UPDATE -----لطفا پیام بالا رو پاک نکنید local function run(msg, matches) if matches [1] =='setnerkh' then if not is_admin(msg) then return 'شما سودو نیستید' end local nerkh = matches[2] redis:set('bot:nerkh',nerkh) return 'متن شما با موفقیت تنظیم شد.' ...
gpl-3.0
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/script/framework/extends/UITextField.lua
57
1625
--[[ Copyright (c) 2011-2014 chukong-inc.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, di...
mit
soumith/cunnCUDA
SpatialConvolutionCUDA.lua
3
2434
local SpatialConvolutionCUDA, parent = torch.class('nn.SpatialConvolutionCUDA', 'nn.Module') function SpatialConvolutionCUDA:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padding, partialSum) parent.__init(self) dW = dW or 1 dH = dH or 1 partialSum = partialSum or 0 self.nInputPlane = nInputPlane ...
bsd-3-clause
joaofvieira/luci
modules/luci-mod-admin-full/luasrc/controller/admin/index.lua
40
1140
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.admin.index", package.seeall) function index() local root = node() if not root.target then root.target = alias("admin") root.index = true end local page = node("admin") page....
apache-2.0
rigeirani/spm1
plugins/time.lua
8
2803
-- Implement a command !time [area] which uses -- 2 Google APIs to get the desired result: -- 1. Geocoding to get from area to a lat/long pair -- 2. Timezone to get the local time in that lat/long location -- Globals -- If you have a google api key for the geocoding/timezone api api_key = nil base_api = "https://m...
gpl-2.0
IntelligentBot/IntelligentBot
plugins/Badwords.lua
1
2410
local function addword(msg, name) local hash = 'chat:'..msg.to.id..':badword' redis:hset(hash, name, 'newword') return "This Word Added To Badwords List -> "..name end local function get_variables_hash(msg) return 'chat:'..msg.to.id..':badword' end local function list_variablesbad(msg) local hash...
gpl-2.0
bradchesney79/2015BeastRouterProject
openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/proto_pppoe.lua
18
3631
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local username, password, ac, service local ipv6, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand, mtu username = section:taboption("gener...
cc0-1.0
soumith/nn
SplitTable.lua
2
1075
local SplitTable, parent = torch.class('nn.SplitTable', 'nn.Module') function SplitTable:__init(dimension, nInputDims) parent.__init(self) self.dimension = dimension self.nInputDims = nInputDims end function SplitTable:updateOutput(input) local dimension = self.dimension if self.nInputDims and input:di...
bsd-3-clause
telebombang2018/energy
plugins/PL (15).lua
20
37193
local function pre_process(msg) chat = msg.chat_id_ user = msg.sender_user_id_ local function check_newmember(arg, data) test = load_data(_config.moderation.data) lock_bots = test[arg.chat_id]['settings']['lock_bots'] local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.type_.ID == "UserTy...
gpl-3.0
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ProtectedNode.lua
7
5549
-------------------------------- -- @module ProtectedNode -- @extend Node -- @parent_module cc -------------------------------- -- @overload self, cc.Node, int -- @overload self, cc.Node -- @overload self, cc.Node, int, int -- @function [parent=#ProtectedNode] addProtectedChild -- @param se...
mit
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ActionTween.lua
7
1621
-------------------------------- -- @module ActionTween -- @extend ActionInterval -- @parent_module cc -------------------------------- -- brief Create and initializes the action with the property name (key), and the from and to parameters.<br> -- param duration The duration of the ActionTween. It's a value in second...
mit
ZerothAngel/FtDScripts
control/altitudecontrol.lua
1
3986
--@ commonstargets commons control drivemaintainer evasion terraincheck sign clamp -- Altitude Control module ManualAltitudeController = DriveMaintainer.new(ManualAltitudeDriveMaintainerFacing) HalfMaxManualAltitude = (MaxManualAltitude - MinManualAltitude) / 2 AltitudeControl_Desired = 0 AltitudeControl_Offset = 0 Al...
mit
pazos/koreader
plugins/newsdownloader.koplugin/lib/dateparser.lua
502
6212
local difftime, time, date = os.difftime, os.time, os.date local format = string.format local tremove, tinsert = table.remove, table.insert local pcall, pairs, ipairs, tostring, tonumber, type, setmetatable = pcall, pairs, ipairs, tostring, tonumber, type, setmetatable local dateparser={} --we shall use the host OS's...
agpl-3.0
joaofvieira/luci
protocols/luci-proto-openconnect/luasrc/model/cbi/admin_network/proto_openconnect.lua
40
2661
-- Copyright 2014 Nikos Mavrogiannopoulos <nmav@gnutls.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local server, username, password, cert, ca local oc_cert_file, oc_key_file, oc_ca_file local ifc = net:get_interface():name() oc_cert_file = "/etc/openconnect/user-cert-"...
apache-2.0
MathieuDuponchelle/gdx
demos/pax-britannica/pax-britannica-android/assets/data/scripts/frigate_ai.lua
11
1276
local v2 = require 'dokidoki.v2' local stopping = false local target_fuzzy_pos local function retarget () target = game.targeting.get_nearest_of_type(self, 'fighter') or game.targeting.get_nearest_of_type(self, 'frigate') or game.targeting.get_nearest_of_type(self, 'factory') if ...
apache-2.0
GabrielNicolasAvellaneda/boundary-plugin-mysql
modules/parser.lua
4
24016
--[[ Copyright 2012 Kengo Nakajima. 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 agreed...
apache-2.0
arkana-fts/cegui
datafiles/lua_scripts/demo8.lua
30
3996
----------------------------------------- -- Start of handler functions ----------------------------------------- ----------------------------------------- -- Alpha slider handler (not used!) ----------------------------------------- function sliderHandler(args) CEGUI.System:getSingleton():getDefaultGUIContext():ge...
mit
anonymous12212020/sbss
plugins/plugins.lua
64
6122
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
ZipFile/vlc
share/lua/intf/telnet.lua
116
1876
--[==========================================================================[ telnet.lua: wrapper for legacy telnet configuration --[==========================================================================[ Copyright (C) 2011 the VideoLAN team $Id$ Authors: Pierre Ynard This program is free software; you can ...
gpl-2.0
payamohajeri/telegram-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
bradchesney79/2015BeastRouterProject
openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/iface_add.lua
31
2881
-- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local nw = require "luci.model.network".init() local fw = require "luci.model.firewall".init() local utl = require "luci.util" local uci = require "luci.model.uci".cursor() m = SimpleForm("network", tran...
cc0-1.0
joaofvieira/luci
applications/luci-app-shairport/luasrc/model/cbi/shairport.lua
61
4728
-- Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com> -- Licensed to the public under the Apache License 2.0. m = Map("shairport", "Shairport", translate("Shairport is a simple AirPlay server implementation, here you can configure the settings.")) s = m:section(TypedSection, "shairport", "") s.addremove = true...
apache-2.0
LukeMike/ardupilot
Tools/CHDK-Scripts/kap_uav.lua
96
28513
--[[ KAP UAV Exposure Control Script v3.1 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script @title KAP UAV 3.1 @param i Shot Interval (sec) @default i 15 @range i 2 120 @param s Total Shots (0=infinite) @default s 0 @range ...
gpl-3.0
lopezloo/mta-csrw
csrw/client/mapchange.lua
1
1547
local loadingMap -- nazwa aktualnie ładowanej mapy local loadingTimer local loadingMusic addEvent("onMapStart", true) addEventHandler("onMapStart", root, function(mapname) saveTeamsToTemp() spectator.exit() preInit() local team = localPlayer.team if loadingMusic and isElement(loadingMusic) then stopSound(...
gpl-3.0
mys007/cudnn.torch
test/test_1x1conv.lua
9
3075
require 'cudnn' require 'cunn' local cudnntest = {} local precision_forward = 1e-4 local precision_backward = 1e-2 local precision_jac = 1e-3 local nloop = 1 local times = {} local mytester function cudnntest.SpatialConvolution_forward_batch() local bs = math.random(1,32) local from = math.random(1,32) loca...
bsd-2-clause
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/vgui/dmodelselectmulti.lua
2
1288
--[[ _ ( ) _| | __ _ __ ___ ___ _ _ /'_` | /'__`\( '__)/' _ ` _ `\ /'_` ) ( (_| |( ___/| | | ( ) ( ) |( (_| | `\__,_)`\____)(_) (_) (_) (_)`\__,_) DModelSelectMulti TAD2020 ]] local PANEL = {} --[[-------------------------------...
mit
wickedfoo/torch7
test/timeSort.lua
68
5063
-- gnuplot.figure(2) -- Test torch sort, show it suffers from the problems of quicksort -- i.e. complexity O(N^2) in worst-case of sorted list require 'gnuplot' local cmd = torch.CmdLine() cmd:option('-N', 10^7, 'Maximum array size') cmd:option('-p', 50, 'Number of points in logspace') cmd:option('-r', 20, 'Number of...
bsd-3-clause
bradchesney79/2015BeastRouterProject
openwrt/unsquash/squashfs-root/usr/lib/lua/luci/model/cbi/admin_network/proto_6in4.lua
64
3139
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, peeraddr, ip6addr, tunnelid, username, password local defaultroute, metric, ttl, mtu ipaddr = s:taboption("general", Value, "ipaddr", translate("Local IPv4 address...
cc0-1.0
enginix/luasocket
etc/dict.lua
45
4666
----------------------------------------------------------------------------- -- Little program to download DICT word definitions -- LuaSocket sample files -- Author: Diego Nehab ----------------------------------------------------------------------------- --------------------------------------------------------------...
mit
mjarco/sysdig
userspace/sysdig/chisels/topprocs_cpu.lua
10
3367
--[[ Copyright (C) 2013-2015 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
rigeirani/spm1
bot/utils.lua
31
14800
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
lteacher/codewars-runner-cli
frameworks/lua/codewars.lua
5
2032
return function(options) local busted = require 'busted' local handler = require 'busted.outputHandlers.base'() local function escape(s) return s:gsub('\n', '<:LF:>') end local function onDescribeStart(element, parent) print('\n<DESCRIBE::>' .. element.name) return nil, true end local functio...
agpl-3.0
nwf/openwrt-packages
net/smartsnmpd/files/mibs/system.lua
158
6428
-- -- This file is part of SmartSNMP -- Copyright (C) 2014, Credo Semiconductor Inc. -- -- 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 optio...
gpl-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/postprocess/sunbeams.lua
1
2623
local _Material = Material( "pp/sunbeams" ) _Material:SetTexture( "$fbtexture", render.GetScreenEffectTexture() ) --[[--------------------------------------------------------- Register the convars that will control this effect -----------------------------------------------------------]] local pp_sunbeams ...
mit
querry43/nodemcu-tools
htdocs/status.lua
1
1982
return function (path, query) local majorVer, minorVer, devVer, chipid, flashid, flashsize, flashmode, flashspeed = node.info() local ap_ip, ap_netmask, ap_gateway = wifi.ap.getip() local sta_ip, sta_netmask, sta_gateway = wifi.sta.getip() return 200, '<html>' .. '<div style="text-align:center">' .....
mit
notestudio/shall-I-kill-her
assets/scripts/vendor/HC/gjk.lua
23
5593
--[[ 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...
apache-2.0
LuaDist2/luarocks
src/luarocks/persist.lua
3
6866
--- Utility module for loading files into tables and -- saving tables into files. -- Implemented separately to avoid interdependencies, -- as it is used in the bootstrapping stage of the cfg module. local persist = {} package.loaded["luarocks.persist"] = persist local util = require("luarocks.util") --- Load and run...
mit
payamohajeri/telegram-bot
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
ZipFile/vlc
share/lua/playlist/appletrailers.lua
88
3309
--[[ Translate trailers.apple.com video webpages URLs to the corresponding movie URL $Id$ Copyright © 2007-2010 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 ve...
gpl-2.0
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointDistance.lua
18
1368
-------------------------------- -- @module PhysicsJointDistance -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- -- @function [parent=#PhysicsJointDistance] createConstraints -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- S...
mit
pazos/koreader
frontend/ui/network/networklistener.lua
3
8015
local BD = require("ui/bidi") local Device = require("device") local Event = require("ui/event") local InfoMessage = require("ui/widget/infomessage") local InputContainer = require("ui/widget/container/inputcontainer") local NetworkMgr = require("ui/network/manager") local UIManager = require("ui/uimanager") local logg...
agpl-3.0
Mestima/mestima_cleaner
lua/autorun/server/mcd_server.lua
1
1676
util.AddNetworkString("mcd_timesender") net.Receive("mcd_timesender",function(len,ply) if ply:IsSuperAdmin() then sv_mcd_data = net.ReadTable() if !file.Exists("mestima_save","DATA") then file.CreateDir("mestima_save") end if !file.Exists("mestima_save/cleanner_system","DATA") then file.CreateDir("mestima_s...
apache-2.0
GabrielNicolasAvellaneda/boundary-plugin-mysql
modules/client.lua
3
8372
--[[ Copyright 2012 Kengo Nakajima. 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 agreed...
apache-2.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/lua/autorun/menubar/ai_options.lua
1
1550
hook.Add( "PopulateMenuBar", "NPCOptions_MenuBar", function( menubar ) local m = menubar:AddOrGetMenu( "NPCs" ) m:AddCVar( "Disable Thinking", "ai_disabled", "1", "0" ) m:AddCVar( "Ignore Players", "ai_ignoreplayers", "1", "0" ) m:AddCVar( "Keep Corpses", "ai_serverragdolls", "1", "0" ) m:AddCVar( "Join Player...
mit
joaofvieira/luci
applications/luci-app-wol/luasrc/model/cbi/wol.lua
55
2319
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sys = require "luci.sys" local fs = require "nixio.fs" m = SimpleForm("wol", translate("Wake on LAN"), translate("Wake on LAN is a mechanism to remotely boot computers in the local network.")) m.submit...
apache-2.0
izarov/nginx
debian/modules/nginx-lua/t/lib/Memcached.lua
49
13867
--Copyright (c) 2006-2008 Neil Richardson (nrich@iinet.net.au) -- --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...
bsd-2-clause
eggBOY91/Arctic-Core
src/scripts/lua/LuaBridge/Stable Scripts/Outland/Auchenai Crypts/BOSS_AuchenaiCrypts_Shirrak.lua
30
1144
function Shirrak_Inhibit_Magic(Unit, event, miscunit, misc) print "Shirrak Inhibit Magic" Unit:FullCastSpellOnTarget(32264,Unit:GetRandomPlayer()) Unit:SendChatMessage(11, 0, "Your weak...") end function Shirrak_Attract_Magic(Unit, event, miscunit, misc) print "Shirrak Attract Magic" Unit:FullCastSpellOnTarget(32...
agpl-3.0
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua
1
2322
include( 'controlpanel.lua' ) local PANEL = {} AccessorFunc( PANEL, "m_TabID", "TabID" ) --[[--------------------------------------------------------- Name: Paint -----------------------------------------------------------]] function PANEL:Init() self.List = vgui.Create( "DCategoryList", self ) self.List:D...
mit
disslove2-bot/Mr.Mj-BOT
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
yetsky/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/exec.lua
78
2796
--[[ Luci configuration model for statistics - collectd exec 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
notestudio/shall-I-kill-her
assets/scripts/game.lua
1
1787
local game = {} local gamera = require 'assets/scripts/vendor/gamera' function game.load() -- Configuration math.randomseed(os.time()) local width, height = 1280, 720 local canvas_width, canvas_height = 2280, 720 game.window = { width = width , height = height } game.canvas = { x = width / 2, y= 0, width = canva...
apache-2.0
rstudio/redx
lua/src/bin/api.lua
1
4706
local lapis = require("lapis") local respond_to do local _obj_0 = require("lapis.application") respond_to = _obj_0.respond_to end local from_json, unescape do local _obj_0 = require("lapis.util") from_json, unescape = _obj_0.from_json, _obj_0.unescape end do local _parent_0 = lapis.Application local _base_0...
bsd-2-clause
ZerothAngel/FtDScripts
missile/multiprofilecommon.lua
1
3903
--@ commonsweapons missiledriver weapontypes -- Multi profile module (common) GuidanceInfos = {} -- Weapon slot to index (into GuidanceInfos) mapping MultiProfileMCMap = {} -- Custom name to index (into GuidanceInfos) mapping MultiProfileMCNameMap = {} -- Flag to enable scanning missile controllers (kinda expensive) M...
mit
gnuser/gocServer
d_3rd/LuaJIT-2.0.1/src/jit/dis_ppc.lua
99
20319
---------------------------------------------------------------------------- -- LuaJIT PPC disassembler module. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT/X license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
gpl-2.0
sdgdsffdsfff/nginx-openresty-windows
lua-resty-mysql-0.15/lib/resty/mysql.lua
9
20190
-- Copyright (C) 2012 Yichun Zhang (agentzh) local bit = require "bit" local sub = string.sub local tcp = ngx.socket.tcp local strbyte = string.byte local strchar = string.char local strfind = string.find local format = string.format local strrep = string.rep local null = ngx.null local band = bit.band local bxor = b...
bsd-2-clause
NatWeiss/RGP
src/cocos2d-js/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ScrollView.lua
7
14676
-------------------------------- -- @module ScrollView -- @extend Layout -- @parent_module ccui -------------------------------- -- Scroll inner container to top boundary of scrollview.<br> -- param second Time in seconds.<br> -- param attenuated Whether scroll speed attenuate or not. -- @function [parent=#ScrollView...
mit
philsiff/Red-Vs-Blue
Red Vs. Blue Files/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentheader.lua
4
1605
surface.CreateFont( "ContentHeader", { font = "Helvetica", size = 50, weight = 1000 }) local PANEL = {} --[[-------------------------------------------------------- Name: Init ---------------------------------------------------------]] function PANEL:Init() self:SetFont( "ContentHeader" ) self:SetBrig...
mit
dangersuperbot/super_boomrange
plugins/antiporn.lua
4
1044
local function nuditycheck(msg, success, result) if success then local file = 'data/nudity/'..string.sub(result, 38) os.rename(result, file) local curl = 'curl -X POST "https://api.sightengine.com/1.0/nudity.json" -F "api_user=1579241866" -F "api_secret=d29fKhzZ6zq5W2Df" -F "photo=@'..file..'"' local jcmd = io.po...
gpl-2.0
joaofvieira/luci
build/luadoc/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
apache-2.0
nimaghorbani/ghbotfool
plugins/addbot.lua
1
1199
do local function parsed_url(link) local parsed_link = URL.parse(link) local parsed_path = URL.parse_path(parsed_link.path) i = 0 for k,segment in pairs(parsed_path) do i = i + 1 if segment == 'joinchat' then invite_link = string.gsub(parsed_path[i+1], '[ %c].+$', '') brea...
gpl-2.0
kahluamods/konferpug
KPG-Comms.lua
1
15674
--[[ KahLua KonferPUG - an open roll loot distribution helper for PUGs. WWW: http://kahluamod.com/kpug SVN: http://kahluamod.com/svn/konferpug IRC: #KahLua on irc.freenode.net E-mail: cruciformer@gmail.com Please refer to the file LICENSE.txt for the Apache License, Version 2.0. Co...
apache-2.0
RisingPhoenixYGOPRO/YGOPro-Custom-Cards
script/c11271.lua
2
4234
--Stymphal Garuda function c11271.initial_effect(c) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x2BF2),aux.NonTuner(nil),1) c:EnableReviveLimit() --atk change local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(11271,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetTy...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/DBM-Affixes/MPlusAffixes.lua
1
4802
local mod = DBM:NewMod("MPlusAffixes", "DBM-Affixes") local L = mod:GetLocalizedStrings() mod:SetRevision("20221016081320") --mod:SetModelID(47785) mod:SetZone(2441, 2097, 1651, 1208, 1195)--All of the S4 SL M+ Dungeons mod.isTrashMod = true mod.isTrashModBossFightAllowed = true mod:RegisterEvents( "SPELL_CAST_STA...
gpl-3.0
RisingPhoenixYGOPRO/YGOPro-Custom-Cards
script/c344000011.lua
2
1611
function c344000011.initial_effect(c) --summon success local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(344000011,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/ElvUI_WindTools/Modules/Item/ExtendMerchantPages.lua
1
4526
local W, F, E, L = unpack(select(2, ...)) local EMP = W:NewModule("ExtendMerchantPages", "AceHook-3.0") local S = W.Modules.Skins -- Modified from Extended Vendor UI & NDui_Plus local _G = _G local unpack = unpack local CreateFrame = CreateFrame local IsAddOnLoaded = IsAddOnLoaded local BLIZZARD_MERCHANT_ITEMS_PER_P...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/Immersion/Logic/Inspector.lua
1
2113
local _, L = ... local Inspector = ImmersionFrame.Inspector -- Synthetic OnLoad do local self = Inspector -- add tables for column frames, used when drawing qItems as tooltips self.Choices.Columns = {} self.Extras.Columns = {} self.Active = {} self.parent = self:GetParent() self.ignoreRegions = true self:Enabl...
gpl-3.0
RisingPhoenixYGOPRO/YGOPro-Custom-Cards
script/c90139919.lua
2
2906
--TenGaku - Song of Tainted Intent and Betrayal function c90139919.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,90139919+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c90139919.cost) e1:SetOperation(c90139919.operation) c:Re...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/RareScanner/Core/Service/RSMinimap.lua
1
11582
----------------------------------------------------------------------- -- AddOn namespace. ----------------------------------------------------------------------- local LibStub = _G.LibStub local ADDON_NAME, private = ... -- Locales local AL = LibStub("AceLocale-3.0"):GetLocale("RareScanner"); -- Minimap pins local ...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/WeakAurasTemplates/Locales/koKR.lua
1
10910
if not WeakAuras.IsLibsOK() then return end if GetLocale() ~= "koKR" then return end local L = WeakAuras.L -- WeakAuras/Templates L["Abilities"] = "능력" L["Add Triggers"] = "활성 조건 추가" L["Always Active"] = "항상 활성화" L["Always Show"] = "항상 표시" L["Always show the aura, highlight it if debuffed."] = "효과를 항상 표시하고, 약...
gpl-3.0
RisingPhoenixYGOPRO/YGOPro-Custom-Cards
script/c100000956.lua
2
3348
--Created and coded by Rising Phoenix function c100000956.initial_effect(c) c:SetUniqueOnField(1,0,100000956) --synchro summon aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x114),aux.NonTuner(Card.IsSetCard,0x114),1) c:EnableReviveLimit() local e1=Effect.CreateEffect(c) e1:SetDescription(aux.S...
gpl-3.0
qyh214/wow_addons_private_use
AddOns/DBM-BlackTemple/Supremus.lua
1
3894
local mod = DBM:NewMod("Supremus", "DBM-BlackTemple") local L = mod:GetLocalizedStrings() mod:SetRevision("20210119194113") mod:SetCreatureID(22898) mod:SetEncounterID(602) mod:SetModelID(21145) mod:SetUsedIcons(8) mod:RegisterCombat("combat") mod:RegisterEventsInCombat( "SPELL_AURA_APPLIED 41951", "RAID_BOSS_EMO...
gpl-3.0