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 |
|---|---|---|---|---|---|
AdamGagorik/darkstar | scripts/zones/Quicksand_Caves/npcs/Fountain_of_Kings.lua | 13 | 1479 | -----------------------------------
-- Area: Quicksand Caves
-- NPC: Fountain of Kings
-- @pos 567 18 -939 208
-----------------------------------
package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Quicksand_Caves/TextIDs");
require("scripts/globa... | gpl-3.0 |
Hostle/luci | applications/luci-app-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua | 68 | 1923 | -- 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
pbx_ael = module:option(ListV... | apache-2.0 |
AdamGagorik/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Ransnana.lua | 13 | 1065 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Ransnana
-- Type: Standard NPC
-- @zone: 94
-- @pos -22.008 -13.339 122.819
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;... | gpl-3.0 |
Hostle/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/df.lua | 73 | 1370 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("DF Plugin Configuration"),
translate(
"The df plugin collects statistics about the disk space " ..
"usage on different devices, mount points or file... | apache-2.0 |
mynameiscraziu/karizma | 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 |
nerdclub-tfg/telegram-bot | 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 |
AdamGagorik/darkstar | scripts/zones/Northern_San_dOria/npcs/Excenmille.lua | 13 | 1072 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Excenmille
-- Type: Ballista Pursuivant
-- @zone: 231
-- @pos -229.344 6.999 22.976
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"]... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Valkurm_Dunes/Zone.lua | 13 | 4852 | -----------------------------------
--
-- Zone: Valkurm_Dunes (103)
--
-----------------------------------
package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil;
package.loaded["scripts/globals/chocobo_digging"] = nil;
-----------------------------------
require("scripts/zones/Valkurm_Dunes/TextIDs");
require("s... | gpl-3.0 |
TeleDALAD/test1 | plugins/add_bot.lua | 189 | 1492 | --[[
Bot can join into a group by replying a message contain an invite link or by
typing !add [invite link].
URL.parse cannot parsing complicated message. So, this plugin only works for
single [invite link] in a post.
[invite link] may be preceeded but must not followed by another characters.
--]]
do
local function... | gpl-2.0 |
josschne/BabyWomp | cocos2d/external/lua/luajit/src/dynasm/dasm_arm.lua | 74 | 34483 | ------------------------------------------------------------------------------
-- DynASM ARM module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _in... | mit |
AdamGagorik/darkstar | scripts/globals/items/bowl_of_loach_gruel.lua | 18 | 1624 | -----------------------------------------
-- ID: 5670
-- Item: Bowl of Loach Gruel
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Make Group Effect
-- Dexterity 2
-- Agility 2
-- Accuracy 7% Cap 30
-- HP 7% Cap 30
-- Evasion 4
-----------------------------------------
require("scri... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Ordelles_Caves/npcs/_5d1.lua | 13 | 2979 | -----------------------------------
-- Area: Ordelle's Caves
-- NPC: Strange Apparatus
-- @pos: -294 28 -100 193
-----------------------------------
package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil;
require("scripts/zones/Ordelles_Caves/TextIDs");
require("scripts/globals/strangeapparatus");
------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/The_Garden_of_RuHmet/mobs/Jailer_of_Faith.lua | 8 | 1540 | -----------------------------------
-- Area: The Garden of Ru'Hmet
-- NPC: Jailer_of_Faith
-----------------------------------
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function onMobSpawn(mob)
-- Give it two hour
mob:setMod(MOBMOD_MAIN_2HOUR, 1);
-- Cha... | gpl-3.0 |
thomasgabor/hades | lib/tartaros.lua | 1 | 4206 | local luatools = require "luatools"
local T = {}
local inhabitants = {}
local environment = {}
local parameters = {}
local world, metaworld
function T.write(content)
if content then
if environment and environment.prefix then
io.write(environment.prefix, " ", content)
else
... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Monastic_Cavern/Zone.lua | 17 | 1771 | -----------------------------------
--
-- Zone: Monastic_Cavern (150)
--
-----------------------------------
package.loaded["scripts/zones/Monastic_Cavern/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Monastic_Cavern/TextIDs");
-----------------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Bilgestorm.lua | 30 | 1415 | ---------------------------------------------
-- Bilgestorm
--
-- Description: Deals damage in an area of effect. Additional effect: Lowers attack, accuracy, and defense
-- Type: Physical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: Unknown
-- Notes: Only used at low health.*Experienced the use at 75%*
-----... | gpl-3.0 |
sjznxd/lc-20130204 | applications/luci-asterisk/luasrc/asterisk/cc_idd.lua | 92 | 7735 | --[[
LuCI - Asterisk - International Direct Dialing Prefixes and Country Codes
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
]]--
module "luci.asteri... | apache-2.0 |
Nathan22Miles/sile | languages/ja.lua | 1 | 2538 | local punct = function(c) return c >= 0x3000 and c <= 0x303f or c == 0xff09 or c == 0xff08 end
local hiragana = function(c) return c >= 0x3040 and c <= 0x309f end
local katakana = function(c) return c >= 0x30a0 and c <= 0x30ff end
local kana = function(c) return hiragana(c) or katakana(c) end
local kanji = function(c) ... | mit |
iskolbin/lrla | dig.lua | 1 | 1504 | -- Digger dungeon generator by Ilya Kolbin ( iskolbin@gmail.com )
--
-- Used for digging-cave-like level generation
local FREE, WALL, NEXT_FREE, NEXT_WALL = 0, 1, 2, 3
return function( kwargs )
local random = math.random
local grid = kwargs.grid
local w, h
if not grid then
grid = {}
w, h = kwargs.w, kwargs... | mit |
rigeirani/bbb | plugins/admin.lua | 60 | 6680 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
flybird119/Atlas | lib/proxy/filter.lua | 41 | 1906 | module("proxy.filter", package.seeall)
local config_file = string.format("proxy.conf.config_%s", proxy.global.config.instance)
local config = require(config_file)
local whitelist = config.whitelist
local blacklist = config.blacklist
local log = require("proxy.log")
local level = log.level
local write_log = log.writ... | gpl-2.0 |
mamadtnt/new4 | 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 |
AdamGagorik/darkstar | scripts/zones/Jugner_Forest_[S]/npcs/Larkin_CA.lua | 13 | 1045 | -----------------------------------
-- Area: Jugner Forest (S)
-- NPC: Larkin, C.A.
-- Type: Campaign Arbiter
-- @pos 50.217 -1.769 51.095 82
-----------------------------------
package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Jugner_Fores... | gpl-3.0 |
josemrb/dotfiles | nvim/lua/profile/options.lua | 1 | 1684 | local options = {
-- backup
backupext = ".bak",
-- clipboard
clipboard = "unnamedplus",
-- editor
expandtab = true,
shiftwidth = 2,
softtabstop = 2,
tabstop = 2,
showmatch = true,
smartindent = true,
-- file
fileencoding = "utf-8",
fileformat = "unix",
swapfile = false,
-- fold
foldena... | mit |
juesato/rnn | examples/simple-sequencer-network.lua | 7 | 2016 | require 'rnn'
-- hyper-parameters
batchSize = 8
rho = 5 -- sequence length
hiddenSize = 7
nIndex = 10
lr = 0.1
-- build simple recurrent neural network
local r = nn.Recurrent(
hiddenSize, nn.LookupTable(nIndex, hiddenSize),
nn.Linear(hiddenSize, hiddenSize), nn.Sigmoid(),
rho
)
local rnn = nn.Sequential... | bsd-3-clause |
AdamGagorik/darkstar | scripts/globals/spells/dia_ii.lua | 26 | 2226 | -----------------------------------------
-- Spell: Dia II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
--------------------------------------... | gpl-3.0 |
Android092921/season | bot/utils.lua | 473 | 24167 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
AdamGagorik/darkstar | scripts/zones/Newton_Movalpolos/npcs/Treasure_Coffer.lua | 13 | 3837 | -----------------------------------
-- Area: Newton Movalpolos
-- NPC: Treasure Coffer
-- @zone 12
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require(... | gpl-3.0 |
sbuettner/kong | database/migrations/cassandra/2015-06-09-170921_0.4.0.lua | 12 | 1694 | local Migration = {
name = "2015-06-09-170921_0.4.0",
up = function(options)
return [[
CREATE TABLE IF NOT EXISTS oauth2_credentials(
id uuid,
name text,
consumer_id uuid,
client_id text,
client_secret text,
redirect_uri text,
created_at timestamp,... | mit |
AdamGagorik/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 13 | 3340 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Laimeve, R.K.
-- Border Conquest Guards
-- @pos 226.493 -12.231 260.194 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/c... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Mhaura/npcs/Phoochuchu.lua | 13 | 1542 | -----------------------------------
-- Area: Mhaura
-- NPC: Phoochuchu
-- Involved in Quest: A Thief in Norg!?
-- @pos -4 -4 69 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Mh... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Hieroglyphics.lua | 13 | 2442 | -----------------------------------
-- Area: Tavnazian_Safehold
-- NPC: Hieroglyphics
-- Notes: Dynamis Tavnazia Enter
-- @pos 3.674 -7.278 -27.856 26
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/se... | gpl-3.0 |
AdamGagorik/darkstar | scripts/globals/mobskills/Fanatic_Dance.lua | 45 | 1037 | ---------------------------------------------------
-- Fanatic Dance
-- Family: Orc
-- Description: Charms all targets in an area of effect.
-- Type: Enfeebling
-- Utsusemi/Blink absorb: N/A
-- Range: AoE around user
-- Notes: Dynamis NM Orcs only
---------------------------------------------------
require("scri... | gpl-3.0 |
m27frogy/rbxobfusc | LAT_src/Lua51/Chunk.lua | 1 | 6797 | local Chunk = {
new = function(self)
local function toList(t) -- little hack using meta tables i put together in like 30 seconds. Might have some issues.
t.Add = function(self, obj, index)
getmetatable(self).__newindex(self, index or self.Count, obj)
return index ... | mit |
AdamGagorik/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fh.lua | 13 | 1077 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Shiva's Gate
-- @pos 110 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-----... | gpl-3.0 |
hlieberman/sysdig | userspace/sysdig/chisels/v_sports.lua | 4 | 2338 | --[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
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 ... | gpl-2.0 |
AdamGagorik/darkstar | scripts/globals/items/lizard_egg.lua | 18 | 1161 | -----------------------------------------
-- ID: 4362
-- Item: lizard_egg
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Health 5
-- Magic 5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-------------... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm19.lua | 57 | 2137 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm19 (??? - Bomb Coal Fragments)
-- Involved in Quest: In Defiant Challenge
-- @pos -50.175 6.264 251.669 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
re... | gpl-3.0 |
AdamGagorik/darkstar | scripts/zones/LaLoff_Amphitheater/npcs/qm1_4.lua | 13 | 2440 | -----------------------------------
-- Area: LaLoff_Amphitheater
-- NPC: Shimmering Circle (BCNM Entrances)
-------------------------------------
package.loaded["scripts/zones/LaLoff_Amphitheater/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/glob... | gpl-3.0 |
luveti/Urho3D | bin/Data/LuaScripts/41_DatabaseDemo.lua | 26 | 7819 | -- Database demo. This sample demonstrates how to use database subsystem to connect to a database and execute adhoc SQL statements.
require "LuaScripts/Utilities/Sample"
local connection
local row
local maxRows = 50
function Start()
-- Execute the common startup for samples
SampleStart()
-- Disable defa... | mit |
AdamGagorik/darkstar | scripts/zones/Behemoths_Dominion/npcs/Cermet_Headstone.lua | 13 | 3090 | -----------------------------------
-- Area: Behemoth's Dominion
-- NPC: Cermet Headstone
-- Involved in Mission: ZM5 Headstone Pilgrimage (Lightning Headstone)
-- @pos -74 -4 -87 127
-----------------------------------
package.loaded["scripts/zones/Behemoths_Dominion/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lufaise_Meadows/npcs/qm4.lua | 14 | 1311 | -----------------------------------
-- Area: Lufaise Meadows
-- NPC: ??? - spawns Splinterspine Grukjuk for quest "A Hard Day's Knight"
-- @pos -38.605 -9.022 -290.700 24
-----------------------------------
package.loaded["scripts/zones/Lufaise_Meadows/TextIDs"] = nil;
-----------------------------------
require("scr... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/plate_of_shrimp_sushi.lua | 12 | 1660 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 14 (cap 68)
-- Ranged Accuracy % 14 (cap 68)
-- Resist sleep +1
-----------------------------------------
require("scr... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/Sniggnix.lua | 14 | 2347 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Sniggnix
-- Type: Standard NPC
-- @zone 245
-- @pos -45.832 4.498 -135.029
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Hall_of_Transference/npcs/_0e1.lua | 14 | 1356 | -----------------------------------
-- Area: Hall of Transference
-- NPC: Cermet Gate - Dem
-- @pos -220 -46 -279 14
-----------------------------------
package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/H... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Spire_of_Dem/Zone.lua | 30 | 1399 | -----------------------------------
--
-- Zone: Spire_of_Dem (19)
--
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Spire_of_Dem/TextIDs");
---------------------------------... | gpl-3.0 |
Meoo/SimpleGameEngine | make/Boost.lua | 2 | 3129 | -- Functions:
-- use_Boost(libs)
-- Boost options
newoption {
trigger = "boost_directory",
value = "path",
description = "Boost base directory (must contain boost directory)"
}
newoption {
trigger = "boost_bin_directory",
value = "path",
description = "[Optional] Boost build direc... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Angelica.lua | 14 | 5826 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Angelica
-- Starts and Finished Quest: A Pose By Any Other Name
-- Working 100%
-- @zone = 238
-- @pos = -70 -10 -6
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Attohwa/npcs/qm8.lua | 5 | 1340 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: qm8 (???)
-- Spawns Kampe
-- @pos ? ? ? 215
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[[
... | gpl-3.0 |
fps-vogel/maccer | luapower/csrc/luajit/src/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
----------------------------------------------------------------------------
-... | gpl-3.0 |
mailru/tarantool-auth | authman/model/password.lua | 1 | 3810 | local password = {}
local digest = require('digest')
local uuid = require('uuid')
local validator = require('authman.validator')
local utils = require('authman.utils.utils')
local CHAR_GROUP_PATTERNS = {
'[%l]', -- lower case
'[%u]', -- upper case
'[%d]', -- didgets
'[!@#&_=;:,/\\|`~ %?%+%-%.%^%... | mit |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/bomb_toss_suicide.lua | 17 | 1242 | ---------------------------------------------------
-- Bomb Toss - Suicide
-- Throws a bomb at an enemy. Sometimes backfires.
---------------------------------------------
require("scripts/globals/monstertpmoves");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------------... | gpl-3.0 |
colesbury/nn | SpatialClassNLLCriterion.lua | 9 | 2460 | local THNN = require 'nn.THNN'
local SpatialClassNLLCriterion, parent = torch.class('nn.SpatialClassNLLCriterion', 'nn.Criterion')
function SpatialClassNLLCriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage... | bsd-3-clause |
jsenellart/OpenNMT | onmt/modules/Bridge.lua | 8 | 2185 | --[[ Bridge between encoder and decoder. ]]
local Bridge, parent = torch.class('onmt.Bridge', 'onmt.Network')
local options = {
{
'-bridge', 'copy',
[[Define how to pass encoder states to the decoder. With `copy`, the encoder and decoder
must have the same number of layers.]],
{
enum = {'copy... | mit |
deepak78/luci | modules/admin-mini/luasrc/model/cbi/mini/luci.lua | 81 | 1335 | --[[
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 |
pakozm/april-ann | packages/bayesian/lua_src/metropolis.lua | 3 | 7504 | get_table_from_dotted_string("bayesian.optimizer", true)
-- Random walk Metropolis update with normal proposals
-- @param eval is a function a function which returns L(Theta). It is
-- implemented to minimize the negative of the log-likelihood (maximize the
-- log-likelihood).
--
-- @param theta is a matrix, a table ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/sausage.lua | 12 | 1754 | -----------------------------------------
-- ID: 4578
-- Item: sausage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health % 3 (cap 130)
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-- Ranged ATT % 27
-- Ranged ATT Cap 30
-----------------------------------------
re... | gpl-3.0 |
bmscoordinators/FFXI-Server | 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 |
bmscoordinators/FFXI-Server | scripts/globals/atma.lua | 27 | 40038 | -----------------------------------
--
-- EFFECT_ATMA
--
-- Also used for Voidwatch Atmacite
-- (it is a single effect in the client).
-- Todo: table this BS / ditch these functions
-----------------------------------
require("scripts/globals/status");
-----------------------------------
function atmaEffectGain(target... | gpl-3.0 |
olapaola/olapaola-android-scripting | lua/luasocket/src/ltn12.lua | 127 | 8177 | -----------------------------------------------------------------------------
-- LTN12 - Filters, sources, sinks and pumps.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: ltn12.lua,v 1.31 2006/04/03 04:45:42 diego Exp $
-----------------------------------------------------------------------------
-------... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Maze_of_Shakhrami/npcs/Treasure_Chest.lua | 17 | 3798 | -----------------------------------
-- Area: Maze of Shakhrami
-- NPC: Treasure Chest
-- Involved In Quest: The Goblin Tailor
-- @zone 198
-----------------------------------
package.loaded["scripts/zones/Maze_of_Shakhrami/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requi... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Tahrongi/npcs/qm15.lua | 14 | 1566 | -----------------------------------
-- Zone: Abyssea-Tahrongi
-- NPC: ???
-- Spawns Lacovie
-- @pos ? ? ? 45
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/status");
-----------------------------------
-- onTrigger Action
-----------------------------------
function... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Dynamis-Buburimu/mobs/Goblin_Replica.lua | 22 | 1186 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
--------... | gpl-3.0 |
user-none/lua-hashings | hashings/sha256.lua | 1 | 6674 | -- Copyright (c) 2016 John Schember <john@nachtimwald.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, copy, ... | mit |
pakozm/april-ann | packages/ann/optimizer/test/test-digits-qprop.lua | 3 | 5488 | mathcore.set_use_cuda_default(util.is_cuda_available())
--
local check = utest.check
local T = utest.test
--
T("QuickPropTest", function()
-- un generador de valores aleatorios... y otros parametros
bunch_size = tonumber(arg[1]) or 512
semilla = 1234
weights_random = random(semilla)
descr... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Lower_Jeuno/npcs/_6tc.lua | 25 | 4144 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Door: "Neptune's Spire"
-- Starts and Finishes Quest: Beat Around the Bushin
-- @zone 245
-- @pos 35 0 -15
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
deepak78/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua | 80 | 3097 | --[[
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 |
Shayan123456/botttttt10 | plugins/inpm.lua | 243 | 3007 | 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 |
tehran98/Team-Spammer | 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 |
bmscoordinators/FFXI-Server | scripts/zones/Open_sea_route_to_Mhaura/npcs/Map.lua | 14 | 1030 | -----------------------------------
-- Area: Open_sea_route_to_Mhaura
-- NPC: Map
-- @pos 0.340 -12.232 -4.120 47
-----------------------------------
package.loaded["scripts/zones/Open_sea_route_to_Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Open_sea_route_to_Mhaura/TextIDs");
... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Windurst_Waters/npcs/Orez-Ebrez.lua | 17 | 1820 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Orez-Ebrez
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
require("scripts/zones/Windurst_Waters/TextI... | gpl-3.0 |
xumjbn/alpha | test/getopt.lua | 1 | 1524 | #!/usr/bin/lua
require 'std'
u = require 'util'
optlong = {
{"help", "none", "h"},
{"debug", "none", "d"},
{"info", "required", "i"},
{"list", "required", "l"},
}
local args = arg
---[[
local list;
local opts, err = getopt.getopt(args, "hvl:", 1)
--print(opts, err)
--u.dump(opts)
if not err then
... | mit |
Henkoglobin/lazylualinq | test/constructors/lambda.lua | 1 | 3066 | describe("#lambda", function()
insulate("requires load or loadstring", function()
local loadBackup, loadstringBackup = load, loadstring
it("does not work without load or loadstring", function()
_G.load, _G.loadstring = nil, nil
local linq = require("lazylualinq")
assert.has_error(function()
loca... | unlicense |
jochem-brouwer/VO2_Model | Run_RandomBond_Smart3.lua | 1 | 6355 | local Lattice = require 'Lattice'
local MyLattice = Lattice:New();
math.randomseed(12345)
local Model = require 'Model';
Model = Model:New();
Model.Lattice = MyLattice;
MyLattice:Init(100,100,1);
MyLattice:InitRandomBond(10,1);
MyLattice:InitRandomField(0,0);
--MyLattice.J = 1;
-- If you want to calculate resistance... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Nashmau/npcs/Jajaroon.lua | 17 | 1689 | -----------------------------------
-- Area: Nashmau
-- NPC: Jajaroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
---------------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/weaponskills/sturmwind.lua | 25 | 1558 | -----------------------------------
-- Sturmwind
-- Great Axe weapon skill
-- Skill level: 70
-- Delivers a two-hit attack. Attack varies with TP.
-- Will stack with Sneak Attack, but only the first hit.
-- Aligned with the Soil Gorget & Aqua Gorget.
-- Aligned with the Soil Belt & Aqua Belt.
-- Element: None
-- Modifi... | gpl-3.0 |
XtBot/xt | 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... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Sauromugue_Champaign/npcs/qm6.lua | 14 | 2470 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm6 (???) (Tower 6)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos 363.481 23.600 6.335 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
----------------------------------... | gpl-3.0 |
jsenellart/OpenNMT | test/onmt/FeaturesEmbeddingTest.lua | 8 | 1573 | require('onmt.init')
local tester = ...
local featuresEmbeddingTest = torch.TestSuite()
function featuresEmbeddingTest.oneFeatConcat()
local featEmb = onmt.FeaturesEmbedding({10}, {5}, 'concat')
tester:eq(featEmb.outputSize, 5)
local input = torch.LongTensor({1, 2})
local output = featEmb:forward(input)
... | mit |
jxlczjp77/pskynet | examples/login/gated.lua | 17 | 2187 | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
... | apache-2.0 |
deepak78/luci | applications/luci-ushare/luasrc/model/cbi/ushare.lua | 6 | 1106 | --[[
LuCI uShare
(c) 2008 Yanira <forum-2008@email.de>
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$
]]--
m = Map("ushare", translate("... | apache-2.0 |
deepak78/luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-format.lua | 80 | 3636 | --[[
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 |
bmscoordinators/FFXI-Server | scripts/globals/items/slice_of_roast_mutton.lua | 12 | 1390 | -----------------------------------------
-- ID: 4437
-- Item: slice_of_roast_mutton
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Strength 3
-- Intelligence -1
-- Attack % 27
-- Attack Cap 30
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/block_of_stone_cheese.lua | 12 | 1214 | -----------------------------------------
-- ID: 4460
-- Item: Block of Stone Cheese
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health +6% (cap 40)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
erf4n/SELF_Bot | plugins/weather.lua | 3 | 1444 |
local BASE_URL = "http://api.openweathermap.org/data/2.5/weather"
local function get_weather(location)
print("Finding weather in ", location)
local url = BASE_URL
url = url..'?q='..location..'&APPID=eedbc05ba060c787ab0614cad1f2e12b'
url = url..'&units=metric'
local b, c, h = http.request(url)
if c ~= 200... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Western_Adoulin/npcs/Preterig.lua | 14 | 1184 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Preterig
-- Type: Shop NPC
-- @zone 256
-- @pos 6 0 -53 256
-----------------------------------
package.loaded["scripts/zones/Western_Adoulin/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/shop");
require("scripts/z... | gpl-3.0 |
RockySeven3161/NewBot | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
jxlczjp77/pskynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | apache-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 14 | 1039 | -----------------------------------
-- 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 |
bigboyq/proxmark3 | client/scripts/test_t55x7_fsk.lua | 11 | 2697 | local cmds = require('commands')
local getopt = require('getopt')
local bin = require('bin')
local utils = require('utils')
example =[[
1. script run test_t55x7_fsk
]]
author = "Iceman"
usage = "script run test_t55x7_fsk"
desc =[[
This script will program a T55x7 TAG with the configuration: block 0x00 data 0x000100
T... | gpl-2.0 |
bmscoordinators/FFXI-Server | scripts/zones/Southern_San_dOria/npcs/Maugie.lua | 16 | 2556 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Maugie
-- General Info NPC
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-------------------------------------
require("scripts/zones/Southern_San_dOria/TextIDs");
require("scripts/global... | gpl-3.0 |
deepak78/luci | applications/luci-samba/luasrc/model/cbi/samba.lua | 79 | 2602 | --[[
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 |
cheney247689848/Cloud-edge | Assets/ToLua/Lua/socket/headers.lua | 133 | 3698 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket")
socket.headers = {}
local _M = socket.headers
... | mit |
bmscoordinators/FFXI-Server | scripts/zones/Port_Windurst/npcs/Panja-Nanja.lua | 53 | 1909 | -----------------------------------
-- Area: Port Windurst
-- NPC: Panja-Nanja
-- Type: Fishing Adv. Image Support
-- @pos -194.499 -3 58.692 240
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
requ... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/globals/items/cup_of_date_tea.lua | 12 | 1411 | -----------------------------------------
-- ID: 5926
-- Item: Cup of Date Tea
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- HP 20
-- MP 30
-- Vitality -1
-- Charisma 5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
----------------------... | gpl-3.0 |
jsenellart/OpenNMT | hooks/chartokenization.lua | 4 | 1223 | local unicode = require('tools.utils.unicode')
local myopt =
{
{
'-mode', 'conservative',
[[Define how aggressive should the tokenization be. `aggressive` only keeps sequences
of letters/numbers, `conservative` allows a mix of alphanumeric as in: "2,000", "E65",
"soft-landing", etc. `space` is do... | mit |
bmscoordinators/FFXI-Server | scripts/globals/mobskills/drop_hammer.lua | 33 | 1032 | ---------------------------------------------
-- Drop Hammer
--
-- Description: Drops the hammer. Additional effect: Bind
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows?
-- Range: Melee
-- Notes: Only used by "destroyers" (carrying massive warhammers).
---------------------------------------------
requi... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Ship_bound_for_Selbina/npcs/Rajmonda.lua | 14 | 1208 | -----------------------------------
-- Area: Ship bound for Selbina
-- NPC: Rajmonda
-- Type: Guild Merchant: Fishing Guild
-- @pos 1.841 -2.101 -9.000 220
-----------------------------------
package.loaded["scripts/zones/Ship_bound_for_Selbina/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Inner_Horutoto_Ruins/npcs/_5ct.lua | 17 | 2597 | -----------------------------------
-- Area: Inner Horutoto Ruins
-- NPC: _5ct (Magical Gizmo) #5
-- Involved In Mission: The Horutoto Ruins Experiment
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
bmscoordinators/FFXI-Server | scripts/zones/Abyssea-Konschtat/npcs/qm10.lua | 4 | 1344 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm10 (???)
-- Spawns Alkonost
-- @pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade)
--[... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.