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 |
|---|---|---|---|---|---|
thedraked/darkstar | scripts/zones/Norg/npcs/Gimb.lua | 14 | 1159 | -----------------------------------
-- Area: Norg
-- NPC: Gimb
-- Type: Begins the "Sahagin Key Quest" but it doesn't appear in the log. See http://wiki.ffxiclopedia.org/wiki/Sahagin_Key_Quest
-- @zone 252
-- @pos -4.975 -1.975 -44.039
--
-----------------------------------
package.loaded["scripts/zones/Norg/TextI... | gpl-3.0 |
mtroyka/Zero-K | scripts/hoveraa.lua | 11 | 1989 | local base = piece 'base'
local body = piece 'body'
local turret = piece 'turret'
local ground1 = piece 'ground1'
local missile = piece 'missile'
local firepoint = piece 'firepoint'
local wakes = {}
for i = 1, 8 do
wakes[i] = piece ('wake' .. i)
end
include "constants.lua"
local SIG_MOVE = 1
local SIG_AIM = 2... | gpl-2.0 |
fhedberg/ardupilot | libraries/AP_Scripting/examples/LED_matrix_image.lua | 27 | 12280 | --[[
Script to control LED strips based on the roll of the aircraft. This is an example to demonstrate
the LED interface for WS2812 LEDs
--]]
--[[
for this demo we will use a single strip with 30 LEDs
--]]
local matrix_x = 7
local matrix_y = 7
-- matrix to convert from x y pos to location in the strip
local id = {}
-... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Metalworks/npcs/Cid.lua | 14 | 11944 | -----------------------------------
-- Area: Metalworks
-- NPC: Cid
-- Starts & Finishes Quest: Cid's Secret, The Usual, Dark Puppet (start)
-- Involved in Mission: Bastok 7-1
-- @pos -12 -12 1 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
---------------------------... | gpl-3.0 |
mohmedsa773/dmdm9 | plugins/meee.lua | 1 | 9996 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ info user : معلوماتي ▀▄ ▄▀
▀▄▀... | gpl-3.0 |
Xkeeper0/emu-lua | nes-fceux/irc game genie engine/main.lua | 1 | 6975 |
-- Twitch.tv
local user = "xkeeper_"
local pass = "*"
local ircserver = "irc.twitch.tv"
local ircchannel = "#xkeeper_"
package.path = package.path .. ";./?/init.lua"
local playBoy = nil -- the PlayBoy instance.
local chat = nil
local socket = require("socket")
ggCodeMaxLife = 5000
resetStrings = {
... | mit |
thedraked/darkstar | scripts/zones/Port_Windurst/npcs/Kameel.lua | 30 | 1272 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kameel
-- Type: Standard NPC
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/TextIDs");
-----------------------------------
-- onTrade Action
------------------... | gpl-3.0 |
Xkeeper0/emu-lua | playstation-pscx/silent hill/silenthill.lua | 1 | 15469 | require "x_functions";
-- Set to "true" to disable all hotkeys
-- Set to "false" to enable hotkeys
NO_HOT_KEYS = true
-- -------------------------------------------------------------------------------
function forcez()
if memory.readdwordsigned(0x800BA028) == 32768 then
memory.writedword(0x800BA028, 26000);
... | mit |
alalazo/wesnoth | data/ai/micro_ais/cas/ca_forest_animals_new_rabbit.lua | 2 | 2749 | local H = wesnoth.require "helper"
local W = H.set_wml_action_metatable {}
local AH = wesnoth.require "ai/lua/ai_helper.lua"
local ca_forest_animals_new_rabbit = {}
function ca_forest_animals_new_rabbit:evaluation(cfg)
-- Put new rabbits on map if there are fewer than cfg.rabbit_number
-- To end this, we'll l... | gpl-2.0 |
mtroyka/Zero-K | LuaRules/Configs/MetalSpots/EvoRTS - Altored Divide - v10.lua | 12 | 3303 | return {
spots = {
{x = 5592, z = 856, metal = 2.15},
{x = 392, z = 2952, metal = 2.15},
{x = 5592, z = 2792, metal = 2.15},
{x = 2680, z = 904, metal = 2.15},
{x = 2408, z = 728, metal = 2.15},
{x = 5928, z = 504, metal = 2.15},
{x = 7640, z = 3832, metal = 2.15},
{x = 6024, z = 3080, metal = 4.3},
... | gpl-2.0 |
xinmingyao/skynet | service/gate.lua | 23 | 1833 | local skynet = require "skynet"
local gateserver = require "snax.gateserver"
local netpack = require "netpack"
local watchdog
local connection = {} -- fd -> connection : { fd , client, agent , ip, mode }
local forwarding = {} -- agent -> connection
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIEN... | mit |
Bpalkmim/ProjetoFinal | Logic/ConstantsForNatD.lua | 4 | 1536 | -------------------------------------------------------------------------------
-- Constants for Natural Deduction Module
--
-- Contains all the constants used by the Natural Deduction Logic Module.
--
-- @authors: Vitor, Jefferson, Bernardo
--
---------------------------------------------------------------------... | gpl-2.0 |
savant2212/packages | net/mwan3-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 80 | 4829 | -- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -p /var/state get mwan3." .. section[".name"] .. ".src_port"))
local destPort = ut.trim(sys.exec("... | gpl-2.0 |
SnabbCo/snabbswitch | src/apps/intel/intel_app.lua | 6 | 18343 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(...,package.seeall)
local basic_apps = require("apps.basic.basic_apps")
local ffi = require("ffi")
local lib = require("core.lib")
local shm = require("core.shm")
local counter = require("core.counter")
local pci ... | apache-2.0 |
thedraked/darkstar | scripts/zones/Windurst_Waters/npcs/Pursuivant.lua | 14 | 1052 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Pursuivant
-- Type: Pursuivant
-- @zone 238
-- @pos 113.971 -3.077 51.524
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Tombstone_Prototype.lua | 23 | 1257 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Tombstone Prototype
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zo... | gpl-3.0 |
dmccuskey/dmc-utils | dmc_corona/lib/dmc_lua/lua_bytearray/pack_bytearray.lua | 7 | 6402 | --====================================================================--
-- dmc_lua/lua_bytearray/pack_bytearray.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014-2015 David McCuskey
Permissi... | mit |
SnabbCo/snabbswitch | src/program/alarms/purge/purge.lua | 9 | 1999 | -- Use of this source code is governed by the Apache 2.0 license; see COPYING.
module(..., package.seeall)
local common = require("program.config.common")
local lib = require("core.lib")
function show_usage(command, status, err_msg)
if err_msg then print('error: '..err_msg) end
print(require("program.alarms.pur... | apache-2.0 |
mtroyka/Zero-K | ModelMaterials_103/0_customskins.lua | 16 | 2011 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local materials = {
altSkinS3o = {
shaderDefinitions = {
},
shader = include("ModelMaterials/Shaders/default.lua"),
... | gpl-2.0 |
filug/nodemcu-firmware | lua_modules/bmp085/bmp085.lua | 69 | 5037 | --------------------------------------------------------------------------------
-- BMP085 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Christee <Christee@nodemcu.com>
--------------------------------------------------------------------------------
local moduleName = ... ... | mit |
rjeli/luvit | tests/to-convert/test-tls-remote.lua | 5 | 1493 | --[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | apache-2.0 |
Privateblackl/ultra | plugins/floodmanager.lua | 5 | 5901 | local function do_keyboard_flood(chat_id, ln)
--no: enabled, yes: disabled
local status = db:hget('chat:'..chat_id..':settings', 'Flood') or config.chat_settings['settings']['Flood'] --check (default: disabled)
if status == 'on' then
status = '✅ | ON'
elseif status == 'off' then
status =... | gpl-2.0 |
NPLPackages/main | script/kids/3DMapSystemApp/WebBrowser/app_main.lua | 1 | 25158 | --[[
Title: WebBrowser app for Paraworld
Author(s): LiXizhi
Date: 2008/1/28
Desc:
---++ File.WebBrowser
other app can open an browser using this command with this app.
<verbatim>
Map3DSystem.App.Commands.Call("File.WebBrowser", url);
</verbatim>
---++ File.MCMLBrowser
the second param can be a table of {name, title,... | gpl-2.0 |
garlick/flux-core | src/shell/lua.d/mvapich.lua | 4 | 1463 | -------------------------------------------------------------
-- Copyright 2020 Lawrence Livermore National Security, LLC
-- (c.f. AUTHORS, NOTICE.LLNS, COPYING)
--
-- This file is part of the Flux resource manager framework.
-- For details, see https://github.com/flux-framework.
--
-- SPDX-License-Identifier: LGPL-3.0... | lgpl-3.0 |
ukoloff/rufus-lua-win | vendor/lua/lib/lua/luarocks/build.lua | 2 | 11554 |
--- Module implementing the LuaRocks "build" command.
-- Builds a rock, compiling its C parts if any.
module("luarocks.build", package.seeall)
local pack = require("luarocks.pack")
local path = require("luarocks.path")
local util = require("luarocks.util")
local rep = require("luarocks.rep")
local fetch = require("lu... | mit |
thedraked/darkstar | scripts/globals/spells/shellra_v.lua | 26 | 1101 | -----------------------------------------
-- Spell: Shellra
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,spel... | gpl-3.0 |
mtroyka/Zero-K | effects/gundam_crawlexplode.lua | 50 | 8555 | -- small_nuke_explosion_fx
return {
["small_nuke_explosion_fx"] = {
usedefaultexplosions = false,
g_blast = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties... | gpl-2.0 |
Devul/DarkRP | gamemode/modules/fadmin/fadmin/playeractions/god/cl_init.lua | 10 | 1557 | FAdmin.StartHooks["God"] = function()
FAdmin.Messages.RegisterNotification{
name = "god",
hasTarget = true,
message = {"instigator", " enabled godmode for ", "targets"},
receivers = "everyone",
}
FAdmin.Messages.RegisterNotification{
name = "ungod",
hasTarget... | mit |
thedraked/darkstar | scripts/zones/Yhoator_Jungle/npcs/qm2.lua | 14 | 1953 | -----------------------------------
-- Area: Yhoator Jungle
-- NPC: ??? Used for Norg quest "Stop Your Whining"
-- @pos -94.073 -0.999 22.295 124
-----------------------------------
package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
r... | gpl-3.0 |
thorsummoner/polycode | Examples/Lua/3D_Physics/3DPhysics_Vehicle/Scripts/Main.lua | 10 | 4127 | scene = PhysicsScene(0, Vector3(200, 200, 200))
ground = ScenePrimitive(ScenePrimitive.TYPE_PLANE, 30, 30)
ground:loadTexture("Resources/green_texture.png")
scene:addPhysicsChild(ground, 0, 0)
-- Some obstacles
local box = ScenePrimitive(ScenePrimitive.TYPE_BOX, 4,4,6)
box:setPitch(25)
box:setPosition(7, -1, 0)
box:s... | mit |
brimworks/zile | src/help.lua | 1 | 4556 | -- Self documentation facility functions
--
-- Copyright (c) 2010-2011 Free Software Foundation, Inc.
--
-- This file is part of GNU Zile.
--
-- GNU Zile 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; eithe... | gpl-3.0 |
thedraked/darkstar | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 18 | 1470 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15
-- Ranged ACC % 15
-----------------------------------------
require("scripts/globals/status");
----------------------------... | gpl-3.0 |
pevers/OpenRA | mods/cnc/maps/funpark01/scj01ea.lua | 19 | 3521 | RifleReinforcments = { "e1", "e1", "e1", "bike" }
BazookaReinforcments = { "e3", "e3", "e3", "bike" }
BikeReinforcments = { "bike" }
ReinforceWithLandingCraft = function(units, transportStart, transportUnload, rallypoint)
local transport = Actor.Create("oldlst", true, { Owner = nod, Facing = 0, Location = transportS... | gpl-3.0 |
mtroyka/Zero-K | effects/gundam_miofskyparticles.lua | 25 | 1564 | -- miofskyparticles
return {
["miofskyparticles"] = {
poof01 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
c... | gpl-2.0 |
Devul/DarkRP | gamemode/modules/fpp/pp/server/defaultblockedmodels.lua | 9 | 2488 | /*
DEFAULT BLOCKED MODELS
THIS FILE WILL ONLY BE RUN ONCE, WHICH IS THE FIRST TIME YOU INSTALL FPP, OR AFTER THE SQLITE DATABASE IS RESET
DO NOT EDIT THIS FILE AS IT IS USELESS
GO TO Q>UTILITIES>FPP ADMIN SETTINGS > BLOCKED MODEL OPTIONS TO ADD OR REMOVE BLOCKED MODELS
*/
FPP = FPP or {}
local defaultblocked = {
"mo... | mit |
NPLPackages/main | script/ide/timer.lua | 1 | 10669 | --[[
Title: timer functions
Author(s): LiXizhi
Date: 2009/1/17, refactored to use virtual timers 2009/9/25
Desc: Provides a mechanism for executing a method at specified intervals.
It just wraps the raw NPL timer function. One can create any number of timers as one like,
only one high resolution real timer is used to... | gpl-2.0 |
TitanTeamGit/SelfBot | plugins/tools.lua | 1 | 7524 | --set--
local function save_value(msg, name, value)
if (not name or not value) then
return
end
local hash = nil
if msg.to.type == 'channel' then
hash = 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'chat' then
hash = 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' t... | gpl-2.0 |
OpenNMT/OpenNMT | test/onmt/RNNTest.lua | 8 | 2416 | require('onmt.init')
local tester = ...
local rnnTest = torch.TestSuite()
local function checkModuleCount(obj, name, exp)
local count = 0
obj:apply(function (m)
if torch.typename(m) == name then
count = count + 1
end
end)
tester:eq(count, exp)
end
local function buildStates(count, batchSize, d... | mit |
NPLPackages/main | script/ide/System/Database/SqliteIndexTable.lua | 1 | 10869 | --[[
Title: Index table for sqlitestore
Author(s): LiXizhi,
Date: 2016/5/11
Desc: mostly for index-intersection, this is very different from CompoundIndex.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/System/Database/SqliteIndexTable.lua");
local IndexTable = commo... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/Loillie.lua | 14 | 1633 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Loillie
-- @zone 80
-- @pos 78 -8 -23
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
require("scripts/globals/quests");
--------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Nashmau/npcs/Chichiroon.lua | 17 | 1298 | -----------------------------------
-- Area: Nashmau
-- NPC: Chichiroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
-------------------... | gpl-3.0 |
mtroyka/Zero-K | lups/lups.lua | 1 | 31289 | -- $Id: lups.lua 4099 2009-03-16 05:18:45Z jk $
---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--
-- file: api_gfx_lups.lua
-- brief: Lua Particle System
-- authors: jK
--... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Selbina/npcs/Falgima.lua | 17 | 1240 | -----------------------------------
-- Area: Selbina
-- NPC: Falgima
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/globals/shop");
----------------------... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Garlaige_Citadel_[S]/npcs/Randecque.lua | 29 | 1746 | -----------------------------------
-- Area: Garlaige Citadel [S]
-- NPC: Randecque
-- @pos 61 -6 137 164
-- Notes: Gives Red Letter required to start "Steamed Rams"
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel_[S]/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
SnabbCo/snabbswitch | src/apps/lwaftr/lwutil.lua | 4 | 5728 | module(..., package.seeall)
local constants = require("apps.lwaftr.constants")
local S = require("syscall")
local bit = require("bit")
local ffi = require("ffi")
local lib = require("core.lib")
local cltable = require("lib.cltable")
local binary = require("lib.yang.binary")
local band = bit.band
local cast = ffi.cas... | apache-2.0 |
telergybot/1984joorge | plugins/all.lua | 264 | 4202 | 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 |
nicholas-leonard/dp | examples/languagemodel.lua | 5 | 7124 | require 'dp'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Train a Language Model on BillionWords dataset using a Neural Network and SoftmaxTree')
cmd:text('The network contains 3 or more layers. An input dictionary, one ore many dense hidden layer, and a fully connected output layer')
cmd... | bsd-3-clause |
NPLPackages/main | script/ide/SaveFileDialog.lua | 1 | 1191 | --[[
Title: Save File Dialog
Author(s): LiXizhi
Date: 2009/1/30
Desc: it inherits from OpenFileDialog, except that it does not check for file existence.
use the lib:
------------------------------------------------------------
NPL.load("(gl)script/ide/SaveFileDialog.lua");
local ctl = CommonCtrl.SaveFileDialog:new{
n... | gpl-2.0 |
thedraked/darkstar | scripts/zones/Castle_Oztroja/npcs/Treasure_Coffer.lua | 13 | 4293 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: Treasure Coffer
-- @zone 151
-- @pos
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
requ... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Upper_Jeuno/npcs/Sibila-Mobla.lua | 17 | 1382 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Sibila-Mobla
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Upper_Jeuno/TextIDs");
require("scripts/globals/quests");
-------... | gpl-3.0 |
josh-perry/VNEngine | kikito-middleclass-extras/Invoker.lua | 1 | 1554 | -----------------------------------------------------------------------------------
-- Invoker.lua
-- Enrique García ( enrique.garcia.cota [AT] gmail [DOT] com ) - 4 Mar 2010
-- Helper function that simplifies method invocation via method names or functions
--------------------------------------------------------------... | mit |
jefferai/vlcfix | share/lua/playlist/cue.lua | 11 | 3972 | --[[
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 |
Xkeeper0/emu-lua | playstation-pscx/silent hill/x_functions.lua | 1 | 6308 |
x_func_version = 7;
--[[
Minor version history:
v5 -----------
- Added Bisqwit's 'clone table' function.
v6 -----------
- added pairs by keys
- added hitbox functions
v7 -----------
- added memory.readword, memory.readwordsigned, etc
]]
-- Draws a line from x1,y1 to x2,y2 using color
function line(x... | mit |
NPLPackages/main | script/ide/MultiLineEditbox_old.lua | 1 | 13337 | --[[
Title: OBSOLETED use MultiLineEditbox: multiline editbox from a collection of single line editbox
Author(s): LiXizhi
Date: 2007/2/7
Note: if you use an auto strench alignment, auto strench is only enabled on creation. which means that if one change the window size after creation, it does not work out as expected.
... | gpl-2.0 |
MonkeyFirst/Urho3D | bin/Data/LuaScripts/27_Urho2DPhysics.lua | 24 | 7973 | -- Urho2D physics sample.
-- This sample demonstrates:
-- - Creating both static and moving 2D physics objects to a scene
-- - Displaying physics debug geometry
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
SampleStart()
-- Create the scene conte... | mit |
shahabsaf1/TELESEED-V2 | plugins/inpm.lua | 1114 | 3008 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
X-Coder/wire | lua/wire/stools/lever.lua | 9 | 2109 | WireToolSetup.setCategory( "Input, Output" )
WireToolSetup.open( "lever", "Lever", "gmod_wire_lever", nil, "Levers" )
if CLIENT then
language.Add( "tool.wire_lever.name", "Lever Tool (Wire)" )
language.Add( "tool.wire_lever.desc", "Spawns a Lever for use with the wire system." )
language.Add( "tool.wire_lever.0", "... | gpl-3.0 |
thedraked/darkstar | scripts/zones/Kuftal_Tunnel/npcs/qm1.lua | 14 | 1162 | -----------------------------------
-- Area: Kuftal Tunnel
-- NPC: ??? (qm1)
-- Note: Used to spawn Phantom Worm
-- @pos 75.943 29.916 118.854 174
-----------------------------------
package.loaded["scripts/zones/Kuftal_Tunnel/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Kuftal_Tunnel/T... | gpl-3.0 |
mtroyka/Zero-K | LuaRules/Gadgets/unit_refuel_pad_handler.lua | 2 | 15507 | function gadget:GetInfo()
return {
name = "Refuel Pad Handler",
desc = "Replaces the engine implementation of the refuel pad.",
author = "Google Frog",
date = "5 Jan 2014", --changes: 22 March 2014
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true, -- loaded by default?
}
end
if (... | gpl-2.0 |
bizkut/BudakJahat | Rotations/Priest/Shadow/ShadowWinstonv8.lua | 1 | 79577 | local rotationName = "Winstonv8"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.",... | gpl-3.0 |
collinmsn/thrift | lib/lua/TServer.lua | 30 | 3992 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
vladimir-kotikov/clink | clink/dll/arguments.lua | 4 | 20679 | --
-- Copyright (c) 2012 Martin Ridgers
--
-- 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, publ... | gpl-3.0 |
matija-hustic/OpenRA | mods/d2k/maps/atreides-02b/atreides02b.lua | 5 | 3387 |
HarkonnenBase = { HConyard, HOutpost, HBarracks }
HarkonnenReinforcements = { }
HarkonnenReinforcements["Easy"] =
{
{ "light_inf", "trike" },
{ "light_inf", "trike" },
{ "light_inf", "light_inf", "light_inf", "trike", "trike" }
}
HarkonnenReinforcements["Normal"] =
{
{ "light_inf", "trike" },
{ "light_inf", "tr... | gpl-3.0 |
iceman1001/proxmark3 | client/scripts/14araw.lua | 1 | 4914 | local cmds = require('commands')
local getopt = require('getopt')
local lib14a = require('read14a')
example = "script run 14araw -x 6000F57b"
author = "Martin Holst Swende"
desc =
[[
This is a script to allow raw 1444a commands to be sent and received.
Arguments:
-o do not connect - use this only if you previou... | gpl-2.0 |
bigdogmat/wire | lua/entities/gmod_wire_gimbal.lua | 10 | 2231 | AddCSLuaFile()
DEFINE_BASECLASS( "base_wire_entity" )
ENT.PrintName = "Wire Gimbal"
ENT.WireDebugName = "Gimbal"
if CLIENT then return end -- No more client
function ENT:Initialize()
self:PhysicsInit( SOLID_VPHYSICS )
self:SetMoveType( MOVETYPE_VPHYSICS )
self:SetSolid( SOLID_VPHYSICS )
self:GetPhysicsObject():... | apache-2.0 |
tianxiawuzhei/cocos-quick-lua | libs/quick/framework/cocos2dx/OpenglConstants.lua | 78 | 27074 | --Encapsulate opengl constants.
gl = gl or {}
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_M... | mit |
Movimento5StelleLazio/WebMCP | libraries/mondelefant/mondelefant_atom_connector.lua | 2 | 4670 | #!/usr/bin/env lua
local _G = _G
local _VERSION = _VERSION
local assert = assert
local error = error
local getmetatable = getmetatable
local ipairs = ipairs
local next = next
local pairs = pairs
local print = print
local rawequal = rawequal... | mit |
silverhammermba/awesome | tests/examples/wibox/container/arcchart/border_width.lua | 1 | 1158 | --DOC_HIDE_ALL
local parent = ...
local wibox = require( "wibox" )
local beautiful = require( "beautiful" )
local cols = {"#ff000022","#00ff0022","#0000ff22","#ff00ff22"}
local l = wibox.layout.fixed.horizontal()
l.spacing = 10
parent:add(l)
for _, v in ipairs {0,1,3,6.5} do
l:add(wibox.widget {
... | gpl-2.0 |
ioiasff/qrt | plugins/meme.lua | 637 | 5791 | local helpers = require "OAuth.helpers"
local _file_memes = './data/memes.lua'
local _cache = {}
local function post_petition(url, arguments)
local response_body = {}
local request_constructor = {
url = url,
method = "POST",
sink = ltn12.sink.table(response_body),
headers = {},
red... | gpl-2.0 |
boundary/boundary-nagios-plugins | utils.lua | 1 | 1388 | -- Copyright 2014 Boundary,Inc.
--
-- 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 to in... | apache-2.0 |
Source-Saraya/S.R.A | plugins/supergruop.lua | 1 | 95811 | local function check_member_super(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
if success == 0 then
send_large_msg(receiver, "لتبحبش لا يمكنك التحكم بلبوت🌚🖕")
end
for k,v in pairs(result) do
local member_id = v.pe... | gpl-3.0 |
mqmaker/witi-openwrt | package/ramips/ui/luci-mtk/src/protocols/ppp/luasrc/model/cbi/admin_network/proto_pppoe.lua | 59 | 3798 | --[[
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... | gpl-2.0 |
LuaDist2/lzmq-ffi | src/lua/lzmq/llthreads/ex.lua | 9 | 5950 | --
-- Author: Alexey Melnichuk <mimir@newmail.ru>
--
-- Copyright (C) 2013-2014 Alexey Melnichuk <mimir@newmail.ru>
--
-- Licensed according to the included 'LICENCE' document
--
-- This file is part of lua-lzqm library.
--
--- Wraps the low-level threads object.
--
-- @module llthreads2.ex
--
-- Notes for lzmq.t... | mit |
interfaceware/iguana-web-apps | shared/basicauth.lua | 2 | 1733 | require 'stringutil'
-- Notice that the namespace for the module matches the module name - i.e. basicauth
-- When we use it within the code it is desirable to do:
-- basicauth = require 'basicauth'
-- Since this keeps the name of the module very consistent.
-- Basic authentication is part of the HTTP protocol. See t... | mit |
dicebox/minetest-france | mods/playeranim/init.lua | 1 | 8203 | -- Version of player model.
-- default_character_v1:
-- minetest_game before 25 nov 2016
-- 3d_armor before 27 nov 2016 (overrides model from minetest_game)
-- default_character_v2:
-- minetest_game after 25 nov 2016
-- 3d_armor after 27 nov 2016 (overrides model from minetest_game)
local valid_player_model_versions =... | gpl-3.0 |
cshore/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 68 | 1959 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
cbimap = Map("asterisk", "asterisk", "")
module = cbimap:section(TypedSection, "module", "Modules", "")
module.anonymous = true
codec_a_mu = module:option(Li... | apache-2.0 |
dicebox/minetest-france | minetest/builtin/mainmenu/common.lua | 1 | 10818 | --Minetest
--Copyright (C) 2014 sapier
--
--This program 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.1 of the License, or
--(at your option) any later version.
--
--This program is ... | gpl-3.0 |
AntiSpammer1313/mranti3 | plugins/boobs.lua | 731 | 1601 | 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 |
hfjgjfg/shatel | plugins/boobs.lua | 731 | 1601 | 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 |
135yshr/Holocraft-server | world/Plugins/APIDump/Hooks/OnPostCrafting.lua | 36 | 1584 | return
{
HOOK_POST_CRAFTING =
{
CalledWhen = "After the built-in recipes are checked and a recipe was found.",
DefaultFnName = "OnPostCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
{{cCraftingGrid|crafting grid}}, after the recipe has... | mit |
adamel/sysdig | userspace/sysdig/chisels/fdcount_by.lua | 2 | 2356 | --[[
Copyright (C) 2013-2014 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 ... | gpl-2.0 |
ChristopherBiscardi/kong | spec/plugins/logging_spec.lua | 6 | 6583 | local IO = require "kong.tools.io"
local utils = require "kong.tools.utils"
local cjson = require "cjson"
local stringy = require "stringy"
local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local TCP_PORT = spec_helper.fi... | mit |
NSAKEY/prosody-modules | mod_auth_custom_http/mod_auth_custom_http.lua | 32 | 1346 | -- Prosody IM
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local new_sasl = require "util.sasl".new;
local json_encode = require "util.json";
local http = require "socket.http";
local options = module:get... | mit |
mahdikord/baran | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
arventwei/WioEngine | Tools/jamplus/src/luaplus/Src/Modules/lanes/tests/timer.lua | 6 | 2574 | --
-- TIMER.LUA
--
-- Sample program for Lua Lanes
--
-- On MSYS, stderr is buffered. In this test it matters.
io.stderr:setvbuf "no"
local lanes = require "lanes".configure()
local linda= lanes.linda()
local function PRINT(str)
io.stderr:write(str.."\n")
end
local T1= "1s" -- these keys can be anything...
l... | mit |
philanc/plc | plc/box.lua | 2 | 2457 | -- Copyright (c) 2017 Pierre Chapuis -- see LICENSE file
------------------------------------------------------------
--[[
High-level encryption routines
]]
local salsa20 = require "plc.salsa20"
local ec25519 = require "plc.ec25519"
local poly1305 = require "plc.poly1305"
local function public_key(sk)
assert(... | mit |
bocaaust/BellBoy | App/BellBoy Console/Libs/RuntimeResources.bundle/socket.lua | 6 | 4446 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Declare module and import depend... | apache-2.0 |
sohrab96/cyrax | plugins/stats.lua | 79 | 4014 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
hleuwer/luayats | examples/test-7.lua | 1 | 3503 | require "yats.stdlib"
require "yats.src"
require "yats.muxdmx"
require "yats.misc"
-- Example test-1.lua: Derived from yats example 'tst'.
--
-- cbrsrc_1 --> |\ /|--> line_1 --> sink_1
-- cbrsrc_2 --> | | | |--> line_2 --> sink_2
-- cbrsrc_3 --> | | -->| |--> line_3 --> sink_3
-- cbrsrc_4 --> | | | |--> lin... | gpl-2.0 |
alirezanile/Nilebot | plugins/inpm.lua | 59 | 3138 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
tianxiawuzhei/cocos-quick-lua | quick/samples/tests/src/tests/framework/interfaceTest.lua | 8 | 4367 |
local InterfaceTestScene = game.createSceneClass("InterfaceTestScene")
function InterfaceTestScene:ctor()
self:prepare({
description = "Please check console output"
})
local items = {
"register",
"modebase",
"functions"
}
self:addChild(game.createMenu(items, handle... | mit |
tianxiawuzhei/cocos-quick-lua | quick/samples/ui/src/app/scenes/TestUIPageViewScene.lua | 8 | 1893 |
local TestUIPageViewScene = class("TestUIPageViewScene", function()
return display.newScene("TestUIPageViewScene")
end)
function TestUIPageViewScene:ctor()
app:createGrid(self)
self:createPageView()
app:createTitle(self, "Test UIPageView")
app:createNextButton(self)
end
function TestUIPageViewS... | mit |
stanfordhpccenter/soleil-x | testcases/legacy/taylor_with_smaller_particles/taylor_green_vortex_1024_1024_512.lua | 1 | 4167 | -- This is a Lua config file for the Soleil code.
return {
xnum = 1024, -- number of cells in the x-direction
ynum = 1024, -- number of cells in the y-direction
znum = 512, -- number of cells in the z-direction
-- if you increase the cell number and the calculation diverges
-- right away, decrease the time... | gpl-2.0 |
rickvanbodegraven/nodemcu-firmware | lua_modules/redis/redis.lua | 86 | 2621 | ------------------------------------------------------------------------------
-- Redis client module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- local redis = dofile("redis.lua").connect(host, port)
-- redis:publish("chan1", foo")
-- redis:subscribe("... | mit |
Neui/cc-things | minccweeper.lua | 1 | 8482 | --[[
+---=== minccweeper ===---+
| This is a 'recreation' |
| of minesweeper for the |
| Minecraft modification |
| computercraft. |
+-------------------------+
Made by Neui
]]
local currVer = 0 -- Version of this program
local w, h = term.getSize() -- Size of the screen
local running... | mit |
cshore/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 68 | 1060 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.sys")
m = Map("luci_statistics",
translate("Interface Plugin Configuration"),
translate(
"The interface plugin collects traffic statistics on " ..
"selected interfaces."
... | apache-2.0 |
ld-test/oil | lua/oil/properties.lua | 6 | 2776 | -- $Id$
--******************************************************************************
-- Copyright 2002 Noemi Rodriquez & Roberto Ierusalimschy. All rights reserved.
--******************************************************************************
--------------------------------------------------------------------... | mit |
hleuwer/luayats | yats/polshap.lua | 1 | 3246 | -----------------------------------------------------------------------------------
-- @copyright GNU Public License.
-- @author Herbert Leuwer, Backnang.
-- @release 3.0 $Id: polshap.lua 420 2010-01-06 21:39:36Z leuwer $
-- @description LuaYats - Policers and shapers.
-- <br>
-- <br><b>module: yats</b><br>
-- <br>
-- ... | gpl-2.0 |
adamel/sysdig | userspace/sysdig/chisels/topconns.lua | 12 | 1766 | --[[
Copyright (C) 2013-2014 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 ... | gpl-2.0 |
bizkut/BudakJahat | Libs/DiesalGUI-1.0/Objects/ScrollingEditBox.lua | 4 | 10992 | -- $Id: ScrollingEditBox.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalGUI = LibStub('DiesalGUI-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTools-1.0')
loc... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.