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 |
|---|---|---|---|---|---|
Colettechan/darkstar | scripts/zones/Leujaoam_Sanctum/instances/leujaoam_cleansing.lua | 28 | 2422 | -----------------------------------
--
-- Assault: Leujaoam Cleansing
--
-----------------------------------
require("scripts/globals/instance")
local Leujaoam = require("scripts/zones/Leujaoam_Sanctum/IDs");
-----------------------------------
-- afterInstanceRegister
-----------------------------------
function ... | gpl-3.0 |
crscardellino/torch_rnn | mlp.lua | 1 | 1134 | require 'torch'
require 'nn'
require 'mltools'
require 'optim'
-- Load and split the dataset
print("Loading the dataset")
local newsgroups_sparse = mltools.SparseDataset('resources/newsgroups')
local train, test = mltools.crossvalidation.train_test_split(newsgroups_sparse:getTorchDataset())
-- Define the network para... | mit |
Colettechan/darkstar | scripts/zones/Upper_Jeuno/npcs/Collet.lua | 13 | 2362 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Collet
-- Involved in Quests: A Clock Most Delicate, Save the Clock Tower
-- @zone 244
-- @pos -44 0 107
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
RJRetro/mame | scripts/target/ldplayer/ldplayer.lua | 12 | 2168 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- ldplayer.lua
--
-- Small makefile to build a standalone laserdisc player
--
---------------------------------------------------------------------------
----------------------... | gpl-2.0 |
PhearZero/phear-scanner | bin/nmap-openshift/nselib/ssh1.lua | 3 | 9097 | ---
-- Functions for the SSH-1 protocol. This module also contains functions for
-- formatting key fingerprints.
--
-- @author Sven Klemm <sven@c3d2.de>
-- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html
local bin = require "bin"
local bit = require "bit"
local io = require "io"
local math = require... | mit |
Vadavim/jsr-darkstar | scripts/globals/spells/flood_ii.lua | 1 | 1210 | -----------------------------------------
-- Spell: Flood II
-- Deals water damage to an enemy and lowers its resistance against lightning.
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
----------... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/globals/mobskills/Great_Sandstorm.lua | 1 | 1563 | ---------------------------------------------
-- Great Sandstorm
--
-- Description: Deals Earth damage to single target. Additional effect: Blind
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Single target
-- Notes:
---------------------------------------------
require("scripts/globals/sett... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Empyreal_Paradox/IDs.lua | 8 | 1043 | -----------------------------------
-- Area: Empyreal_Paradox
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.EMPYREAL_PARADOX] =
{
text =
{
ITEM_CANNOT_BE_OBTAINED = 6382, -- You cannot obtain the <item>. Come ... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Port_San_dOria/npcs/Meinemelle.lua | 9 | 1078 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Meinemelle
-- !pos -8.289 -9.3 -146.093 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
-----------------------------------
function... | gpl-3.0 |
actboy168/MoeHero | scripts/maps/hero/立华奏/波形延迟.lua | 1 | 2662 |
local mt = ac.skill['波形延迟']
mt{
level = 0,
art = [[BTNzw.blp]],
title = '波形延迟',
tip = [[
向前突进%distance%距离,突进过程中格挡所有普通攻击,对命中的第一个敌人触发|cff11ccff音速穿刺|r的效果。
]],
cool = {17, 13},
cost = 60,
range = 9999,
cast_channel_time = 10,
cast_animation = 3,
target_type = mt.TARGET_TYPE_POINT,
distance = {400, 600},
pass... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Lower_Jeuno/npcs/_l07.lua | 7 | 1574 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -45.148 0 -47.279
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
darklost/quick-ng | external/lua/luajit/luajit-2.1/src/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 |
Vadavim/jsr-darkstar | scripts/zones/Gusgen_Mines/npcs/_5g0.lua | 14 | 1099 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g0 (Door C)
-- @pos 44 -42.4 -25.5 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
-------------------------------... | gpl-3.0 |
zynjec/darkstar | scripts/globals/items/serving_of_salmon_meuniere.lua | 11 | 1096 | -----------------------------------------
-- ID: 4583
-- Item: serving_of_salmon_meuniere
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -2
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status")
require("scri... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/abilities/pets/flaming_crush.lua | 29 | 1356 | ---------------------------------------------------
-- Flaming Crush M=10, 2, 2? (STILL don't know)
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/summon");
require("scripts/globals/magic");
require("scripts/globals/m... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Port_Jeuno/npcs/Horst.lua | 11 | 2831 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Horst
-- Type: Abyssea Warp NPC
-- !pos -54.379 0.001 -10.061 246
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
local CRUOR = player:getCurrency("cruor");
if (player:getQuestStatus(ABY... | gpl-3.0 |
Akamaru/Mikubot | plugins/manager.lua | 1 | 7251 | 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 |
Vadavim/jsr-darkstar | scripts/zones/Mhaura/npcs/Bihoro-Guhoro.lua | 14 | 1538 | -----------------------------------
-- Area: Mhaura
-- NPC: Bihoro-Guhoro
-- Involved in Quest: Riding on the Clouds
-- @pos -28 -8 41 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Northern_San_dOria/npcs/Beadurinc.lua | 53 | 1875 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Beadurinc
-- Type: Smithing Synthesis Image Support
-- @pos -182.300 10.999 146.650 231
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
jrgdiz/NewtonsRevenge | hump/vector.lua | 4 | 4590 | --[[
Copyright (c) 2010-2012 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
Colettechan/darkstar | scripts/zones/Beaucedine_Glacier_[S]/npcs/Luhk_Leotih_MC.lua | 13 | 1084 | -----------------------------------
-- Area: Beaucedine Glacier (S)
-- NPC: Luhk Leotih, M.C.
-- Type: Campaign Arbiter
-- @zone: 136
-- @pos 76.178 -60.763 -48.775
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier_[... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Windurst_Woods/npcs/Valeriano.lua | 17 | 1692 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Valeriano
-- Standard Merchant NPC
-- Working 100%
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
require("scripts/zones/Windurst... | gpl-3.0 |
zynjec/darkstar | scripts/zones/Northern_San_dOria/npcs/Arachagnon.lua | 11 | 1150 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Arachagnon
-- Standard Merchant NPC
-----------------------------------
local ID = require("scripts/zones/Northern_San_dOria/IDs")
require("scripts/globals/npc_util")
require("scripts/globals/quests")
require("scripts/globals/shop")
function onT... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Apollyon/bcnms/SE_Apollyon.lua | 13 | 1438 | -----------------------------------
-- Area: Appolyon
-- Name: SE_Apollyon
-----------------------------------
require("scripts/globals/limbus");
require("scripts/globals/keyitems");
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[SE_Apollyon]Uniq... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/items/dish_of_spag_nero_di_seppia_+1.lua | 18 | 1799 | -----------------------------------------
-- ID: 5202
-- Item: dish_of_spag_nero_di_seppia_+1
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP % 17 (cap 140)
-- Dexterity 3
-- Vitality 2
-- Agility -1
-- Mind -2
-- Charisma -1
-- Double Attack 1
-- Store TP 6
----------------------------... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/weaponskills/requiescat.lua | 10 | 1317 | -----------------------------------
-- Requiescat
-- Sword weapon skill
-- Skill level: MERIT
-- Delivers a five-hit attack. Attack power varies with TP.
-- Element: None
-- Modifiers: MND:73~85%
-- 100%TP 200%TP 300%TP
-- ALL 1.0
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/items/derfland_pear.lua | 18 | 1191 | -----------------------------------------
-- ID: 4352
-- Item: derfland_pear
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -3
-- Intelligence 1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/spells/earth_carol.lua | 27 | 1535 | -----------------------------------------
-- Spell: Earth Carol
-- Increases earth resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/weaponskills/evisceration.lua | 9 | 1547 | -----------------------------------
-- Evisceration
-- Dagger weapon skill
-- Skill level: 230
-- In order to obtain Evisceration, the quest Cloak and Dagger must be completed.
-- Delivers a fivefold attack. Chance of params.critical hit varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Shadow Gorget... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/globals/mobskills/Choke_Breath.lua | 1 | 1909 | ---------------------------------------------
-- Foul Breath
--
-- Description: Deals fire damage to enemies within a fan-shaped area originating from the caster.
-- Type: Magical (Fire)
--
--
---------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
requir... | gpl-3.0 |
zevv/lgi | lgi/log.lua | 1 | 1085 | ------------------------------------------------------------------------------
--
-- LGI support for GLib-based logging.
--
-- Copyright (c) 2011 Pavel Holejsovsky
-- Licensed under the MIT license:
-- http://www.opensource.org/licenses/mit-license.php
--
------------------------------------------------------------... | mit |
CosyVerif/library | src/cosy/webclient/headbar/init.lua | 1 | 1214 | return function (loader)
local Webclient = loader.load "cosy.webclient"
local I18n = loader.load "cosy.i18n"
local Dashboard = loader.load "cosy.webclient.dashboard"
local Authentication = loader.load "cosy.webclient.authentication"
local i18n = I18n.load {
"cosy.webclient.h... | mit |
Stanzilla/clink | clink/test/test_core.lua | 4 | 1219 | --
-- 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 |
zynjec/darkstar | scripts/globals/items/mutton_tortilla.lua | 11 | 1457 | -----------------------------------------
-- ID: 4506
-- Item: mutton_tortilla
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Magic 10
-- Strength 3
-- Vitality 1
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Kazham-Jeuno_Airship/Zone.lua | 32 | 1399 | -----------------------------------
--
-- Zone: Kazham-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
-----------------------------------
fu... | gpl-3.0 |
Bergiu/VillageGameAutoplay | action.lua | 1 | 5268 | function on_msg_receive (msg)
if msg.from.print_name==msg.to.print_name then
if not file_check("VillageGameAutoplay/setting_"..msg.to.print_name..".json")then
file_copy("VillageGameAutoplay/setting.json","VillageGameAutoplay/setting_"..msg.to.print_name..".json")
end
if(msg.text=="pause" or msg.t... | gpl-3.0 |
Akamaru/Mikubot | plugins/senran_kagura.lua | 1 | 2268 | function run(msg, matches)
if string.match(msg.text, '^/[Aa][Ss][Uu][Kk][Aa]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/asuka.jpg", ok_cb, false)
elseif string.match(msg.text, '^/[Hh][Ii][Bb][Aa][Rr][Ii]$') then
send_photo(get_receiver(msg), "pictures/senrankagura/hanzouacademy/hi... | gpl-2.0 |
Vadavim/jsr-darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ca.lua | 14 | 2341 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: Mahogany Door
-- Involved In Quest: Making Headlines
-- Involved in Mission 2-1
-- @pos -11 0 20 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
darklost/quick-ng | cocos/scripting/lua-bindings/auto/api/ActionCamera.lua | 18 | 2127 |
--------------------------------
-- @module ActionCamera
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- @overload self, float, float, float
-- @overload self, vec3_table
-- @function [parent=#ActionCamera] setEye
-- @param self
-- @param #float x
-- @param #float ... | mit |
Vadavim/jsr-darkstar | scripts/zones/Southern_San_dOria/npcs/Carautia.lua | 14 | 2251 | -----------------------------------
-- Area: Carautia
-- NPC: Southern San d'Oria
-- Standard Merchant NPC
-- @zone 230
-- @pos 70 0 39
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require... | gpl-3.0 |
hossein5251/hossein5251bot | 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 |
tsdfsetatata/xserver | config/server/P20077Table.lua | 1 | 6225 | local P20077Table = {
[351701001] = {
['ID'] = 351701001, --索引
['TypeID'] = 2, --脚本ID
['Parameter1'] = {151010015}, --参数1
['Parameter2'] = {''} --参数2
},
[351701002] = {
['ID'] = 351701002,
['TypeID'] = 2,
['Parameter1'] = {151010013,151010014},
['Parameter2'] = {''}
},
[351701003] = ... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Hall_of_Transference/npcs/_0e8.lua | 22 | 1707 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Large Apparatus (Right) - Mea
-- @pos 290.253 -81.849 -42.381 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Hall_of_Transfere... | gpl-3.0 |
Colettechan/darkstar | scripts/globals/items/yellow_globe.lua | 18 | 1319 | -----------------------------------------
-- ID: 4403
-- Item: yellow_globe
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
------... | gpl-3.0 |
lcf8858/Sample_Lua | frameworks/cocos2d-x/tests/lua-tests/src/NewEventDispatcherTest/NewEventDispatcherTest.lua | 11 | 52060 | local itemTagBasic = 1000
local testArray =
{
TouchableSprite = 1,
FixedPriority = 2,
RemoveListenerWhenDispatching = 3,
CustomEvent = 4,
LabelKeyboardEvent = 5,
SpriteAccelerationEvent = 6,
RemoveAndRetainNode = 7,
RemoveListenerAfterAdding = 8,
GlobalZTouchTest = 9,
StopPropag... | mit |
Colettechan/darkstar | scripts/zones/Dynamis-Valkurm/Zone.lua | 13 | 2454 | -----------------------------------
--
-- Zone: Dynamis-Valkurm
--
-----------------------------------
package.loaded["scripts/zones/Dynamis-Valkurm/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Dynamis-Valkurm/TextIDs");
---------------------------... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Lower_Delkfutts_Tower/npcs/Cermet_Door.lua | 27 | 1148 | -----------------------------------
-- Area: Lower Delkfutt's Tower
-- NPC: Cermet Door
-- Notes: Leads to Upper Delkfutt's Tower.
-- @pos 524 16 20 184
-----------------------------------
require("scripts/globals/settings");
-----------------------------------
-- onTrade Action
-----------------------------------... | gpl-3.0 |
CosyVerif/library | src/cosy/webclient/headbar/conf.lua | 1 | 1405 | return function (loader)
local Default = loader.load "cosy.configuration.layers".default
if not Default.webclient then
Default.webclient = {}
end
Default.webclient.navigation = {}
Default.webclient.navigation.navbar = [[
]]
Default.webclient.navigation.navbar = [[
<nav class="navbar navbar-in... | mit |
zynjec/darkstar | scripts/zones/Chamber_of_Oracles/npcs/Pedestal_of_Water.lua | 9 | 2183 | -----------------------------------
-- Area: Chamber of Oracles
-- NPC: Pedestal of Water
-- Involved in Zilart Mission 7
-- !pos 199 -2 36 168
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/missions");
local ID = require("scripts/... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Upper_Jeuno/npcs/Areebah.lua | 13 | 1296 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Areebah
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
require("scripts/zones/Upper_Jeuno/TextIDs");
-----------------------------------
-- onTrade... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/globals/items/chunk_of_orobon_meat.lua | 18 | 1586 | -----------------------------------------
-- ID: 5563
-- Item: Chunk of Orobon Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- HP 10
-- MP -10
-- Strength +6
-- Intelligence -8
-- Demon Killer 10
-----------------------------------------
require("scripts/globals/status")... | gpl-3.0 |
Reisz/DeclarativeLua | src/Component/Matcher.lua | 1 | 2267 | local Matcher = {}
-- setup lua globals
local safeMethods = {}
for v in string.gmatch([[
string table utf8 math
getmetatable ipairs next pairs
rawequal rawget rawlen
tonumber tostring type
]], "%S+") do
safeMethods["_" .. v] = _G[v]
end
local rules = setmetatable({}, { __index = safeMethods })
local _creat... | apache-2.0 |
zynjec/darkstar | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 9 | 1176 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos -9 -13 -151 232
-----------------------------------
local ID = require("scripts/zones/Port_San_dOria/IDs")
require("scripts/globals/quests")
-----------------------------------
... | gpl-3.0 |
CodedBrandon/CardsAgainstHumanity | Server.lua | 1 | 14943 | game.OnClose = function() wait(5) end
local DataStoreService = game:GetService("DataStoreService")
local PlayerData = DataStoreService:GetDataStore("PlayerData_CAH")
local InternalData = DataStoreService:GetDataStore("InternalData_CAH") do
if InternalData and not InternalData:GetAsync("Streaming") then
InternalDat... | gpl-2.0 |
zhaijialong/skynet | lualib/dns.lua | 4 | 7466 | --[[
lua dns resolver library
See https://github.com/xjdrew/levent/blob/master/levent/dns.lua for more detail
-- resource record type:
-- TYPE value and meaning
-- A 1 a host address
-- NS 2 an authoritative name server
-- MD 3 a mail destination (Obsolete - use MX... | mit |
Vadavim/jsr-darkstar | scripts/globals/mobskills/Dark_Sphere.lua | 1 | 1476 | ---------------------------------------------------
-- Dark Sphere
-- Deals Dark damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 15' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glo... | gpl-3.0 |
Silverfeelin/SpawnableItemPack | quickbar/spawnableItemPackLoader.lua | 2 | 1768 | local config = root.assetJson("/interface/sip/sip.config")
local gui = config.gui
local categoryScroll = gui.sipCategoryScroll
local categoryGroup = categoryScroll.children.sipCategoryGroup
local categoryButtons = categoryGroup.buttons
local modCategories = root.assetJson("/sipMods/categories.config")
local x, y, i =... | mit |
Colettechan/darkstar | scripts/zones/Garlaige_Citadel/npcs/Treasure_Chest.lua | 13 | 2950 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: Treasure Chest
-- @zone 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("s... | gpl-3.0 |
chenlian2015/skia_from_google | resources/slides_content2.lua | 5 | 3379 | Skia Update
Skia : Access
- code.google.com/p/skia
- sites.google.com/site/skiadocs
Skia : Overview
- portable graphics engine
- 2D transformations + perspective
- primitives: text, geometry, images
- effects: shaders, filters, antialiasing, blending
Skia : Porting
- C++ and some SIMD assembly
- Fonts : CoreText, Fr... | bsd-3-clause |
Vadavim/jsr-darkstar | scripts/zones/Castle_Oztroja/npcs/relic.lua | 14 | 1868 | -----------------------------------
-- Area: Castle Oztroja
-- NPC: <this space intentionally left blank>
-- @pos -104 -73 85 151
-----------------------------------
package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Castle_Oztroja/TextIDs");
-----... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Quicksand_Caves/npcs/_5s2.lua | 13 | 1255 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Ornate Door
-- Door blocked by Weight system
-- @pos -574 0 -420 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextID... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Al_Zahbi/npcs/Allard.lua | 17 | 1180 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Allard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
require("scripts/zones/Al_Zahbi/TextIDs");
-----------------------------------
-- onTrade Action
--... | gpl-3.0 |
jugglerchris/textadept-vi | test/tests/cw.lua | 1 | 1501 | -- Test the change word command
test.open('words.txt')
local lineno = test.lineno
local colno = test.colno
local assertEq = test.assertEq
test.key('j')
assertEq(colno(), 0)
assertEq(lineno(), 1)
assertEq(buffer:get_cur_line(), "hey bee cee dee ee eff\n")
-- Test changing the first word
test.key('c', 'w', 'f', 'o', 'o',... | mit |
Colettechan/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Marquis_Gamygyn.lua | 23 | 1536 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Marquis Gamygyn
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEng... | gpl-3.0 |
Colettechan/darkstar | scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iya.lua | 12 | 1611 | -----------------------------------
-- 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 |
hedgewars/hw | share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua | 1 | 2497 |
HedgewarsScriptLoad("/Scripts/Locale.lua")
local playerTeamName
local player = nil -- This variable will point to the hog's gear
local enemy = nil
local GameOver = false
local jetpackFuel = 1000
function onGameInit()
-- Things we don't modify here will use their default values.
Seed = 0 -- The base number for ... | gpl-2.0 |
zynjec/darkstar | scripts/zones/Windurst_Woods/Zone.lua | 9 | 1897 | -----------------------------------
--
-- Zone: Windurst_Woods (241)
--
-----------------------------------
local ID = require("scripts/zones/Windurst_Woods/IDs")
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/conquest")
require("scripts/globals/settings")
require("scripts/globals/chocobo"... | gpl-3.0 |
Vadavim/jsr-darkstar | scripts/zones/Rolanberry_Fields/npcs/qm1.lua | 14 | 1507 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: qm1 (???)
-- @pos -686.216 -31.556 -369.723 110
-- Notes: Spawns Chuglix Berrypaws for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
------------------------... | gpl-3.0 |
abasshacker/ali | bot/creedbot.lua | 1 | 15690 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '1.0'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
retu... | gpl-2.0 |
xponen/Zero-K | LuaRules/Configs/target_priority_defs.lua | 1 | 3876 | -- Assuming max HP/Cost is 50.
-- Max useful HP/Cost is 11, Only Dirtbag and Claw are higher at 32.5 and 40 respectively.
local weaponBadCats = {}
local weaponIsAA = {}
for wid = 1, #WeaponDefs do
weaponBadCats[wid] = {}
end
-- Find the weapon bad target cats
for i=1, #UnitDefs do
local ud = UnitDefs[i]
local wea... | gpl-2.0 |
shahabsaf1/powerhelper | plugins/banhammer.lua | 34 | 11497 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
kernelsauce/turbo | turbo/sockutil.lua | 4 | 10747 | --- Turbo.lua Socket Utils
--
-- Copyright 2011, 2012, 2013 John Abrahamsen
--
-- 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 r... | apache-2.0 |
shreyaspotnis/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 |
rogerpueyo/luci | applications/luci-app-splash/luasrc/model/cbi/splash/splash.lua | 10 | 3006 | -- Licensed to the public under the Apache License 2.0.
require("luci.model.uci")
m = Map("luci_splash", translate("Client-Splash"), translate("Client-Splash is a hotspot authentication system for wireless mesh networks."))
s = m:section(NamedSection, "general", "core", translate("General"))
s.addremove = false
s:o... | apache-2.0 |
alexandergall/snabbswitch | lib/luajit/testsuite/test/lib/base/xpcall_jit.lua | 6 | 1929 | local function tr(err) return "tr"..err end
do --- square sum
local function f(x) return x*x end
local x = 0
for i=1,100 do
local ok1, ok2, ok3, y = xpcall(xpcall, tr, xpcall, tr, f, tr, i)
if not ok1 or not ok2 or not ok3 then break end
x = x + y
end
assert(x == 338350)
end
do --- sqrt square s... | apache-2.0 |
gpedro/forgottenserver | data/talkactions/scripts/looktype.lua | 27 | 1088 | function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
local lookType = tonumber(param)
if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookT... | gpl-2.0 |
harvardnlp/NAMAS | summary/run.lua | 9 | 3625 | --
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Author: Alex... | bsd-3-clause |
iresty/gin | gin/cli/base_launcher.lua | 3 | 1975 | -- dep
local lfs = require 'lfs'
-- gin
local Gin = require 'gin.core.gin'
local function create_dirs(necessary_dirs)
for _, dir in pairs(necessary_dirs) do
lfs.mkdir(dir)
end
end
local function create_nginx_conf(nginx_conf_file_path, nginx_conf_content)
local fw = io.open(nginx_conf_file_path, ... | mit |
alexandergall/snabbswitch | lib/luajit/testsuite/test/lib/ffi/jit_complex.lua | 6 | 2019 | local ffi = require("ffi")
local cx = ffi.typeof("complex")
local cxf = ffi.typeof("complex float")
ffi.cdef[[
typedef struct jit_complex_chain_t {
struct jit_complex_chain_t *next;
complex c;
} jit_complex_chain_t;
]]
do --- field access
local c = cx(1, 2)
local x
for i=1,100 do
x = c.re + c.im
end
... | apache-2.0 |
xponen/Zero-K | scripts/armaak.lua | 1 | 9366 | --linear constant 65536
--modified from Argh\'s PURE Artillery Shell Script
include "constants.lua"
include "JumpRetreat.lua"
local base, hips, torso = piece('base', 'hips', 'torso')
local launcher, rflare, rblast, lflare, lblast, cflare, cblast = piece('launcher', 'rflare', 'rblast', 'lflare', 'lblast', 'cflare', 'c... | gpl-2.0 |
MRAHS/UBTEST | plugins/Chat.lua | 32 | 1697 | local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text == "salam" then
return "va al... | gpl-2.0 |
DreamHacks/dreamdota | DreamWarcraft/Build Tools/MPQFixEngine/lua/oil/kernel/cooperative/Receiver.lua | 6 | 5380 | --------------------------------------------------------------------------------
------------------------------ ##### ## ------------------------------
------------------------------ ## ## # ## ------------------------------
------------------------------ ## ## ## ## ---------------------------... | mit |
rogerpueyo/luci | applications/luci-app-lxc/luasrc/controller/lxc.lua | 5 | 5280 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, 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
Author: Petar Koretic <petar.koretic@sart... | apache-2.0 |
anvilvapre/OpenRA | mods/cnc/maps/gdi04a/gdi04a.lua | 21 | 4901 | AutoTrigger = { CPos.New(51, 47), CPos.New(52, 47), CPos.New(53, 47), CPos.New(54, 47) }
GDIHeliTrigger = { CPos.New(27, 55), CPos.New(27, 56), CPos.New(28, 56), CPos.New(28, 57), CPos.New(28, 58), CPos.New(28, 59)}
Nod1Units = { "e1", "e1", "e3", "e3" }
Auto1Units = { "e1", "e1", "e3" }
KillsUntilReinforcements = 1... | gpl-3.0 |
infernal1200/infernall | 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 |
MRAHS/UBTEST | 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 |
xponen/Zero-K | units/chickenf.lua | 4 | 4325 | unitDef = {
unitname = [[chickenf]],
name = [[Talon]],
description = [[Flying Spike Spitter]],
acceleration = 0.8,
airHoverFactor = 0,
amphibious = true,
brakeRate = 0.4,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
xponen/Zero-K | scripts/amphaa.lua | 1 | 11381 | --linear constant 65536
include "constants.lua"
local base, pelvis, torso, vent = piece('base', 'pelvis', 'torso', 'vent')
local rthigh, rcalf, rfoot, lthigh, lcalf, lfoot = piece('rthigh', 'rcalf', 'rfoot', 'lthigh', 'lcalf', 'lfoot')
local lgun, lbarrel1, lbarrel2, rgun, rbarrel1, rbarrel2 = piece('lgun', 'lbarrel1... | gpl-2.0 |
gpedro/forgottenserver | data/spells/scripts/monster/undead dragon curse.lua | 20 | 1111 | local combat = {}
for i = 30, 50 do
combat[i] = Combat()
combat[i]:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_SMALLCLOUDS)
combat[i]:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
local condition = Condition(CONDITION_CURSED)
condition:se... | gpl-2.0 |
Canaan-Creative/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-iax-connections.lua | 80 | 2000 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
phyorat/Pktgen-user-payload | examples/pktgen-3.0.14/test/test_seq.lua | 1 | 8288 | --
-- Pktgen - Ver: 3.0.07 (DPDK 16.07.0-rc3)
-- Copyright (c) <2010-2016>, Intel Corporation. All rights reserved., Powered by Intel® DPDK
-- Command line arguments: (DPDK args are defaults)
-- ./app/app/x86_64-native-linuxapp-gcc/app/pktgen -c 3fffe -n 3 -m 512 --proc-type primary -- -T -P -m [2-5:6-9].0 -m [10-13:1... | gpl-2.0 |
rogerpueyo/luci | applications/luci-app-dump1090/luasrc/model/cbi/dump1090.lua | 10 | 7209 | -- 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 |
xponen/Zero-K | scripts/firewalker.lua | 1 | 9029 | include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local pelvis = piece 'pelvis'
local torso = piece 'torso'
local rgun = piece 'rgun'
local lgu... | gpl-2.0 |
alexandergall/snabbswitch | lib/ljsyscall/test/rump.lua | 18 | 2492 | -- rump specific tests
-- in particular testing the threading, as that is rather different; you can map them to host threads how you like
local function init(S)
local helpers = require "syscall.helpers"
local types = S.types
local c = S.c
local abi = S.abi
local util = S.util
local bit = require "syscall.bit"
local ... | apache-2.0 |
nexusstar/dotfiles | neovim/.config/nvim/lua/config/plugins.lua | 1 | 5617 | local fn = vim.fn
-- Automatically install packer
local install_path = fn.stdpath "data" .. "/site/pack/packer/start/packer.nvim"
if fn.empty(fn.glob(install_path)) > 0 then
PACKER_BOOTSTRAP = fn.system {
"git",
"clone",
"--depth",
"1",
"https://github.com/wbthomason/packer.nvim",
install_pat... | unlicense |
shreyaspotnis/S4 | examples/Liu_OE_17_21897_2009/fig3f.lua | 7 | 1392 | -- Fig. 3f of
-- Victor Liu, Michelle Povinelli, and Shanhui Fan,
-- "Resonance-enhanced optical forces between coupled photonic crystal slabs",
-- Optics Express, Vol. 17, No. 24, 2009
S = S4.NewSimulation()
S:SetLattice({1,0}, {0,0}) -- 1D lattice
S:SetNumG(27)
-- Material definition
S:AddMaterial("Silico... | gpl-2.0 |
Ali021s/Ali021 | plugins/anti_spam.lua | 191 | 5291 | --An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id == our_id then
return msg
end
-- Save... | agpl-3.0 |
rogerpueyo/luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/ruleconfig.lua | 7 | 3134 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
local dsp = require "luci.dispatcher"
local util = require("luci.util")
local m, mwan_rule, src_ip, src_port, dest_ip, dest_port, proto, sticky
lo... | apache-2.0 |
xponen/Zero-K | LuaUI/Widgets/snd_text_to_speech.lua | 6 | 1510 |
function widget:GetInfo()
return {
name = "Text To Speech Control",
desc = "Enables or disables text to speech through Zero-K lobby",
author = "Licho",
date = "10.6.2011",
license = "GNU GPL, v2 or later",
layer = math.huge,
enabled = true, -- loaded by default?
alwaysStart = true
}
end
----... | gpl-2.0 |
nwf/nodemcu-firmware | app/lua53/host/tests/bitwise.lua | 12 | 9209 | -- $Id: bitwise.lua,v 1.26 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
print("testing bitwise operations")
local numbits = string.packsize('j') * 8
assert(~0 == -1)
assert((1 << (numbits - 1)) == math.mininteger)
-- basic tests for bitwise operators;
-- use variables to avoid constant... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.