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
TeamEOS/external_skia
tools/lua/bitmap_statistics.lua
207
1862
function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end local canvas = nil local num_perspective_bitmaps = 0 local num_affine_bitmaps = 0 local num_scaled_bitmaps = 0 loc...
bsd-3-clause
dickeyf/darkstar
scripts/zones/Nashmau/npcs/Pipiroon.lua
13
1206
----------------------------------- -- Area: Nashmau -- NPC: Pipiroon -- Standard Merchant NPC ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/globals/shop"); ---------------------...
gpl-3.0
dickeyf/darkstar
scripts/zones/Windurst_Woods/npcs/Perih_Vashai.lua
1
7754
----------------------------------- -- Area: Windurst Woods -- NPC: Parih Vashai -- Starts and Finishes Quest: The Fanged One -- @zone 241 -- @pos 117 -3 92 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/globals/se...
gpl-3.0
nagyistoce/OpenBird
cocos2d/cocos/scripting/lua/script/Cocos2d.lua
26
9014
require "CocoStudio" cc = cc or {} cc.DIRECTOR_PROJECTION_2D = 0 cc.DIRECTOR_PROJECTION_3D = 1 function cc.clampf(value, min_inclusive, max_inclusive) -- body local temp = 0 if min_inclusive > max_inclusive then temp = min_inclusive min_inclusive = max_inclusive max_inclusive = ...
mit
dickeyf/darkstar
scripts/zones/Rolanberry_Fields/npcs/Cavernous_Maw.lua
27
2925
----------------------------------- -- Area: Rolanberry Fields -- NPC: Cavernous Maw -- @pos -198 8 361 110 -- Teleports Players to Rolanberry Fields [S] ----------------------------------- package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil; ----------------------------------- require("scripts/globals/se...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c97520701.lua
2
2544
--臨時ダイヤ function c97520701.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetCountLimit(1,97520701+EFFECT_COUNT_CODE_OATH) e1:SetTarget(c97520701.target)...
gpl-2.0
Metastruct/pac3
lua/pac3/experiments/pac4_3.lua
1
10178
pac4 = pac4 or {} local pac4 = pac4 pac4.parts = pac4.parts or {} for i,v in pairs(pac4.parts) do if v.Entity:IsValid() then v.Entity:Remove() end end table.Empty(pac4.parts) for k, v in pairs(hook.GetTable()) do for k2,v2 in pairs(v) do if k2 == "pac4" then hook.Remove(k, k2) end end end pac4.hooked_entiti...
gpl-3.0
Turttle/darkstar
scripts/zones/Lower_Jeuno/npcs/_l04.lua
36
1559
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -73.039 6 -95.633 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/glob...
gpl-3.0
dickeyf/darkstar
scripts/zones/Kazham/npcs/Eron-Tomaron.lua
27
3824
----------------------------------- -- Area: Kazham -- NPC: Eron-Tomaron -- Title Change NPC -- @pos -22 -4 -24 250 ----------------------------------- require("scripts/globals/titles"); local title2 = { DISCERNING_INDIVIDUAL , VERY_DISCERNING_INDIVIDUAL , EXTREMELY_DISCERNING_INDIVIDUAL , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,...
gpl-3.0
dickeyf/darkstar
scripts/globals/items/bowl_of_puls.lua
18
1290
----------------------------------------- -- ID: 4492 -- Item: bowl_of_puls -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Vitality 2 -- Dexterity -1 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); -----------------------------...
gpl-3.0
Turttle/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/_6eo.lua
31
1367
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Door:House -- @zone 80 -- @pos 148 0 27 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/globals/quests"); require("scripts/globals/settings"); ---------------------------...
gpl-3.0
newbots/dark2
plugins/plugins.lua
88
6304
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
Turttle/darkstar
scripts/zones/Diorama_Abdhaljs-Ghelsba/Zone.lua
36
1149
----------------------------------- -- -- Zone: Diorama_Abdhaljs-Ghelsba -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"] = nil; require("scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"); --------------------------...
gpl-3.0
Turttle/darkstar
scripts/zones/West_Ronfaure/npcs/Yoshihiro_IM.lua
30
3046
----------------------------------- -- Area: West Ronfaure -- NPC: Yoshihiro, I.M. -- Outpost Conquest Guards -- @pos -450.571 -20.807 -219.970 100 ----------------------------------- package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); ...
gpl-3.0
alishbully6528/htm
bot/bot.lua
1
7093
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '0.14.6' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then r...
gpl-2.0
dickeyf/darkstar
scripts/zones/Cloister_of_Tremors/npcs/qm2.lua
13
1400
----------------------------------- -- Area: Cloister of Tremors -- NPC: qm2 (???) -- Involved in Quest: Open Sesame -- Notes: Used to obtain a Tremor Stone -- @pos -545.184,1.855,-495.693 209 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ---------------------...
gpl-3.0
Turttle/darkstar
scripts/zones/Northern_San_dOria/npcs/Andreas.lua
19
2728
----------------------------------- -- Area: Northern San d'Oria -- NPC: Andreas -- Type: Guildworker's Union Representative -- @zone: 231 -- @pos -189.282 10.999 262.626 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/globals/keyitems"); requ...
gpl-3.0
lordtg/lordtg
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
MOSAVI17/FLOGBOT
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
patrikrm13/bostg
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
dickeyf/darkstar
scripts/globals/weaponskills/tachi_jinpu.lua
11
1398
----------------------------------- -- Tachi Jinpu -- Great Katana weapon skill -- Skill level: 150 -- Two-hit attack. Deals Physical and wind elemental damage to enemy. Additonal Effect Damage varies with TP. -- Will stack with Sneak Attack and Souleater. -- Aligned with the Breeze Gorget & Shadow Gorget. -- Aligned w...
gpl-3.0
zorbathut/frames
script/premake/project_general.lua
1
1137
--[[Copyright 2014 Mandible Games This file is part of Frames. Please see the COPYING file for detailed licensing information. Frames is dual-licensed software. It is available under both a commercial license, and also under the terms of the GNU General Public License as published by ...
gpl-3.0
fgenesis/Aquaria_experimental
game_scripts/scripts/entities/nudibranchtemplate.lua
6
2979
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 later vers...
gpl-2.0
dickeyf/darkstar
scripts/zones/Temenos/mobs/Pee_Qoho_the_Python.lua
7
1578
----------------------------------- -- Area: Temenos -- NPC: ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Temenos/TextIDs"); ----------------------------------- -- onMobSpaw...
gpl-3.0
Turttle/darkstar
scripts/zones/Norg/npcs/Mamaulabion.lua
17
7918
----------------------------------- -- Area: Norg -- NPC: Mamaulabion -- Starts and finishes Quest: Mama Mia -- @zone 252 -- @pos -57 -9 68 (88) --CSIDs for Mamaulabion --0x005D / 93 = Standard --0x00BF / 191 = start quest --0x00C0 / 192 = quest accepted --0x00C1 / 193 = given an item --0x00C2 / 194 = give...
gpl-3.0
Metastruct/pac3
lua/pac3/core/client/parts/text.lua
1
2685
local cam_Start3D = cam.Start3D local cam_Start3D2D = cam.Start3D2D local EyePos = EyePos local EyeAngles = EyeAngles local draw_SimpleTextOutlined = draw.SimpleTextOutlined local render_CullMode = render.CullMode local cam_End3D2D = cam.End3D2D local cam_End3D = cam.End3D local TEXT_ALIGN_CENTER = TEXT_ALIGN_CENTER lo...
gpl-3.0
Riverlance/kingdom-age-game-windows
modules/corelib/ui/mouseicon.lua
1
3044
g_mouseicon = { } -- private variables local fadeOutTime = 50 local defaultSize = { width = 32, height = 32 } local defaultIconOpacity = 30 -- % local defaultItemIconOpacity = 30 -- % local mouseIcon -- private functions local function moveIcon(firstDisplay) if not firstDisplay and not mouseIcon:isVisible() then ...
mit
Turttle/darkstar
scripts/zones/Lower_Jeuno/npcs/_l10.lua
36
1556
----------------------------------- -- Area: Lower Jeuno -- NPC: Streetlamp -- Involved in Quests: Community Service -- @zone 245 -- @pos -19 0 -4.625 ----------------------------------- package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/s...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c98495314.lua
4
2016
--執念の剣 function c98495314.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(c98495314.target) e1:SetOperation(c98495314.operation) c:RegisterEffect(e1) -...
gpl-2.0
Turttle/darkstar
scripts/zones/Lower_Jeuno/npcs/Matoaka.lua
37
1171
----------------------------------- -- Area: Lower Jeuno -- NPC: Matoaka -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil; require("scripts/zones/Lower_Jeuno/TextIDs"); ----------------------------------- ...
gpl-3.0
Turttle/darkstar
scripts/zones/RuLude_Gardens/npcs/Pherimociel.lua
19
2513
----------------------------------- -- Area: Ru'Lude Gardens -- NPC: Pherimociel -- Involved in mission: COP 1-2 -- @pos -31.627 1.002 67.956 243 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); r...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c13890468.lua
9
1419
--精霊獣 ペトルフィン function c13890468.initial_effect(c) c:SetSPSummonOnce(13890468) --tohand local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetCountLimit(1) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_MZONE) e1:SetCost(c13890468.cost) e1:SetTarge...
gpl-2.0
eugeneia/snabb
src/apps/intel/intel_app.lua
6
18343
-- Use of this source code is governed by the Apache 2.0 license; see COPYING. module(...,package.seeall) local basic_apps = require("apps.basic.basic_apps") local ffi = require("ffi") local lib = require("core.lib") local shm = require("core.shm") local counter = require("core.counter") local pci ...
apache-2.0
SalvationDevelopment/Salvation-Scripts-TCG
c64437633.lua
2
1746
--儀水鏡の幻影術 function c64437633.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetTarget(c64437633.target) e1:SetOperation(c64437633.activate) c:RegisterEffect(e1) end function c64437633.filter(c,...
gpl-2.0
dickeyf/darkstar
scripts/globals/abilities/water_shot.lua
1
2809
----------------------------------- -- Ability: Water Shot -- Consumes a Water Card to enhance water-based debuffs. Deals water-based magic damage -- Drown Effect: Enhanced DoT and STR- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/...
gpl-3.0
nagyistoce/OpenBird
Resources/DeprecatedOpenglEnum.lua
148
11934
-- This is the DeprecatedEnum DeprecatedClass = {} or DeprecatedClass _G.GL_RENDERBUFFER_INTERNAL_FORMAT = gl.RENDERBUFFER_INTERNAL_FORMAT _G.GL_LINE_WIDTH = gl.LINE_WIDTH _G.GL_CONSTANT_ALPHA = gl.CONSTANT_ALPHA _G.GL_BLEND_SRC_ALPHA = gl.BLEND_SRC_ALPHA _G.GL_GREEN_BITS = gl.GREEN_BITS _G.GL_STENCIL_REF = gl.STENCI...
mit
SalvationDevelopment/Salvation-Scripts-TCG
c96872283.lua
4
1476
--エヴォルテクター シュバリエ function c96872283.initial_effect(c) aux.EnableDualAttribute(c) --destroy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(96872283,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_MZONE) e1:SetCond...
gpl-2.0
Turttle/darkstar
scripts/globals/mobskills/Spike_Flail.lua
18
1248
--------------------------------------------------- -- Spike Flail -- Deals extreme damage in a threefold attack to targets behind the user. --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); -...
gpl-3.0
dickeyf/darkstar
scripts/zones/Selbina/npcs/Porter_Moogle.lua
41
1520
----------------------------------- -- Area: Selbina -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 248 -- @pos TODO ----------------------------------- package.loaded["scripts/zones/Selbina/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Selbina/TextIDs"); require("scri...
gpl-3.0
Turttle/darkstar
scripts/globals/weaponskills/freezebite.lua
30
1263
----------------------------------- -- Freezebite -- Great Sword weapon skill -- Skill Level: 100 -- Delivers an ice elemental attack. Damage varies with TP. -- Aligned with the Snow Gorget & Breeze Gorget. -- Aligned with the Snow Belt & Breeze Belt. -- Element: Ice -- Modifiers: STR:30% ; INT:20% -- 100%TP ...
gpl-3.0
fgenesis/Aquaria_experimental
game_scripts/scripts/entities/collectibleenergystatue.lua
6
1296
-- Copyright (C) 2007, 2010 - Bit-Blot -- -- This file is part of Aquaria. -- -- Aquaria 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 later vers...
gpl-2.0
dickeyf/darkstar
scripts/zones/Windurst_Woods/npcs/Nya_Labiccio.lua
16
1489
----------------------------------- -- Area: Windurst Woods -- NPC: Nya Labiccio -- Only sells when Windurst controlls Gustaberg Region -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); package.loaded["scripts/zones/Windurst_...
gpl-3.0
erictheredsu/eric_git
MGCN/wow/WTF/Account/ERIC/SavedVariables/BindPad.lua
1
7304
BindPadVars = { { }, -- [1] { }, -- [2] { }, -- [3] { }, -- [4] { }, -- [5] { }, -- [6] { }, -- [7] { }, -- [8] { }, -- [9] { }, -- [10] { }, -- [11] { }, -- [12] { }, -- [13] { }, -- [14] { }, -- [15] { }, -- [16] { }, -- [17] { }, -- [18] { }, -- [19] { }, -- [20] { }, -- [2...
gpl-3.0
dickeyf/darkstar
scripts/zones/Palborough_Mines/npcs/Treasure_Chest.lua
13
3052
----------------------------------- -- Area: Palborough Mines -- NPC: Treasure Chest -- @zone 143 ----------------------------------- package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("s...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c47264717.lua
4
1248
--シューティング・スター function c47264717.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetCode(EVENT_FREE_CHAIN) e1:SetHintTiming(TIMING_ATTACK,0x11e0) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCondition(c47264717.condition) e1:Set...
gpl-2.0
Turttle/darkstar
scripts/zones/Garlaige_Citadel/npcs/Oaken_Box.lua
17
1730
----------------------------------- -- Area: Garlaige Citadel -- NPC: Oaken Box -- Involved In Quest: Peace for the Spirit -- @pos -164 0.1 225 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
SalvationDevelopment/Salvation-Scripts-TCG
c40607210.lua
2
2569
--ヴァンパイア・グレイス function c40607210.initial_effect(c) --spsummon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40607210,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCountLimit(1,...
gpl-2.0
Turttle/darkstar
scripts/zones/Port_San_dOria/npcs/Portaure.lua
13
1442
----------------------------------- -- Area: Port San d'Oria -- NPC: Portaure -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; require("scripts/zones/Port_San_dOria/TextIDs"); ----------------------------------- -- onTrade Action -------...
gpl-3.0
Turttle/darkstar
scripts/zones/Northern_San_dOria/npcs/Jufaue.lua
38
1052
----------------------------------- -- Area: Northern San d'Oria -- NPC: Jufaue -- Type: Past Event Watcher -- @zone: 231 -- @pos 13.221 -1.199 -19.231 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = ni...
gpl-3.0
Turttle/darkstar
scripts/zones/Norg/npcs/Fouvia.lua
38
1611
----------------------------------- -- Area: Norg -- NPC: Fouvia -- Type: Wyvern Name Changer -- @zone: 252 -- @pos -84.066 -6.414 47.826 ----------------------------------- package.loaded["scripts/zones/Norg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); require("scripts/...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Cloister_of_Flames/npcs/Fire_Protocrystal.lua
5
1887
----------------------------------- -- Area: Cloister of Flames -- NPC: Fire Protocrystal -- Involved in Quests: Trial by Fire, Trial Size Trial by Fire -- !pos -721 0 -598 207 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ----------------------------------- req...
gpl-3.0
mandersan/premake-core
modules/vstudio/tests/vc2010/test_target_machine.lua
14
1629
--- -- tests/actions/vstudio/vc2010/test_target_machine.lua -- Validate generation of the <TargetMachine> element -- Copyright (c) 2015 Jason Perkins and the Premake project --- local p = premake local suite = test.declare("vstudio_vs2010_target_machine") local vc2010 = p.vstudio.vc2010 -- -- Setup -- local wks...
bsd-3-clause
TEAMvirus/ViRuS
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
ASHRAF97/ASHRAFKASPER
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
abosalah22/zak
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/Actions.lua
6
9228
Actions = { -- Teleport an entity from the current position to the given position Teleport = function(map, tileX, tileY, layer) layer = layer or 1 return function(trigger, entity, tX, tY, tLayer) entity:SetTilePos(tileX, tileY, layer, map) end end, AddNPC =...
mit
ocurr/hammerspoon
extensions/window/layout.lua
4
40264
--- === hs.window.layout === --- --- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION. --- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**. --- (Should you encounter any issues, please feel free to report them on htt...
mit
RedeMinas/portal
lib_calendar.lua
1
3517
--- agenda object calendar = {} function calendar:new(o) o = o or {} setmetatable(o, self) self.__index = self self.pos = 1 self.spos = 1 self.icons = 7 self.aposh = 1 self.aposv = 1 -- self.pgmicons = math.floor(SCREEN_WIDTH/210) -- self.list=layoutPgmTable(ReadTable("tbl_pgm.txt")) self.debug=fa...
agpl-3.0
Ninjistix/darkstar
scripts/zones/Oldton_Movalpolos/npcs/Treasure_Chest.lua
5
3154
----------------------------------- -- Area: Oldton Movalpolos -- NPC: Treasure Chest -- @zone 11 ----------------------------------- package.loaded["scripts/zones/Oldton_Movalpolos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("s...
gpl-3.0
kbullaughey/lstm-play
toys/lstm/model-1_layer.lua
1
10044
#!/usr/bin/env th toy = require '../toy/toy' require 'nngraph' -- Allow for command-line control over the seed and number of examples. cmd = torch.CmdLine() cmd:text() cmd:text('Train single-layer LSTM model using toy data.') cmd:text() cmd:text('Options') --cmd:option('-seed',os.time(),'initial random seed (defaults...
mit
Ninjistix/darkstar
scripts/globals/spells/bluemagic/stinking_gas.lua
5
1296
----------------------------------------- -- Spell: Stinking Gas -- Lowers Vitality of enemies within range -- Spell cost: 37 MP -- Monster Type: Undead -- Spell Type: Magical (Wind) -- Blue Magic Points: 2 -- Stat Bonus: AGI+1 -- Level: 44 -- Casting Time: 4 seconds -- Recast Time: 60 seconds -- Magic Bursts on: Deton...
gpl-3.0
ccyphers/kong
kong/dao/db/init.lua
3
1688
local utils = require "kong.tools.utils" local _M = {} function _M.new_db(name) local db_mt = { name = name, init = function() return true end, init_worker = function() return true end, infos = function() error('infos() not implemented') ...
apache-2.0
Ninjistix/darkstar
scripts/zones/Cloister_of_Flames/bcnms/sugar-coated_directive.lua
5
1798
---------------------------------------- -- Area: Cloister of Flames -- BCNM: Sugar Coated Directive (ASA-4) -- !pos -721 0 -598 207 ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Flames/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); re...
gpl-3.0
hvbommel/domoticz
dzVents/runtime/xmlhandler/tree.lua
9
4366
local function init() local obj = { root = {}, options = {noreduce = {}} } obj._stack = {obj.root, n=1} return obj end --- @module XML Tree Handler. -- Generates a lua table from an XML content string. -- It is a simplified handler which attempts -- to generate a more 'natural' table based structure which...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/airplane.lua
2
2698
local anim8 = require 'vendor/anim8' local sound = require 'vendor/TEsound' local gamestate = require 'vendor/gamestate' local Platform = require 'nodes/platform' local Airplane = {} Airplane.__index = Airplane local AirplaneSprite = love.graphics.newImage('images/airplane.png') local g = anim8.newGrid(168, 24, Airpl...
mit
Ninjistix/darkstar
scripts/globals/spells/burn.lua
5
2063
----------------------------------------- -- Spell: Burn -- Deals fire damage that lowers an enemy's intelligence and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg...
gpl-3.0
draekko/keys
VSCOKeys.lrdevplugin/halfway_server/socket/url.lua
148
10529
----------------------------------------------------------------------------- -- URI parsing, composition and relative URL resolution -- LuaSocket toolkit. -- Author: Diego Nehab -- RCS ID: $Id: url.lua,v 1.38 2006/04/03 04:45:42 diego Exp $ ----------------------------------------------------------------------------- ...
gpl-2.0
DEVll190ll/DEV_HR
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
allwenandashi/seed
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ASHRAF97/ASHRAFKASPER
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
BooM-amour/bomb
plugins/help.lua
44
5047
do 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
eugenesan/openwrt-luci
protocols/ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
63
1662
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 Steven Barth <steven@midlink.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://w...
apache-2.0
Ninjistix/darkstar
scripts/globals/spells/frost.lua
5
2061
----------------------------------------- -- Spell: Frost -- Deals ice damage that lowers an enemy's agility and gradually reduces its HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); -...
gpl-3.0
pilhuhn/hawkular-mqtt-bridge
examples/esp8266/lua/script1.lua
1
4556
-- sample code to run on an ESP8266 -- like the Adafruit Huzzah ESP -- with a 1 wire ds1820 on Huzzah pin 12 -- which maps to ESP port 6 -- this script contains code found on the -- NodeMCU readthedocs page -- The Huzzah needs a firmware with -- net, mqtt, wifi, onewire -- change the following to match your setup pi...
apache-2.0
silverhammermba/openglad
premake4.lua
2
2449
solution "Openglad" configurations { "Debug", "Release" } newoption { trigger = "cflags", value = "FLAGS", description = "Flags passed directly to the compiler." } newoption { trigger = "ldflags", value = "FLAGS", description = "Flags passed directly to the linker....
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/ojo_rice_ball.lua
3
1113
----------------------------------------- -- ID: 5929 -- Item: Ojo Rice Ball -- Food Effect: 60 Mins, All Races ----------------------------------------- -- HP +50 -- Dexterity +5 -- Vitality +5 -- Character +5 -- Effect with enhancing equipment (Note: these are latents on gear with the effect) -- Attack +60 -- Defense...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/cone_of_snoll_gelato.lua
3
1060
----------------------------------------- -- ID: 5147 -- Item: cone_of_snoll_gelato -- Food Effect: 30Min, All Races ----------------------------------------- -- MP % 16 (cap 75) -- MP Recovered While Healing 1 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Dynamis-Windurst/mobs/Avatar_Icon.lua
5
3291
----------------------------------- -- Area: Dynamis Windurst -- MOB: Avatar Icon -- Map1 Position: http://images2.wikia.nocookie.net/__cb20090312004752/ffxi/images/8/84/Win1.jpg -- Map2 Position: http://images2.wikia.nocookie.net/__cb20090312004839/ffxi/images/6/61/Win2.jpg ----------------------------------- require...
gpl-3.0
Ninjistix/darkstar
scripts/zones/San_dOria-Jeuno_Airship/npcs/Ricaldo.lua
5
2020
----------------------------------- -- Area: San d'Oria-Jeuno Airship -- NPC: Ricaldo -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/San_dOria-Jeuno_Airship/TextIDs"] = nil; ----------------------------------- require("scripts/zones/San_dOria-Jeuno_Airship/TextIDs"); -----------...
gpl-3.0
LuaDist2/llui
src/xf86drmMode_ffi.lua
4
10482
local ffi = require("ffi") local bit = require("bit") local bor = bit.bor local band = bit.band local drm = require("drm") --local drm_mode = drm.drm_mode(); ffi.cdef[[ typedef struct _drmModeRes { int count_fbs; uint32_t *fbs; int count_crtcs; uint32_t *crtcs; int count_connectors; uint32_t *connecto...
mit
Ninjistix/darkstar
scripts/commands/completemission.lua
10
1637
--------------------------------------------------------------------------------------------------- -- func: completemission <logID> <missionID> <player> -- desc: Completes the given mission for the target player, if that mission is currently active. ---------------------------------------------------------------------...
gpl-3.0
mandersan/premake-core
src/base/configset.lua
22
13610
-- -- base/configset.lua -- -- A configuration set manages a collection of fields, which are organized -- into "blocks". Each block stores a set of field-value pairs, along with -- a list of terms which indicate the context in which those field values -- should be applied. -- -- Configurations use the field definitions...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
001_cancel_textboxes/code/SaveScheme.lua
4
4101
SaveScheme = { meta = 'marked', fields = { ['gWorld'] = { meta = 'marked', fields = { ['mTime'] = { meta = 'copy' }, ['mGold'] = { meta = 'copy' }, ['mItems'] = { meta = 'copy' }, ['mKeyItems'...
mit
Ninjistix/darkstar
scripts/zones/Eastern_Altepa_Desert/npcs/Daborn_IM.lua
3
2977
----------------------------------- -- Area: Eastern Altepa Desert -- NPC: Daborn, I.M. -- Border Conquest Guards -- !pos 226.493 -12.231 260.194 114 ----------------------------------- package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/globals/con...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Balgas_Dais/bcnms/shattering_stars.lua
5
2093
----------------------------------- -- Area: Balga's Dais -- Name: Shattering stars - Maat Fight -- !pos 299 -123 345 146 ----------------------------------- package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/ques...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/_5ci.lua
5
1130
----------------------------------- -- Area: Inner Horutoto Ruins -- NPC: _5ci (Gate of Light) -- Involved In Mission: 3-2 -- !pos -331 0 139 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitem...
gpl-3.0
Ninjistix/darkstar
scripts/zones/The_Sanctuary_of_ZiTah/npcs/qm4.lua
5
1493
----------------------------------- -- Area: The Sanctuary of Zitah -- NPC: ??? -- Finishes Quest: Lovers in the Dusk -- @zone 121 ----------------------------------- package.loaded["scripts/zones/The_Sanctuary_of_ZiTah/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_Bastok/Zone.lua
4
2875
----------------------------------- -- -- Zone: Port_Bastok (236) -- ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/zone"); require("scripts/globals/settings"); require("scripts/globals/missions"); require("scri...
gpl-3.0
MaxTeamch/s-yagop
plugins/mute.lua
4
5009
local function mute_reply(extra, success, result) local hash = 'mute:'..result.to.peer_id..':'..result.from.peer_id redis:set(hash, true) send_large_msg(extra, str2emoji(':information_source:')..' User ID '..result.from.peer_id..' is now muted.') end local function delmute_reply(extra, success, result) local h...
gpl-2.0
konnected-io/konnected-security
src/lfs/server.lua
1
1155
local device = require("device") -- enable discovery if require("settings").discovery ~= false then print("Heap: ", node.heap(), 'UPnP:', 'Listening for UPnP discovery') net.multicastJoin(wifi.sta.getip(), '239.255.255.250') local upnp = net.createUDPSocket() upnp:listen(1900, '0.0.0.0') upnp:on('receive', f...
apache-2.0
wounds1/zaza2
plugins/whitelist.lua
170
2472
do local function get_message_callback (extra , success, result) if result.service then local action = result.action.type if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then if result.action.user then user_id = result.action.use...
gpl-2.0
abosalah22/zak
plugins/whitelist.lua
170
2472
do local function get_message_callback (extra , success, result) if result.service then local action = result.action.type if action == 'chat_add_user' or action == 'chat_del_user' or action == 'chat_rename' or action == 'chat_change_photo' then if result.action.user then user_id = result.action.use...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Port_Windurst/npcs/Lebondur.lua
5
1247
----------------------------------- -- Area: Port Windurst -- NPC: Lebondur -- Regional Marchant NPC -- Only sells when Windurst controls Vollbow. -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- re...
gpl-3.0
premake/premake-4.x
tests/actions/test_clean.lua
19
4313
-- -- tests/actions/test_clean.lua -- Automated test suite for the "clean" action. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.clean = { } -- -- Replacement functions for remove() and rmdir() for testing -- local os_remove, os_rmdir, cwd local removed local function test_remove(fn) if n...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
002_bitmap_numbers/code/Party.lua
8
1448
Party = {} Party.__index = Party function Party:Create() local this = { mMembers = {} } setmetatable(this, self) return this end function Party:Add(member) self.mMembers[member.mId] = member end function Party:RemoveById(id) self.mMembers[id] = nil end function Party:Remove(membe...
mit
rigeirani/s
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
mohammad25253/persianguard12
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
dragoonreas/Timeless-Answers
Locales/ptBR.lua
1
1472
--[[ Brazilian Portuguese localisation strings for Timeless Answers. Translation Credits: http://wow.curseforge.com/addons/timeless-answers/localization/translators/ Please update http://www.wowace.com/addons/timeless-answers/localization/ptBR/ for any translation additions or changes. Once reviewed, the transl...
gpl-3.0
bluetomatoes/ExploreTimelines
Code/contentTemplate.lua
1
3361
W,H = display.contentWidth, display.contentHeight --Requires the Storyboard API storyboard = require ("storyboard") scene = storyboard.newScene() --Requires the menubar, which is present in all content --location = "nowhere" --Requires the multitouch external module function scene:createScene(event) group ...
mit
Ninjistix/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Dkhaaya.lua
5
2153
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Dkhaaya -- Type: Standard NPC -- !pos -73.212 -1 -5.842 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("...
gpl-3.0