repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
smartdevicelink/sdl_atf_test_scripts | test_scripts/RC/InteriorVehicleData_cache/005_GetInteriorVD_subscribe_true_2_requests.lua | 1 | 1561 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0178-GetInteriorVehicleData.md
-- User story: TBD
-- Use case: TBD
--
-- Requirement summary: TBD
--
-- Description:
-- In case
-- 1. Mo... | bsd-3-clause |
jchuang1977/luci-1 | libs/luci-lib-nixio/root/usr/lib/lua/nixio/util.lua | 179 | 5824 | --[[
nixio - Linux I/O library for lua
Copyright 2009 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
local... | apache-2.0 |
ddumont/darkstar | scripts/zones/Balgas_Dais/mobs/Maat.lua | 14 | 1549 | -----------------------------------
-- Area: Balga Dais
-- MOB: Maat
-- Genkai 5 Fight
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Balgas_Dais/TextIDs");
-----------------------------------
-- onMobSpawn Act... | gpl-3.0 |
cp1337/devland | data/npc/scripts/farm.lua | 1 | 5347 | local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false
local buyit = 0
local count = 0
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid)
if(isFocused(cid)) the... | gpl-2.0 |
legatvs/libquvi-scripts | share/lua/website/pluzz.lua | 4 | 1917 |
-- libquvi-scripts
-- Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
--
-- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>.
--
-- 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 So... | agpl-3.0 |
ddumont/darkstar | scripts/zones/Hall_of_the_Gods/npcs/Shimmering_Circle.lua | 14 | 1814 | -----------------------------------
-- Area: Hall of the Gods
-- NPC: Shimmering Circle
-- Lifts players up to the sky!
-- @pos 0 -20 147 251
-----------------------------------
package.loaded["scripts/zones/Hall_of_the_Gods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
req... | gpl-3.0 |
Xetrill/XsLuaJIT | XsLuaJIT/jit/opt.lua | 1 | 14813 | ----------------------------------------------------------------------------
-- LuaJIT optimizer.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See luajit.h for full copyright notice.
----------------------------------------------------------------------------
-- Thi... | mit |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Policies/External_UCS/External_Consent_OFF/010_ATF_Policies_External_Consent_OFF_disallowed_by_external_consent_entities_omitted_user_consent_omitted.lua | 1 | 6555 | require('user_modules/script_runner').isTestApplicable({ { extendedPolicy = { "EXTERNAL_PROPRIETARY" } } })
--------------------------------------Requirement summary---------------------------------------------
--[Policies] External UCS: "OFF" in case of omitted "disallowed_by_external_consent_entities" param in functi... | bsd-3-clause |
ddumont/darkstar | scripts/zones/Castle_Oztroja/npcs/_47d.lua | 14 | 1071 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47d
-- @pos 20.000 24.168 -25.000 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
-------------------------... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Temenos/mobs/Telchines_Bard.lua | 28 | 1126 | -----------------------------------
-- Area: Temenos N T
-- NPC: Telchines_Bard
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
ddumont/darkstar | scripts/zones/Apollyon/mobs/Light_Elemental.lua | 119 | 2740 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
Squeakz/darkstar | scripts/zones/Toraimarai_Canal/npcs/_4pc.lua | 13 | 1843 | -----------------------------------
-- Area: Toraimarai Canal
-- NPC: Marble Door
-- Involved In Windurst Mission 7-1
-- @pos 132 12 -19 169 169
-----------------------------------
package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil;
require("scripts/zones/Toraimarai_Canal/TextIDs");
-----------------------... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Capabilities/PersistingHMICapabilities/025_Suspending_of_RAI_request_processing_in_case_cache_file_does_not_exist.lua | 1 | 2696 | ---------------------------------------------------------------------------------------------------
-- Proposal:https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0249-Persisting-HMI-Capabilities-specific-to-headunit.md
--
-- Check that SDL suspends of RAI request processing from mobile app until al... | bsd-3-clause |
mohammad24/newtinx | 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 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Policies/HMI_PTU/013_UPDATING_status_absence_after_timeout_expired_for_PolicyUpdate_response.lua | 1 | 1861 | ---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0248-hmi-ptu-support.md
-- Description: Check that SDL does not send SDL.OnStatusUpdate(UPDATING) in case
-- HMI does not respond to ... | bsd-3-clause |
kennethlombardi/moai-graphics | engine/resources/prototypes/MoaiTextBoxPrototype.lua | 1 | 1351 | local MOAITextBoxPrototype = require("TextBoxPrototype"):new();
function MOAITextBoxPrototype:allocate()
object = MOAITextBoxPrototype:new{
position = {x = 0, y = 0, z = 0},
scale = {x = 1, y = 1, z = 1},
underlyingType = nil,
string = "MOAITextBoxPrototype Text",
textSize = 12,
rectangle = {x1 = -50, y1 ... | mit |
ddumont/darkstar | scripts/globals/spells/sneak.lua | 27 | 1269 | -----------------------------------------
-- Spell: Sneak
-- Lessens chance of being detected by sound
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------------... | gpl-3.0 |
zonque/wireshark | epan/wslua/dtd_gen.lua | 38 | 8369 | -- dtd_gen.lua
--
-- a DTD generator for wireshark
--
-- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org>
--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms... | gpl-2.0 |
Squeakz/darkstar | scripts/zones/Beadeaux/npcs/The_Mute.lua | 13 | 1276 | -----------------------------------
-- Area: Beadeaux
-- NPC: ???
-- @pos -166.230 -1 -73.685 147
-----------------------------------
package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Beadeaux/TextIDs");
require("scripts/globals/quests");
require("scrip... | gpl-3.0 |
ddumont/darkstar | scripts/globals/items/plate_of_dulcet_panettones.lua | 12 | 1385 | -----------------------------------------
-- ID: 5979
-- Item: Plate of Dulcet Panettones
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- MP % 6 Cap 105
-- Intelligence +8
-- MP Healing +4
-----------------------------------------
require("scripts/globals/status");
--------------------... | gpl-3.0 |
smartdevicelink/sdl_atf_test_scripts | test_scripts/Security/SSLHandshakeFlow/003_Navi_Predefined_cert_expired_PTU_cert_missing_NACK.lua | 1 | 1769 | ---------------------------------------------------------------------------------------------------
-- Issues:
-- https://github.com/smartdevicelink/sdl_core/issues/2190
-- https://github.com/smartdevicelink/sdl_core/issues/2191
---------------------------------------------------------------------------------------... | bsd-3-clause |
lemonkit/VisualCocos | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/SceneReader.lua | 19 | 1434 |
--------------------------------
-- @module SceneReader
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#SceneReader] setTarget
-- @param self
-- @param #function selector
-- @return SceneReader#SceneReader self (return value: ccs.SceneReader)
--------------------------------... | mit |
ddumont/darkstar | scripts/zones/Abyssea-La_Theine/Zone.lua | 33 | 1482 | -----------------------------------
--
-- Zone: Abyssea - La_Theine
--
-----------------------------------
package.loaded["scripts/zones/Abyssea-La_Theine/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Abyssea-La_Thein... | gpl-3.0 |
jsbackus/settings_notion | cfg_dock.lua | 1 | 1906 | --
-- Notion dock module configuration
--
-- Create a dock
mod_dock.create{
-- Dock mode: embedded|floating
-- mode="floating",
mode="embedded",
-- The screen to create the dock on
screen=0,
-- Corner or side of the screen to place the dock on.
-- For embedded dock the valid values are: tl|tr... | lgpl-2.1 |
nosyndicate/TurnTaking | src/rl/Reinforce.lua | 1 | 2819 | require 'torch'
local Reinforce, parent = torch.class('rl.Reinforce','rl.PolicySearch');
function Reinforce:__init(model, actor, optimizer, useOptimalBaseline)
parent.__init(self, model, actor, optimizer);
--self.reward = {};
--self.gradient = {};
self.trials = {};
self.rewardCurrentTrial = nil;
self.gradientC... | gpl-2.0 |
samael65535/quick-ng | quick/samples/coinflip/src/app/MyApp.lua | 8 | 1055 |
require("cocos.init")
require("config")
require("framework.init")
require("framework.shortcodes")
require("framework.cc.init")
local MyApp = class("MyApp", cc.mvc.AppBase)
function MyApp:ctor()
MyApp.super.ctor(self)
self.objects_ = {}
end
function MyApp:run()
cc.FileUtils:getInstance():addSearchPath("r... | mit |
xdemolish/darkstar | scripts/zones/West_Sarutabaruta/npcs/Ryokei_IM.lua | 8 | 2955 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Ryokei, I.M.
-- Type: Outpost Conquest Guards
-- @pos -11.322 -13.459 317.696 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
deepmind/lab2d | dmlab2d/lib/game_scripts/testing/mocking_test.lua | 1 | 16689 | --[[ Copyright (C) 2020 The DMLab2D Authors.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | apache-2.0 |
gutenye/tagen.lua | tests/test-fenv.lua | 10 | 1366 | --- testing Lua 5.1/5.2 compatibility functions
-- these are global side-effects of pl.utils
local utils = require 'pl.utils'
local asserteq = require 'pl.test'.asserteq
local _,lua = require 'pl.app'. lua()
-- utils.execute is a compromise between 5.1 and 5.2 for os.execute changes
-- can we call Lua ?
local ok,code ... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua | 79 | 16871 |
--Enums will be deprecated,begin
_G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT
_G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT
_G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER
_G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP
_G.kCCVerticalTextAlignment... | mit |
samael65535/quick-ng | external/lua/luajit/luajit-2.1/src/jit/dis_arm.lua | 78 | 19363 | ----------------------------------------------------------------------------
-- LuaJIT ARM disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
BlackMesaRP/NS-Black-Mesa | gamemode/schema/sh_schema.lua | 1 | 1110 | SCHEMA.name = "Black Mesa Roleplay"
SCHEMA.author = "Riekelt, Maze, josephfra"
SCHEMA.desc = "Roleplaying in the Black Mesa Research Facility."
SCHEMA.uniqueID = "bmrp"
nut.currency.SetUp("dollar", "dollars")
nut.config.menuMusic = "http://7609.live.streamtheworld.com:80/977_SMOOJAZZ_SC"
nut.util.Include("sv_hooks.lu... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 38 | 1026 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Eumoa-Tajimoa
-- Type: Standard NPC
-- @zone: 48
-- @pos 19.275 -1 55.182
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/red_bubble-eye.lua | 18 | 1282 | -----------------------------------------
-- ID: 5446
-- Item: Red Bubble-Eye
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
---... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Selbina/npcs/Yaya.lua | 17 | 1463 | -----------------------------------
-- Area: Selbina
-- NPC: Yaya
-- Starts Quest: Under the sea
-- @pos -19 -2 -16 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Selbina/TextIDs");
require("scripts/glo... | gpl-3.0 |
xdemolish/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 |
xdemolish/darkstar | scripts/globals/items/bowl_of_yayla_corbasi.lua | 35 | 1482 | -----------------------------------------
-- ID: 5579
-- Item: bowl_of_yayla_corbasi
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP 20
-- Dexterity -1
-- Vitality 2
-- HP Recovered While Healing 3
-- MP Recovered While Healing 1
-----------------------------------------
req... | gpl-3.0 |
samael65535/quick-ng | tools/cocos2d-console/plugins/plugin_luacompile/bin/jit/dis_x86.lua | 61 | 29376 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
xdemolish/darkstar | scripts/zones/Riverne-Site_B01/npcs/_0t3.lua | 19 | 1339 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Riverne-Site_B01/Text... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Scotwick.lua | 38 | 1066 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Scotwick
-- Type: Allied Notes Notorious Monsters
-- @zone: 94
-- @pos 153.785 -3.134 9.895
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/... | gpl-3.0 |
Neopallium/lua-zmq | examples/server_poll.lua | 2 | 3015 | -- Copyright (c) 2012 Robert G. Jakabosky <bobby@sharedrealm.com>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use,... | mit |
xopxe/Toribio | deviceloaders/bobot.lua | 1 | 4528 | --- Library for using usb4butia boards.
-- This library interface with bobot library for
-- accessing usb4butia-attached devices. It supports hotplug.
-- There will be one object of this type for each bobot device.
-- Bobot device's methods (it's api in the bobot terms) are
-- available.
-- @module bobot
-- @alias dev... | mit |
vmamidi/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 |
xdemolish/darkstar | scripts/zones/Ship_bound_for_Mhaura/npcs/Sahn.lua | 7 | 1114 | -----------------------------------
-- Area: Ship_bound_for_Mhaura
-- NPC: Sahn
-- Notes: Tells ship ETA time
-- @pos 0.278 -14.707 -1.411 221
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Ship_boun... | gpl-3.0 |
mohammad24/unixx | 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 |
xdemolish/darkstar | scripts/globals/items/pearlscale.lua | 18 | 1278 | -----------------------------------------
-- ID: 5714
-- Item: Pearlscale
-- Food Effect: 5 Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------... | gpl-3.0 |
Javaxio/BadRotations | System/SlashCommands.lua | 1 | 9263 | -- Slash Commands
---------------------------------
function Print(msg)
print(br.classColor.."[BadRotations] |cffFFFFFF"..msg)
end
commandHelp = "|cffFF0000Slash Commands"
function SlashCommandHelp(cmd,msg)
if cmd == nil then cmd = "" end
if msg == nil then msg = "" end
if cmd == "Print Help" then Print(tostring(co... | gpl-3.0 |
xdemolish/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 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/Grid3D.lua | 9 | 1900 |
--------------------------------
-- @module Grid3D
-- @extend GridBase
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Grid3D] getNeedDepthTestForBlit
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @{<br>
-- Getter and Setter ... | mit |
Javaxio/BadRotations | Libs/DiesalMenu-1.0/Objects/MenuItem.lua | 6 | 6270 | -- $Id: MenuItem.lua 60 2016-11-04 01:34:23Z diesal2010 $
local DiesalMenu = LibStub('DiesalMenu-1.0')
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub('DiesalTools-1.0')
local DiesalStyle =... | gpl-3.0 |
iesika/iesika-OCPrograms | floor.lua | 1 | 3397 | --[[
@file floor.lua
@brief OpenComputersのロボットに床を作らせる
@detail
燃料は考慮しない, 貼るブロックはロボットのインベントリ内のものを使う,
robotの下からブロックを配置する
貼り終えたら元の位置,向きに戻る
robotの必要最低限の構成
:Hardware
case(tier1↑)
eeprom
cpu(tier1↑)
memory(tier1↑)
HDD(tier1↑)
screen(tier1↑)
graphic card
keyboard
Inventory Upgrade
:Sof... | mit |
peymankhanas84877/Horror_Avatar_bot | plugins/invite.lua | 299 | 1025 | -- Invite other user to the chat group.
-- Use !invite name User_name or !invite id id_number
-- The User_name is the print_name (there are no spaces but _)
do
local function callback(extra, success, result)
vardump(success)
vardump(result)
end
local function run(msg, matches)
local user = matches[2]
-- Use... | gpl-2.0 |
ln-zookeeper/wesnoth | join.lua | 2 | 3810 | -- join.lua --
-- Try to join a game called "Test"
local function plugin()
local function log(text)
std_print("join: " .. text)
end
local counter = 0
local events, context, info
local helper = wesnoth.require "helper"
local function find_test_game(info)
local g = info.game_list()
if g then... | gpl-2.0 |
lighter-cd/premake4-mobile | src/actions/make/make_solution.lua | 23 | 2363 | --
-- make_solution.lua
-- Generate a solution-level makefile.
-- Copyright (c) 2002-2009 Jason Perkins and the Premake project
--
function premake.make_solution(sln)
-- create a shortcut to the compiler interface
local cc = premake[_OPTIONS.cc]
-- build a list of supported target platforms that also includes ... | mit |
xdemolish/darkstar | scripts/globals/spells/cura_iii.lua | 13 | 3235 | -----------------------------------------
-- Spell: Cura III
-- Restores hp in area of effect. Self target only
-- From what I understand, Cura III's base potency is the same as Cure III's.
-- With Afflatus Misery Bonus, it can be as potent as a Curaga IV
-- Modeled after our cure_iii.lua, which was modeled after the b... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Sauromugue_Champaign/npcs/Cavernous_Maw.lua | 5 | 2222 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: Cavernous Maw
-- Teleports Players to Sauromugue_Champaign_S
-- @pos 369 8 -227 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-----------------------------------
require("sc... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua | 18 | 1951 | -----------------------------------
-- Area: Beaucedine Glacier
-- NM: Calcabrina
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-----------------------------------
-- onMobInitialize
---------------------------... | gpl-3.0 |
lukego/snabb | src/core/packet.lua | 13 | 3204 | module(...,package.seeall)
local debug = _G.developer_debug
local ffi = require("ffi")
local C = ffi.C
local freelist = require("core.freelist")
local lib = require("core.lib")
local memory = require("core.memory")
local counter = require("core.counter")
local freelist_add, freelist_remove, freelist_nfree = ... | apache-2.0 |
kissthink/OpenRA | mods/ra/maps/survival02/survival02.lua | 22 | 13034 | FrenchSquad = { "2tnk", "2tnk", "mcv" }
TimerTicks = DateTime.Minutes(10)
AttackTicks = DateTime.Seconds(52)
AttackAtFrame = DateTime.Seconds(18)
AttackAtFrameIncrement = DateTime.Seconds(18)
Producing = true
SpawningInfantry = true
ProduceAtFrame = DateTime.Seconds(12)
ProduceAtFrameIncrement = DateTime.Seconds(12)
S... | gpl-3.0 |
BlackMesaRP/NS-Black-Mesa | plugins/m9k/entities/weapons/m9k_famas/shared.lua | 2 | 3287 | -- Variables that are used on both client and server
SWEP.Gun = ("m9k_famas") -- must be the name of your swep but NO CAPITALS!
SWEP.Category = "M9K Assault Rifles"
SWEP.Author = "iron angles and models hexed and converted to gmod my Mr Fokkusu"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Bastok/npcs/Talib.lua | 19 | 2852 | -----------------------------------
-- Area: Port Bastok
-- NPC: Talib
-- Starts Quest: Beauty and the Galka
-- Starts & Finishes Quest: Shady Business
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/s... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Carpenters_Landing/mobs/Cryptonberry_Assassin.lua | 6 | 1319 | -----------------------------------
-- Area: Carpenters' Landing
-- NPC: Cryptonberry_Assassin
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnMobSpawn(mob)
end;
-----------------------------------
-- onMobFight... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/effects/super_buff.lua | 35 | 1143 | -----------------------------------
--
-- EFFECT_SUPER_BUFF
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower();
... | gpl-3.0 |
amheydari/cardpeek | dot_cardpeek_dir/scripts/etc/ravkav-strings.lua | 16 | 27069 | RAVKAV_ISSUERS = {
[1] = "Service Center (Postal Bank)",
[2] = "Israel Rail",
[3] = "Egged",
[4] = "Egged Transport",
[5] = "Dan",
[6] = "NTT (Nazereth Consolidated Bus Services)",
[7] = "NTT (Nazereth Travel & Tourism)",
[8] = "JB Tours",
[9] = "Omni (Nazrin Express)",
[10] = "A... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 9 | 1878 | -----------------------------------
-- Area: Grand Palace of Hu'Xzoi
-- NPC: Gate of the Gods
-- @pos -20 0.1 -283 34
-----------------------------------
package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs")... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Castle_Oztroja/npcs/_47u.lua | 17 | 1254 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: _47u (Handle)
-- Notes: Opens door _474 from behind
-- @pos -60 24 -77 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Maze_of_Shakhrami/npcs/Fossil_Rock.lua | 17 | 5025 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Fossil Rock
-- Used in Mission: Windurst Mission 2-1
-- @pos 17 18 184 198 + <many pos>
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scri... | gpl-3.0 |
chris5560/openwrt-luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/ifaces.lua | 4 | 16721 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local ut = require "luci.util"
local pt = require "luci.tools.proto"
local nw = require "luci.model.network"
local fw = requ... | apache-2.0 |
YunoHost/SSOwat | access.lua | 2 | 12376 | --
-- access.lua
--
-- This file is executed at every request on a protected domain or server.
-- You just have to read this file normally to understand how and when the
-- request is handled: redirected, forbidden, bypassed or served.
--
-- Get the `cache` persistent shared table
local cache = ngx.shared.cache
-- Ge... | agpl-3.0 |
czfshine/UpAndAway | wicker/plugins/savable_infinity.lua | 6 | 2952 | --[[
-- By importing this file, +-infinity and Nan are properly stored in savedata.
--]]
--[[
-- Name of the global function which, when run inside DataDumper, triggers its patching.
--]]
local dumpertrigger_name = "ipairs"
------------------------------------------------------------------------
local _G = GLOBAL... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/spells/absorb-tp.lua | 13 | 1344 | --------------------------------------
-- Spell: Absorb-TP
-- Steals an enemy's TP.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Northern_San_dOria/npcs/Aivedoir.lua | 38 | 1026 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Aivedoir
-- Type: Standard Dialogue NPC
-- @zone: 231
-- @pos -123.119 7.999 134.490
--
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
require("scripts/zones/Northern_San_dOria/TextIDs")... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Southern_San_dOria/npcs/Arpetion.lua | 36 | 1469 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Arpetion
-- General Info NPC
-- @zone 230
-- @pos -11 1 -30
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/ParallaxTest/ParallaxTest.lua | 6 | 4961 | local kTagNode = 0
local kTagGrossini = 1
local function createParallaxLayer(title, subtitle)
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
local titleStr = title == nil and "No title" or title
local subTitleStr = subtitle == nil and "" or subtitle
Helper.titleLabel:setString(t... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Horlais_Peak/npcs/Burning_Circle.lua | 1 | 1991 | -----------------------------------
-- Area: Horlais Peak
-- NPC: Burning Circle
-- Horlais Peak Burning Circle
-- @pos -509 158 -211 139
-------------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");
r... | gpl-3.0 |
devknoll/mu | premake4.lua | 1 | 1538 | newoption
{
trigger = "for",
value = "PLATFORM",
description = "Set the platform to compile for",
allowed =
{
{ "win32", "Windows Operating System" },
}
}
newoption
{
trigger = "gfx",
value = "API",
description = "Set the graphics API to compile with",
allowed =
{
{ "gles2", ... | gpl-3.0 |
henrythasler/nodemcu | rc-car/src/webserver-request.lua | 1 | 3928 | local function hex_to_char(x)
return string.char(tonumber(x, 16))
end
local function uri_decode(input)
return input:gsub("%+", " "):gsub("%%(%x%x)", hex_to_char)
end
local function parseArgs(args)
local r = {}
local i = 1
if args == nil or args == "" then return r end
for arg in string.gmatch(args, "([^&]+)... | mit |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/script/framework/components/event.lua | 62 | 4752 |
local Event = class("Event")
local EXPORTED_METHODS = {
"addEventListener",
"dispatchEvent",
"removeEventListener",
"removeEventListenersByTag",
"removeEventListenersByEvent",
"removeAllEventListeners",
"hasEventListener",
"dumpAllEventListeners",
}
function Event:init_()
self.tar... | apache-2.0 |
hacker44-h44/mmmmmm | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
omidtarh/o_m_i_dbot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
gutenye/tagen.lua | lib/tagen/config.lua | 1 | 5181 | --- Reads configuration files into a Lua table.
-- Understands INI files, classic Unix config files, and simple
-- delimited columns of values.
--
-- # test.config
-- # Read timeout in seconds
-- read.timeout=10
-- # Write timeout in seconds
-- write.timeout=5
-- #acceptable ports
-- ports = 1002,1003,1004
--
-... | gpl-3.0 |
samael65535/quick-ng | quick/framework/filter.lua | 20 | 3489 | --- create some filters to build a FilteredSprite
-- @author zrong(zengrong.net)
-- Creation 2014-03-31
--------------------------------
-- @module filter
--[[--
滤镜功能
]]
local filter = {}
local FILTERS = {
-- colors
GRAY = {cc.GrayFilter}, -- {r 0.299, g 0.587, b 0.114, a 0.0} or no parameters
RGB = {cc... | mit |
xdemolish/darkstar | scripts/globals/spells/voidstorm.lua | 31 | 1154 | --------------------------------------
-- Spell: Voidstorm
-- Changes the weather around target party member to "gloomy."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------------------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/TintTo.lua | 11 | 1667 |
--------------------------------
-- @module TintTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- initializes the action with duration and color
-- @function [parent=#TintTo] initWithDuration
-- @param self
-- @param #float duration
-- @param #unsigned char red
-- @param #unsign... | apache-2.0 |
Javaxio/BadRotations | Libs/LibStub/tests/test.lua | 14 | 2014 | debugstack = debug.traceback
strmatch = string.match
loadfile("../LibStub.lua")()
local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy
assert(lib) -- should return the library table
assert(not oldMinor) -- should not return the old minor, since it didn't exist
-- the following is to create data ... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Mhaura/npcs/Panoru-Kanoru.lua | 34 | 1081 | ----------------------------------
-- Area: Mhaura
-- NPC: Panoru-Kanoru
-- Type: Item Deliverer
-- @pos 5.241 -4.035 93.891 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
-------... | gpl-3.0 |
BlackMesaRP/NS-Black-Mesa | plugins/moderator/sh_commands.lua | 1 | 16067 | PLUGIN.commands = {}
local times = {
{1,"1 Years","1y"},
{2,"1 Month","1mo"},
{3,"1 Week","1w"},
{4,"1 Day","1d"},
{5,"30 Mins","30m"},
{6,"1 Min","1m"},
}
local reasons = {
"Not respecting staffs.",
"Not doing correct RP.",
"Metagaming.",
"Powergaming.",
"Unrespectful RP.",
"Cheater.",
"Violation of DMCA... | gpl-3.0 |
chris5560/openwrt-luci | applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 30 | 7206 | -- Copyright 2014-2015 Álvaro Fernández Rojas <noltari@gmail.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("dump1090", "dump1090", translate("dump1090 is a Mode S decoder specifically designed for RTLSDR devices, here you can configure the settings."))
s = m:section(TypedSection, "dump1090", ""... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Bastok_Mines/npcs/Emaliveulaux.lua | 30 | 1948 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Emaliveulaux
-- Only sells when Bastok controls the Tavnazian Archipelago
-- Only available to those with CoP Ch. 4.1 or higher
-----------------------------------
require("scripts/globals/events/harvest_festivals");
require... | gpl-3.0 |
javierguerragiraldez/nfsflow_v2 | lua/utils.lua | 1 | 1738 | local bit = require 'bit'
local ffi = require 'ffi'
local utils = {}
-- ljsyscall needs a slightly better 'assert()'
function newassert(cond, err, ...)
if cond then return cond, err, ... end
error (tostring(err or "assertion failed!"), 2)
end
-- install new assert, keep the old one as _assert
assert, _assert = newa... | bsd-2-clause |
xdemolish/darkstar | scripts/zones/Arrapago_Reef/npcs/qm3.lua | 15 | 1190 | -----------------------------------
-- Area: Arrapago Reef
-- NPC: ??? (Spawn Zareehkl the Jubilant(ZNM T2))
-- @pos 176 -4 182 54
-----------------------------------
package.loaded["scripts/zones/Arrapago_Reef/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Arrapago_Reef/TextIDs");
-----... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Ordelles_Caves/npcs/qm6.lua | 9 | 1389 | -----------------------------------
-- Area: Ordelles Caves
-- NPC: ??? (qm6)
-- Involved In Quest: Dark Puppet
-- @pos -132 -27 -245 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
... | gpl-3.0 |
BlackMesaRP/NS-Black-Mesa | plugins/m9k/entities/weapons/m9k_glock/shared.lua | 2 | 3270 | -- Variables that are used on both client and server
SWEP.Gun = ("m9k_glock") -- must be the name of your swep but NO CAPITALS!
SWEP.Category = "M9K Pistols"
SWEP.Author = "iron angles and models hexed and converted to gmod my Mr Fokkusu"
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.Mu... | gpl-3.0 |
kutsan/dotfiles | .config/nvim/lua/kutsan/mappings/normal/syntax.lua | 1 | 1914 | local api = vim.api
local fn = vim.fn
local function bufnr_calc_width(buf, lines)
return api.nvim_buf_call(buf, function()
local width = 0
for _, l in ipairs(lines) do
local len = vim.fn.strdisplaywidth(l)
if len > width then
width = len
end
end
return width + 1
end)
end... | gpl-3.0 |
ln-zookeeper/wesnoth | data/lua/on_event.lua | 2 | 1301 | local utils = wesnoth.require "wml-utils"
-- registers an event handler. note that, like all lua variables this is not persitent in savefiles,
-- so you have to call this function from a toplevel lua tag or from a preload event.
-- It is also not possible to use this for first_time_only=yes events.
local event_handler... | gpl-2.0 |
lighter-cd/premake4-mobile | src/host/lua-5.1.4/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
xdemolish/darkstar | scripts/zones/Jugner_Forest/npcs/Mionie.lua | 17 | 1855 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Mionie
-- Type: Outpost Vendor
-- @pos 54 0 -11 104
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/global... | gpl-3.0 |
jarvissso3/jokerblue | plugins/language.lua | 1 | 4824 | local function reload_plugins( )
plugins = {}
load_plugins()
end
function run(msg, matches)
if is_sudo(msg) then
if msg.to.type == 'channel' then
if matches[1] == "setlang" and matches[2] == "fa" then
redis:set("sp:lang", "fa")
file = http.request("http://nahrup.ir/view/811/supergroup-fa.txt")
tools... | gpl-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/script/extension/DeprecatedExtensionFunc.lua | 39 | 1309 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.addHandleOfControlEvent(self,func,controlEve... | mit |
lighter-cd/premake4-mobile | tests/test_vs2002_sln.lua | 14 | 1629 | --
-- tests/test_vs2002_sln.lua
-- Automated test suite for Visual Studio 2002 solution generation.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.vs2002_sln = { }
local suite = T.vs2002_sln
local sln2002 = premake.vstudio.sln2002
--
-- Configure a solution for testing
--
local sln
function su... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.