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
ghoghnousteamHT/ghoghnous_bot
plugins/plugins.lua
13
6195
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
strukturag/vlc-2.2
share/lua/playlist/bbc_co_uk.lua
112
1468
--[[ $Id$ Copyright © 2008 the VideoLAN team Authors: Dominique Leuenberger <dominique-vlc.suse@leuenberger.net> 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 Licens...
gpl-2.0
noa/nn
SelectTable.lua
24
1393
local SelectTable, parent = torch.class('nn.SelectTable', 'nn.Module') function SelectTable:__init(index) parent.__init(self) self.index = index self.gradInput = {} end function SelectTable:updateOutput(input) assert(math.abs(self.index) <= #input, "arg 1 table idx out of range") if self.index < 0 then...
bsd-3-clause
Mortezarohandeh1/hack_shop2bot
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
sina99/sina
plugins/spam.lua
3
13364
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width"> <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1" media="(device-height: 568px)"> <meta http-equiv="Content-L...
gpl-2.0
Miigon/luvit
tests/test-tls-connect-simple.lua
11
1050
require('tap')(function (test) local fixture = require('./fixture-tls') local tls = require('tls') local options = { cert = fixture.certPem, key = fixture.keyPem } local serverConnected = 0 local clientConnected = 0 local server local client1 test("tls connect simple test", function() ...
apache-2.0
mega9/GTW-RPG
[resources]/GTWhospital/hospital_c.lua
1
1501
--[[ ******************************************************************************** Project owner: GTWGames Project name: GTW-RPG Developers: GTWCode Source code: https://github.com/GTWCode/GTW-RPG/ Bugtracker: http://forum.gtw-games.org/bug-reports/ Suggestions: http://forum.gtw-game...
gpl-3.0
dani-sj/extremenod
plugins/arabic_lock.lua
30
1090
antiarabic = {}-- An empty table for solving multiple kicking problem do local function run(msg, matches) if is_momod(msg) then -- Ignore mods,owner,admins return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)]['settings']['lock_arabic'] then if data[tostring(msg.to.id...
gpl-2.0
dani-sj/extremenod
plugins/boobs.lua
90
1731
do -- Recursive function local function getRandomButts(attempt) attempt = attempt or 0 attempt = attempt + 1 local res,status = http.request("http://api.obutts.ru/noise/1") if status ~= 200 then return nil end local data = json:decode(res)[1] -- The OpenBoobs API sometimes returns an empty array if no...
gpl-2.0
palestar/medusa
ThirdParty/LuaJIT/jit/opt_inline.lua
1
12337
---------------------------------------------------------------------------- -- LuaJIT optimizer add-on module for function inlining. -- -- Copyright (C) 2005-2012 Mike Pall. All rights reserved. -- Released under the MIT/X license. See luajit.h for full copyright notice. -----------------------------------------------...
mit
ntop/ntopng
scripts/lua/rest/set/scripts/config.lua
1
1580
-- -- (C) 2019-22 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local info = ntop.getInfo() local json = require ("dkjson") local page_utils = require("page_utils") local format_utils = require("format_utils") local os_utils =...
gpl-3.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[race]/race_ghost/record_server.lua
4
2865
newghostForumid, newghostMapname = nil, nil addCommandHandler('deleteghost', function(client) local forumid = exports.gc:getPlayerForumID(client) -- if (forumid and playback.forumid == forumid) or hasObjectPermissionTo(client, "function.banPlayer", false) then if (forumid and playback.forumid == forumid) then fil...
mit
maikerumine/aftermath
mods/farming/coffee.lua
3
5403
--= Coffee minetest.register_craftitem("farming:coffee_beans", { description = "Coffee Beans", inventory_image = "farming_coffee_beans.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:coffee_1") end, }) --= Glass Cup --minetest.reg...
lgpl-2.1
pinghe/nginx-openresty-windows
LuaJIT-2.1-20150622/src/jit/bcsave.lua
28
18091
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
bsd-2-clause
Star2Billing/newfies-dialer
lua/playarea/example_ivr.lua
4
3427
-- -- Newfies-Dialer License -- http://www.newfies-dialer.org -- -- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this file, -- You can obtain one at http://mozilla.org/MPL/2.0/. -- -- Copyright (C) 2011-2015 Star2Billing S.L. -- --...
mpl-2.0
numo16/wesnoth
data/ai/micro_ais/cas/ca_hunter.lua
26
8246
local H = wesnoth.require "lua/helper.lua" local W = H.set_wml_action_metatable {} local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" local function hunter_attack_weakest_adj_enemy(ai, hunter) -- Attack the enemy with the fewest hitpoints adja...
gpl-2.0
graydon/monotone
tests/resolve_conflicts_propagate/__driver__.lua
1
2335
-- Test/demonstrate handling of a duplicate name conflict when -- propagating branches. -- -- For checkout.sh, the user intent is that there be -- one file with that name; the contents should be merged. -- -- For thermostat.c, there should be two files; -- thermostat-westinghouse.c and thermostat-honeywell.c mtn_setup...
gpl-2.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[gameplay]/mapstop100/votestop100.lua
3
5979
function votes100_fetch100(p) local map100 = {} local qh = dbQuery(handlerConnect, "SELECT * FROM `mapstop100`") local map100_sql = dbPoll(qh,-1) if not map100_sql then return false end for _,row in ipairs(map100_sql) do local name = tostring(row.mapname) local author = tostring(row.author) ...
mit
spirit689/minetest-tai
tai_armor/init.lua
1
2633
local inv = tai.inv -- inventory tai.register_tab({ index = 1, id = 'main:armor', name = 'Main' }) tai.register_tab({ index = 1, id = 'main:armorstats', name = 'Main' }) inv.armor = function(cfg) local formspec = {} formspec[#formspec+1] = 'list[detached:'..cfg.player_name..'_armor;ar...
lgpl-3.0
ntop/ntopng
scripts/lua/rest/v1/add/ntopng/user.lua
1
2609
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path require "lua_utils" local json = require ("dkjson") local rest_utils = require("rest_utils")...
gpl-3.0
Mortezarohandeh1/hack_shop2bot
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
corbinmunce/domoticz
dzVents/runtime/device-adapters/Adapters.lua
4
4226
local genericAdapter = require('generic_device') local deviceAdapters = { 'airquality_device', 'alert_device', 'ampere_1_phase_device', 'ampere_3_phase_device', 'barometer_device', 'counter_device', 'custom_sensor_device', 'distance_device', 'electric_usage_device', 'evohome_device', 'gas_device', 'group_d...
gpl-3.0
noa/nn
JoinTable.lua
25
1958
local JoinTable, parent = torch.class('nn.JoinTable', 'nn.Module') function JoinTable:__init(dimension, nInputDims) parent.__init(self) self.size = torch.LongStorage() self.dimension = dimension self.gradInput = {} self.nInputDims = nInputDims end function JoinTable:updateOutput(input) local dimensi...
bsd-3-clause
mespinozas/si
t7/xapian/xapian-bindings/lua/docs/examples/simpleindex.lua
2
1973
#!/usr/bin/env lua -- -- Index each paragraph of a text file as a Xapian document. -- -- Copyright (C) 2011 Xiaona Han -- -- 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 t...
gpl-2.0
ntop/ntopng
scripts/lua/modules/alert_definitions/other/alert_dropped_alerts.lua
1
1781
-- -- (C) 2019-22 - ntop.org -- -- ############################################## local other_alert_keys = require "other_alert_keys" -- Import the classes library. local classes = require "classes" -- Make sure to import the Superclass! local alert = require "alert" local alert_entities = require "alert_entities" ...
gpl-3.0
maikerumine/aftermath
mods/shooter/guns.lua
2
3380
shooter:register_weapon("shooter:pistol", { description = "Pistol", inventory_image = "shooter_pistol.png", rounds = 200, spec = { range = 100, step = 20, tool_caps = {full_punch_interval=0.5, damage_groups={fleshy=2}}, groups = {snappy=3, fleshy=3, oddly_breakable_by_hand=3}, sound = "shooter_pistol", ...
lgpl-2.1
zhtlancer/vicious
widgets/mboxc.lua
14
1841
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local io = { open = io.open } local setmetatable = setmetatable local string = { find = stri...
gpl-2.0
mohammadspemmer/mamad
tg/tdcli.lua
1
89171
--[[ 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 the hope that it will be use...
gpl-3.0
ophal/core
includes/bootstrap.lua
1
5894
local version = { core = 'Ophal', number = '0.2', -- revision = 'dev', homepage = 'ophal.org', } -- Jailed environment functions and modules env = { io = io, os = os, tonumber = tonumber, type = type, module = module, pcall = pcall, nopcall = function(f, ...) return true, f(...) end, loadstring...
agpl-3.0
focusworld/focus
plugins/anti-flood.lua
281
2422
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
zh423328/sproto
test.lua
26
1035
local sproto = require "sproto" local core = require "sproto.core" local print_r = require "print_r" local sp = sproto.parse [[ .Person { name 0 : string id 1 : integer email 2 : string .PhoneNumber { number 0 : string type 1 : integer } phone 3 : *PhoneNumber } .AddressBook { person 0 : *Person(id) oth...
mit
spark051/bt.bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
ASantosVal/vlc-extension-trials
share/lua/playlist/cue.lua
11
4387
--[[ Parse CUE files $Id$ Copyright (C) 2009 Laurent Aimar 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 pro...
gpl-2.0
spark051/bt.bot
plugins/banhammer.lua
294
10470
local function is_user_whitelisted(id) local hash = 'whitelist:user#id'..id local white = redis:get(hash) or false return white end local function is_chat_whitelisted(id) local hash = 'whitelist:chat#id'..id local white = redis:get(hash) or false return white end local function kick_user(user_id, chat_id)...
gpl-2.0
palestar/medusa
ThirdParty/LuaJIT/dynasm/dynasm.lua
3
30171
------------------------------------------------------------------------------ -- DynASM. A dynamic assembler for code generation engines. -- Originally designed and implemented for LuaJIT. -- -- Copyright (C) 2005-2008 Mike Pall. All rights reserved. -- See below for full copyright notice. ----------------------------...
mit
caohongtao/quick-cocos-demo
src/cocos/extension/DeprecatedExtensionEnum.lua
40
1369
_G.kCCControlStepperPartMinus = cc.CONTROL_STEPPER_PART_MINUS _G.kCCControlStepperPartPlus = cc.CONTROL_STEPPER_PART_PLUS _G.kCCControlStepperPartNone = cc.CONTROL_STEPPER_PART_NONE _G.CCControlEventTouchDown = cc.CONTROL_EVENTTYPE_TOUCH_DOWN _G.CCControlEventTouchDragInside = cc.CONTROL_...
apache-2.0
Banderi/OpenTomb
scripts/level/tr4/ANGKOR1.lua
2
2356
-- OPENTOMB LEVEL SCRIPT -- FOR TOMB RAIDER 4, ANGKOR1 UVRotate = 4; print("Level script loaded (ANGKOR1.lua)"); -- STATIC COLLISION FLAGS ------------------------------------------------------ -------------------------------------------------------------------------------- -- PLANT statics (as listed in OBJECTS.H ...
lgpl-3.0
mandla99/the_king98
plugins/invite.lua
43
1335
do local function callbackres(extra, success, result) --vardump(result) local user = 'user#id'..result.peer_id local chat = 'chat#id'..extra.chatid local channel = 'channel#id'..extra.chatid if is_banned(result.id, extra.chatid) then send_large_msg(chat, 'User is banned.') send_large_msg(c...
gpl-2.0
sdowsland/google-diff-match-patch
lua/diff_match_patch.lua
265
73869
--[[ * Diff Match and Patch * * Copyright 2006 Google Inc. * http://code.google.com/p/google-diff-match-patch/ * * Based on the JavaScript implementation by Neil Fraser. * Ported to Lua by Duncan Cross. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
apache-2.0
graydon/monotone
tests/check_later_and_earlier_selectors/__driver__.lua
1
2537
include("common/selectors.lua") mtn_setup() revs = {} addfile("testfile", "this is just a file") copy("testfile", "testfile1") check(mtn("commit", "--date=2005-03-11T20:33:01", "--branch=foo", "--message=march"), 0, false, false) revs.first = base_revision() writefile("testfile", "Now, this is a different ...
gpl-2.0
vikas17a/Algorithm-Implementations
Maximum_Subarray/Lua/Yonaba/maximum_subarray_test.lua
26
1897
-- Tests for maximum_subarray.lua local gss = require 'maximum_subarray' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass +...
mit
eaufavor/AwesomeWM-powerarrow-dark
utils/keyFunctions.lua
1
3559
local setmetatable = setmetatable local table = table local io = io local string = string local button = require( "awful.button" ) local beautiful = require( "beautiful" ) local naughty = require( "naughty" ) local client = require( "awful.client" ) loc...
apache-2.0
baiwenlu/sailor
src/remy/mod_plua.lua
4
1934
-- Remy - mod_pLua compatibility -- Copyright (c) 2014 Felipe Daragon -- License: MIT -- TODO: implement all functions from mod_lua's request_rec local request = { -- ENCODING/DECODING FUNCTIONS base64_decode = function(_,...) return string.decode64(...) end, base64_encode = function(_,...) return string.encode64(....
mit
vikas17a/Algorithm-Implementations
Derivative/Lua/Yonaba/derivative_test.lua
26
1356
-- Tests for derivative.lua local drv = require 'derivative' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end loc...
mit
MPogoda/dotfiles
neovim/lua/plugins.lua
1
9950
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.fn.system({ 'git', 'clone', 'github.com:wbthomason/packer.nvim', install_path }) -- vim.api.nvim_command('packadd packer.nvim') end local packerGroup = vim.api.nvim_crea...
mit
ntop/ntopng
attic/scripts/plugins/alerts/network/pool_quota_exceeded/checks/interface/pool_quota_exceeded.lua
2
1118
-- -- (C) 2019-21 - ntop.org -- local alert_consts = require "alert_consts" local alert_utils = require "alert_utils" local checks = require("checks") -- ################################################################# local script -- ################################################################# local functio...
gpl-3.0
vikas17a/Algorithm-Implementations
Best_First_Search/Lua/Yonaba/bfs_test.lua
26
2639
-- Tests for bfs.lua local BFS = require 'bfs' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function same(t, p, comp) for k,v in ipairs(t) do if not comp(v, p[k]) then return false end end return true end ...
mit
wubenqi/zengine
bin/scripts2/zengine/znet_handler_engine.lua
2
1537
-- Copyright (C) 2012 by wubenqi -- Distributable under the terms of either the Apache License (Version 2.0) or -- the GNU Lesser General Public License, as specified in the COPYING file. -- -- By: wubenqi<wubenqi@gmail.com> -- ------------------------------------------------------------------------------------------...
apache-2.0
Scoth42/rfkasm
fceux-2.2.2-win32/luaScripts/SoundDisplay.lua
3
10728
--------------------------------------------------------------------------- -- Display Sound Channels data -- by AnS, 2012 --------------------------------------------------------------------------- -- Showcases following functions: -- * sound.get() ----------------------------------------------------------------------...
gpl-2.0
NogsIoT/Software-CN
CN1/lua-cjson-2.1.0/lua/cjson/util.lua
170
6837
local json = require "cjson" -- Various common routines used by the Lua CJSON package -- -- Mark Pulford <mark@kyne.com.au> -- Determine with a Lua table can be treated as an array. -- Explicitly returns "not an array" for very sparse arrays. -- Returns: -- -1 Not an array -- 0 Empty table -- >0 Highest index ...
gpl-2.0
trompetin17/wxFormBuilder-Atlas
build/premake/4.3/src/actions/codelite/codelite_project.lua
7
5311
-- -- codelite_project.lua -- Generate a CodeLite C/C++ project file. -- Copyright (c) 2009 Jason Perkins and the Premake project -- function premake.codelite_project(prj) _p('<?xml version="1.0" encoding="utf-8"?>') _p('<CodeLite_Project Name="%s">', premake.esc(prj.name)) premake.walksources(prj, premake.c...
gpl-2.0
ntop/ntopng
scripts/lua/live_capture_stats.lua
1
1498
-- -- (C) 2013-22 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path -- io.write ("Session:".._SESSION["session"].."\n") require "lua_utils" local page_utils = require("page_utils") interface.select(ifname) sendHTTPContentTypeHeader('text/html') pag...
gpl-3.0
mega9/GTW-RPG
[misc]/interiors/interiorexp.lua
5
6226
local interiors = {} local interiorMarkers = {} local resourceFromInterior = {} --format interior = { [resource] = { [id] = { return= { [element],[element] }, entry=[element] } } addEvent ( "doTriggerServerEvents", true ) addEvent ( "onPlayerInteriorHit" ) addEvent ( "onPlayerInteriorWarped", true ) addEvent ( "onInte...
gpl-3.0
James226/track-master
TrackMaster/Libs/LibBusted-2.0/Penlight/operator.lua
3
4842
local MAJOR, MINOR = "Lib:Penlight:Operator-1.0", 1 -- Get a reference to the package information if any local APkg = Apollo.GetPackage(MAJOR) -- If there was an older version loaded we need to see if this is newer if APkg and (APkg.nVersion or 0) >= MINOR then return end --------------------------------------------...
gpl-2.0
hkernbach/arangodb
3rdParty/V8/v5.7.492.77/tools/gcmole/gcmole.lua
4
15586
-- Copyright 2011 the V8 project authors. All rights reserved. -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are -- met: -- -- * Redistributions of source code must retain the above copyright -- notice, this list of ...
apache-2.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[race]/race/racemap.lua
3
8539
g_MapObjAttrs = { spawnpoint = { 'position', 'rotation', 'vehicle', 'paintjob', 'upgrades', 'team' }, checkpoint = { 'id', 'nextid', 'position', 'size', 'color', 'type', 'vehicle', 'paintjob', 'upgrades', 'nts' , 'models'}, object = { 'position', 'rotation', 'model' }, pickup = { 'position', 'type', 'vehicle', 'pai...
mit
ntop/ntopng
scripts/lua/rest/v1/get/host/data.lua
1
4290
-- -- (C) 2013-22 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local json = require ("dkjson") local tracker = require("tracker") local rest_utils = require("rest_utils") -- -- Read information about a host -- Example: c...
gpl-3.0
Bierbuikje/Mr.Green-MTA-Resources
resources/[gameplay]/gc/gc_c.lua
2
6480
local x, y = guiGetScreenSize() local yPos = y/8*6 -- local yPos = y * 0.95 -- local xPos = x * 0.85 local alpha = 0 local FADING_ALPHA = 5 local gc = 0 local fade = 0 local green = 255 local pulse = false local pulseAmount = 30 local pulses = 0 local pulseMaxRepetitions = 3 local pulseDir = "out" local gc_name = "" l...
mit
corbinmunce/domoticz
dzVents/runtime/Domoticz.lua
5
16885
local scriptPath = globalvariables['script_path'] package.path = package.path .. ';' .. scriptPath .. '?.lua' local Device = require('Device') local Variable = require('Variable') local Time = require('Time') local TimedCommand = require('TimedCommand') local utils = require('Utils') local _ = require('lodash') -- sim...
gpl-3.0
paul/awesome
luadoc/client.lua
2
4284
--- awesome client API -- @author Julien Danjou &lt;julien@danjou.info&gt; -- @copyright 2008-2009 Julien Danjou module("client") --- Client object. -- @field window The X window id. -- @field name The client title. -- @field skip_taskbar True if the client does not want to be in taskbar. -- @field type The window typ...
gpl-2.0
trompetin17/wxFormBuilder-Atlas
build/premake/wxpropgrid.lua
3
1362
----------------------------------------------------------------------------- -- Name: wxpropgrid.lua -- Purpose: wxPropertyGrid library build script for wxWidgets 2.8. -- Author: Andrea Zanellato -- Modified by: -- Created: 19/10/2011 -- Copyright: (c) 2011 wxFormBuilder Team -- Licence: ...
gpl-2.0
FlightControl-Master/MOOSE_MISSIONS
TSK - Task Modelling/CGO - Cargo Transportation/TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone/TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone.lua
1
2670
--- -- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone -- Author: FlightControl -- Date Created: 12 Mar 2018 -- -- This mission demonstrates the transport of a cargo group using an Helicopter. -- -- There is: -- - 1 Helicopter. -- - 1 Transport Task - Transport Workers. -- - 1 Cargo - Worker...
gpl-3.0
evandroomiix/miixbot
config.lua
1
2094
return { bot_api_key = '', google_api_key = '', google_cse_key = '', lastfm_api_key = '', owm_api_key = '', biblia_api_key = '', thecatapi_key = '', nasa_api_key = '', time_offset = 0, lang = 'en', antisquig = false, cli_port = 4567, admin = 00000000, admin_name = 'John Smith', log_chat = nil, about_tex...
gpl-2.0
kkvskkkk/NPLRuntime
Client/trunk/externals/bullet3/test/OpenCL/ParallelPrimitives/premake4.lua
8
1480
function createProject(vendor) hasCL = findOpenCL(vendor) if (hasCL) then project ("Test_OpenCL_Primitives_" .. vendor) initOpenCL(vendor) language "C++" kind "ConsoleApp" targetdir "../../../bin" includedirs {".","../../../src"} files { "main.cpp", "../../../src/Bullet3OpenCL/Ini...
gpl-2.0
PicassoCT/Journeywar
units/journey/jSettledSequoia.lua
1
1377
local unitName = "jsettledsequoia" local unitDef = { name = "Sequoia ", Description = " landed, regenerating Treeship <Energy>", objectName = "jsequoia.s3o", script = "sequoiarestingscript.lua", buildPic = "jesempresequoia.png", --cost buildCostMetal = 100, buildCostEnergy = 50, buildTime =1, --Health maxDamage = 4400...
gpl-3.0
PicassoCT/Journeywar
gamedata/explosions/SunSfx.lua
1
2085
-- dirt return { ["sunfx"] = { --Sun sunball = { air = true, class = [[CSimpleParticleSystem]], count = 1, ground = true, properties = { airdrag = 0.7, alwaysvisible = true, colormap ...
gpl-3.0
b03605079/darkstar
scripts/zones/Southern_San_dOria/npcs/Valderotaux.lua
17
1750
----------------------------------- -- Area: Southern San d'Oria -- NPC: Valderotaux -- General Info NPC -- @pos 97 0.1 113 230 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); req...
gpl-3.0
PicassoCT/Journeywar
units/journey/jBonsai.lua
1
1361
local unitName = "jbonsai" local unitDef = { name = "Bonsai", Description = "secrets a Mountainwall, in Addition raising the water level <Defense Terraform Building>", objectName = "jBonsai.s3o", script = "jBonsaiScript.lua", buildPic = "jbonsai.png", --cost buildCostMetal = 240, buildCostEnergy = 10, buildTi...
gpl-3.0
Aquanim/Zero-K
units/chicken_dodo.lua
6
2361
return { chicken_dodo = { unitname = [[chicken_dodo]], name = [[Dodo]], description = [[Chicken Bomb]], acceleration = 18, activateWhenBuilt = true, brakeRate = 1.23, buildCostEnergy = 0, buildCostMetal = 0, builder ...
gpl-2.0
b03605079/darkstar
scripts/zones/Mhaura/npcs/Mololo.lua
17
1170
----------------------------------- -- Area: Mhaura -- NPC: Mololo -- Guild Merchant NPC: Blacksmithing Guild -- @pos -64.278 -16.624 34.120 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); ...
gpl-3.0
b03605079/darkstar
scripts/zones/Batallia_Downs/npcs/Luck_Rune.lua
34
1079
----------------------------------- -- Area: Batallia Downs -- NPC: Luck Rune -- Involved in Quest: Mhaura Fortune -- @pos -362.167 -12.199 157.158 105 ----------------------------------- package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil; ------------------------------------- require("scripts/...
gpl-3.0
immibis/wiremod
lua/wire/client/hlzasm/hc_compiler.lua
6
26826
-------------------------------------------------------------------------------- -- HCOMP / HL-ZASM compiler -- -- This is a high-level assembly language compiler, based on ZASM2 and C syntax. -- -- I tried to make the compiler as understandable as possible, but you will need -- to read the source files in this order t...
apache-2.0
PicassoCT/Journeywar
gamedata/explosions/jetflash.lua
1
1650
-- jetflash return { ["jetflash"] = { bitmapmuzzleflame = { air = true, class = [[CBitmapMuzzleFlame]], count = 1, ground = true, underwater = 1, water = true, properties = { colormap ...
gpl-3.0
Xerrass/theMod
theMod/prototypes/resources/solid/lead.lua
1
5598
data:extend( { { type = "autoplace-control", name = "lead-ore", richness = true, order = "l" }, { type = "resource", name = "lead-ore", icon = "__theMod__/graphics/icons/copper-ore.png", flags = {"placeable-neutral"}, order="a-l-a", minable = { hardn...
mit
immibis/wiremod
lua/entities/gmod_wire_expression2/core/custom/cl_prop.lua
6
2977
language.Add("Undone_e2_spawned_prop", "Undone E2 Spawned Prop") language.Add("Undone_e2_spawned_seat", "Undone E2 Spawned Seat") E2Helper.Descriptions["propManipulate"] = "Allows to do any single prop core function in one term.\n(position, rotation, freeze, gravity, notsolid)" E2Helper.Descriptions["propSpawn"] = "Use...
apache-2.0
b03605079/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua
17
2378
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Dkhaaya -- Type: Standard NPC -- @pos -73.212 -1 -5.842 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitem...
gpl-3.0
b03605079/darkstar
scripts/zones/Windurst_Woods/npcs/Ponono.lua
12
1958
----------------------------------- -- Area: Windurst Woods -- NPC: Ponono -- Type: Clothcraft Guild Master -- @pos -38.243 -2.25 -120.954 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/crafting"); requ...
gpl-3.0
centaure/S4
examples/Li_JOSA_14_2758_1997/ex1_orig.lua
7
1114
-- Example 1A in -- Lifeng Li, -- "New formulation of the Fourier modal method for crossed surface-relief gratings" -- Journal of the Optical Society of America A, Vol. 14, No. 10, p. 2758 (1997) -- This is Fig. 6, curve OCA S = S4.NewSimulation() S:SetLattice({2.5,0}, {0,2.5}) S:SetNumG(200) S:AddMaterial...
gpl-2.0
b03605079/darkstar
scripts/zones/Selbina/npcs/Thunder_Hawk.lua
7
2359
----------------------------------- -- Area: Selbina -- NPC: Thunder Hawk -- Starts and Finishes Quest: The Rescue -- @pos -58 -10 6 248 ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); re...
gpl-3.0
arychen/GlobalCall
feeds/luci/modules/luci-base/luasrc/tools/webadmin.lua
59
2301
-- 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. module("luci.tools.webadmin", package.seeall) local util = require "luci.util" local uci = require "luci.model.uci" local ip = require "luci.ip" func...
gpl-2.0
Sakura-Winkey/LuCI
modules/luci-base/luasrc/tools/webadmin.lua
59
2301
-- 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. module("luci.tools.webadmin", package.seeall) local util = require "luci.util" local uci = require "luci.model.uci" local ip = require "luci.ip" func...
apache-2.0
b03605079/darkstar
scripts/zones/Norg/npcs/Achika.lua
19
1251
----------------------------------- -- Area: Norg -- NPC: Achika -- Type: Tenshodo Merchant -- @pos 1.300 0.000 19.259 252 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/shop")...
gpl-3.0
b03605079/darkstar
scripts/commands/checkmission.lua
3
3883
--------------------------------------------------------------------------------------------------- -- func: @checkmission <Log ID> <Player> -- auth: TeoTwawki -- desc: Prints current MissionID for the given LogID and target Player to the in game chatlog -------------------------------------------------------------...
gpl-3.0
b03605079/darkstar
scripts/globals/spells/bluemagic/occultation.lua
3
1438
----------------------------------------- -- Bluemagic: Occultation -- Creates shadow images that each absorb -- a single attack directed at you. -- VIT+3 CHR-2 -- Lvl.: 88 MP Cost: 138 Blue Points: 3 ----------------------------------------- require("scripts/globals/status"); ---------------------------------------...
gpl-3.0
dyrock/trafficserver
plugins/lua/example/test_global_hook.lua
17
1783
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); y...
apache-2.0
b03605079/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/MieuseloirBEnchelles1.lua
36
1055
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Miuseloir B Enchelles -- @zone 80 -- @pos 120 0 104 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); ------------------...
gpl-3.0
lgierth/lua-sha2
test_hmac.lua
9
4983
require 'hmac.sha2' require 'mime' --from luasocket, for b64() and unb64() require 'hmac.md5' local function bintohex(s) return (s:gsub('(.)', function(c) return string.format('%02x', string.byte(c)) end)) end local function hextobin(s) return (s:gsub('(%x%x)', function(hex) return string.char(tonumber(hex, 1...
mit
b03605079/darkstar
scripts/zones/Temple_of_Uggalepih/npcs/qm3.lua
19
1081
----------------------------------- -- Area: Temple of Uggalepih -- NPC: ??? (Uggalepih Whistle ITEM) -- @pos -150 0 -71 159 ----------------------------------- package.loaded["scripts/zones/Temple_of_Uggalepih/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Temple_of_Uggalepih/Tex...
gpl-3.0
thesrinivas/rakshak
rakshak-probe/userspace/sysdig/chisels/scallslower.lua
3
4271
--[[ scallslower.lua - trace the syscalls slower than a given threshold. USAGE: sysdig -c scallslower min_ms eg, sysdig -c scallslower 1000 # show syscalls slower than 1000 ms. sysdig -c scallslower "1 disable_colors" # show syscalls slower than 1 ms. w/ no colors sysdig -pc -c scallslower 1000 #...
gpl-2.0
DawshArian/RadioSatan
plugins/sticker_lock.lua
39
19259
-- data saved to data/moderation.json do local administrators_only = 'For administrator only!' local moderators_only = 'For moderators only!' local function create_group(msg) if not is_admin(msg) then return administrators_only end local group_creator = msg.from.print_name create_group_chat (group_creator, grou...
gpl-2.0
Aquanim/Zero-K
units/chicken_dragon.lua
2
7706
return { chicken_dragon = { unitname = [[chicken_dragon]], name = [[White Dragon]], description = [[Prime Assault Chicken]], acceleration = 6.0, activateWhenBuilt = true, autoHeal = 0, brakeRate = 36.0, buildCostEnergy ...
gpl-2.0
stars2014/quick-ng
quick/framework/cc/utils/GameState.lua
19
4151
local GameState = {} GameState.ERROR_INVALID_FILE_CONTENTS = -1 GameState.ERROR_HASH_MISS_MATCH = -2 GameState.ERROR_STATE_FILE_NOT_FOUND = -3 local crypto = require(cc.PACKAGE_NAME .. ".crypto") local json = require(cc.PACKAGE_NAME .. ".json") local encodeSign = "=QP=" local stateFilename = "state.txt" l...
mit
larsnorbergofficial/DiabolicUI
locale/locale-esES.lua
2
1325
local _, Engine = ... local L = Engine:NewLocale("esES") if not L then return end -- actionbar module --------------------------------------------------------------------- -- keybinds L["Alt"] = "A" L["Ctrl"] = "C" L["Shift"] = "S" L["NumPad"] = "N" L["Backspace"] = "BS" L["Button1"] = "B1" L["Button2"] = "B2" L["B...
mit
FlightControl-Master/MOOSE_MISSIONS
EVT - Event Handling/EVT-204 - GROUP OnEventCrash Example/EVT-204 - GROUP OnEventCrash Example.lua
1
1376
--- -- Name: EVT-204 - GROUP OnEventCrash Example -- Author: FlightControl -- Date Created: 29 May 2017 -- -- # Situation: -- -- A human plane is fyling in the air. Crash it into the ground. -- Once you are crashed into the ground, at the place where you crashed, a smoke should start burning ... -- -- # Test...
gpl-3.0
b03605079/darkstar
scripts/globals/spells/bluemagic/screwdriver.lua
3
1080
require("scripts/globals/magic"); require("scripts/globals/status"); require("scripts/globals/bluemagic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; function onSpellCast(caster,target,sp...
gpl-3.0
b03605079/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua
36
4463
----------------------------------- -- Area: Windurst Waters [S] -- NPC: Pihra_Rhebenslo -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/a...
gpl-3.0
Sakura-Winkey/LuCI
applications/luci-app-asterisk/luasrc/model/cbi/asterisk/dialplan_out.lua
68
3021
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local ast = require("luci.asterisk") local function find_outgoing_contexts(uci) local c = { } local h = { } -- uci:foreach("asterisk", "dialplan", -- function(s) -- if not h[s['.name']] then -- c[#c+1]...
apache-2.0
stone-jin/avbot
extension/luascript/libs/luascript/TALK.lua
3
5688
local T={ "磅!\n1分\n能力卡-瞬间\n立刻对目标进行一次近战攻击。他停止移动,直到回合结束都无法移动。\n背景描述:", "重击\n1分\n能力卡\n立刻对目标进行一次近战攻击。伤害额外+2.\n背景描述:", "扫射\n1分\n能力卡\n立刻对场景中所有敌人造成1点伤害,视为远程攻击。\n背景描述:\n", "电子入侵\n2分\n能力卡\n获得一台电子设备或一套系统的操控权。\n限制:你必须使用一套相应的设备。\n判定:对抗,决定权限及持续时间。\n", "呼叫服务\n2分\n能力卡\n令一个人(或ST认为合适的目标)为你做一件事,这件事必须是他力所能及且不致命的。\n判定:完成度、完美度、连带后果\n"...
agpl-3.0
b03605079/darkstar
scripts/globals/items/rolanberry_pie_+1.lua
35
1376
----------------------------------------- -- ID: 4339 -- Item: rolanberry_pie_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Magic 60 -- Intelligence 3 -- Health Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); -----------...
gpl-3.0
Aquanim/Zero-K
LuaUI/Widgets/gui_chili_global_commands.lua
6
13190
function widget:GetInfo() return { name = "Chili Global Commands", desc = "Holds global commands, map overlays, playerlist display and other stuff.", author = "GoogleFrog", date = "16 November 2016", license = "GNU GPL, v2 or later", layer = -11, enabled = false, } end VFS.Inc...
gpl-2.0