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
okwinza/PartyAbilityBarsLegion
libs/Spells/spell_lib_hunter.lua
2
7595
local name, SPELLDB = ... SPELLDB.HUNTER = {} SPELLDB.HUNTER.BEASTMASTERY = {} SPELLDB.HUNTER.MARKSMANSHIP = {} SPELLDB.HUNTER.SURVIVAL = {} SPELLDB.HUNTER.BEASTMASTERY.spells = { 208683, 186257 --[[Aspect of the Cheetah--]], 186265 --[[Aspect of the Turtle--]], 193530 --[[Aspect of the Wild--]], ...
gpl-3.0
firebaugh/Digitowls
Player/Config/Config_OP_Robot.lua
4
2825
module(..., package.seeall); require('vector') platform = {}; platform.name = 'darwinop' -- Device Interface Libraries dev = {}; dev.body = 'DarwinOPBody'; dev.camera = 'darwinCam'; dev.kinematics = 'DarwinOPKinematics'; --dev.comm='NSLComm'; dev.comm='NullComm'; dev.monitor_comm = 'NSLMonitorCommWired'; dev.game_co...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Oldton_Movalpolos/TextIDs.lua
15
1146
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6384; -- Obtained: <item>. GIL_OBTAINED = 6385; -- Obtained <number> gil. KEYITEM_OBTAINED = 6387; -- Obtained...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Boneyard_Gully/npcs/_081.lua
12
1433
----------------------------------- -- Area: Boneyard_Gully -- NPC: _081 (Dark Miasma) ----------------------------------- package.loaded["scripts/zones/Boneyard_Gully/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/quests"); require("scripts/globals/miss...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Apollyon/mobs/Barometz.lua
7
1266
----------------------------------- -- Area: Apollyon NE -- NPC: Barometz ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ---------------------------------...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Riverne-Site_B01/Zone.lua
13
1784
----------------------------------- -- -- Zone: Riverne-Site_B01 -- ----------------------------------- package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Riverne-Site_B01/TextIDs"); require("scripts/globals/status"); require("scripts/globals/se...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Den_of_Rancor/npcs/_4g5.lua
27
2382
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (NE) -- @pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/TextIDs")...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Heavens_Tower/npcs/_6q2.lua
13
3627
----------------------------------- -- Area: Heaven's Tower -- NPC: Vestal Chamber (chamber of the Star Sibyl) -- @pos 0.1 -49 37 242 ----------------------------------- package.loaded["scripts/zones/Heavens_Tower/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts...
gpl-3.0
vinzenz/premake
tests/test_platforms.lua
7
1571
-- -- tests/test_platforms.lua -- Automated test suite for platform handling functions. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.platforms = { } local testmap = { Native="Win32", x32="Win32", x64="x64" } local sln, r function T.platforms.setup() sln = solution "MySolution" configura...
gpl-2.0
ychoucha/minetest-game-mineclone
mods/WorldEdit/worldedit_limited/init.lua
26
3114
do return end do local MAX_VOLUME = 30 * 30 * 30 local we = worldedit local volume = we.volume local safewrap = function(func) return function(pos1, pos2, ...) if validbox(pos1, pos2) then return func(pos1, pos2, ...) end return 0, pos1, pos2 end end local validbox = function(pos1, pos2) tpos...
lgpl-2.1
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/Hellsnap.lua
31
1162
--------------------------------------------------- -- Hellsnap -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- function onMobSkillCheck(target,m...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Qufim_Island/npcs/Trodden_Snow.lua
13
5395
----------------------------------- -- Area: Qufim Island -- NPC: Trodden Snow -- Mission: ASA - THAT_WHICH_CURDLES_BLOOD -- Mission: ASA - SUGAR_COATED_DIRECTIVE -- @zone 126 -- @pos -19 -17 104 ----------------------------------- package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil; ----------------------------...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player/HeadFSM/NaoGoalie/HeadFSM.lua
6
1142
module(..., package.seeall); require('Body') require('fsm') require('headIdle') require('headStart') require('headReady') require('headReadyLookGoal') require('headScan') require('headTrack') require('headLookGoal') require('headSweep') sm = fsm.new(headIdle); sm:add_state(headStart); sm:add_state(headReady); sm:add_...
gpl-3.0
firebaugh/Digitowls
Player/HeadFSM/NaoGoalie/HeadFSM.lua
6
1142
module(..., package.seeall); require('Body') require('fsm') require('headIdle') require('headStart') require('headReady') require('headReadyLookGoal') require('headScan') require('headTrack') require('headLookGoal') require('headSweep') sm = fsm.new(headIdle); sm:add_state(headStart); sm:add_state(headReady); sm:add_...
gpl-3.0
martin-traverse/premake-core
tests/testfx.lua
9
10494
-- -- tests/testfx.lua -- Automated test framework for Premake. -- Copyright (c) 2008-2015 Jason Perkins and the Premake project -- local p = premake -- -- Define a namespace for the testing functions -- test = {} test.suppressed = {} -- -- Capture stderr for testing. -- local stderr_capture = nil local mt...
bsd-3-clause
april-org/april-ann
packages/ann/autoencoders/test/test.lua
3
8265
m1 = ImageIO.read(string.get_path(arg[0]) .. "digits.png"):to_grayscale():invert_colors():matrix() bunch_size = 32 dropout_factor = 0.5 dropout_random = random(123242) train_input = dataset.matrix(m1, { patternSize = {16,16}, offset = {0,0}, numSteps = {80,10}, ...
gpl-3.0
Kazuo256/luxproject
lib/lux/info.lua
1
1452
--[[ -- -- Copyright (c) 2013-2017 Wilson Kazuo Mizutani -- -- 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, mo...
mit
satanevil/hellbot
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
permag-ir/permag.ir
libs/url.lua
31
8003
-- کد های پایین در ربات نشان داده نمیشوند -- http://permag.ir -- @permag_ir -- @permag_bots -- @permag local string = require("string") local base = _G local table = require("table") local Url={} Url._VERSION = "URL 1.0.2" function Url.escape(s) return string.gsub(s, "([^A-Za-z0-9_])", function(c) return...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Silver_Knife/Zone.lua
19
1059
----------------------------------- -- -- Zone: Silver Knife -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Silver_Knife/TextIDs"] = nil; require("scripts/zones/Silver_Knife/TextIDs"); ----------------------------------- -- onInitialize -------------------...
gpl-3.0
aStonedPenguin/fprp
gamemode/modules/positions/sv_spawnpos.lua
1
1739
local function SetSpawnPos(ply, args) if not ply:hasfprpPrivilege("rp_commands") then fprp.notify(ply, 1, 2, fprp.getPhrase("need_admin", "setspawn")); return "" end local pos = string.Explode(" ", tostring(ply:GetPos())); local t for k,v in pairs(RPExtraTeams) do if args == v.command then t = k fprp...
mit
Igalia/snabb
src/lib/protocol/ipv6.lua
7
5307
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local htons, ntohs = lib.htons, lib.ntohs local AF_INET6 = 10 local INET6_ADDRSTRLEN = 48 ...
apache-2.0
april-org/april-ann
TEST/xor/xor-MLP-dot-product-action-transpose-weights.lua
3
4626
learning_rate = 0.4 momentum = 0.1 weight_decay = 1e-05 semilla = 1234 aleat = random(semilla) bunch_size = tonumber(arg[1]) or 64 delta = 1e-05 initial_result = { 0.18666581809521, 0.16942968964577, 0.17109067738056, 0.14423334598541 } final_result = { 0.0135539099, ...
gpl-3.0
zfm888/bazi_server
app/v1/paiPan/index.lua
1
4882
--[[ 八字信息获取接口 --]] local base = require "resty.core.base" local format = string.format local decode = WEBSERVER_formatter.decode local json = WEBSERVER_formatter.json local empty = WEBSERVER_table.empty local split = WEBSERVER_str.split local bazi = require "bazi" local function strToTimetable(timeStr) local a =...
gpl-3.0
Xamla/xamla_egomo
egomo_tools/lua/robot_control.lua
1
15903
--- A module for moving the robot with ROS and MoveIT -- @classmod RobotControl local function checkModuleInstalled(name) if package.loaded[name] then -- package already loaded, so it exists return true else for _, searcher in ipairs(package.searchers or package.loaders) do local loader = searcher(n...
bsd-3-clause
harveyhu2012/luci
modules/admin-full/luasrc/model/cbi/admin_network/iface_add.lua
79
3091
--[[ LuCI - Lua Configuration Interface Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Windurst_Waters/npcs/Maysoon.lua
25
2162
----------------------------------- -- Area: Windurst Waters -- NPC: Maysoon -- Starts and Finishes Quest: Hoist the Jelly, Roger -- Involved in Quests: Cook's Pride -- @zone 238 -- @pos -105 -2 69 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player.old/World/World.lua
4
6476
module(..., package.seeall); require('PoseFilter'); require('Filter2D'); require('Body'); require('vector'); require('util'); require('vcm'); require('gcm'); require 'mcm' ballFilter = Filter2D.new(); ball = {}; ball.t = 0; --Detection time ball.x = 1.0; ball.y = 0; ball.vx = 0; ball.vy = 0; pose = {}; pose.x = 0...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Temenos/npcs/Armoury_Crate.lua
14
8397
----------------------------------- -- Area: Temenos -- NPC: Armoury Crate ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Temenos/TextIDs"); re...
gpl-3.0
april-org/april-ann
packages/bayesian/lua_src/priors.lua
3
4276
get_table_from_dotted_string("bayesian", true) ------------------------------------------------------------------------------ local make_value = function(value) return { t="value", value=value } end local make_dist = function(dist, arg) return { t="dist", dist=dist, arg=arg } end local make_transform = function...
gpl-3.0
beforan/r-dailyprogrammer
2014-12-31/Game.lua
1
1987
local Game = function () local game = {} local targetDie, scoringDice, score, initd local init = function () --first time initialisation --define new functions to be exposed now that it's safe local roll = function () targetDie:roll() for _, d in ipairs(scoringDice) do ...
mit
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/Tebbad_Wing.lua
33
1231
--------------------------------------------- -- Tebbad Wing -- -- Description: A hot wind deals Fire damage to enemies within a very wide area of effect. Additional effect: Plague -- Type: Magical -- Utsusemi/Blink absorb: Wipes shadows -- Range: 30' radial. -- Notes: Used only by Tiamat, Smok and Ildebrann ----...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/battlefield_elegy.lua
3
1706
----------------------------------------- -- Spell: Battlefield Elegy ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,tar...
gpl-3.0
martin-traverse/premake-core
tests/api/test_register.lua
7
1704
-- -- tests/api/test_register.lua -- Tests the new API registration function. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local suite = test.declare("api_register") local api = premake.api -- -- Setup and teardown -- function suite.teardown() testapi = nil end -- -- Verify that the funct...
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/zones/Beaucedine_Glacier_[S]/npcs/Moana_CA.lua
13
1079
----------------------------------- -- Area: Beaucedine Glacier (S) -- NPC: Moana, C.A. -- Type: Campaign Arbiter -- @zone: 136 -- @pos -27.237 -60.888 -48.111 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier_[S]/Te...
gpl-3.0
harveyhu2012/luci
applications/luci-splash/luasrc/model/cbi/splash/splash.lua
52
3212
--[[ LuCI - Lua Configuration Interface 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 ]]-- require("luci.model.uci") m = Map("luci_splash", translate...
apache-2.0
martin-traverse/premake-core
src/actions/vstudio/vs2010_vcxproj_user.lua
17
3269
-- -- vs2010_vcxproj_user.lua -- Generate a Visual Studio 201x C/C++ project .user file -- Copyright (c) 2011-2015 Jason Perkins and the Premake project -- local p = premake local m = p.vstudio.vc2010 -- -- Generate a Visual Studio 201x C++ user file. -- m.elements.user = function(cfg) return { ...
bsd-3-clause
justincormack/snabbswitch
src/lib/protocol/tcp.lua
7
5100
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum local ntohs, htons, ntohl, htonl = lib.ntohs, lib.htons, lib.ntohl, lib.htonl local tcp = subClass(header) -- Class variab...
apache-2.0
mahdib9/kp
plugins/plugins.lua
325
6164
do -- Returns the key (index) in the config.enabled_plugins table local function plugin_enabled( name ) for k,v in pairs(_config.enabled_plugins) do if name == v then return k end end -- If not found return false end -- Returns true if file exists in plugins folder local function plugin_exists( ...
gpl-2.0
AmirPGA/AmirPGA
plugins/banhammer.lua
27
10471
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
shadow0162/countly-sdk-cocos2d-x
samples/HelloPluginsLua/src/TestFBShareScene.lua
6
13701
local visibleSize = cc.Director:getInstance():getVisibleSize() local origin = cc.Director:getInstance():getVisibleOrigin() local posBR = cc.p(origin.x + visibleSize.width, origin.y) local TestFBShareScene = class("TestFBShareScene",function() return cc.Scene:create() end) function TestFBShareScene.create() lo...
mit
Kosmos82/kosmosdarkstar
scripts/globals/items/marinara_pizza.lua
18
1599
----------------------------------------- -- ID: 5743 -- Item: marinara_pizza -- Food Effect: 3hours, All Races ----------------------------------------- -- Health Points 20 -- Attack +20% (cap 50 @ 250 base attack) -- Accuracy +10% (54) -- Undead Killer ----------------------------------------- require("scripts/globa...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Hall_of_Transference/Zone.lua
5
6470
----------------------------------- -- -- Zone: Hall_of_Transference -- ----------------------------------- package.loaded["scripts/zones/Hall_of_Transference/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/teleports"); require("scripts/globals/keyitem...
gpl-3.0
martin-traverse/premake-core
tests/base/test_context.lua
17
1060
-- -- tests/base/test_context.lua -- Test suite for the configuration context API. -- Copyright (c) 2012-2014 Jason Perkins and the Premake project -- local suite = test.declare("context") local context = premake.context local configset = premake.configset local field = premake.field -- -- Setup and teardown --...
bsd-3-clause
Humbedooh/ponymail
site/api/thread.lua
2
4563
--[[ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use ...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Upper_Jeuno/npcs/Laila.lua
6
10576
----------------------------------- -- Area: Upper Jeuno -- NPC: Laila -- Type: Job Quest Giver -- @zone: 244 -- @pos -54.045 -1 100.996 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) --TODO-- -- make sure the surrounding npcs react to the player accordingly after each quest. There are a few event I...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Chateau_dOraguille/npcs/Perfaumand.lua
13
1712
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Perfaumand -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -39 -3 69 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/abilities/devotion.lua
44
1670
----------------------------------- -- Ability: Devotion -- Sacrifices HP to grant a party member the same amount in MP. -- Obtained: White Mage Level 75 -- Recast Time: 0:10:00 -- Duration: Instant -- Target: Party member, cannot target self. ----------------------------------- require("scripts/globals/status"); requ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Al_Zahbi/npcs/Macici.lua
53
2304
----------------------------------- -- Area: Al Zahbi -- NPC: Macici -- Type: Smithing Normal/Adv. Image Support -- @pos -35.163 -1 -31.351 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scr...
gpl-3.0
premake/premake-dlang
tools/dmd.lua
7
8729
-- -- d/tools/dmd.lua -- Provides dmd-specific configuration strings. -- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project -- local tdmd = {} local project = premake.project local config = premake.config local d = premake.modules.d -- -- Set default tools -- tdmd.gcc = {} tdmd.gcc.dc...
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/zones/Gustav_Tunnel/mobs/Goblin_Mercenary.lua
6
1043
---------------------------------- -- Area: Gustav Tunnel -- MOB: Goblin Mercenary -- Note: Place holder Wyvernpoacher Drachlox ----------------------------------- require("scripts/globals/groundsofvalor"); require("scripts/zones/Gustav_Tunnel/MobIDs"); ----------------------------------- -- onMobDeath -------------...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Port_Jeuno/npcs/Squintrox_Dryeyes.lua
13
4859
----------------------------------- -- Area: Port Jeuno -- NPC: Squintrox Dryeyes -- Type: Addon Mission Merchant -- @pos -100.071 -1 11.869 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); re...
gpl-3.0
AmirPGA/AmirPGA
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
mahdib9/kp
plugins/wiki.lua
735
4364
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Attohwa_Chasm/npcs/qm1.lua
13
1613
----------------------------------- -- Area: Attohwa Chasm -- NPC: ??? (qm1) -- @pos -402.574 3.999 -202.750 7 ----------------------------------- package.loaded["scripts/zones/Attohwa_Chasm/TextIDs"] = nil; ------------------------------------- require("scripts/zones/Attohwa_Chasm/TextIDs"); --------------------...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Windurst_Waters/npcs/Sohdede.lua
13
1054
----------------------------------- -- Area: Windurst Waters -- NPC: Sohdede -- Type: Standard NPC -- @zone: 238 -- @pos -60.601 -7.499 111.639 -- -- Auto-Script: Requires Verification (Verfied By Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------...
gpl-3.0
thing-nacho/slua
build/lsqlite3-master/tests-sqlite3.lua
12
19268
--[[-------------------------------------------------------------------------- Author: Michael Roth <mroth@nessie.de> Copyright (c) 2004, 2005 Michael Roth <mroth@nessie.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
mit
vizewang/skynet
test/testmongodb.lua
62
2661
local skynet = require "skynet" local mongo = require "mongo" local bson = require "bson" local host, db_name = ... function test_insert_without_index() local db = mongo.client({host = host}) db[db_name].testdb:dropIndex("*") db[db_name].testdb:drop() local ret = db[db_name].testdb:safe_insert({test_key = 1}); ...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Port_San_dOria/npcs/Comittie.lua
13
1146
----------------------------------- -- Area: Port San d'Oria -- NPC: Comittie -- Type: Standard NPC -- @zone: 232 -- @pos -6.570 -9.8 -147.952 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("s...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/prized_crab_stewpot.lua
18
1979
----------------------------------------- -- ID: 5546 -- Item: Prized Crab Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 100 -- MP +20 -- Vitality +2 -- Agility +2 -- Mind +4 -- HP Recovered while healing +9 -- MP Recovered while healing +3 -- De...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/slice_of_salted_hare.lua
18
1177
----------------------------------------- -- ID: 5737 -- Item: slice_of_salted_hare -- Food Effect: 30Min, All Races ----------------------------------------- -- HP 10 -- Strength 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
Basylle/wow-battle-res
BResAssist/StatusWindow.lua
1
5895
--------------------------------------------------------------------- local BREZ, Brez = ... local BrezStatusWindow = Brez:NewModule("BrezStatusWindow", "AceEvent-3.0") local AceGUI = LibStub("AceGUI-3.0") local roleTextures = "Interface\\LFGFrame\\UI-LFG-ICON-PORTRAITROLES" local roleTextureCoordinates = { TANK = ...
mit
harveyhu2012/luci
modules/base/luasrc/controller/admin/servicectl.lua
76
1376
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- mo...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Lageegee.lua
13
3616
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Lageegee -- Type: Assault Mission Giver -- @pos 120.808 0.161 -30.435 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyit...
gpl-3.0
harveyhu2012/luci
applications/luci-statistics/luasrc/model/cbi/luci_statistics/netlink.lua
78
2765
--[[ Luci configuration model for statistics - collectd netlink plugin configuration (c) 2008 Freifunk Leipzig / 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 Licen...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/Trinary_Tap.lua
32
2010
--------------------------------------------------- -- Trinary Tap -- Attempts to absorb three buffs from a single target, or otherwise steals HP. -- Type: Magical -- Utsusemi/Blink absorb: Ignores Shadows -- Range: Melee -- Notes: Can be any (positive) buff, including food. Will drain about 100HP if it can't take any ...
gpl-3.0
Igalia/snabb
lib/ljsyscall/syscall/linux/constants.lua
4
86434
-- tables of constants local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local abi = require "syscall.abi" loc...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/globals/items/cup_of_chamomile_tea.lua
18
1369
----------------------------------------- -- ID: 4603 -- Item: cup_of_chamomile_tea -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic 8 -- Vitality -2 -- Charisma 2 -- Magic Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
m13790115/puker
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Port_Bastok/npcs/Rajesh.lua
13
1393
----------------------------------- -- Area: Port Bastok -- NPC: Rajesh -- @zone 236 -- @pos -62 1 -8 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scr...
gpl-3.0
mikroskeem/advanced-sandbox
gamemode/spawnmenu/controls/ctrlcolor.lua
4
2384
-- -- ___ ___ _ _ _ __ _ ___ ___ __ __ -- |_ _|| __| / \ | \_/ | / _| / \ | o \ o \\ V / -- | | | _| | o || \_/ | ( |_n| o || / / \ / -- |_| |___||_n_||_| |_| \__/|_n_||_|\\_|\\ |_| 2009 -- -- local PANEL = {} AccessorFunc( PANEL, "m_ConVarR", "ConVarR" ) AccessorFunc( PANEL, "m_ConVarG", ...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Kuftal_Tunnel/TextIDs.lua
15
1264
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
TannerRogalsky/haex
lib/meshed_batch.lua
3
2312
-- local image = self.preloaded_images['brick.jpg'] -- batch = g.newSpriteBatch(image, 4) -- batch:add(0, 0, 0, 100 / image:getHeight()) -- batch:add(100, 100, 0, 100 / image:getHeight()) -- batch:add(0, 200, 0, 100 / image:getHeight()) -- batch:add(300, 0, 0, 100 / image:getHeight()) -- local mesh, attributes = newMes...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Western_Altepa_Desert/npcs/_3h5.lua
13
1873
----------------------------------- -- Area: Western Altepa Desert -- NPC: _3h5 (Ruby Column) -- Notes: Mechanism for Altepa Gate -- @pos 59 10 -104 125 ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/zones...
gpl-3.0
aStonedPenguin/fprp
gamemode/modules/chat/sh_chatcommands.lua
1
3226
local plyMeta = FindMetaTable("Player"); fprp.chatCommands = fprp.chatCommands or {} local validChatCommand = { command = isstring, description = isstring, condition = fn.FOr{fn.Curry(fn.Eq, 2)(nil), isfunction}, delay = isnumber } local checkChatCommand = function(tbl) for k,v in pairs(validChatCommand) do if...
mit
hadow/OpenRA
mods/ts/maps/fields-of-green/fields-of-green.lua
9
3041
NForce = { "e1", "e1", "e1", "e3", "cyborg", "cyborg" } NForcePath = { NodW.Location, GDIBase.Location } NForceInterval = 5 VNForce = { "bike", "bike", "bggy", "bggy", "e1", "e1", "e3" } VNForcePath = { South.Location, GDIBase.Location } VNForceInterval = 15 GForce = { "e1", "e1", "e1", "e1", "e2", "e1", "e2" } GForc...
gpl-3.0
wingo/snabbswitch
src/program/snabbnfv/neutron_sync_agent/neutron_sync_agent.lua
5
1720
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local syscall = require("syscall") local usage = require("program.snabbnfv.neutron_sync_agent.README_inc") local script = require("program.snabbnfv.neutron_sync_agent.neutron_syn...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Yuhtunga_Jungle/npcs/Blue_Rafflesia.lua
15
6345
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Blue Rafflesia -- Used in quest Even More Gullible Travels -- @pos -468.876 -1 220.247 123 <many> ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/galette_des_rois.lua
18
1349
----------------------------------------- -- ID: 5875 -- Item: Galette Des Rois -- Food Effect: 180 Min, All Races ----------------------------------------- -- MP % 1 -- Intelligence +2 -- Random Jewel ----------------------------------------- require("scripts/globals/status"); require("scripts/zones/Bastok_Mines/Text...
gpl-3.0
ZDragonKNight/ZZZZ
plugins/stats.lua
81
4126
do -- Returns a table with `name` and `msgs` local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_prin...
gpl-2.0
Igalia/snabb
lib/luajit/testsuite/bench/revcomp.lua
6
1067
local sub = string.sub iubc = setmetatable({ A="T", C="G", B="V", D="H", K="M", R="Y", a="T", c="G", b="V", d="H", k="M", r="Y", T="A", G="C", V="B", H="D", M="K", Y="R", U="A", t="A", g="C", v="B", h="D", m="K", y="R", u="A", N="N", S="S", W="W", n="N", s="S", w="W", }, { __index = function(t, s) local r ...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Pashhow_Marshlands_[S]/npcs/Cavernous_Maw.lua
29
1434
----------------------------------- -- Area: Sauromugue Champaign -- NPC: Cavernous Maw -- @pos 418 25 27 90 -- Teleports Players to Pashhow_Marshlands ----------------------------------- package.loaded["scripts/zones/Pashhow_Marshlands_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
martin-traverse/premake-core
tests/actions/vstudio/vc200x/test_project.lua
16
4148
-- -- tests/actions/vstudio/vc200x/test_project.lua -- Validate generation of the opening <VisualStudioProject> element. -- Copyright (c) 2011-2014 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vs200x_project") local vc200x = premake.vstudio.vc200x -- -- Setup -- local wks, prj f...
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/globals/items/moorish_idol.lua
18
1312
----------------------------------------- -- ID: 5121 -- Item: Moorish Idol -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Mind -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ------...
gpl-3.0
torralba-lab/im2recipe
loader/DataLoader.lua
1
4089
require 'paths' require 'image' require 'hdf5' local DataLoader = torch.class('DataLoader') require 'loader.utils' function DataLoader:__init(dataTrain, dataVal, opts) self.batchSize = opts.batchSize self.mismatchFreq = opts.mismatchFreq -- percent of time a misaligned image should be presented self.dataTrain =...
mit
mahdib9/kp
plugins/vote.lua
615
2128
do 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)()...
gpl-2.0
squeek502/luvit
tests/test-fs-write-sync.lua
14
1192
--[[ Copyright 2015 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
apache-2.0
harveyhu2012/luci
modules/base/luasrc/http/protocol/date.lua
88
2760
--[[ HTTP protocol implementation for LuCI - date handling (c) 2008 Freifunk Leipzig / 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 http://www....
apache-2.0
wingo/snabbswitch
src/program/snsh/snsh.lua
5
4537
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(..., package.seeall) local lib = require("core.lib") local usage = require("program.snsh.README_inc") local long_opts = { ["package-path"] = "P", eval = "e", load = "l", program = "p", test = "t", interactive = "i...
apache-2.0
dr01d3r/darkstar
scripts/zones/Lower_Jeuno/npcs/Parike-Poranke.lua
14
1121
----------------------------------- -- Area: Lower Jeuno -- NPC: Parike-Poranke -- Type: Adventurer's Assistant -- @zone 245 -- @pos -33.161 -1 -61.303 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; -------...
gpl-3.0
dr01d3r/darkstar
scripts/zones/Kazham/npcs/Kobhi_Sarhigamya.lua
14
1037
---------------------------------- -- Area: Kazham -- NPC: Kobhi Sarhigamya -- Type: Item Deliverer -- @zone 250 -- @pos -115.29 -11 -22.609 -- ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ---------------------------------...
gpl-3.0
soundsrc/premake-stable
src/actions/codelite/codelite_project.lua
6
5691
-- -- codelite_project.lua -- Generate a CodeLite C/C++ project file. -- Copyright (c) 2009, 2011 Jason Perkins and the Premake project -- local codelite = premake.codelite local tree = premake.tree -- -- Write out a list of the source code files in the project. -- function codelite.files(prj) local tr = prema...
bsd-3-clause
SalvationDevelopment/Salvation-Scripts-Production
c75560629.lua
7
2787
--フリント function c75560629.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(c75560629.target) e1:SetOperation(c75560629.operation) c:RegisterEffect(e1) -...
gpl-2.0
chaot4/ardour
share/scripts/delete_xrun_markers.lua
6
1092
ardour { ["type"] = "EditorAction", name = "Delete xrun markers", author = "Ardour Team", description = [[Delete all xrun markers in the current session]] } function factory () return function () for l in Session:locations():list():iter() do if l:is_mark() and string.find (l:name(), "^xrun%d*$") then Session:loc...
gpl-2.0
aleju/cat-generator
sample.lua
1
8622
require 'torch' require 'image' require 'paths' require 'pl' require 'layers.cudnnSpatialConvolutionUpsample' require 'stn' require 'LeakyReLU' NN_UTILS = require 'utils.nn_utils' DATASET = require 'dataset' OPT = lapp[[ --save (default "logs") Directory in which the base 16x16 ne...
mit
SalvationDevelopment/Salvation-Scripts-Production
c87047161.lua
5
1025
--マーメイド・シャーク function c87047161.initial_effect(c) --tohand local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(87047161,0)) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetTarget(c87047161.target) e1:SetOperat...
gpl-2.0
SalvationDevelopment/Salvation-Scripts-Production
c53183600.lua
5
3306
--ブルーアイズ・トゥーン・ドラゴン function c53183600.initial_effect(c) c:EnableReviveLimit() --special summon local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE) e2:SetRange(LOCATION_HAND) e2:SetCondition(c53183600.spcon) e2:SetOperation(c53183...
gpl-2.0
dr01d3r/darkstar
scripts/globals/effects/aftermath_lv1.lua
30
1130
----------------------------------- -- -- EFFECT_AFTERMATH_LV1 -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); if (effe...
gpl-3.0
kidaa/luvi
src/lua/luvibundle.lua
2
9490
local uv = require('uv') local miniz = require('miniz') local luvi = require('luvi') local luviPath = require('luvipath') local pathJoin = luviPath.pathJoin local getenv = require('os').getenv local tmpBase = luviPath.isWindows and (getenv("TMP") or uv.cwd()) or (getenv("TMPDIR")...
apache-2.0
SalvationDevelopment/Salvation-Scripts-Production
c95943058.lua
2
2571
--E-HERO ヘル・ゲイナー function c95943058.initial_effect(c) --extra atk local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(95943058,0)) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCondition(c95943058.condition) e1:SetCost(c95943058.cost) e1:S...
gpl-2.0