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
roboplus12/roboplus14
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
padrinoo1/fick
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
openwayne/chaos_theory
mods/mesecons/mesecons_pressureplates/init.lua
2
3487
local pp_box_off = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, } local pp_box_on = { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7.5/16, 7/16 }, } local function pp_on_timer(pos, elapsed) local node = minetest.get_node(pos) local basename = minetest.registered_nodes[node.name...
lgpl-2.1
hiddenvirushacker/hiddenvirus
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
shingenko/darkstar
scripts/zones/Kazham/npcs/Dheo_Nbolo.lua
15
1097
----------------------------------- -- Area: Kazham -- NPC: Dheo Nbolo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action ------------------------------...
gpl-3.0
shingenko/darkstar
scripts/zones/Mhaura/npcs/Nomad_Moogle.lua
34
1116
----------------------------------- -- Area: Mhaura -- NPC: Nomad Moogle ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Mhaura/TextIDs"); require("scripts/globals/settings"); ------------------------------...
gpl-3.0
psychon/awesome
tests/examples/shims/mouse.lua
1
2020
local screen = require("screen") local coords = {x=100,y=100} local mouse = { old_histories = {}, history = {}, } -- Avoid gears when possible local function contains(rect, point) return point.x >= rect.x and point.x < rect.x+rect.width and point.y >= rect.y and point.y < rect.y+rect.height...
gpl-2.0
jyggen/lua-parser
tests/Fixtures/3c/33/39/eee48afc35e66347bb277224c2f78d3bd6edb1527c5cd99f44d3119ef1.lua
1
7362
LoremasterDB = { ["Achievements"] = { { { "|cffffffffAshenvale Quests|cff778899 (0 / 62)", -- [1] 4976, -- [2] false, -- [3] }, -- [1] { "|cff778899Azshara Quests|cff778899 (0 / 100)", -- [1] 4927, -- [2] true, -- [3] }, -- [2] { "|cffffffffDesolace Quests|cff778899 (0 / 5...
mit
shingenko/darkstar
scripts/zones/Mhaura/npcs/Blandine.lua
17
2177
----------------------------------- -- Area: Mhaura -- NPC: Blandine -- Start Quest: The Sand Charmz -- @pos 23 -7 41 249 ----------------------------------- package.loaded["scripts/zones/Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
shingenko/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Kalimahf.lua
34
1033
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Kalimahf -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---------...
gpl-3.0
Illarion-eV/Illarion-Content
triggerfield/cistern_ambient.lua
4
10272
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
matinJ/skynet
examples/watchdog.lua
53
1286
local skynet = require "skynet" local netpack = require "netpack" local CMD = {} local SOCKET = {} local gate local agent = {} function SOCKET.open(fd, addr) skynet.error("New client from : " .. addr) agent[fd] = skynet.newservice("agent") skynet.call(agent[fd], "lua", "start", { gate = gate, client = fd, watchdog...
mit
jyggen/lua-parser
tests/Fixtures/63/95/20/254c6c26600377d351e639393bbffeb80196db90fa63a229844f67c56f.lua
1
12109
Blizzard_CombatLog_Filters = { ["currentFilter"] = 1, ["filters"] = { { ["quickButtonName"] = "My actions", ["onQuickBar"] = true, ["quickButtonDisplay"] = { ["party"] = true, ["solo"] = true, ["raid"] = true, }, ["tooltip"] = "Show messages of actions done by you.", ["na...
mit
Illarion-eV/Illarion-Content
monster/race_53_zombie/red.lua
3
1031
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
shingenko/darkstar
scripts/zones/Rabao/npcs/Waylea.lua
38
1048
----------------------------------- -- Area: Rabao -- NPC: Waylea -- Type: Reputation -- @zone: 247 -- @pos 12.384 4.658 -32.392 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ---------------------------------...
gpl-3.0
jsat97/sysdig
userspace/sysdig/chisels/topcontainers_net.lua
18
1073
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
psyyz10/BigDL
spark/dl/src/test/resources/torch/genPreprocessRefTensors.lua
13
1904
-- -- Copyright 2016 The BigDL Authors. -- -- 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 agr...
apache-2.0
shingenko/darkstar
scripts/globals/items/silken_squeeze.lua
36
1215
----------------------------------------- -- ID: 5630 -- Item: Silken Squeeze -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP Recovered while healing +4 -- MP Recovered while healing +5 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0
benstaker/tg-scripts
main.lua
1
1429
--main.lua moduleFolder = "tg-scripts" userHome = "/home/pi" package.path = '../' .. moduleFolder .. '/?.lua;' .. userHome .. '/?.lua;' .. package.path local __dirname = moduleFolder .. '.' core = require(__dirname .. '_core._core') -- Load in the handlers local pingPong = require(__dirname .. '.handlers.ping-pong') l...
mit
fzimmermann89/texlive.js
texlive/texmf-dist/tex/latex/polyglossia/polyglossia.lua
1
6750
local module_name = "polyglossia" local polyglossia_module = { name = module_name, version = 1.3, date = "2013/05/11", description = "Polyglossia", author = "Elie Roux", copyright = "Elie Roux", license = "CC0" } luatexbase.provides_module(polyglo...
gpl-2.0
luvit/luvit.io
libs/mine.lua
4
2888
-- Hand ported from https://github.com/creationix/mine local jsonParse = require('json').parse -- Mine a JavaScript string for require calls and export the module names -- Extract all require calls using a proper state-machine parser. return function (js) js = tostring(js) local names = {} local ident local q...
apache-2.0
BSpike/MOOSE
Moose Development/Moose/Core/Point.lua
1
61168
--- **Core** -- **POINT\_VEC** classes define an **extensive API** to **manage 3D points** in the simulation space. -- -- ![Banner Image](..\Presentations\POINT\Dia1.JPG) -- -- ==== -- -- # Demo Missions -- -- ### [POINT_VEC Demo Missions source code]() -- -- ### [POINT_VEC Demo Missions, only for beta testers]() -- --...
gpl-3.0
kveratis/GameCode4
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/loop/lua/loop/base.lua
1
3467
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### -----------------...
lgpl-3.0
openwayne/chaos_theory
mods/display_blocks/uranium.lua
1
1555
minetest.register_node( "display_blocks:uranium_ore", { description = "Uranium Ore", tiles = { "default_stone.png^uranium_ore.png" }, is_ground_content = true, groups = {cracky=3}, drop = 'craft "display_blocks:uranium_dust" 3', }) minetest.register_craftitem( "display_blocks:uranium_dust", { description = "Uran...
lgpl-2.1
spaceraccoon/bilabot
eval.lua
16
1680
require 'torch' require 'nn' require 'LanguageModel' require 'util.DataLoader' local utils = require 'util.utils' local cmd = torch.CmdLine() cmd:option('-checkpoint', '') cmd:option('-split', 'val') cmd:option('-gpu', 0) cmd:option('-gpu_backend', 'cuda') local opt = cmd:parse(arg) -- Set up GPU stuff local dty...
mit
shingenko/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Aystise.lua
38
1045
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Aystise -- Type: Standard NPC -- @zone: 94 -- @pos -69.805 -4.5 68.078 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----...
gpl-3.0
shingenko/darkstar
scripts/globals/spells/absorb-tp.lua
18
1440
-------------------------------------- -- Spell: Absorb-TP -- Steals an enemy's TP. -------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ------------------------------...
gpl-3.0
wagonrepairer/Zero-K
effects/wolverine.lua
25
3109
-- wolvflash -- wolvmuzzle1 -- wolvmuzzle0 return { ["wolvflash"] = { groundflash = { circlealpha = 1, circlegrowth = 0, flashalpha = 0.9, flashsize = 60, ttl = 8, color = { [1] = 1, [2] = 0.5, [3] = 0, ...
gpl-2.0
shingenko/darkstar
scripts/zones/Chocobo_Circuit/Zone.lua
36
1122
----------------------------------- -- -- Zone: Chocobo_Circuit -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Chocobo_Circuit/TextIDs"] = nil; require("scripts/zones/Chocobo_Circuit/TextIDs"); ----------------------------------- -- onInitialize...
gpl-3.0
shingenko/darkstar
scripts/globals/effects/sigil.lua
24
3085
----------------------------------- -- -- EFFECT_SIGIL -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) local power = effect:getPower(); -- Tracks which bonus effects are in use. ...
gpl-3.0
shingenko/darkstar
scripts/zones/Garlaige_Citadel/npcs/qm9.lua
34
1385
----------------------------------- -- Area: Garlaige Citadel -- NPC: qm9 (???) -- Involved in Quest: Hitting the Marquisate (THF AF3) -- @pos -140.039 -5.500 285.999 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
aboskroop/smilev2
plugins/addreplay.lua
1
3602
--[[ _ _ _ _ ___ ___ _ __ _| |__ ___ ___| | ___ __ ___ _ __ (_) __ _ / |/ _ \ / _ \| | __ / _` | '_ \ / _ \/ __| |/ / '__/ _ \| '_ \ | |/ _` | | | | | | | | | |/ / | (_| | |_) | (_) \__ \ <| | | (_) | |_) | | | (_| | | | |_| | |_| | < ...
gpl-3.0
shingenko/darkstar
scripts/globals/abilities/dark_arts.lua
28
1588
----------------------------------- -- Ability: Dark Arts -- Optimizes black magic capability while lowering white magic proficiency. Grants a bonus to enfeebling, elemental, and dark magic. Also grants access to Stratagems. -- Obtained: Scholar Level 10 -- Recast Time: 1:00 -- Duration: 2:00:00 -----------------...
gpl-3.0
obsy/luci
modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/network.lua
48
2480
-- Copyright 2008 Steven Barth <steven@midlink.org> -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" m = Map("network", translate("Interfaces")) m.pageaction = false m:section(SimpleSection).template = "admin_network/iface_overvi...
apache-2.0
shingenko/darkstar
scripts/zones/West_Ronfaure/npcs/Phairet.lua
17
2450
----------------------------------- -- Area: West Ronfaure -- NPC: Phairet -- Involved in Quest: The Trader in the Forest -- @pos -57 -1 -501 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quest...
gpl-3.0
matthew728960/luci-app-shadowsocks-rss
files/usr/model/shadowsocks-rss.lua
1
13476
-- Copyright 2015 -- Matthew -- Licensed to the public under the Apache License 2.0. local fs = require "nixio.fs" local state_msg = "" local ss_redir_on = (luci.sys.call("pidof ssr-redir > /dev/null") == 0) if ss_redir_on then state_msg = "<b><font color=\"green\">" .. translate("Running") .. "</font></b>" else s...
gpl-3.0
madmaxoft/PrivateBlocks
Storage.lua
1
6213
-- Storage.lua -- Implements the Storage that saves and loads the data in the DB g_Storage = {} --- Adds the specified friend for the specified player -- Returns true on success, nil and error message on failure function g_Storage:addFriend(a_PlayerUuid, a_FriendUuid) -- Check the params: assert(type(a_Pl...
unlicense
shingenko/darkstar
scripts/zones/Dynamis-San_dOria/mobs/Reapertongue_Gadgquok.lua
16
1064
----------------------------------- -- Area: Dynamis San d'Oria -- NPC: Reapertongue Gadgquok -- Boss Trigger for Overlord's Tombstone ----------------------------------- ----------------------------------- -- onMobSpawn Action ----------------------------------- function onMobSpawn(mob) end; ---------...
gpl-3.0
wagonrepairer/Zero-K
LuaUI/Widgets/gui_command_indicator.lua
12
6769
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { name = "Command Indicator (beta)", desc = "Simple visual feedback of received commands", author = "Kin...
gpl-2.0
openwayne/chaos_theory
mods/technic/technic/tools/chainsaw.lua
2
12879
-- Configuration local chainsaw_max_charge = 30000 -- Maximum charge of the saw -- Gives 2500 nodes on a single charge (about 50 complete normal trees) local chainsaw_charge_per_node = 12 -- Cut down tree leaves. Leaf decay may cause slowness on large trees -- if this is disabled. local chainsaw_leaves = true -...
lgpl-2.1
openwayne/chaos_theory
mods/campfire/init.lua
1
5322
minetest.register_craft({ output = "campfire:campfire", recipe = {{'', 'default:stick', ''}, {'default:stick', '', 'default:stick'}} }) minetest.register_node("campfire:campfire", { description = "Camp Fire", drawtype = "plantlike", tiles = {"CampFire_off.png"}, walkable=false, sunlight_propogates=...
lgpl-2.1
QuetzalQatl/RustPluginManual
SnapshotAllPlugins/0-logger.lua
1
3463
PLUGIN.Title = "Logger" PLUGIN.Version = V(0, 2, 8) PLUGIN.Description = "Logs all chat commands used by players with auth level to the server log and/or chat." PLUGIN.Author = "Wulfspider" PLUGIN.Url = "http://forum.rustoxide.com/plugins/670/" PLUGIN.ResourceId = 670 PLUGIN.HasConfig = true local debug = false local...
gpl-2.0
jakezhaojb/NAMAS
summary/build.lua
9
6421
-- -- Copyright (c) 2015, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. -- -- Author: Alex...
bsd-3-clause
shingenko/darkstar
scripts/zones/Northern_San_dOria/npcs/Cauzeriste.lua
17
1263
----------------------------------- -- Area: Northern San d'Oria -- NPC: Cauzeriste -- Guild Merchant NPC: Woodworking Guild -- @pos -175.946 3.999 280.301 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("sc...
gpl-3.0
wagonrepairer/Zero-K
scripts/dynassault.lua
4
9706
include "constants.lua" dyncomm = include('dynamicCommander.lua') local spSetUnitShieldState = Spring.SetUnitShieldState -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local pieceMap = Spring....
gpl-2.0
openwayne/chaos_theory
mods/nssm/mobs/night_master.lua
1
3855
mobs:register_mob("nssm:night_master", { type = "monster", hp_max = 60, hp_min = 60, collisionbox = {-0.65, -0.4, -0.65, 0.65, 0.4, 0.65}, visual = "mesh", mesh = "moonherontrio.x", textures = {{"moonherontrio.png"}}, visual_size = {x=18, y=18}, view_range = 40, rotate = 270, lifetimer = 500, floats=1, wal...
lgpl-2.1
AleksCore/Mr.Green-MTA-Resources
resources/[managers]/votemanager/votemanager_server.lua
3
14450
local activePoll local pollTimer local defaultConfig = {} local rootElement = getRootElement() local thisResourceRoot = getResourceRootElement(getThisResource()) addEvent "onPollStart" addEvent "onPollStop" addEvent "onPollEnd" addEvent("onClientSendVote", true) --this handler stores the default manager config addE...
mit
shingenko/darkstar
scripts/globals/items/shogun_rice_ball.lua
21
1509
----------------------------------------- -- ID: 4278 -- Item: Shogun Rice Ball -- Food Effect: 60Min, All Races ----------------------------------------- -- HP +20 -- Dex +4 -- Vit +4 -- Chr +4 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Atk +50 -- Def +30 -- Do...
gpl-3.0
shingenko/darkstar
scripts/globals/spells/poisonga_iii.lua
18
1103
----------------------------------------- -- Spell: Poisonga III ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,targe...
gpl-3.0
aTastyCookie/telegram-bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
master041/tele___master
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
hacker44-h44/hacker44-bot
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
shingenko/darkstar
scripts/zones/Cape_Teriggan/npcs/Sarmistha_IM.lua
28
3126
----------------------------------- -- Area: Cape Teriggan -- NPC: Sarmistha, I.M. -- Type: Outpost Conquest Guards -- @pos -185 7 -63 113 ----------------------------------- package.loaded["scripts/zones/Cape_Teriggan/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); ...
gpl-3.0
lixiantai/barrier_breaker
feeds/luci/applications/luci-pbx/luasrc/model/cbi/pbx-google.lua
146
5490
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 3 of the License, or ...
gpl-2.0
justathoughtor2/atomicApe
cygwin/bin/texlive/texmf-dist/scripts/oberdiek/oberdiek.luacolor.lua
6
5493
-- -- This is file `oberdiek.luacolor.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- luacolor.dtx (with options: `lua') -- -- This is a generated file. -- -- Project: luacolor -- Version: 2011/11/01 v1.8 -- -- Copyright (C) 2007, 2009-2011 by -- Heiko Obe...
gpl-3.0
shingenko/darkstar
scripts/zones/Port_Windurst/npcs/HomePoint#1.lua
17
1260
----------------------------------- -- Area: Port Windurst -- NPC: HomePoint#1 -- @pos -68.216 -4.000 111.761 240 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Port_Windurst/TextIDs"); require("sc...
gpl-3.0
openwayne/chaos_theory
mods/mobs_animal/bunny.lua
1
2077
local S = mobs.intllib -- Bunny by ExeterDad mobs:register_mob("mobs_animal:bunny", { type = "animal", passive = true, reach = 1, hp_min = 1, hp_max = 4, armor = 200, collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268}, visual = "mesh", mesh = "mobs_bunny.b3d", drawtype = "front", textures = { ...
lgpl-2.1
fzimmermann89/texlive.js
texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/experimental/evolving/doc.lua
1
3216
-- Copyright 2012 by Malte Skambath -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- local key = require 'pgf.gd.doc'.key local documentatio...
gpl-2.0
wagonrepairer/Zero-K
gamedata/featuredefs_post.lua
3
5256
-- $Id: featuredefs_post.lua 3171 2008-11-06 09:06:29Z det $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- -- file: featuredefs_post.lua -- brief: featureDef post processing -- author: Dave Ro...
gpl-2.0
fingon/hnet-core
dneigh.lua
1
5177
#!/usr/bin/env lua -- -*-lua-*- -- -- $Id: dneigh.lua $ -- -- Author: Markus Stenberg <fingon@iki.fi> -- -- Copyright (c) 2012 cisco Systems, Inc. -- -- Created: Fri Oct 12 14:54:48 2012 mstenber -- Last modified: Thu Jun 27 11:03:39 2013 mstenber -- Edit time: 34 min -- -- structure is: -- neigh[rid] = --...
gpl-2.0
fzimmermann89/texlive.js
texlive/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/force/ControlElectric.lua
1
2885
-- Copyright 2012 by Till Tantau -- -- This file may be distributed an/or modified -- -- 1. under the LaTeX Project Public License and/or -- 2. under the GNU Public License -- -- See the file doc/generic/pgf/licenses/LICENSE for more information -- @release $Header$ -- Imports local declare = require("pgf.gd.interfa...
gpl-2.0
shingenko/darkstar
scripts/zones/Port_Bastok/npcs/Tilian.lua
38
1380
----------------------------------- -- Area: Port Bastok -- NPC: Tilian -- Type: Quest NPC -- @pos -118.460 4.999 -68.090 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/zones...
gpl-3.0
shingenko/darkstar
scripts/globals/items/mushroom_salad.lua
39
1426
----------------------------------------- -- ID: 5678 -- Item: Mushroom Salad -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- MP 14% Cap 85 -- Agility 6 -- Mind 6 -- Strength -5 -- Vitality -5 ----------------------------------------- require("scripts/globals/status"); ------------------...
gpl-3.0
jsat97/sysdig
userspace/sysdig/chisels/lscontainers.lua
8
2542
--[[ Copyright (C) 2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even t...
gpl-2.0
shingenko/darkstar
scripts/zones/Bastok_Mines/npcs/Sodragamm.lua
38
1086
----------------------------------- -- Area: Bastok Mines -- NPC: Sodragamm -- Type: Item Deliverer -- @zone: 234 -- @pos -24.741 -1 -64.944 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scrip...
gpl-3.0
wagonrepairer/Zero-K
LuaUI/Widgets/tipdispenser.lua
5
16001
local widgetName = "Automatic Tip Dispenser" local playerID = Spring.GetMyPlayerID() local rank = playerID and select(9, Spring.GetPlayerInfo(playerID)) function widget:GetInfo() return { name = widgetName, desc = "v0.4 Teach you to play the game, one tip at a time", author = "KingRaptor; original by zwzsg", ...
gpl-2.0
mohammadclashclash/mohammadc
plugins/antispam.lua
30
4161
do local NUM_MSG_MAX = 4 local TIME_CHECK = 4 -- seconds local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end...
gpl-2.0
crazyquark/cardpeek
dot_cardpeek_dir/scripts/lib/currency_codes.lua
16
5759
CURRENCY_NUM_CODES = { [008]={"Lek",2}, [012]={"Algerian Dinar",2}, [032]={"Argentine Peso",2}, [036]={"Australian Dollar",2}, [044]={"Bahamian Dollar",2}, [048]={"Bahraini Dinar",3}, [050]={"Taka",2}, [051]={"Armenian Dram",2}, [052]={"Barbados Dollar",2}, [060]={"Bermudian Dollar",2}, [064]={"N...
gpl-3.0
apaszke/nn
WeightedMSECriterion.lua
22
1259
local WeightedMSECriterion, parent = torch.class('nn.WeightedMSECriterion','nn.MSECriterion') function WeightedMSECriterion:__init(w) parent.__init(self) self.weight = w:clone() end function WeightedMSECriterion:updateOutput(input,target) self.buffer = self.buffer or input.new() self.buffer:resizeAs(input...
bsd-3-clause
shingenko/darkstar
scripts/zones/Kazham/npcs/Bhoyu_Halpatacco.lua
17
1254
----------------------------------- -- Area: Kazham -- NPC: Bhoyu Halpatacco -- @zone 250 -- @pos -18 -4 -15 ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); ----------------------------------- -- onTrade Action -----------...
gpl-3.0
shingenko/darkstar
scripts/globals/spells/valor_minuet_iv.lua
18
1537
----------------------------------------- -- Spell: Valor Minuet IV -- Grants Attack bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster...
gpl-3.0
PhilMo6/Lua_pi_pan
obj/1w_TempSensor.lua
1
1535
local Cloneable = require("obj.Sensor") local Sensor = Cloneable:clone() --[[ This module is for 1 wire tempature sensors such as the DS18B20 and should be hooked up as is the provided link. https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware ]] Sensor.location = 'se...
mit
ArcherSys/ArcherSys
Lua/lua/luarocks/fetch.lua
1
11870
--- Functions related to fetching and loading local and remote files. module("luarocks.fetch", package.seeall) local fs = require("luarocks.fs") local dir = require("luarocks.dir") local type_check = require("luarocks.type_check") local path = require("luarocks.path") local deps = require("luarocks.deps") local persi...
mit
shingenko/darkstar
scripts/zones/AlTaieu/mobs/Ru_aern.lua
16
2749
----------------------------------- -- Area: Al'Taieu -- NPC: Ru_aern ----------------------------------- require("scripts/globals/missions"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) end; -------------------------...
gpl-3.0
fingon/hnet-core
spec/linux_if_spec.lua
1
3502
#!/usr/bin/env lua -- -*-lua-*- -- -- $Id: linux_if_spec.lua $ -- -- Author: Markus Stenberg <markus stenberg@iki.fi> -- -- Copyright (c) 2012 cisco Systems, Inc. -- -- Created: Mon Oct 29 16:05:22 2012 mstenber -- Last modified: Tue Jun 4 18:48:40 2013 mstenber -- Edit time: 15 min -- require "busted" requ...
gpl-2.0
truefitness/vlc
share/lua/playlist/pluzz.lua
105
3740
--[[ $Id$ Copyright © 2011 VideoLAN Authors: Ludovic Fauvet <etix at l0cal dot com> 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 (at your option) any l...
gpl-2.0
shingenko/darkstar
scripts/zones/Beaucedine_Glacier/npcs/Luck_Rune.lua
34
1089
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Luck Rune -- Involved in Quest: Mhaura Fortune -- @pos 70.736 -37.778 149.624 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ------------------------------------- require("sc...
gpl-3.0
henry4k/LDoc
ldoc/html/ldoc_one_css.lua
7
4176
return require('ldoc.html._reset_css') .. [[ body { margin-left: 1em; margin-right: 1em; font-family: arial, helvetica, geneva, sans-serif; background-color: #ffffff; margin: 0px; } code, tt { font-family: monospace; font-size: 1.1em; } body, p, td, th { font-size: .95em; line-height: 1.2em...
mit
psychon/awesome
tests/examples/wibox/layout/template.lua
5
3075
local file_path, image_path = ... require("_common_template")(...) local wibox = require( "wibox" ) local color = require( "gears.color" ) local beautiful = require( "beautiful" ) local unpack = unpack or table.unpack -- luacheck: globals unpack (compatibility with Lua 5.1) -- Create a generi...
gpl-2.0
wagonrepairer/Zero-K
units/corsilo.lua
2
6224
unitDef = { unitname = [[corsilo]], name = [[Silencer]], description = [[Strategic Nuclear Launcher, Drains 18 m/s, 3 minute stockpile]], acceleration = 0, brakeRate = 0, buildAngle = 8192...
gpl-2.0
shingenko/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/mobs/Ix_aern_mnk.lua
22
2773
----------------------------------- -- Area: Grand Palace of HuXzoi -- NPC: Ix_aern_mnk -- ID: 16916815 ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onMobInitialize Action ----------------------------------- function onMobInitialize(mob) ...
gpl-3.0
fingon/hnet-core
scr.lua
1
9692
#!/usr/bin/env lua -- -*-lua-*- -- -- $Id: scr.lua $ -- -- Author: Markus Stenberg <markus stenberg@iki.fi> -- -- Copyright (c) 2013 cisco Systems, Inc. -- -- Created: Thu Apr 25 10:13:25 2013 mstenber -- Last modified: Sat Oct 19 01:46:38 2013 mstenber -- Edit time: 164 min -- -- coroutine event reactor - c...
gpl-2.0
TheAncientGoat/GodheadLips
data/godhead/scripts/content/items.lua
1
18212
------------------------------------------------------------------------------ -- Materials. -- * materials (label used below in "weapons" section) -- tile \ state label stone ore ingot -- ================================================== -- adamantium A 4 - - -- aquanite Q 2 - - -- crimson C 4 - - -- granite/f...
gpl-3.0
wagonrepairer/Zero-K
gamedata/modularcomms/functions.lua
4
4879
function lowerkeys(t) local tn = {} for i,v in pairs(t) do local typ = type(i) if type(v)=="table" then v = lowerkeys(v) end if typ=="string" then tn[i:lower()] = v else tn[i] = v end end return tn end mapWeaponToCEG = { [3] = {3,4}, [5] = {1,2}, } function Dynamic...
gpl-2.0
AleksCore/Mr.Green-MTA-Resources
resources/[race]/race_progress/Xml.lua
4
5693
--- -- XML Class for easier XML writing/reading -- -- @author driver2 -- @copyright 2009 driver2 -- -- Recent Changes: -- 2010-01-19: Added more comments -- Xml = {} --- -- Creates a new Object and sets the XML-File and rootnode name -- to work on. -- -- @param string file: The name of the file -- @param stri...
mit
xFleury/crawl-0.13.0-fairplay
source/dat/dlua/layout/hyper_shapes.lua
1
4382
------------------------------------------------------------------------------ -- hyper_shapes.lua: -- -- Creates shapes for layout paint arrays -- -- TODO: Largely this file is redundant in favour of better placement -- strategies. The interesting things here are size functions; cave rooms -- (which should either go i...
gpl-2.0
AleksCore/Mr.Green-MTA-Resources
resources/[web]/irc/scripts/channels.lua
4
2620
--------------------------------------------------------------------- -- Project: irc -- Author: MCvarial -- Contact: mcvarial@gmail.com -- Version: 1.0.0 -- Date: 31.10.2010 --------------------------------------------------------------------- -- everything is saved here channels = {} -- syntax: [channel] = {string n...
mit
shingenko/darkstar
scripts/zones/Southern_San_dOria/npcs/Raimbroy.lua
17
3329
----------------------------------- -- Area: Southern San d'Oria -- NPC: Raimbroy -- Starts and Finishes Quest: The Sweetest Things -- @zone 230 -- @pos ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
shingenko/darkstar
scripts/zones/Phomiuna_Aqueducts/npcs/qm1.lua
34
1033
----------------------------------- -- Area: Phomiuna Aqueducts -- NPC: qm1 (???) -- Notes: Opens east door @ F-7 -- @pos -44.550 -24.601 106.495 27 ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,tra...
gpl-3.0
wagonrepairer/Zero-K
LuaUI/Widgets/chili/Controls/treeview.lua
17
2562
--//============================================================================= TreeView = Control:Inherit{ classname = "treeview", autosize = true, minItemHeight = 16, defaultWidth = "100%", defaultHeight = "100%", selected = 1, root = nil, nodes = {}, defaultExpanded = false, OnSelectNod...
gpl-2.0
shingenko/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Nivorajean.lua
38
1048
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Nivorajean -- Type: Standard NPC -- @zone: 26 -- @pos 15.890 -22.999 13.322 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; -...
gpl-3.0
jyggen/lua-parser
tests/Fixtures/33/f9/41/936f0c8416673b60b50d4e4f6c8b43f1a53cae607793d0f0d59cd46bbd.lua
1
1100
GHI_ContainerData = { } GHI_ItemData = { } GHI_CooldownData = { } GHI_MiscData = { ["stick_player_buffs"] = true, ["tooltip_version"] = true, ["BackpackPos"] = { 960, -- [1] 539.999938964844, -- [2] }, ["UI_Themes"] = { ["Current"] = { ["detailsTextColor"] = { 1, -- [1] 1, -- [2] 1, -- [3] ...
mit
psychon/awesome
lib/awful/widget/calendar_popup.lua
2
18112
--------------------------------------------------------------------------- -- A calendar popup wibox -- -- Display a month or year calendar popup using `calendar_popup.month` or `calendar_popup.year`. -- The calendar style can be tweaked by providing tables of style properties at creation: -- `style_year`, `style_mont...
gpl-2.0
Illarion-eV/Illarion-Content
quest/fokous_onyxbrow_189_galmair.lua
1
13519
--[[ Illarion Server This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it wi...
agpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/objects/object.lua
1
5424
require "client/objects/speedline" Object.ipol_correction = 0.8 Object.ipol_max_error = 20 Object.dict_active = setmetatable({}, {__mode = "k"}) Object.physics_position_correction = Vector(0, 0, 0) Object.animate_spec = function(self, name) return self:set_anim(name) end Object.detach = function(self) -- Hide spec...
gpl-3.0
TheAncientGoat/GodheadLips
data/godhead/scripts/client/commands.lua
1
2045
Commands = {} --- Initiates targeting for the examine command. -- @param self Commands class. Commands.examine = function(self) Target:start("What would you like to examine?", function(where, id, slot) if where == "inv" then Network:send{packet = Packet(packets.PLAYER_EXAMINE, "uint32", id, "uint32", slot)} el...
gpl-3.0
shingenko/darkstar
scripts/zones/Al_Zahbi/npcs/Zwiyaam.lua
38
1024
----------------------------------- -- Area: Al Zahbi -- NPC: Zwiyaam -- Type: Standard NPC -- @zone: 48 -- @pos 14.814 -7.667 41.889 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; -------------------------...
gpl-3.0
nadavo/DeepLearningCourse
hw1/loadMyModel.lua
1
1192
local M = {} local function forwardNet(model, data, labels) local confusion = optim.ConfusionMatrix(torch.range(0,9):totable()) local batchSize = 64 local criterion = nn.ClassNLLCriterion():cuda() local numBatches = 0 for i = 1, data:size(1) - batchSize, batchSize do numBatches = numBatches...
mit
shingenko/darkstar
scripts/zones/Temenos/Zone.lua
28
5036
----------------------------------- -- -- Zone: Temenos (37) -- ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Temenos/TextIDs"); require("scripts/globals/limbus"); -...
gpl-3.0
ArcherSys/ArcherSys
Lua/lua/loop/object/Exception.lua
12
2141
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit