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
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseQuinticActionIn.lua
2
1196
-------------------------------- -- @module EaseQuinticActionIn -- @extend ActionEase -- @parent_module cc -------------------------------- -- -- @function [parent=#EaseQuinticActionIn] create -- @param self -- @param #cc.ActionInterval action -- @return EaseQuinticActionIn#EaseQuinticActionIn ret (return value: cc...
mit
FreeBlues/neko8
libs/moonscript/moonscript/transform/transformer.lua
1
1803
local ntype ntype = require("libs.moonscript.moonscript.types").ntype local Transformer do local _class_0 local _base_0 = { transform_once = function(self, scope, node, ...) if self.seen_nodes[node] then return node end self.seen_nodes[node] = true local transformer = self.transf...
mit
andronmobi/vlc-parrot-asteroid
share/lua/sd/icecast.lua
17
2622
--[[ $Id$ Copyright © 2010 VideoLAN and AUTHORS Authors: Fabio Ritrovato <sephiroth87 at videolan dot org> 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 version 2 of the License, or ...
gpl-2.0
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Ripple3D.lua
8
4195
-------------------------------- -- @module Ripple3D -- @extend Grid3DAction -- @parent_module cc -------------------------------- -- brief Set the amplitude rate of ripple effect.<br> -- param fAmplitudeRate The amplitude rate of ripple effect. -- @function [parent=#Ripple3D] setAmplitudeRate -- @param self -- @par...
mit
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/MotionStreak3D.lua
8
7724
-------------------------------- -- @module MotionStreak3D -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- Remove all living segments of the ribbon. -- @function [parent=#MotionStreak3D] reset -- @param self -- @return MotionStreak3D#MotionStreak3D self (return value: cc.Mot...
mit
hotgloupi/configure-modules
assimp.lua
1
3182
--- Assimp library -- @module configure.modules.assimp local M = {} local tools = require('configure.tools') --- Build Assimp library -- -- @param args -- @param args.build Build instance -- @param args.name Name of the project (defaults to 'Assimp') -- @param args.version Version to use -- @param args.compiler -- @...
bsd-2-clause
joeyhng/nn
SpatialReplicationPadding.lua
20
1993
local SpatialReplicationPadding, parent = torch.class('nn.SpatialReplicationPadding', 'nn.Module') function SpatialReplicationPadding:__init(pad_l, pad_r, pad_t, pad_b) parent.__init(self) self.pad_l = pad_l self.pad_r = pad_r or self.pad_l self.pad_t = pad_t or self.pad_l self.pad_b = pad_b or self....
bsd-3-clause
wingedkiwi/thrift
lib/lua/TBinaryProtocol.lua
23
6141
-- -- 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 ma...
apache-2.0
eyalsk-wowaddons/AwesomeTweaks
libs/CallbackHandler-1.0.lua
36
9005
--[[ $Id: CallbackHandler-1.0.lua 965 2010-08-09 00:47:52Z mikk $ ]] local MAJOR, MINOR = "CallbackHandler-1.0", 6 local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR) if not CallbackHandler then return end -- No upgrade needed local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end} -- Lua ...
mit
warreee/Algorithm-Implementations
ROT13_Cipher/Lua/Yonaba/rot13_test.lua
26
1161
-- Tests for rot13.lua local ROT13 = require 'rot13' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local statu...
mit
noah/awesome
partials/12_hexclock_bg.lua
1
1581
-- a timer to dynamically set the awesome window manager background -- every 1 second. -- -- the background color is based on the hexadecimal value of the current -- time mapped to rgb. this algorithm mimics the same effect as this -- JS version: -- -- http://colorclock.nogoodatcoding.com/ -- -- which is in turn based...
mit
maikerumine/nuclear_holocaust
mods/farming/raspberry.lua
3
2714
--= Raspberries minetest.register_craftitem("farming:raspberries", { description = "Raspberries", inventory_image = "farming_raspberries.png", on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1") end, on_use = minetest.item_eat...
lgpl-2.1
joeyhng/nn
SpatialConvolution.lua
9
4432
local THNN = require 'nn.THNN' local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module') function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputPlane =...
bsd-3-clause
hotgloupi/configure-modules
libtiff.lua
1
4098
--- libtiff library -- @module configure.modules.libtiff local M = {} local tools = require('configure.tools') --- Build libtiff library -- -- @param args -- @param args.build Build instance -- @param args.name Name of the project (defaults to 'libtiff') -- @param args.version Version to use -- @param args.compiler ...
bsd-2-clause
ScegfOd/wesnoth
data/ai/micro_ais/cas/ca_messenger_f_next_waypoint.lua
7
2619
local H = wesnoth.require "lua/helper.lua" local AH = wesnoth.require "ai/lua/ai_helper.lua" local MAIUV = wesnoth.require "ai/micro_ais/micro_ai_unit_variables.lua" return function(cfg) -- Calculate next waypoint and rating for all messengers -- Return next messenger to move and waypoint toward which it shoul...
gpl-2.0
XR-s/Do-an-Sar-
sf/share/locale/turkey/quest/new_football_2014.lua
1
3750
quest blackforce_2 begin state start begin function ayarlar() local futbol_topu = {} futbol_topu.toplar = { 50096,10,50265,1 } futbol_topu.sure = 86400 futbol_topu.baslik_1 = "Futbol ateþi" futbol_topu.konusma_penceresi = "Merhaba ben kesinlikle büyük futbol fanatiðiyim. ...
apache-2.0
deplinenoise/tundra
scripts/tundra/syntax/embed_lua.lua
28
2033
module(..., package.seeall) local util = require "tundra.util" local path = require "tundra.path" local glob = require "tundra.syntax.glob" local nodegen = require "tundra.nodegen" local depgraph = require "tundra.depgraph" local lua_exts = { ".lua" } local luac_mt_ = nodegen.create_eval_subclass {} local function l...
mit
TomBebbington/minld-pong
play.lua
1
2032
local bump = require 'bump'; local Ball = require 'ball'; local Paddle = require 'paddle'; local Player = require 'player'; local Enemy = require 'enemy'; local play = {} function play.load() play.paused = false play.difficulty = 1 play.elapsed = 0 play.score = 0 play.world = bump.newWorld() l...
mit
rnby-mike/mal
lua/step6_file.lua
40
3471
#!/usr/bin/env lua local table = require('table') local readline = require('readline') local utils = require('utils') local types = require('types') local reader = require('reader') local printer = require('printer') local Env = require('env') local core = require('core') local List, Vector, HashMap = types.List, typ...
mpl-2.0
lukasc-ch/cunn
test_DataParallelTable.lua
14
10495
require 'cunn' require 'optim' -- If fbcunn and fbnn exists we'll do a profile of DataParallel local profileDp = pcall(function() require 'fbcunn'; require 'fbnn' end) local baseGpu = 1 -- First GPU to use local numGpus = cutorch.getDeviceCount() torch.setdefaulttensortype('torch.DoubleTensor') torch.setnumthreads(8...
bsd-3-clause
hughperkins/cunn
test_DataParallelTable.lua
14
10495
require 'cunn' require 'optim' -- If fbcunn and fbnn exists we'll do a profile of DataParallel local profileDp = pcall(function() require 'fbcunn'; require 'fbnn' end) local baseGpu = 1 -- First GPU to use local numGpus = cutorch.getDeviceCount() torch.setdefaulttensortype('torch.DoubleTensor') torch.setnumthreads(8...
bsd-3-clause
micahmumper/naev
dat/events/tutorial/tutorial-missions.lua
11
4424
-- This is tutorial: missions and events. include("dat/events/tutorial/tutorial-common.lua") -- localization stuff, translators would work here lang = naev.lang() if lang == "es" then else -- default english title1 = "Tutorial: Missions and Events" message1 = [[Welcome to the missions and events tutorial. ...
gpl-3.0
ScegfOd/wesnoth
data/lua/ilua.lua
30
3556
-- ilua.lua -- A more friendly Lua interactive prompt -- doesn't need '=' -- will try to print out tables recursively, subject to the pretty_print_limit value. -- Steve Donovan, 2007 -- Adapted by iceiceice for wesnoth, 2014 -- Retrived from: http://lua-users.org/files/wiki_insecure/users/steved/ilua.lua local pretty_...
gpl-2.0
reedscot/cvpr2016
modules/FixedGRU.lua
3
2677
local FixedGRU = {} function FixedGRU.rnn(nstep, avg, emb_dim) if avg == nil then avg = 0 end if emb_dim == nil then emb_dim = 256 end local inputs = {} for n = 1,nstep do table.insert(inputs, nn.Identity()()) end -- gates for update local i2h_update = {} local h2h_update = {} -- gat...
mit
MasterKia/Pars
plugins/admin.lua
381
7085
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
zactelegram12/TeleSeed
plugins/admin.lua
381
7085
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
excessive/love-against-humanity
server/conf.lua
1
1322
function love.conf(t) t.identity = nil -- The name of the save directory (string) t.version = "0.9.0" -- The LÖVE version this game was made for (string) t.console = true -- Attach a console (boolean, Windows only) t.window = nil t.modules.aud...
mit
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/ComController.lua
8
1433
-------------------------------- -- @module ComController -- @extend Component,InputDelegate -- @parent_module ccs -------------------------------- -- -- @function [parent=#ComController] create -- @param self -- @return ComController#ComController ret (return value: ccs.ComController) --------------------...
mit
CaptainCN/QCEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/TransitionSplitCols.lua
11
1627
-------------------------------- -- @module TransitionSplitCols -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- Returns the action that will be performed.<br> -- return The action that will be performed. -- @function [parent=#TransitionSplitCols] action -- @pa...
mit
Ali-2h/sokutbot
plugins/stats.lua
41
3991
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
maikerumine/nuclear_holocaust
mods/farming/cocoa.lua
3
4388
-- Place Cocoa function place_cocoa(itemstack, placer, pointed_thing, plantname) local pt = pointed_thing -- check if pointing at a node if not pt and pt.type ~= "node" then return end local under = minetest.get_node(pt.under) -- return if any of the nodes is not registered if not minetest.registered_no...
lgpl-2.1
coderstudy/luarocks
src/luarocks/manif_core.lua
18
2785
--- Core functions for querying manifest files. -- This module requires no specific 'fs' functionality. --module("luarocks.manif_core", package.seeall) local manif_core = {} package.loaded["luarocks.manif_core"] = manif_core local persist = require("luarocks.persist") local type_check = require("luarocks.type_check")...
mit
yaohuang2005/ntopng-json-rabbitmq-python-analysis
scripts/lua/aggregated_host_details.lua
2
7160
-- -- (C) 2013-14 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" require "graph_utils" page = _GET["page"] if(page == nil) then page = "overview" end host_ip = _GET["host"] sendHTTPHeader('text/html; charset=iso-8859-1') ntop....
gpl-3.0
MaxQu/ardupilot
Tools/CHDK-Scripts/Cannon S100/3DR_EAI_S100.lua
178
29694
--[[ KAP UAV Exposure Control Script v3.2 -- Released under GPL by waterwingz and wayback/peabody http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script 3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot. Changelog: -Modified Tv, Av, and...
gpl-3.0
ABIZBOT/5
system/libs/feedparser.lua
36
11976
local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...") local XMLElement = (loadfile "./system/libs/XMLElement.lua")() local dateparser = (loadfile "./system/libs/dateparser.lua")() local URL = (loadfile "./system/libs/url.lua")() local tinsert, tremove, t...
gpl-2.0
joeyhng/nn
SpatialConvolutionMM.lua
9
3979
local THNN = require 'nn.THNN' local SpatialConvolutionMM, parent = torch.class('nn.SpatialConvolutionMM', 'nn.Module') function SpatialConvolutionMM:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH) parent.__init(self) dW = dW or 1 dH = dH or 1 self.nInputPlane = nInputPlane self.nOutputP...
bsd-3-clause
lukasc-ch/nn
Replicate.lua
43
1690
local Replicate, parent = torch.class('nn.Replicate','nn.Module') function Replicate:__init(nf, dim, ndim) parent.__init(self) self.nfeatures = nf self.dim = dim or 1 self.ndim = ndim assert(self.dim > 0, "Can only replicate across positive integer dimensions.") end function Replicate:updateOutput(inpu...
bsd-3-clause
Whit3Tig3R/z1z1z1z1
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
hfjgjfg/creed3
plugins/invite.lua
1111
1195
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
bitonp/mysql-lua-logging
lua/bitonstructs.lua
1
5323
-------------------------------------------------------------------------------------------------------- -- bitonstructs.lua -- Author: P.Colclough -- Date : 21 Feb 2013 -- Description: A place for any tables/structures to be defined -- All these are global, unless marked 'local var' -- -- bitonConn - A Table of ...
mit
FreeBlues/neko8
libs/moonscript/spec/outputs/funcs.lua
2
3040
local x x = function() return print(what) end local _ _ = function() end _ = function() return function() return function() end end end go(to(the(barn))) open(function() return the(function() return door end) end) open(function() the(door) local hello hello = function() return my(func) end...
mit
libremap/libremap-agent-openwrt
libremap-agent/luasrc/libremap/plugins/olsr.lua
3
4304
--[[ Copyright 2013 Patrick Grimm <patrick@lunatiki.de> Copyright 2013-2014 André Gaul <gaul@web-yard.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...
apache-2.0
micahmumper/naev
dat/events/neutral/news.lua
11
19790
--[[ -- Event for creating generic news -- --]] lang = naev.lang() if lang == 'es' then --not translated atm else --default english header_table={} header_table["Generic"] = {"We bring you the latest news in the galaxy." } header_table["Independent"] = {"Welcome to Uni...
gpl-3.0
rrpgfirecast/firecast
Plugins/ChatMods/PokeIcons/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
SDK3/API/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Core/rrpginlua/sdk/rrpgDialogs.lua
98
12109
local objs = require("rrpgObjs.lua"); local lDialogs = {}; local function newDialogObject(className) return objs.objectFromHandle(_obj_newObject(className)); end; lDialogs.DT_INFORMATION = "information"; lDialogs.DT_ERROR = "error"; lDialogs.DT_WARNING = "warning"; lDialogs.DT_CONFIRMATION = "confirmation"; lDialo...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Michiria/output/rdkObjs/Michiria/LH.3.3.lfm.lua
1
3351
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmLH3_3() local obj = GUI.fromHandle(_obj_newObject("for...
apache-2.0
amir1213/teletamir
plugins/youtube.lua
644
1722
do local google_config = load_from_file('data/google.lua') local function httpsRequest(url) print(url) local res,code = https.request(url) if code ~= 200 then return nil end return json:decode(res) end function get_yt_data (yt_code) local url = 'https://www.googleapis.com/yo...
gpl-2.0
rrpgfirecast/firecast
Plugins/Sheets/Pokemon D20/output/rdkObjs/FichaPKMN/PKMN.3.lfm.lua
1
149757
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmPKMN3() local obj = GUI.fromHandle(_obj_newObject("for...
apache-2.0
The-HalcyonDays/darkstar
scripts/zones/Kazham/npcs/Tahn_Posbei.lua
37
1510
----------------------------------- -- Area: Kazham -- NPC: Tahn Posbei -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade...
gpl-3.0
The-HalcyonDays/darkstar
scripts/zones/Rolanberry_Fields/npcs/Stone_Monument.lua
32
1298
----------------------------------- -- Area: Rolanberry Fields -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos 362.479 -34.894 -398.994 110 ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil; ----------------------------------- ...
gpl-3.0
The-HalcyonDays/darkstar
scripts/zones/Windurst_Woods/npcs/Erpolant.lua
38
1038
----------------------------------- -- Area: Windurst Woods -- NPC: Erpolant -- Type: Standard NPC -- @zone: 241 -- @pos -63.224 -0.749 -33.424 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; -----------...
gpl-3.0
rrpgfirecast/firecast
Plugins/Sheets/Pendragon/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Pathfinder_2E/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Scene/FollowThem/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Exalted 3rd/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Naruto 5e/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/ficha tales from the loop plugin/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha 4D&T/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Pathfinder 2E ( Alternativa )/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/ChatMods/Dealer/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/PokePTA/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Fira/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Vampire The Masquerade 5th/sdk/rrpgGUI.lua
91
78698
local objs = require("rrpgObjs.lua"); local ndb = require("ndb.lua"); gui = {} GUI = gui; local guiLoaders = {}; gui.guiLoaders = guiLoaders; --[[ Objeto Control ]]-- local function controlFromHandle(handle) local ctrl = objs.hierarchyObjectFromHandle(handle); function ctrl:setFocus() _obj_invoke(self.hand...
apache-2.0
hxw804781317/MT7620N
package/ralink/ui/luci-mtk/src/modules/base/luasrc/model/cbi/admin_network/proto_dhcp.lua
61
2076
--[[ LuCI - Lua Configuration Interface Copyright 2011-2012 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 ]]-- loc...
gpl-2.0
Cadene/pretrained-models.pytorch
pretrainedmodels/models/fbresnet/resnet152_dump.lua
1
1136
require 'cutorch' require 'cunn' require 'cudnn' require 'image' vision=require 'torchnet-vision' net=vision.models.resnet.load{filename='data/resnet152/net.t7',length=152} print(net) require 'nn' nn.Module.parameters = function(self) if self.weight and self.bias and self.running_mean and self.running_var then ...
bsd-3-clause
KlonD90/tarantool
test/sophia/upsert.test.lua
6
2092
-- upsert (str) space = box.schema.space.create('test', { engine = 'sophia' }) index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} }) for key = 1, 100 do space:upsert({tostring(key)}, {{'+', 2, 1}}, {tostring(key), 0}) end t = {} for key = 1, 100 do table.insert(t, space:get({tostring(key)})) end...
bsd-2-clause
rrpgfirecast/firecast
Plugins/Sheets/Old Dragon/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Runarcana/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Herois d20/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha L5R 4e/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/O Tomo/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Zombie Survival/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha 7º Mar/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Call Of Cthulhu/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Call Of Cthulhu Dark Ages/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Vampire The Masquerade 5th/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Core/sceneinlua/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Scene/HeightMarker/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Cyberpunk 2020/sdk/rrpgSharedObjects.lua
100
3332
local SharedObjects = {}; local registeredUnpackers = {}; local __SHAREDOBJ_PREFIX = "##RRPGshObj("; local __SHAREDOBJ_SUFIX = ")##"; local __MATCH_SHARED_OBJ = "##RRPGshObj%((.+)%)##" local __MATCH_SHARED_OBJ_NOCAPTURE = "##RRPGshObj%([^%(%)#]+%)##" local __SHAREDARRAYOBJ_PREFIX = "@@RRPGshObjArray("; local __SHARE...
apache-2.0
zero-rp/ZNet
tool/zero/lualib/http/httpc.lua
5
3529
local skynet = require "skynet" local socket = require "http.sockethelper" local url = require "http.url" local internal = require "http.internal" local dns = require "dns" local string = string local table = table local httpc = {} local function request(fd, method, host, url, recvheader, header, content) local read...
mit
hxw804781317/MT7620N
package/ralink/ui/luci-mtk/src/applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua
68
1501
--[[ 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...
gpl-2.0
The-HalcyonDays/darkstar
scripts/globals/items/roast_mushroom.lua
35
1464
----------------------------------------- -- ID: 4410 -- Item: witch_kabob -- Food Effect: 30minutes, All Races ----------------------------------------- -- Magic Points 10 -- Strength -1 -- Mind 3 -- Enmity -1 -- MP Recovered While Healing 2 ----------------------------------------- require("scripts/globa...
gpl-3.0
PyryM/truss
src/lib/deferred.lua
1
8626
--- A+ promises in Lua. --- @module deferred local M = {} local deferred = {} deferred.__index = deferred local PENDING = 0 local RESOLVING = 1 local REJECTING = 2 local RESOLVED = 3 local REJECTED = 4 local function finish(deferred, state) state = state or REJECTED for i, f in ipairs(deferred.queue) do if stat...
mit
coltonj96/UsefulCombinators
UsefulCombinators_0.0.1/prototypes/signal/signal.lua
1
1484
data:extend( { { type = "virtual-signal", name = "counting-signal", icon = "__UsefulCombinators__/graphics/icons/signal/counting-signal.png", subgroup = "virtual-signal", order = "z[counting]" }, { type = "virtual-signal", name = "time-mod-signal", icon = "__UsefulCombi...
mit
The-HalcyonDays/darkstar
scripts/zones/Port_Windurst/npcs/Kucha_Malkobhi.lua
36
1528
----------------------------------- -- Area: Port Windurst -- NPC: Kucha Malkobhi -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/zones/Port_Windurst...
gpl-3.0
otservme/global1053
data/npc/scripts/Yasir.lua
1
1030
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...
gpl-2.0
The-HalcyonDays/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Hajaom.lua
34
1031
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Hajaom -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); -----------...
gpl-3.0
The-HalcyonDays/darkstar
scripts/globals/items/dragon_steak.lua
35
1866
----------------------------------------- -- ID: 4350 -- Item: dragon_steak -- Food Effect: 180Min, All Races ----------------------------------------- -- Health 25 -- Strength 7 -- Intelligence -3 -- Health Regen While Healing 2 -- Attack % 20 -- Attack Cap 150 -- Ranged ATT % 20 -- Ranged ATT Cap 150 -- ...
gpl-3.0
noname007/waifu2x
waifu2x.lua
33
4661
require './lib/portable' require 'sys' require 'pl' require './lib/LeakyReLU' local iproc = require './lib/iproc' local reconstruct = require './lib/reconstruct' local image_loader = require './lib/image_loader' local BLOCK_OFFSET = 7 torch.setdefaulttensortype('torch.FloatTensor') local function convert_image(opt) ...
mit
The-HalcyonDays/darkstar
scripts/zones/Southern_San_dOria/npcs/Kipopo.lua
53
1843
----------------------------------- -- Area: Southern San d'Oria -- NPC: Kipopo -- Type: Leathercraft Synthesis Image Support -- @pos -191.050 -2.15 12.285 230 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/glo...
gpl-3.0
otservme/global1053
data/actions/scripts/svargrond arena quest/arena_reward.lua
1
1435
dofile('data/lib/svargrondArenaQuest.lua') local STORAGE_ARENA = 1100 function onUse(cid, item, fromPosition, itemEx, toPosition) if(getPlayerStorageValue(cid, STORAGE_ARENA) < 0) then return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Nothing here.") end for i = 1 , 3 do local arena = getPlaye...
gpl-2.0
hxw804781317/MT7620N
package/ralink/ui/luci-mtk/src/contrib/luadoc/lua/luadoc/config.lua
165
1234
------------------------------------------------------------------------------- -- LuaDoc configuration file. This file contains the default options for -- luadoc operation. These options can be overriden by the command line tool -- @see luadoc.print_help -- @release $Id: config.lua,v 1.6 2007/04/18 14:28:39 tomas Exp...
gpl-2.0
otservme/global1053
data/lib/MissionSelect.lua
2
5848
-- NPCS STORAGE -- -- (HIGHLY RECOMMENDED -> ONE mission per STORAGE) -- --[[ explaining NPCname or QuestName = { NeedMission -- need mission to trade items with npc, true = Need Missions. MissionStart -- Start Storage Mission on NPC MissionEnd -- End Storage Mission on NPC WithoutMiss...
gpl-2.0
The-HalcyonDays/darkstar
scripts/globals/weaponskills/avalanche_axe.lua
30
1353
----------------------------------- -- Avalanche Axe -- Axe weapon skill -- Skill level: 100 -- Delivers a single-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Soil Gorget & Thunder Gorget. -- Aligned with the Soil Belt & Thunder Belt. -- Element: None -- Modifiers: ST...
gpl-3.0
angeloc/sysdig
userspace/sysdig/chisels/iobytes_net.lua
4
1681
--[[ 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 ...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Pathfinder 2E/sdk/ndb.lua
9
20616
local objs = require("rrpgObjs.lua"); local vhd = require("vhd"); require("utils.lua"); ndb = {} NDB = ndb; local localNDB = {}; local _localOpenNDBs = {} setmetatable(_localOpenNDBs, objs.weakMetatable); function localNDB.ndbFromHandle(handle) local ctrl; if handle ~= nil then ctrl = objs.tryFindFromHandle(h...
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha NoteQuest/sdk/ndb.lua
9
20616
local objs = require("rrpgObjs.lua"); local vhd = require("vhd"); require("utils.lua"); ndb = {} NDB = ndb; local localNDB = {}; local _localOpenNDBs = {} setmetatable(_localOpenNDBs, objs.weakMetatable); function localNDB.ndbFromHandle(handle) local ctrl; if handle ~= nil then ctrl = objs.tryFindFromHandle(h...
apache-2.0
drix/jagg
src/scenes/pause.lua
2
1410
------------------------------------------------------------------------------ -- In "scene1.lua" (parent scene) ------------------------------------------------------------------------------ local composer = require( "composer" ) local scene = composer.newScene() -- Custom function for resuming the game (from pause ...
mit
otservme/global1053
data/movements/scripts/svargrond arena quest/arena_enter.lua
2
2736
local time_kick = 600 local function Kick(cid) if (isPlayer(cid)) then if (getPlayerStorageValue(cid, 10030) == 1) then doTeleportThing(cid, POSITION_KICK) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your time is out!") setPlayerStorageValue(cid, STORAGE_PIT, 0) setPlayerStorageValue(cid, 10030, ...
gpl-2.0