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 |
|---|---|---|---|---|---|
Scavenge/darkstar | scripts/zones/Abyssea-Tahrongi/npcs/qm21.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 |
Kyklas/luci-proto-hso | applications/luci-statistics/luasrc/statistics/rrdtool/definitions/olsrd.lua | 85 | 3643 | --[[
Luci statistics - olsrd plugin diagram definition
Copyright 2011 Manuel Munz <freifunk at somakoma dot 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/licen... | apache-2.0 |
maikuru23/darkstar | scripts/globals/items/plate_of_beef_paella_+1.lua | 36 | 1429 | -----------------------------------------
-- ID: 5973
-- Item: Plate of Beef Paella +1
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- HP 45
-- Strength 6
-- Attack % 19 Cap 95
-- Undead Killer 6
-----------------------------------------
require("scripts/globals/status");
---------------... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/mobskills/Fiery_Breath.lua | 4 | 1296 | ---------------------------------------------
-- Fiery Breath
--
-- Description: Deals Fire damage to enemies within a fan-shaped area.
-- Type: Breath
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: Unknown cone
-- Notes: Used only by Tiamat, Smok and Ildebrann
---------------------------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/heat_rod.lua | 41 | 1097 | -----------------------------------------
-- ID: 17071
-- Item: Heat Rod
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/spells/deodorize.lua | 10 | 1128 | -----------------------------------------
-- Spell: Deodorize
-- Lessens chance of being detected by smell.
-- Duration is random number between 30 seconds and 5 minutes
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Pradiulot.lua | 14 | 2398 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Pradiulot
-- Involved in Quest: Unforgiven
-- @zone 26
-- @pos -20.814 -22 8.399
-----------------------------------
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Tavnaz... | gpl-3.0 |
PouuleT/overthebox-feeds | mwan3otb-luci/files/usr/lib/lua/luci/model/cbi/mwan/rule.lua | 1 | 5118 | -- vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 :
-- ------ extra functions ------ --
function ruleCheck() -- determine if rules needs a proper protocol configured
uci.cursor():foreach("mwan3", "rule",
function (section)
local sourcePort = ut.trim(sys.exec("uci -q -p /var/state get mwan3." .. se... | gpl-3.0 |
UnknownX7/darkstar | 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 |
maikuru23/darkstar | scripts/zones/Norg/npcs/Marilleune.lua | 6 | 1387 | -----------------------------------
-- Area: Norg
-- NPC: Marilleune
-- Chocobo Vendor
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrad... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Upper_Delkfutts_Tower/Zone.lua | 12 | 2557 | -----------------------------------
--
-- Zone: Upper_Delkfutts_Tower (158)
--
-----------------------------------
package.loaded["scripts/zones/Upper_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/common");
require("scripts/globals/zone");
require("scripts/globals/settin... | gpl-3.0 |
SinaKK/telegram-bot | plugins/vote.lua | 4 | 2053 | local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()
end
function cl... | gpl-2.0 |
maikuru23/darkstar | scripts/zones/Southern_San_dOria/TextIDs.lua | 1 | 5670 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6412; -- Come back after sorting your inventory.
FULL_INVENTORY_AFTER_TRADE = 6414; -- Try trading again after sorting your inventory.
ITEM_OBTAINED = 6415; -- Obtained: <<<Unknown Parameter (Type: 80) 1>>><<<Possible Spec... | gpl-3.0 |
gaojinhua/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocos2d/OpenglConstants.lua | 100 | 27127 |
if not gl then return end
gl.GCCSO_SHADER_BINARY_FJ = 0x9260
gl._3DC_XY_AMD = 0x87fa
gl._3DC_X_AMD = 0x87f9
gl.ACTIVE_ATTRIBUTES = 0x8b89
gl.ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8b8a
gl.ACTIVE_PROGRAM_EXT = 0x8259
gl.ACTIVE_TEXTURE = 0x84e0
gl.ACTIVE_UNIFORMS = 0x8b86
gl.ACTIVE_UNIFORM_MAX_LENGTH = 0x8b87... | mit |
CuteOne/BadRotations | Rotations/Shaman/Elemental/Blank.lua | 1 | 8790 | local rotationName = "None" -- Change to name of profile listed in options drop down
---------------
--- Toggles ---
---------------
local function createToggles() -- Define custom toggles
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps b... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Ilrusi_Atoll/mobs/Cursed_Chest.lua | 17 | 1378 | -----------------------------------
-- Area: Illrusi atoll
-- NPC: Cursed Chest
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInit... | gpl-3.0 |
SinaKK/telegram-bot | plugins/setwhat.lua | 4 | 1393 | -- Create a new event!
-- Use !newevent eventname
local _file_values = './data/events.lua'
function read_file_values( )
local f = io.open(_file_values, "r+")
-- If file doesn't exists
if f == nil then
-- Create a new empty table
print ('Created value file '.._file_values)
serialize_to_file({}, _fil... | gpl-2.0 |
maikuru23/darkstar | scripts/globals/mobskills/Enervation.lua | 6 | 1111 | ---------------------------------------------
-- Enervation
--
-- Description: Lowers the defense and magical defense of enemies within range.
-- Type: Magical (Dark)
---------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/gl... | gpl-3.0 |
wland/quick3.6 | quick/bin/win32/lua/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 |
ArcboundWorker/microcosm | gamemodes/microcosm/entities/entities/tp8_tree.lua | 1 | 14288 | --[[
tp8_tree
Uses: It's a tree.
Grows on its own up until a certain global number.
History: Refactored version of the old micro_item_salainen_kookospahkina_puu (all 8 of them...)
Revised to work on a grid instead from 3p8_kookospahkina_puu
Memes:
Todo: ctrl+f TODO
also, if want change fruit / ... | mit |
maikuru23/darkstar | scripts/globals/items/bowl_of_sunset_soup.lua | 35 | 1498 | -----------------------------------------
-- ID: 4341
-- Item: bowl_of_sunset_soup
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 3
-- Vitality -1
-- HP Recovered While Healing 5
-- Ranged Accuracy % 9 (cap 20)
-----------------------------------------
require("scripts/... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua | 17 | 2378 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Dkhaaya
-- Type: Standard NPC
-- @pos -73.212 -1 -5.842 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitem... | gpl-3.0 |
oanastratulat/Task | share/lua/playlist/dailymotion.lua | 5 | 3037 | --[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
$Id$
Copyright © 2007-2011 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versio... | lgpl-2.1 |
maikuru23/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 |
wangqi/gameserver | server/src/gensrc/lua/BceLoginReady_pb.lua | 1 | 1025 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BceLoginReady_pb', package.seeall)
local BCELOGINREADY = protobuf.Descriptor();
local BCELOGINREADY_CODE_FIELD = protobuf.FieldDescriptor();
BCELOGINREADY_CODE_FIELD.name = "code"
BCELOGINREADY_CODE_FIELD.full_name = ".com.xinqihd... | apache-2.0 |
maikuru23/darkstar | scripts/zones/Jugner_Forest/npcs/Signpost.lua | 10 | 2850 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Signpost
-- Involved in Quest: Grimy Signposts
-------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/quests");
-----------------------------------
-- onTrade Action
----------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Komalata.lua | 17 | 1572 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Komalata
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
------------------------... | gpl-3.0 |
cyberbeat/mysql-gui-tools | common/source/lua/RdbmsInfoGeneric.lua | 1 | 5114 | -- ----------------------------------------------------------------------------------------
-- Copyright (C) 2004 MySQL AB
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either versi... | gpl-2.0 |
FusionSP/external_chromium_org_third_party_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
wland/quick3.6 | quick/bin/mac/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 |
Coethium/server-minetestforfun | mods/columnia/init.lua | 8 | 20751 | -- Minetest 0.4 mod: columnia by Glunggi(former Stairs Copyright by(C) 2011-2012 Kahrl <kahrl@gmx.net> Copyright (C) 2011-2012 celeron55, Perttu Ahola)
-- See README.txt for licensing and other information.
columnia = {}
-- The Blueprint
minetest.register_craftitem("columnia:blueprint", {
description = "Column Bluep... | unlicense |
Coethium/server-minetestforfun | mods/soundset/init.lua | 5 | 6485 | minetest.log("action","[mod soundset] Loading...")
soundset = {}
soundset.file = minetest.get_worldpath() .. "/sounds_config.txt"
soundset.gainplayers = {}
local tmp = {}
tmp["music"] = {}
tmp["ambience"] = {}
tmp["other"] = {}
local function save_sounds_config()
local input = io.open(soundset.file, "w")
if input ... | unlicense |
Tatuy/UAServer | data/actions/scripts/uatibia/city.lua | 1 | 2302 | function onUse(cid, item, frompos, item2, topos)
if item.uid == 2100 then
queststatus = getPlayerStorageValue(cid,2100)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"You have found a mysterious Book.")
fetish_uid = doPlayerAddItem(cid,2325,1)
doSetItemSpe... | gpl-2.0 |
maikuru23/darkstar | scripts/zones/King_Ranperres_Tomb/npcs/_5a0.lua | 4 | 2126 | -----------------------------------
-- Area: King Ranperre's Tomb
-- DOOR: _5a0 (Heavy Stone Door)
-- @pos -39.000 4.823 20.000 190
-----------------------------------
package.loaded["scripts/zones/King_Ranperres_Tomb/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
re... | gpl-3.0 |
maikuru23/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 |
maikuru23/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Laimeve_RK.lua | 3 | 2955 | -----------------------------------
-- 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 |
neuromorphic-paris/tutorials | basics/4_atis_event_stream_viewer/premake4.lua | 1 | 1381 | local qt = require 'third_party/chameleon/qt'
solution 'atis_event_stream_viewer'
configurations {'release', 'debug'}
location 'build'
project 'atis_event_stream_viewer'
kind 'ConsoleApp'
language 'C++'
location 'build'
files {'source/*.qml', 'source/*.cpp'}
files(qt... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Cape_Teriggan/npcs/Dultwa_IM.lua | 14 | 3310 | -----------------------------------
-- Area: Cape Teriggan
-- NPC: Dulwa, I.M.
-- Type: Border Conquest Guards
-- @pos 119 0 282 113
-----------------------------------
package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
require("script... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Northern_San_dOria/npcs/Tavourine.lua | 17 | 1973 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Tavourine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Northern_San_dOria/TextIDs");
require("scripts/glob... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/spells/bluemagic/exuviation.lua | 4 | 1341 | -----------------------------------------
-- Spell: Exuviation
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------------------... | gpl-3.0 |
robooo/luarocks | src/luarocks/fs.lua | 9 | 2139 |
--- Proxy module for filesystem and platform abstractions.
-- All code using "fs" code should require "luarocks.fs",
-- and not the various platform-specific implementations.
-- However, see the documentation of the implementation
-- for the API reference.
local pairs = pairs
local fs = {}
package.loaded["luarocks.f... | mit |
UnknownX7/darkstar | scripts/globals/weaponskills/stringing_pummel.lua | 19 | 1733 | -----------------------------------
-- Stringing Pummel
-- Sword weapon skill
-- Skill Level: N/A
-- Delivers a sixfold attack. Damage varies with TP. Kenkonken: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Puppetmaster) quest.
-- Aligned with the Shadow Gorget, Soil Gorget... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Lufaise_Meadows/mobs/Padfoot.lua | 18 | 2228 | -----------------------------------
-- Area: Lufaise Meadows
-- Mob: Padfoot
-- @pos 260.445 -1.761 -27.862 24 (True Copy) 16875578
-- @pos 412.447 -0.057 -200.161 24 (Fake Copies) 16875615
-- @pos -378.950 -15.742 144.215 24 || 16875703
-- @pos -43.689 0.487 -328.028 24 || 16875552
-- @pos -1... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/mobskills/Sand_Blast.lua | 24 | 1154 | ---------------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Southern_San_dOria/npcs/Lusiane.lua | 17 | 1962 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Lusiane
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
requi... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/himesama_rice_ball.lua | 51 | 1477 | -----------------------------------------
-- ID: 5928
-- Item: Himesama Rice Ball
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- HP +25
-- Dexterity +4
-- Vitality +4
-- Character +4
-- Effect with enhancing equipment (Note: these are latents on gear with the effect)
-- Attack +60
-- De... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Craigine_RK.lua | 8 | 2951 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Craigine, R.K.
-- Border Conquest Guards
-- @pos -599.903 -41.441 165.776 118
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conqu... | gpl-3.0 |
allwenandashi/a | plugins/azan.lua | 2 | 3110 | do
function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
function get_latlong(area)
local api = base_api .. "/geocode/json?"
local parameters = "address=".. (URL.escape(area) or ... | gpl-2.0 |
Tatuy/UAServer | data/actions/scripts/uatibia/liquids/strong_health.lua | 2 | 1106 | local MIN = 200
local MAX = 400
local EMPTY_POTION = 7634
local exhaust = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, getConfigInfo('timeBetweenExActions'))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return F... | gpl-2.0 |
PouuleT/overthebox-feeds | mwan3otb-luci/files/usr/lib/lua/luci/model/cbi/mwan/policy.lua | 1 | 3188 | -- vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 :
-- ------ extra functions ------ --
function policyCheck() -- check to see if any policy names exceed the maximum of 15 characters
uci.cursor():foreach("mwan3", "policy",
function (section)
if string.len(section[".name"]) > 15 then
nameTo... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Claymore.lua | 17 | 1498 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Animated Claymore
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
function onMobEn... | gpl-3.0 |
DengSir/tdBattlePetScript | Core/Prototype/Plugin.lua | 1 | 2333 | --[[
Plugin.lua
@Author : DengSir (tdaddon@163.com)
@Link : https://dengsir.github.io
]]
local ns = select(2, ...)
local L = ns.L
local UI = ns.UI
local Addon = ns.Addon
local ScriptManager = ns.ScriptManager
local PluginManager = ns.PluginManager
local PluginPr... | mit |
UnknownX7/darkstar | scripts/zones/Kazham-Jeuno_Airship/Zone.lua | 32 | 1399 | -----------------------------------
--
-- Zone: Kazham-Jeuno_Airship
--
-----------------------------------
-----------------------------------
-- onInitialize
-----------------------------------
function onInitialize(zone)
end;
-----------------------------------
-- onZoneIn
-----------------------------------
fu... | gpl-3.0 |
wland/quick3.6 | 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 |
nagadomi/kaggle-cifar10-torch7 | predict_averaging.lua | 4 | 2642 | require 'cutorch'
require 'cunn'
require './SETTINGS'
require './lib/data_augmentation'
require './lib/preprocessing'
require './nin_model.lua'
-- multiple model averaging
-- (same trainset, different initial weights, different minibatch order)
local function predict(file, models, params, test_x)
local BATCH_SIZE ... | mit |
Coethium/server-minetestforfun | minetestforfun_game/mods/farming/beanpole.lua | 7 | 4617 | --[[
All textures by
(C) Auke Kok <sofar@foo-projects.org>
CC-BY-SA-3.0
]]
local S = farming.intllib
-- beans
minetest.register_craftitem("farming:beans", {
description = S("Green Beans"),
inventory_image = "farming_beans.png",
on_use = minetest.item_eat(1),
on_place = function(itemstack, placer, pointed_thin... | unlicense |
maikuru23/darkstar | scripts/zones/Port_Windurst/npcs/Machu-Kuchu.lua | 34 | 1123 | -----------------------------------
-- Area: Port Windurst
-- Machu-Kuchu
-- Warps players to Windurst Walls
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Windurst/TextIDs");
------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Port_Windurst/npcs/Dehn_Harzhapan.lua | 38 | 1037 | -----------------------------------
-- Area: Port Windurst
-- NPC: Dehn Harzhapan
-- Type: Standard NPC
-- @zone: 240
-- @pos -7.974 -7 152.633
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/chunk_of_sweet_lizard.lua | 12 | 1408 | -----------------------------------------
-- ID: 5738
-- Item: chunk_of_sweet_lizard
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 5
-- MP 5
-- Dexterity 1
-- hHP +2
-- hMP +2
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/Suzy.lua | 1 | 14492 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local count = {}
local transfer = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
... | gpl-2.0 |
maikuru23/darkstar | scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua | 7 | 2649 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Treasure Chest
-- @zone 143
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("s... | gpl-3.0 |
emmericp/MoonGen | interface/threads/timestamp.lua | 4 | 2174 | local hist = require "histogram"
local mg = require "moongen"
local timer = require "timer"
local ts = require "timestamping"
local Flow = require "flow"
local thread = { flows = {} }
function thread.prepare(flows, devices)
for _,flow in ipairs(flows) do
if flow:option "timestamp" then
local rx = f... | mit |
maikuru23/darkstar | scripts/globals/items/slice_of_ziz_meat.lua | 18 | 1283 | -----------------------------------------
-- ID: 5581
-- Item: Slice of Ziz Meat
-- Effect: 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +4
-- Intelligence -6
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
telemachus/split | test/test-empty-fields.lua | 2 | 1170 | #!/usr/bin/env lua
local t = require 'tapered'
package.path = '../src/?.lua;' .. package.path
local split = require 'split'.split
local s, got
s = ',foo,bar'
got = split(s, ',')
t.is(#got, 3, "split(',foo,bar', ',') should have three fields.")
t.is(got[1], '', 'First item should be empty field.')
t.is(got[2], 'foo', ... | bsd-3-clause |
maikuru23/darkstar | scripts/zones/Altar_Room/Zone.lua | 4 | 1276 | -----------------------------------
--
-- Zone: Altar_Room (152)
--
-----------------------------------
package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Altar_Room/TextIDs");
-----------------------------------
-- onInitialize
----------... | gpl-3.0 |
cuiqingwei1981/openwrt | feeds/luci/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua | 55 | 8246 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2010-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | gpl-2.0 |
UnknownX7/darkstar | scripts/globals/items/plate_of_patlican_salata_+1.lua | 12 | 1365 | -----------------------------------------
-- ID: 5583
-- Item: plate_of_patlican_salata_+1
-- Food Effect: 4Hrs, All Races
-----------------------------------------
-- Agility 5
-- Vitality -2
-- Evasion +7
-- hHP +3
-----------------------------------------
require("scripts/globals/status");
------------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Port_Bastok/npcs/Aishah.lua | 37 | 1043 | -----------------------------------
-- Area: Port Bastok
-- NPC: Aishah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/spells/temper.lua | 27 | 1135 | -----------------------------------------
--
-- Spell: Temper
--
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,targe... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Northern_San_dOria/npcs/Icoua.lua | 14 | 1051 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Icoua
-- Type: Standard NPC
-- @zone 231
-- @pos 87.719 -1 9.256
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-------------... | gpl-3.0 |
maikuru23/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 |
UnknownX7/darkstar | scripts/zones/RuAun_Gardens/mobs/Groundskeeper.lua | 14 | 1481 | -----------------------------------
-- Area: RuAun Gardens
-- MOB: Groundskeeper
-- Note: Place holder Despot
-----------------------------------
require("scripts/zones/RuAun_Gardens/MobIDs");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobDeath
--------------------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Windurst_Waters/npcs/Zelala.lua | 38 | 1035 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Zelala
-- Type: Map Marker
-- @zone: 238
-- @pos 169.855 -1.295 -3.238
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
--------------... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/spells/cryohelix.lua | 4 | 1674 | --------------------------------------
-- Spell: Cryohelix
-- Deals ice damage that gradually reduces
-- a target's HP. Damage dealt is greatly affected by the weather.
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/ma... | gpl-3.0 |
UnknownX7/darkstar | scripts/globals/items/broiled_trout.lua | 12 | 1385 | -----------------------------------------
-- ID: 4587
-- Item: Broiled Trout
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Dexterity 4
-- Mind -1
-- Ranged ATT % 14 (cap 55)
-----------------------------------------
require("scripts/globals/status");
-----------------------------------... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Abyssea-Konschtat/npcs/qm20.lua | 10 | 1349 | -----------------------------------
-- Zone: Abyssea-Konschtat
-- NPC: qm20 (???)
-- Spawns Siranpa-Kamuy
-- @pos ? ? ? 15
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onTrade Action
-----------------------------------
function onTrade(player,npc,trade... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/La_Theine_Plateau/npcs/Vicorpasse.lua | 14 | 2267 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Vicorpasse
-- Involved in Mission: The Rescue Drill
-- @pos -344 37 266 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems"... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Lebros_Cavern/IDs.lua | 67 | 1719 | Lebros = {
text = {
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6376, -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6379, -- Obtained: <item>
GIL_OBTAINED = 6380, -- Obtained <number> gil
KEYITEM_OBTAINED = 6382, -- Obtained... | gpl-3.0 |
sarumjanuch/prosody | plugins/mod_s2s_auth_certs.lua | 3 | 1659 | module:set_global();
local cert_verify_identity = require "util.x509".verify_identity;
local NULL = {};
local log = module._log;
module:hook("s2s-check-certificate", function(event)
local session, host, cert = event.session, event.host, event.cert;
local conn = session.conn:socket();
local log = session.log or log... | mit |
maikuru23/darkstar | scripts/zones/PsoXja/npcs/_i98.lua | 9 | 1528 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/RuLude_Gardens/npcs/Maat.lua | 1 | 8946 | -----------------------------------
-- Area: Ru'Lude Gardens
-- NPC: Maat
-- Starts and Finishes Quest: Limit Break Quest 1-5
-- Involved in Quests: Beat Around the Bushin
-- @zone 243
-- @pos 8 3 118
-----------------------------------
package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil;
package.loa... | gpl-3.0 |
rm-code/logivi | lib/graphoon/Graphoon/Node.lua | 2 | 3909 | local current = (...):gsub('%.[^%.]+$', '');
local Node = {};
local FORCE_SPRING = 0.005;
local FORCE_CHARGE = 200;
local FORCE_MAX = 4;
local NODE_SPEED = 128;
local DAMPING_FACTOR = 0.95;
local DEFAULT_MASS = 3;
---
-- @param id - A unique id which will be used to reference this node.
-- @param x - The x coordi... | mit |
UnknownX7/darkstar | 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 |
MrClash/monster | plugins/info.lua | 4 | 8866 | local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کاربر ('..name..') به '..value..' تغییر داده شد ', ok_cb, true)... | gpl-2.0 |
hmon/otouto | plugins/moderation.lua | 1 | 8752 | -- So this plugin is an attempt to port @CIS_Bot's Liberbot moderation capabilities to the otouto base. By the time this code is public, @CIS_Bot will be running on pure otouto code. ¡Viva la Confederación!
--[[
This works using the settings in the "moderation" section of config.lua.
"realm" should be set to the grou... | gpl-2.0 |
koron/redis-qdigest | lua/qdigest_quantile.lua | 1 | 1556 | --[[
USAGE:
redis-cli --eval qd_quantile.lua {name} , {q}
* `name` - Name of a qdigest instance: used as a redis key.
* `q` - Parameter of quantile: 0.95 means 95%
--]]
local function get_data(key)
return redis.call('HGETALL', key)
end
local function isLeaf(data, id)
return id >= data.capacity
end
lo... | mit |
wangqi/gameserver | server/src/gensrc/lua/BseGuildApply_pb.lua | 1 | 1583 | -- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseGuildApply_pb', package.seeall)
local BSEGUILDAPPLY = protobuf.Descriptor();
local BSEGUILDAPPLY_RESULT_FIELD = protobuf.FieldDescriptor();
local BSEGUILDAPPLY_MESSAGE_FIELD = protobuf.FieldDescriptor();
BSEGUILDAPPLY_RESULT_FI... | apache-2.0 |
maikuru23/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longbow.lua | 17 | 1484 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Animated Longbow
-----------------------------------
require("scripts/globals/status");
require("scripts/zones/Dynamis-Xarcabard/TextIDs");
-----------------------------------
-- onMobEngaged
-----------------------------------
funct... | gpl-3.0 |
maikuru23/darkstar | scripts/globals/items/remedy.lua | 19 | 1251 | -----------------------------------------
-- ID: 4155
-- Item: Remedy
-- Item Effect: This potion remedies status ailments.
-- Works on paralysis, silence, blindness, poison, and disease.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Lower_Jeuno/npcs/Rhimonne.lua | 37 | 1153 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Rhimonne
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------... | gpl-3.0 |
timmoorhouse/yaccos | usr/lib/bt/tb.lua | 1 | 1284 |
local oo = require("oo")
local bt = require("bt")
local log = require("log")
local nt = require("nt")
local facing = require("facing")
local tb = {}
-- A collection of common turtle behaviours
local function fuel(v)
-- Fuel needed to traverse vector
return math.abs(v.x) + math.abs(v.y) + math... | mit |
Whit3Tig3R/123bot | 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 |
Tatuy/UAServer | data/npc/FORGOTTENSERVER-ORTS/scripts/A Dead Bureaucrat1.lua | 1 | 3806 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
wland/quick3.6 | cocos/scripting/lua-bindings/auto/api/EaseOut.lua | 7 | 1073 |
--------------------------------
-- @module EaseOut
-- @extend EaseRateAction
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action and the rate parameter.<br>
-- param action The pointer of the inner action.<br>
-- param rate The value of the rate parameter.<br>
-- re... | mit |
kararahmed/karar.dev | plugins/lock_fwd.lua | 11 | 1683 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : Aziz < @TH3_GHOST >
# our channel: @DevPointTeam
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
do... | gpl-2.0 |
montyhall/LeafCount | CNN/train.lua | 1 | 8308 | --
-- User: peyman
-- Date: 11/1/16
-- Time: 11:33 PM
----------------------------------------------------------------------
-- Training
----------------------------------------------------------------------
require 'torch' -- torch
require 'xlua' -- xlua provides useful tools, like progress bars
require 'optim'... | gpl-3.0 |
maikuru23/darkstar | scripts/zones/Fort_Ghelsba/npcs/Treasure_Chest.lua | 7 | 2558 | -----------------------------------
-- Area: Fort Ghelsba
-- NPC: Treasure Chest
-- @zone 141
-----------------------------------
package.loaded["scripts/zones/Fort_Ghelsba/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require("scripts/z... | gpl-3.0 |
kaeza/minetest_game | mods/xpanes/init.lua | 14 | 4717 |
local function is_pane(pos)
return minetest.get_item_group(minetest.get_node(pos).name, "pane") > 0
end
local function connects_dir(pos, name, dir)
local aside = vector.add(pos, minetest.facedir_to_dir(dir))
if is_pane(aside) then
return true
end
local connects_to = minetest.registered_nodes[name].connects_to... | lgpl-2.1 |
maikuru23/darkstar | scripts/zones/Port_Bastok/npcs/Valah_Molkot.lua | 35 | 3185 | -----------------------------------
-- Area: Port Bastok
-- NPC: Valah Molkot
-- Starts and Finishes Quest: A Lady's Heart
-- @zone 236
-- @pos 59 8 -221
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
UnknownX7/darkstar | scripts/zones/Northern_San_dOria/npcs/Vamorcote.lua | 13 | 2690 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Vamorcote
-- Starts and Finishes Quest: The Setting Sun
-- @zone 231
-- @pos -137.070 10.999 161.855
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Northern_San_d... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.