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
padrinoo/padrino85
plugins/giphy.lua
633
1796
-- Idea by https://github.com/asdofindia/telegram-bot/ -- See http://api.giphy.com/ do local BASE_URL = 'http://api.giphy.com/v1' local API_KEY = 'dc6zaTOxFJmzC' -- public beta key local function get_image(response) local images = json:decode(response).data if #images == 0 then return nil end -- No images loca...
gpl-2.0
Oxyless/lua_tools
profiler.lua
1
20194
--[[ == Introduction == Note that this requires os.clock(), debug.sethook(), and debug.getinfo() or your equivalent replacements to be available if this is an embedded application. Example usage: profiler = newProfiler() profiler:start() < call some functions that take time > ...
mit
titansec/openwaf
lib/twaf/twaf_api/dynamic_config.lua
1
3087
-- Copyright (C) Miracle -- Copyright (C) OpenWAF local _M = { _VERSION = "1.0.1" } local twaf_func = require "lib.twaf.inc.twaf_func" local cjson = require "cjson.safe" local back_path = "/opt/OpenWAF/conf/dynamic_conf_back.json" _M.api = {} _M.help = {} _M.api.dynamic_config = {} _M.api.dynamic_config_bac...
apache-2.0
romuloab/pdflib
pdflib.lua
1
21593
local ffi = require 'ffi' local lib = ffi.load( 'pdflibffi' ) ffi.cdef[[ typedef enum { pcos_mode_minimum = 0, pcos_mode_restricted = 1, pcos_mode_full = 2 } pcos_mode; typedef enum { pcos_ot_null = 0, pcos_ot_boolean = 1, pcos_ot_number = 2, pcos_ot_name = 3, pcos_ot_string = 4, ...
mit
toophy/gopher-lua
_lua5.1-tests/all.lua
18
2711
#!../lua math.randomseed(0) collectgarbage("setstepmul", 180) collectgarbage("setpause", 190) --[=[ example of a long [comment], [[spanning several [lines]]] ]=] print("current path:\n " .. string.gsub(package.path, ";", "\n ")) local msgs = {} function Message (m) print(m) msgs[#msgs+1] = string.sub(...
mit
keyidadi/luci
modules/base/luasrc/http/protocol.lua
23
18451
--[[ HTTP protocol implementation for LuCI (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/licen...
apache-2.0
g0t-ya/XiaoyuBox
luci/model/cbi/pptpd/online.lua
1
2669
local data = {} local ds = require "luci.dispatcher" local ps = luci.util.execi("/bin/busybox top -bn1 | grep '/usr/sbin/pppd'") for line in ps do local pid, ppid, speed, gateway, vip, cip = line:match( "^ *(%d+) +(%d+) +.+options%.pptpd +(%d+) +(%S.-%S)%:(%S.-%S) +.+ +(.+)" ) local idx = tonumber(pid) if idx th...
lgpl-3.0
TeslaCloud/TTTRewrite
terrortown/entities/weapons/weapon_ttt_m16.lua
1
2016
AddCSLuaFile() SWEP.HoldType = "ar2" if CLIENT then SWEP.PrintName = "M16" SWEP.Slot = 2 SWEP.Icon = "vgui/ttt/icon_m16" SWEP.IconLetter = "w" end SWEP.Base = "weapon_tttbase" SWEP.Spawnable = true SWEP.Kind = WEAPON_HEAVY SWEP.WeaponID = AMMO_M16 SWEP.Primary.Delay = 0.19 SWEP.Primary.Rec...
mit
slayerrensky/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
celarco/ardupilot
libraries/AP_Scripting/examples/aux_cached.lua
7
1049
--[[ example for getting cached aux function value --]] local RATE_HZ = 10 local MAV_SEVERITY_ERROR = 3 local MAV_SEVERITY_INFO = 6 local AUX_FUNCTION_NUM = 302 local last_func_val = nil local last_aux_pos = nil function update() local aux_pos = rc:get_aux_cached(AUX_FUNCTION_NUM) if aux_pos ~= last_aux_...
gpl-3.0
xkfz007/vlc
share/lua/playlist/koreus.lua
12
3910
--[[ 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 ...
lgpl-2.1
alanjcfs/glc-client
assets/zone-test/farmer-map.lua
2
17174
return { version = "1.1", luaversion = "5.1", orientation = "orthogonal", width = 25, height = 25, tilewidth = 16, tileheight = 16, properties = {}, tilesets = { { name = "Wall", firstgid = 1, tilewidth = 16, tileheight = 16, spacing = 0, margin = 0, image...
apache-2.0
Flexibity/luci
modules/admin-full/luasrc/model/cbi/admin_network/wifi_add.lua
6
5069
--[[ LuCI - Lua Configuration Interface 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 $Id$ ]]-- lo...
apache-2.0
alanjcfs/glc-client
zone/zone.lua
2
1519
-- interface for zones. Zone = {} function stub(...) end Zone.init = stub Zone.data = stub Zone.update = stub Zone.key_pressed = stub Zone.key_released = stub Zone.mouse_pressed = stub Zone.mouse_released = stub function load_wad(data, wad) local code = {} local assets = {} for line in love.filesystem.lines(w...
apache-2.0
jessicakam/tenshi
vm/lua/tenshi-runtime/src/lua/sensor_actor.lua
10
1607
-- Licensed to Pioneers in Engineering under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. Pioneers in Engineering licenses -- this file to you under the Apache License, Version 2.0 (the -- "License"); you ...
apache-2.0
leecrest/luvit
tests/test-dns.lua
8
3170
--[[ Copyright 2014 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
tboox/xmake
tests/modules/semver/test.lua
1
3720
-- imports import("core.base.semver") -- select version function _check_semver_select(results, required_ver, versions, tags, branches) -- select it local version, source = semver.select(required_ver, versions or {}, tags or {}, branches or {}) if (version.version or version) ~= results[1] or source ~= res...
apache-2.0
AliKhodadad/Dark-Boys
plugins/location.lua
625
1564
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
Oliveryo/Interface
AddOns/BigWigs/Raids/ZG/Jindo.lua
1
10177
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Jin'do the Hexxer"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) ---------------------------- -- Localization -- ---------------------------- L:RegisterTran...
gpl-3.0
CRAPproject/CRAPnode-firmware
NodeMCU/crapmain.lua
1
1455
--crapmain.lua --This is the main module for the crap nodes function onConnection(conn) conn:on("receive",onStatusRequest) end function onStatusRequest(conn,payload) print (payload) conn:send('{status:ok}') conn:close() requestData(conn) end function requestData(conn) print ('Data Has been Re...
mit
Flexibity/luci
libs/nixio/docsrc/nixio.fs.lua
156
7907
--- Low-level and high-level filesystem manipulation library. module "nixio.fs" --- Check user's permission on a file. -- @class function -- @name nixio.fs.access -- @param path Path -- @param mode1 First Mode to check ["f", "r", "w", "x"] -- @param ... More Modes to check [-"-] -- @return true --- Strip the dire...
apache-2.0
FlightControl-Master/MOOSE
Moose Development/Moose/AI/AI_Air_Dispatcher.lua
1
155898
--- **AI** - Create an automated AIR defense system with reconnaissance units, coordinating SEAD, BAI and CAP operations. -- -- === -- -- Features: -- -- * Setup quickly an AIR defense system for a coalition. -- * Setup multiple defense zones to defend specific coordinates in your battlefield. -- * Setup (S...
gpl-3.0
celarco/ardupilot
libraries/AP_Scripting/examples/orbit_follow.lua
8
1399
-- example that does an orbit of a vehicle that is being followed -- by adjusting the follow offset X and Y parameters -- user settable FOLL_ORB_TIME and FOLL_ORB_RADIUS parameters -- are provided for the time for one orbit (in seconds) and the radius -- of the orbit -- setup param block for FOLL_ extensions local PAR...
gpl-3.0
Oliveryo/Interface
AddOns/ShaguDB/db/zoneDB.lua
1
1999
zoneDB = { [1] = 'Dun Morogh', [3] = 'Badlands', [4] = 'Blasted Lands', [8] = 'Swamp of Sorrows', [10] = 'Duskwood', [11] = 'Wetlands', [12] = 'Elwynn Forest', [14] = 'Durotar', [15] = 'Dustwallow Marsh', [16] = 'Azshara', [17] = 'The Barrens', [28] = 'Western Plaguelands', [33] = 'Stranglethorn Vale', [...
gpl-3.0
EvilHero90/forgottenserver
data/scripts/actions/others/glooth_bag.lua
7
1460
local config = { {chanceFrom = 0, chanceTo = 1875, itemId = 23529, count = 2}, -- glooth spear {chanceFrom = 1876, chanceTo = 3418, itemId = 23554}, -- glooth amulet {chanceFrom = 3419, chanceTo = 4933, itemId = 23549}, -- glooth club {chanceFrom = 4934, chanceTo = 6397, itemId = 23551}, -- glooth axe {chanceFrom ...
gpl-2.0
dsalychev/mcusim
tests/atmega8a/timer2-pcpwm/check-pb3-rises.lua
1
2613
--[[ This file is part of MCUSim, an XSPICE library with microcontrollers. Copyright (C) 2017-2019 MCUSim Developers, see AUTHORS.txt for contributors. MCUSim 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 Found...
gpl-3.0
Flexibity/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iwinfo.lua
77
1798
--[[ Luci statistics - wireless plugin diagram definition (c) 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...
apache-2.0
keyidadi/luci
applications/luci-multiwan/luasrc/model/cbi/multiwan/multiwanmini.lua
148
2171
require("luci.tools.webadmin") m = Map("multiwan", translate("Multi-WAN"), translate("Multi-WAN allows for the use of multiple uplinks for load balancing and failover.")) s = m:section(NamedSection, "config", "multiwan", "") e = s:option(Flag, "enabled", translate("Enable")) e.rmempty = false e.default = "1" funct...
apache-2.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/state/abstract_heightmap_editing_state.lua
1
1612
SB.Include(Path.Join(SB.DIRS.SRC, 'state/abstract_map_editing_state.lua')) AbstractHeightmapEditingState = AbstractMapEditingState:extends{} function AbstractHeightmapEditingState:init(editorView) AbstractMapEditingState.init(self, editorView) self.patternTexture = self.editorView.fields["patternTexture"...
mit
satta/companion
bin/pseudo_merge_last.lua
4
9462
#!/usr/bin/env gt --[[ Author: Sascha Steinbiss <ss34@sanger.ac.uk> Copyright (c) 2015 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
alanjcfs/glc-client
assets/loading-screens/0.7/circles.lua
2
2477
-- inspired by xscreensaver hacks: -- from https://github.com/danfuzz/xscreensaver/blob/master/hacks/halo.c local color = require 'graphics/color' Circle = {} Circle.mt = {} -- metatable Circle.mt.__index = Circle local palette = { {24,221,0}, {225,200,41}, {47,181,243}, {252,130,195}, {30,2,63} } local c...
apache-2.0
PetaVision/projects
DepthLCA/input/featuremap/icaweights_LCA_featuremap.lua
1
7312
--Load packages package.path = package.path .. ";" .. os.getenv("HOME") .. "/workspace/pv-core/parameterWrapper/?.lua"; local pv = require "PVModule"; --local subnets = require "PVSubnets"; local params = {}; local numDictElements = 512; local leftDictFile = "/home/ec2-user/mountData/benchm...
epl-1.0
Yonaba/character-physics-demo
integrators/explicitEuler.lua
2
1522
--[[ 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
bcreusot/BankManager
vars/GlobalVars.lua
1
1364
-- Global Vars BankManagerVars = "BMVars" BankManagerAppName = "BankManager" currentVersion = "v2.9.1" -- Main Vars BankManager = {} --Limit the number of message in the chat to avoid spamming detection by the game counterMessageChat = 0 limitMessageChat = 20 --delay between each transfer d...
mit
g0t-ya/XiaoyuBox
luci/model/cbi/watchcat/watchcat.lua
1
2570
--[[ LuCI - Lua Configuration Interface Copyright 2012 Christian Gagneraud <chris@techworks.ie> 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$ ]]...
lgpl-3.0
simcop2387/nodemcu-httpserver
http/garage_door_opener.lua
5
1233
-- garage_door_opener.lua -- Part of nodemcu-httpserver, example. -- Author: Marcos Kirsch local function pushTheButton(connection, pin) -- push the button! -- Note that the relays connected to the garage door opener are wired -- to close when the GPIO pin is low. This way they don't activate when ...
gpl-2.0
Oliveryo/Interface
AddOns/BigWigs/Raids/BWL/Chromaggus.lua
1
18303
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Chromaggus"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) local lastFrenzy = 0 local _, playerClass = UnitClass("player") local breathCache = {} -- in case your raid w...
gpl-3.0
mohammadclashclash/info1
plugins/kickall.lua
125
1670
local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, ok_cb, true) end local function returnids(cb_extra, success, result) local receiver = cb_extra.receiver local chat_id = result.id local chatname = result.print_name loc...
gpl-2.0
Oliveryo/Interface
AddOns/BigWigs/Raids/Naxxramas/Razuvious.lua
1
6583
------------------------------ -- Are you local? -- ------------------------------ local boss = AceLibrary("Babble-Boss-2.2")["Instructor Razuvious"] local understudy = AceLibrary("Babble-Boss-2.2")["Deathknight Understudy"] local L = AceLibrary("AceLocale-2.2"):new("BigWigs"..boss) ------------------------...
gpl-3.0
NerdWalletOSS/Q
OPERATORS/F_TO_S/lua/expander_f_to_s.lua
1
2816
local qconsts = require 'Q/UTILS/lua/q_consts' local Reducer = require 'Q/RUNTIME/lua/Reducer' local ffi = require 'Q/UTILS/lua/q_ffi' local qc = require 'Q/UTILS/lua/q_core' local chk_chunk = require 'Q/UTILS/lua/chk_chunk' local get_ptr = require 'Q/UTILS/lua/get_ptr' local record_time = require 'Q/UTIL...
mit
usirin/koding
go/src/vendor/github.com/caglar10ur/lxc/src/lua-lxc/lxc.lua
30
10464
-- -- lua lxc module -- -- Copyright © 2012 Oracle. -- -- Authors: -- Dwight Engen <dwight.engen@oracle.com> -- -- This library is free software; you can redistribute it and/or -- modify it under the terms of the GNU Lesser General Public -- License as published by the Free Software Foundation; either -- version 2....
apache-2.0
slayerrensky/luci
applications/luci-app-siitwizard/luasrc/model/cbi/siitwizard.lua
68
9836
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local uci = require "luci.model.uci".cursor() local bit = require "nixio".bit local ip = require "luci.ip" -------------------- Init -------------------...
apache-2.0
slayerrensky/luci
modules/luci-mod-admin-mini/luasrc/controller/mini/system.lua
74
6456
-- 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. module("luci.controller.mini.system", package.seeall) function index() entry({"mini", "system"}, alias("mini", "system", "index"), _("System"), 40).index = t...
apache-2.0
celarco/ardupilot
libraries/AP_Scripting/examples/ship_vel_match.lua
8
2562
-- support takeoff with velocity matching for quadplanes local PARAM_TABLE_KEY = 35 local PARAM_TABLE_PREFIX = "SHIPV_" local MODE_AUTO = 10 local NAV_TAKEOFF = 22 local NAV_VTOL_TAKEOFF = 84 local ALT_FRAME_ABSOLUTE = 0 -- bind a parameter to a variable function bind_param(name) local p = Parameter() assert...
gpl-3.0
NerdWalletOSS/Q
OPERATORS/LOAD_CSV/test/testcases/test_load_csv.lua
1
2346
-- FUNCTIONAL local Q = require 'Q' require 'Q/UTILS/lua/strict' local load_csv = require 'Q/OPERATORS/LOAD_CSV/lua/load_csv' local fns = require 'Q/OPERATORS/LOAD_CSV/test/testcases/handle_category' local testcase_results = require 'Q/UTILS/lua/testcase_results' local plpath = require 'pl.path' local gen_csv = requir...
mit
xkfz007/vlc
share/lua/sd/fmc.lua
122
2554
--[[ $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
Oliveryo/Interface
AddOns/Cartographer/Libs/AceConsole-2.0/AceConsole-2.0.lua
2
63951
--[[ Name: AceConsole-2.0 Revision: $Rev: 15051 $ 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/AceConsole-2.0 SVN: http://svn.wowace.com/r...
gpl-3.0
iranianhacker40/ARCHON-TEAM
plugins/all.lua
11
6780
do data = load_data(_config.moderation.data) local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print...
gpl-2.0
g0t-ya/XiaoyuBox
luci/model/cbi/admin_network/proto_pppoa.lua
58
4064
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- local ma...
lgpl-3.0
moteus/lzmq-dist
lzmq/examples/zap.lua
1
1916
local zmq = require "lzmq" local zloop = require "lzmq.loop" local function recv_zap(sok) local msg, err = sok:recv_all() if not msg then return err end local req = { version = msg[1]; -- Version number, must be "1.0" sequence = msg[2]; -- Sequence number of request domain = msg[3]; ...
mit
keyidadi/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/meetme.lua
80
1246
--[[ LuCI - Lua Configuration Interface 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 $Id$ ]]-- lo...
apache-2.0
fbesse/torch-totem
totem/asserts.lua
2
3846
-- Functions for checking Tensor and Table equality. --[[ Test for tensor equality Tests whether the maximum element-wise difference between `a` and `b` is less than or equal to `tolerance`. Arguments: * `ta` (tensor) * `tb` (tensor) * `tolerance` (optional, number) maximum elementwise difference between `a` a...
bsd-3-clause
tboox/xmake
xmake/modules/core/tools/cparser.lua
1
6735
--!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
Spring-SpringBoard/SpringBoard-Core
scen_edit/model/heightmap.lua
1
1481
HeightMap = LCS.class{} function HeightMap:init() self.segments = {} self.segmentSize = 1024*1024 end function HeightMap:Serialize() self.segments = {} local segment = {} local i = 1 local totalSaved = 0 for x = 0, Game.mapSizeX, Game.squareSize do for z = 0, Game.mapSizeZ, Game.sq...
mit
slayerrensky/luci
modules/luci-mod-freifunk/luasrc/controller/freifunk/freifunk.lua
59
5943
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Licensed to the public under the Apache License 2.0. module("luci.controller.freifunk.freifunk", package.seeall) function index() local uci = require "luci.model.uci".cursor() local page -- Frontend page = node() page.lock = true page.target ...
apache-2.0
Flexibity/luci
modules/niu/luasrc/model/cbi/niu/wireless/ap1.lua
13
10043
--[[ LuCI - Lua Configuration Interface Copyright 2009 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
leecrest/luvit
tests/test-tls-session-cache.lua
11
1861
--[[ 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 or...
apache-2.0
Flexibity/luci
libs/sys/luasrc/sys/iptparser.lua
26
10663
--[[ Iptables parser and query library (c) 2008-2009 Jo-Philipp Wich <xm@leipzig.freifunk.net> (c) 2008-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 ...
apache-2.0
alfred-bot/phmbot
bot/bot.lua
3
7129
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
NerdWalletOSS/Q
UTILS/build/mk_so.lua
1
3127
local plpath = require 'pl.path' local pldir = require 'pl.dir' local plfile = require 'pl.file' local qconsts = require 'Q/UTILS/lua/q_consts' -- START: Get and validate following environment variables -- Q_ROOT -- Q_BUILD_DIR -- QC_FLAGS -- Q_LINK_FLAGS local q_root = qconsts.Q_ROOT assert(q_root, "Do export Q_ROOT...
mit
jaythomas/love-experiment
src/systems/register-callbacks.lua
1
1844
--- RegisterCallbacks -- Look for event callbacks the given entity wants to use local System = require 'lib/system' local components = { '_entity' } local system = function(entity) local systems_dir = 'src/systems/actions/' local on_begin_contact = {} local on_death = {} local on_end_contact = {} local o...
lgpl-3.0
Spring-SpringBoard/SpringBoard-Core
scen_edit/command/sync/scenario_info_sync.lua
1
1278
SB.Include(Path.Join(SB.DIRS.SRC, 'model/scenario_info.lua')) ---------------------------------------------------------- -- Widget callback commands ---------------------------------------------------------- WidgetSetScenarioInfoCommand = Command:extends{} WidgetSetScenarioInfoCommand.className = "WidgetSetScenarioInf...
mit
DSUK/OpenRA
mods/ra/maps/soviet-05/reinforcements_teams.lua
38
5887
SovietStartReinf = { "e2", "e2" } SovietStartToBasePath = { StartPoint.Location, SovietBasePoint.Location } SovietMCVReinf = { "mcv", "3tnk", "3tnk", "e1", "e1" } SovExpansionPointGuard = { "2tnk", "2tnk", "e3", "e3", "e3" } if Map.Difficulty == "Easy" then ArmorReinfGreece = { "jeep", "1tnk", "1tnk" } else ArmorRei...
gpl-3.0
ponywolf/ponyblitz
com/ponywolf/plugins/nineSlice.lua
2
5385
-- tiled Plugin template -- Use this as a template to extend a tiled object with functionality local M = {} local function newSlice(options) local slice = {} options = options or {} local filename = options.filename local border = options.border or 32 local top = options.top or border local left = opti...
mit
fredericjoanis/Argorha-Pathfinding
extern/premake/_manifest.lua
5
2075
-- -- _manifest.lua -- Manage the list of built-in Premake scripts. -- Copyright (c) 2002-2011 Jason Perkins and the Premake project -- -- The master list of built-in scripts. Order is important! If you want to -- build a new script into Premake, add it to this list. return { -- core files "../lua/base/os.lua",...
mit
leecrest/luvit
deps/url.lua
6
2401
--[[ Copyright 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 or agr...
apache-2.0
zhityer/zhityer7
plugins/getlink.lua
44
14362
do --developed by @i9Dev local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if not is_admin(msg) then return "Você não é um Administrador." end local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return ...
gpl-2.0
facebook/learningSimpleAlgorithms
layers/Index.lua
2
1107
--[[ * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ]]-- -- Enc...
bsd-3-clause
TeslaCloud/TTTRewrite
terrortown/entities/weapons/weapon_ttt_teleport.lua
1
9029
-- traitor equipment: teleporter AddCSLuaFile() SWEP.HoldType = "normal" if CLIENT then SWEP.PrintName = "tele_name" SWEP.Slot = 7 SWEP.ViewModelFOV = 10 SWEP.EquipMenuData = { type = "item_weapon", desc = "tele_desc" }; SWEP.Icon = "vgui/ttt/icon_tport" end SWEP.Base = "weapon_ttt...
mit
DSUK/OpenRA
mods/cnc/maps/nod03a/nod03a.lua
44
2498
NodUnits = { "bike", "e3", "e1", "bggy", "e1", "e3", "bike", "bggy" } FirstAttackWave = { "e1", "e1", "e1", "e2", } SecondThirdAttackWave = { "e1", "e1", "e2", } SendAttackWave = function(units, spawnPoint) Reinforcements.Reinforce(enemy, units, { spawnPoint }, DateTime.Seconds(1), function(actor) actor.AttackMove(...
gpl-3.0
NerdWalletOSS/Q
TESTS/test_set_length.lua
1
1275
-- FUNCTIONAL local Q = require 'Q' require 'Q/UTILS/lua/strict' local tests = {} tests.t1 = function () local x_len = 65537 local y = Q.rand({ lb = 0, ub = 1, seed = 1234, qtype = "I1", len = x_len } ) local c1 = Q.rand({ lb = -1048576, ub = 1048576, seed = 1234, qtype = "F8", len = x_len } ) local c2 = Q.ran...
mit
Oliveryo/Interface
AddOns/dpsmate/modules/DPSMate_Details_FriendlyFire.lua
1
21440
-- Global Variables DPSMate.Modules.DetailsFF = {} -- 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/dpsmate/modules/DPSMate_Details_FriendlyFireTotal.lua
2
14666
DPSMate.Modules.DetailsFFTotal = {} local g, g2 = nil,nil local curKey = 1 local db, cbt = {}, 0 local buttons = {} local ColorTable={} local _G = getglobal local tinsert = table.insert local tremove = table.remove local strformat = string.format local toggle = false local totSumTable = {} local totMax = 0 local totTi...
gpl-3.0
tboox/xmake
xmake/modules/devel/git/ls_remote.lua
1
2288
--!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-voice.lua
68
1280
-- 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", "") voicegeneral = cbimap:section(TypedSection, "voicegeneral", "Voicemail general options", "") serveremail = voicegene...
apache-2.0
weirdouncle/QSanguosha-For-Hegemony
extension-doc/value_config.lua
15
2938
sgs.dynamic_value = { damage_card = { Duel = true, ArcheryAttack = true, Slash = true, FireAttack = true, SavageAssault = true, QiangxiCard = true, FanjianCard = true, LijianCard = true, LuanwuCard = true, ShenfenCard = true, }, control_usecard = { Indulgence = true, SupplyShortage = t...
gpl-3.0
lepakko683/Tetris
src/Tetris2.lua
2
5857
-- Tetris for TI-nspire CX CAS shapes = {-- typ 1 = same in every rotation, typ 2 = has 2 roation states, typ 4 = has 4 rotation states -- square {color = 1, typ = 1, { 0,0,0,0, 0,0,0,0, 1,1,0,0, 1,1,0,0} }, -- line {color = 2, typ = 2, { 1,0,0,0, 1,0,0,0, 1,0,0,0, 1,0,0,0}, { 0,0,0,0, 0,0,...
gpl-3.0
mamaddeveloper/s-t2
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
Goodzilam/Good1
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-2.0
cc122cc/THETETOO2
plugins/banhammer.lua
8
14076
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀ ▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀ ▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHA ▀▄ ▄▀ ▀▄ ▄▀ ban hammer : الطرد والحظر ▀▄ ▄▀ ▀▄▀▀...
gpl-2.0
codergreen/ValyriaTear
img/sprites/map/characters/kalya_run.lua
4
1979
-- 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
starius/kodomoquiz
quiz/if_list_for_range.lua
1
13630
local math = require("math") math.randomseed(os.time()) local h = require('quiz.helpers') local ilfr = {} function ilfr.odd_even(req) local val = math.random(0, 100) local result, fake if val % 2 == 0 then result = 'even' fake = 'odd' else result = 'odd' fake = 'even'...
mit
Oliveryo/Interface
AddOns/oCB/Libs/AceAddon-2.0/AceAddon-2.0.lua
2
30507
--[[ Name: AceAddon-2.0 Revision: $Rev: 16523 $ 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/AceAddon-2.0 SVN: http://svn.wowace.com/root/...
gpl-3.0
moanoto/tab
libs/dkjson.lua
3282
26558
-- Module options: local always_try_using_lpeg = true local register_global_module_table = false local global_module_name = 'json' --[==[ David Kolf's JSON module for Lua 5.1/5.2 ======================================== *Version 2.4* In the default configuration this module writes no global values...
gpl-3.0
codergreen/ValyriaTear
img/sprites/map/enemies/bat_idle.lua
4
1604
-- 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
aure/Soundpipe
modules/data/revsc.lua
3
1384
sptbl["revsc"] = { files = { module = "revsc.c", header = "revsc.h", example = "ex_revsc.c", }, func = { create = "sp_revsc_create", destroy = "sp_revsc_destroy", init = "sp_revsc_init", compute = "sp_revsc_compute", }, params = { op...
mit
tboox/xmake
xmake/core/ui/mconfdialog.lua
1
11957
--!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
kaptanblack15/jackspark
bot/seedbot.lua
1
8674
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
RamiLego4Game/PixelizerBox-Sandbox
Helpers/loveframes/skins/Blue/skin.lua
12
64083
--[[------------------------------------------------ -- 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(".skins.Blue.skin")) local love...
apache-2.0
NerdWalletOSS/Q
RUNTIME/test/test_lVector_nascent.lua
1
4839
local plfile = require 'pl.file' local plpath = require 'pl.path' local Vector = require 'libvec' local Scalar = require 'libsclr' local cmem = require 'libcmem' local lVector = require 'Q/RUNTIME/lua/lVector' local qconsts = require 'Q/UTILS/lua/q_consts' local ffi = require 'Q/UTILS/lua/q_ffi' local ...
mit
keyidadi/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
80
3231
--[[ 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
slayerrensky/luci
applications/luci-app-radvd/luasrc/model/cbi/radvd/interface.lua
61
7787
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local sid = arg[1] local utl = require "luci.util" m = Map("radvd", translatef("Radvd - Interface %q", "?"), translate("Radvd is a router advertisement daemon for IPv6. " .. "It listens to router solicitatio...
apache-2.0
tboox/xmake
xmake/includes/check_cxxincludes.lua
1
2002
--!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/private/platform/check_vstudio.lua
1
3294
--!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
protocols/core/luasrc/model/cbi/admin_network/proto_dhcp.lua
5
3026
--[[ 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...
apache-2.0
DSUK/OpenRA
mods/cnc/maps/nod01/nod01.lua
25
3222
InitialForcesA = { "bggy", "e1", "e1", "e1", "e1" } InitialForcesB = { "e1", "e1", "bggy", "e1", "e1" } RifleInfantryReinforcements = { "e1", "e1" } RocketInfantryReinforcements = { "e3", "e3", "e3", "e3", "e3" } SendInitialForces = function() Media.PlaySpeechNotification(player, "Reinforce") Reinforcements.Reinfor...
gpl-3.0
TeslaCloud/TTTRewrite
terrortown/gamemode/roles/sh_example.lua
1
1868
--[[ © 2014 TeslaCloud Studios. Feel free to use, edit and share this code, but do not re-distribute or sell without the permission of it's author. Feel free to contact us at support@teslacloud.net --]] --[[ local ROLE = TTT.Role:New("Role Name"); ROLE.name = "Example"; -- The name of our role. ROLE.isDefaul...
mit
Flexibity/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua
9
1081
--[[ Luci statistics - cpu 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.apache...
apache-2.0
slayerrensky/luci
applications/luci-app-splash/luasrc/controller/splash/splash.lua
40
4649
module("luci.controller.splash.splash", package.seeall) local uci = luci.model.uci.cursor() local util = require "luci.util" function index() entry({"admin", "services", "splash"}, cbi("splash/splash"), _("Client-Splash"), 90) entry({"admin", "services", "splash", "splashtext" }, form("splash/splashtext"), _("Splas...
apache-2.0
tboox/xmake
xmake/modules/detect/sdks/find_vcpkgdir.lua
1
3144
--!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