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
m241dan/darkstar
scripts/zones/Toraimarai_Canal/npcs/_4pc.lua
13
1843
----------------------------------- -- Area: Toraimarai Canal -- NPC: Marble Door -- Involved In Windurst Mission 7-1 -- @pos 132 12 -19 169 169 ----------------------------------- package.loaded["scripts/zones/Toraimarai_Canal/TextIDs"] = nil; require("scripts/zones/Toraimarai_Canal/TextIDs"); -----------------------...
gpl-3.0
Har1eyquinn/dbot
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
santssoft/darkstar
scripts/globals/mobskills/warm-up.lua
12
1751
--------------------------------------------- -- Warm-Up -- -- Description: Enhances accuracy and evasion. -- Type: Magical (Earth) --------------------------------------------- require("scripts/globals/monstertpmoves") require("scripts/globals/settings") require("scripts/globals/status") ------------------------------...
gpl-3.0
hylthink/Sample_Lua
src/cocos/cocos2d/DrawPrimitives.lua
98
12024
local dp_initialized = false local dp_shader = nil local dp_colorLocation = -1 local dp_color = { 1.0, 1.0, 1.0, 1.0 } local dp_pointSizeLocation = -1 local dp_pointSize = 1.0 local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor" local targetPlatform = cc.Application:getInstance():getTargetPlatform() lo...
mit
Mailaender/OpenRA
mods/d2k/maps/harkonnen-02a/harkonnen02a-AI.lua
4
1131
--[[ Copyright 2007-2020 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
m241dan/darkstar
scripts/zones/Horlais_Peak/bcnms/hostile_herbivores.lua
30
1739
----------------------------------- -- Area: Horlias peak -- Name: Hostile Herbivores -- BCNM50 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Horlais_Peak/TextIDs"); ----------------------------------- -- EXAM...
gpl-3.0
dvr333/Zero-K
LuaRules/Gadgets/cmd_hide_autorepairlevel.lua
8
1140
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
m241dan/darkstar
scripts/globals/items/magma_steak_+1.lua
18
1597
----------------------------------------- -- ID: 6072 -- Item: Magma Steak +1 -- Food Effect: 240 Min, All Races ----------------------------------------- -- Strength +9 -- Attack +24% Cap 185 -- Ranged Attack +24% Cap 185 -- Vermin Killer +6 ----------------------------------------- require("scripts/globals/status");...
gpl-3.0
m241dan/darkstar
scripts/globals/spells/bluemagic/feather_tickle.lua
25
1164
----------------------------------------- -- Spell: Feather Tickle -- Reduces an enemy's TP -- Spell cost: 48 MP -- Monster Type: Birds -- Spell Type: Magical (Wind) -- Blue Magic Points: 3 -- Stat Bonus: AGI+1 -- Level: 64 -- Casting Time: 4 seconds -- Recast Time: 26 seconds -- Magic Bursts on: Detonation, Fragmentat...
gpl-3.0
santssoft/darkstar
scripts/globals/items/bowl_of_sophic_stew.lua
11
1170
----------------------------------------- -- ID: 5180 -- Item: bowl_of_sophic_stew -- Food Effect: 4Hrs, All Races ----------------------------------------- -- Dexterity 6 -- Intelligence 6 -- Mind 6 -- HP Recovered While Healing 3 -- MP Recovered While Healing 3 ----------------------------------------- require("scrip...
gpl-3.0
santssoft/darkstar
scripts/globals/spells/armys_paeon_vi.lua
12
1373
----------------------------------------- -- Spell: Army's Paeon VI -- Gradually restores target's HP. ----------------------------------------- require("scripts/globals/status") require("scripts/globals/msg") ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0 end ...
gpl-3.0
dvr333/Zero-K
LuaUI/Widgets/nubtron.lua
5
25673
local playerID = Spring.GetMyPlayerID() local rank = playerID and select(9, Spring.GetPlayerInfo(playerID, false)) ------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function widget:GetInfo() return { n...
gpl-2.0
hughperkins/nn
FlattenTable.lua
18
3118
local FlattenTable, parent = torch.class('nn.FlattenTable', 'nn.Module') function FlattenTable:__init() parent.__init(self) self.output = {} self.input_map = {} self.gradInput = {} end -- Recursive function to flatten a table (output is a table) local function flatten(output, input) local input_map -- has...
bsd-3-clause
dvr333/Zero-K
LuaRules/Configs/cai/accessory/no_stuck_in_factory.lua
7
3003
-- function widget:GetInfo() -- return { -- name = "UnitNoStuckInFactory", -- desc = "Always move unit away from factory's build yard & Remove an accidental build unit command from unit from factory. Prevent case of unit stuck in factory & to make sure unit can complete their move queue.", -- au...
gpl-2.0
santssoft/darkstar
scripts/zones/Mine_Shaft_2716/npcs/_0d0.lua
9
1256
----------------------------------- -- Area: Mine_Shaft_2716 -- NPC: Shaft entrance ----------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missions"); function onTrade(player,npc,trade) if (player:getCurrentMission(COP) == dsp.mission.id.cop.THREE_PATHS and ( player:getChar...
gpl-3.0
m241dan/darkstar
scripts/zones/Inner_Horutoto_Ruins/npcs/Treasure_Chest.lua
13
2986
----------------------------------- -- Area: Horutoto Ruins -- NPC: Treasure Chest -- @zone 192 ----------------------------------- package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require(...
gpl-3.0
ch3n2k/luci
contrib/luadoc/lua/luadoc/taglet/standard.lua
93
16319
------------------------------------------------------------------------------- -- @release $Id: standard.lua,v 1.39 2007/12/21 17:50:48 tomas Exp $ ------------------------------------------------------------------------------- local assert, pairs, tostring, type = assert, pairs, tostring, type local io = require "io...
apache-2.0
m241dan/darkstar
scripts/globals/mobskills/Prishe_Item_2.lua
53
1486
--------------------------------------------- -- Prishe Item 2 --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/zones/Empyreal_Paradox/TextIDs"); --------------------------------------------...
gpl-3.0
renstrom/NeavUI
Interface/AddOns/evl_RaidStatus/evl_RaidStatus.lua
1
2596
local addonName, addon = ... local frame = CreateFrame("Button", nil, UIParent) local watches = {} local text = frame:CreateFontString(nil, "ARTWORK") text:SetFontObject(GameFontHighlightSmall) text:SetPoint("TOPLEFT", frame) local memberSortCompare = function(a, b) return ((a.color.r + a.color.g + a.color.b) .. ...
mit
palmettos/test
applications/luci-ocserv/luasrc/model/cbi/ocserv/user-config.lua
6
5034
--[[ LuCI - Lua Configuration Interface Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> 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/LICEN...
apache-2.0
dvr333/Zero-K
units/roost.lua
4
2925
return { roost = { unitname = [[roost]], name = [[Roost]], description = [[Spawns Chicken]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildCostMetal = 340, builder = false, buildPic = [[roost.png]], category = ...
gpl-2.0
dvr333/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
santssoft/darkstar
scripts/globals/items/vongola_clam.lua
11
1432
----------------------------------------- -- ID: 5131 -- Item: Vongola Clam -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- Defense +17% - 50 Cap -- HP 5% - 50 Cap ----------------------------------------- require("scripts/globals/status") require("scripts/gl...
gpl-3.0
m241dan/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Ghatsad.lua
6
29278
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ghatsad -- Standard Info NPC -- Involved in quest: No String Attached ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/common"); ...
gpl-3.0
dvr333/Zero-K
LuaUI/Configs/lupsUnitFXs.lua
6
24117
-- note that the order of the MergeTable args matters for nested tables (such as colormaps)! local presets = { commandAuraRed = { {class='StaticParticles', options=commandCoronaRed}, {class='GroundFlash', options=MergeTable(groundFlashRed, {radiusFactor=3.5,mobile=true,life=60, colormap={ {1, 0.2, 0.2, 1},{1, ...
gpl-2.0
m241dan/darkstar
scripts/zones/Kazham/npcs/Nenepp.lua
27
4251
----------------------------------- -- Area: Kazham -- NPC: Nenepp -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); require("scripts/globals/pathfind"); local path = { 29.014000, -11.00000, -183.884000, 31.023000, -...
gpl-3.0
gowad/the-guard
plugins/anti_spam.lua
3
6775
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI --]] kicktable = {} do local TIME_CH...
gpl-2.0
silky/frequensea
lua/iq-lines.lua
2
1769
-- Visualize IQ data from the HackRF VERTEX_SHADER = [[ #version 400 layout (location = 0) in vec3 vp; layout (location = 1) in vec3 vn; out vec3 color; uniform mat4 uViewMatrix, uProjectionMatrix; uniform float uTime; void main() { color = vec3(1.0, 1.0, 1.0); vec2 pt = vec2((vp.x - 0.5) * 2, (vp.y - 0.5) * 2...
mit
santssoft/darkstar
scripts/globals/weaponskills/spinning_attack.lua
10
1418
----------------------------------- -- Spinning Attack -- Hand-to-Hand weapon skill -- Skill Level: 150 -- Delivers an area attack. Radius varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Flame Gorget & Thunder Gorget. -- Aligned with the Flame Belt & Thunder Belt. -- Element: None -- Modifiers: STR...
gpl-3.0
sigurdfdragon/wesnoth-fork
data/ai/micro_ais/cas/ca_protect_unit_move.lua
6
3243
local LS = wesnoth.require "location_set" local AH = wesnoth.require "ai/lua/ai_helper.lua" local BC = wesnoth.require "ai/lua/battle_calcs.lua" local F = wesnoth.require "functional" local function get_protected_units(cfg) local units = {} for u in wml.child_range(cfg, "unit") do table.insert(units, A...
gpl-2.0
m241dan/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/LaisavieXBerlends1.lua
19
1039
----------------------------------- -- Area: Southern SandOria [S] -- NPC: Laisavie X Berlends -- @zone 80 -- @pos 26 2 6 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/zones/Southern_San_dOria_[S]/TextIDs"); ---------------------------------...
gpl-3.0
santssoft/darkstar
scripts/globals/items/hellfire_axe.lua
12
1073
----------------------------------------- -- ID: 16713 -- Item: Hellfire Axe -- Additional Effect: Fire Damage ----------------------------------------- require("scripts/globals/status") require("scripts/globals/magic") require("scripts/globals/msg") ----------------------------------- function onAdditionalEffect(play...
gpl-3.0
dvr333/Zero-K
LuaUI/Widgets/ignore.lua
6
1631
function widget:GetInfo() return { name = "In-game Ignore", desc = "Adds ignore/unignore commands.", author = "Shaman", date = "8-1-2016", license = "PD", layer = 0, enabled = true, } end local function ProcessString(str) local strtbl = {} for w in string.gmatch(str, "%S+") do strtbl[#strtbl+1] = w...
gpl-2.0
m241dan/darkstar
scripts/zones/Northern_San_dOria/npcs/Coullene.lua
13
1581
----------------------------------- -- Area: Northern San d'Oria -- NPC: Coullene -- Type: Involved in Quest (Flyers for Regine) -- @zone: 231 -- @pos 146.420 0.000 127.601 -- ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; require("scripts/zones/Northern_San_...
gpl-3.0
ch3n2k/luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/disk.lua
86
1449
--[[ Luci statistics - df plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
apache-2.0
tritao/premake-core
tests/actions/vstudio/vc2010/test_build_events.lua
11
2257
-- -- tests/actions/vstudio/vc2010/test_build_events.lua -- Check generation of pre- and post-build commands for C++ projects. -- Copyright (c) 2012-2013 Jason Perkins and the Premake project -- local suite = test.declare("vstudio_vc2010_build_events") local vc2010 = premake.vstudio.vc2010 -- -- Setup -- local w...
bsd-3-clause
rekotc/game-engine-experimental-3
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/penlight/lua/pl/array2d.lua
3
9838
--- Operations on two-dimensional arrays. -- @class module -- @name pl.array2d local ops = require 'pl.operator' local tablex = require 'pl.tablex' local utils = require 'pl.utils' local type,tonumber,assert,tostring = type,tonumber,assert,tostring local imap,tmap,reduce,keys,tmap2,tset,index_by = tablex.imap,tablex.m...
lgpl-3.0
santssoft/darkstar
scripts/zones/Bearclaw_Pinnacle/bcnms/flames_for_the_dead.lua
9
1404
----------------------------------- -- Flames for the Dead -- Bearclaw Pinnacle mission battlefield ----------------------------------- require("scripts/globals/battlefield") require("scripts/globals/missions") ----------------------------------- function onBattlefieldTick(battlefield, tick) dsp.battlefield.onBatt...
gpl-3.0
Zilvinus-Peciulis/MISCELLANEOUS
games/script/OpenComputer/library/1.2.6A/lib/file.lua
4
22491
------------Version 2.1------ 2017-07 local filesystem = {} local fs = require "filesystem" filesystem.test = function() print("Hello, file system"); end --[[Core Method, Wide use]] filesystem.fwrite=function( path , text ) --core assert(type(path)=="string", "fwrite:\nRequare path.") local file = assert(io.o...
mit
Zilvinus-Peciulis/MISCELLANEOUS
games/script/OpenComputer/library/1.2.5A/lib/file.lua
4
22491
------------Version 2.1------ 2017-07 local filesystem = {} local fs = require "filesystem" filesystem.test = function() print("Hello, file system"); end --[[Core Method, Wide use]] filesystem.fwrite=function( path , text ) --core assert(type(path)=="string", "fwrite:\nRequare path.") local file = assert(io.o...
mit
santssoft/darkstar
scripts/globals/mobskills/heavy_stomp.lua
11
1128
--------------------------------------------- -- Heavy Stomp -- -- Description: Deals heavy damage to targets within an area of effect. Additional effect: Paralysis -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: Unknown radial -- Notes: Paralysis effect has a very long duration. ---------------...
gpl-3.0
ecarrara/lxc
src/lxc/lxc-top.lua
62
7453
#!/usr/bin/env lua -- -- top(1) like monitor for lxc containers -- -- Copyright © 2012 Oracle. -- -- Authors: -- Dwight Engen <dwight.engen@oracle.com> -- -- This library 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 Fre...
lgpl-2.1
m241dan/darkstar
scripts/zones/Bastok_Mines/npcs/Odoba.lua
27
1169
----------------------------------- -- Area: Bastok Mines -- NPC: Odoba -- Guild Merchant NPC: Alchemy Guild -- @pos 108.473 5.017 1.089 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require(...
gpl-3.0
m241dan/darkstar
scripts/zones/Abyssea-Konschtat/npcs/Cruor_Prospector.lua
29
10716
----------------------------------- -- Area: Abyssea - Konschtat -- NPC: Cruor Prospector -- Type: Cruor NPC -- @pos 132.000,-75.856,-822.000 15 ----------------------------------- package.loaded["scripts/zones/Abyssea-Konschtat/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Abyssea-Konsch...
gpl-3.0
dvr333/Zero-K
gamedata/explosions.lua
5
1342
local VFS = VFS local vfsInclude = VFS.Include local vfsDirList = VFS.DirList local system = vfsInclude('gamedata/system.lua') local lowerkeys = system.lowerkeys vfsInclude("LuaRules/Utilities/tablefunctions.lua") local suCopyTable = Spring.Utilities.CopyTable local explosionDefs = {} ExplosionDefs = explosionDefs ...
gpl-2.0
santssoft/darkstar
scripts/globals/mobskills/fiery_breath.lua
11
1307
--------------------------------------------- -- Fiery Breath -- -- Description: Deals Fire damage to enemies within a fan-shaped area. -- Type: Breath -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown cone -- Notes: Used only by Tiamat, Smok and Ildebrann --------------------------------------------- r...
gpl-3.0
ld-test/dialplan
lib/db.lua
3
3309
local mongo = require('mongo'); local inspect = require('inspect'); function db (config) local db = mongo.Connection.New(); db:connect(config.db.host); function getIncomingExtensions () local query = db:query("viola.incoming"); local exts = {}; for result in query...
mit
lassgdk/lass
lass/data/lua/5.1/lass/builtins/animation/PeriodicInterpolator.lua
2
4368
local lass = require("lass") local class = require("lass.class") local geometry = require("lass.geometry") local collections = require("lass.collections") --[[ PeriodicInterpolator - a class for smoothly and periodically modifying gameObject parameters. TODO: more type checking? arguments: ifunction - a unary funct...
gpl-3.0
ueverything/plainframework
tools/script/lua/update_cmakelist/LuaXml.lua
4
3742
if _VERSION == "Lua 5.2" then xml = require("LuaXML_lib") elseif _VERSION == "Lua 5.1" then xml = require("LuaXML51_lib") end if not xml then print("error when load xml lib") os.exit(1) end local base = _G -- symbolic name for tag index, this allows accessing the tag by var[xml.TAG] TAG = 0 -- sets or retur...
apache-2.0
smalldelta/mathevoks
texlive/texmf-dist/scripts/oberdiek/oberdiek.luacolor-pre065.lua
6
5752
-- -- This is file `oberdiek.luacolor-pre065.lua', -- generated with the docstrip utility. -- -- The original source files were: -- -- luacolor.dtx (with options: `lua,pre065') -- -- This is a generated file. -- -- Project: luacolor -- Version: 2011/11/01 v1.8 -- -- Copyright (C) 2007, 2009-2011 by --...
mit
ashdnazg/Zero-K
units/cloakassault.lua
1
3828
unitDef = { unitname = [[cloakassault]], name = [[Knight]], description = [[Lightning Assault Bot]], acceleration = 0.2, brakeRate = 0.6, buildCostMetal = 350, buildPic = [[cloakassault.png]], canGuard ...
gpl-2.0
Tardan/myFactorioMods
prototypes/extended/solarPanel.lua
1
2288
data:extend({ { type = "solar-panel", name = "solar-panel-v2", icon = "__TechTier5Extension__/graphics/icons/solar-panel-v2.png", flags = {"placeable-neutral", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "solar-panel-v2"}, max_health = 1...
mit
ashdnazg/Zero-K
effects/tremor.lua
8
6910
-- tremor return { ["tremor"] = { air = false, count = 1, ground = true, water = false, debris1 = { air = false, class = [[CSimpleParticleSystem]], count = 5, ground =...
gpl-2.0
ashdnazg/Zero-K
LuaRules/Gadgets/unit_turn_without_interia.lua
12
1401
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- if not gadgetHandler:IsSyncedCode() then return end -------------------------------------------------------------------------------- ------------------------...
gpl-2.0
Wohlhabend-Networks/LunaDLL
LuaScriptsLibExt/graphX.lua
3
2861
--graphX.lua --v0.0.2 --Pretty blatantly based on colliders.lua by Hoeloe local graphX = {} local function getScreenBounds() local h = (player:mem(0xD0, FIELD_DFLOAT)); local b = { left = player.x-400+player.speedX, right = player.x+400+player.speedX, top = player.y-260+player.speedY, bottom = player.y+340+pla...
gpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/Sprite3D.lua
2
6707
-------------------------------- -- @module Sprite3D -- @extend Node,BlendProtocol -- @parent_module cc -------------------------------- -- -- @function [parent=#Sprite3D] setCullFaceEnabled -- @param self -- @param #bool enable -- @return Sprite3D#Sprite3D self (return value: cc.Sprite3D) ----------------...
bsd-3-clause
chiyun1/wax
tools/Tests/scripts/tests/xmlTest.lua
17
4693
describe["XML parsing"] = function() it["parses empty tag"] = function() local result = wax.xml.parse("<name></name>") expect(type(result)).should_be("table") expect(type(result.name)).should_be("table") expect(result.text).should_be(nil) end it["parses tag with content"] = function() ...
mit
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/script/cocos2d/DeprecatedCocos2dEnum.lua
79
16871
--Enums will be deprecated,begin _G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT _G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT _G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER _G.kCCVerticalTextAlignmentTop = cc.VERTICAL_TEXT_ALIGNMENT_TOP _G.kCCVerticalTextAlignment...
mit
AndroidOpenDevelopment/android_external_skia
tools/lua/scrape.lua
145
2246
function tostr(t) local str = "" for k, v in next, t do if #str > 0 then str = str .. ", " end if type(k) == "number" then str = str .. "[" .. k .. "] = " else str = str .. tostring(k) .. " = " end if type(v) == "table" then ...
bsd-3-clause
ld-test/penlight
lua/pl/xml.lua
14
25405
--- XML LOM Utilities. -- -- This implements some useful things on [LOM](http://matthewwild.co.uk/projects/luaexpat/lom.html) documents, such as returned by `lxp.lom.parse`. -- In particular, it can convert LOM back into XML text, with optional pretty-printing control. -- It is s based on stanza.lua from [Prosody](http...
mit
ashdnazg/Zero-K
LuaUI/Widgets/chili_new/themes/theme.lua
9
1495
--//============================================================================= --// Theme theme = {} theme.name = "default" --//============================================================================= --// Define default skins local defaultSkin = "Robocracy" --local defaultSkin = "DarkGlass" theme.skin = ...
gpl-2.0
salessa/likwid
src/applications/likwid-perfctr.lua
1
17958
#!<PREFIX>/bin/likwid-lua --[[ * ======================================================================================= * * Filename: likwid-perfctr.lua * * Description: An application to read out performance counter registers * on x86 processors * * Version: <VERSION> *...
gpl-3.0
mmihira/dotfiles
nvim/nvim/lua/settings/functions.lua
1
2199
-- Run command vim.api.nvim_create_user_command("Run", function(opts) require("scripts/run").run_file() end, { nargs = 0 }) -- Show git diff local present, diffview = pcall(require, "diffview") if present then vim.api.nvim_create_user_command("Diff", function(opts) diffview.open() end, { nargs = 0 }) end --...
gpl-3.0
halilkaya/minetest-mods
animals/mobf/utils/tracing.lua
1
13434
------------------------------------------------------------------------------- -- Mob Framework Mod by Sapier -- -- You may copy, use, modify or do nearly anything except removing this -- copyright notice. -- And of course you are NOT allow to pretend you have written it. -- --! @file tracing.lua --! @brief generic fu...
gpl-3.0
GiuseppeGorgoglione/mame
3rdparty/genie/src/tools/ow.lua
16
2619
-- -- ow.lua -- Provides Open Watcom-specific configuration strings. -- Copyright (c) 2008 Jason Perkins and the Premake project -- premake.ow = { } premake.ow.namestyle = "windows" -- -- Set default tools -- premake.ow.cc = "WCL386" premake.ow.cxx = "WCL386" premake.ow.ar = "ar" -- -- Transla...
gpl-2.0
alech/libquvi-scripts
share/media/audioboo.lua
3
2152
-- libquvi-scripts -- Copyright (C) 2011-2013 Toni Gundogdu <legatvs@gmail.com> -- -- This file is part of libquvi-scripts <http://quvi.sourceforge.net/>. -- -- 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 Fre...
agpl-3.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/EaseCircleActionInOut.lua
9
1455
-------------------------------- -- @module EaseCircleActionInOut -- @extend ActionEase -- @parent_module cc -------------------------------- -- brief Create the action with the inner action.<br> -- param action The pointer of the inner action.<br> -- return A pointer of EaseCircleActionInOut action. If creation fail...
bsd-3-clause
halilkaya/minetest-mods
plantlife/vines/nodes.lua
2
2396
minetest.register_node("vines:rope_block", { description = "Rope", sunlight_propagates = true, paramtype = "light", tile_images = { "default_wood.png^vines_rope.png", "default_wood.png^vines_rope.png", "default_wood.png", "default_wood.png", "default_wood.png^vines_rope.png", "default_wo...
gpl-3.0
superopen/openwrt-luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-res.lua
80
3097
--[[ 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...
apache-2.0
ashdnazg/Zero-K
LuaRules/Configs/StartBoxes/Violence_4.2.lua
5
1506
local layout = { [0] = { boxes = { { {4599.8403320313, 3195.0278320313}, {4669.3291015625, 3121.9633789063}, {4742.1538085938, 3089.4133300781}, {4841.6083984375, 3061.3872070313}, {4929.0893554688, 3033.1252441406}, {4994.1552734375, 3045.7421875}, {5061.5859375, 3041.9548339844}, ...
gpl-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/AnimationCache.lua
18
3150
-------------------------------- -- @module AnimationCache -- @extend Ref -- @parent_module cc -------------------------------- -- Returns a Animation that was previously added.<br> -- If the name is not found it will return nil.<br> -- You should retain the returned copy if you are going to use it.<br> -- return A ...
bsd-3-clause
facebokiii/UHproject
plugins/invite.lua
299
1025
-- Invite other user to the chat group. -- Use !invite name User_name or !invite id id_number -- The User_name is the print_name (there are no spaces but _) do local function callback(extra, success, result) vardump(success) vardump(result) end local function run(msg, matches) local user = matches[2] -- Use...
gpl-2.0
teleRoOt3r/RoOt3r08
plugins/on_off.lua
12
1983
-- Checks if bot was disabled on specific chat local function is_channel_disabled( receiver ) if not _config.disabled_channels then return false end if _config.disabled_channels[receiver] == nil then return false end return _config.disabled_channels[receiver] end local function enable_channel(receiver) if...
agpl-3.0
aqasaeed/antispam
bot/seedbot.lua
1
9924
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 = '1.0' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then retu...
gpl-2.0
halilkaya/minetest-mods
plantlife/nature_classic/init.lua
2
1226
-- Nature Classic mod -- Originally by neko259 -- Nature is slowly capturing the world! local current_mod_name = minetest.get_current_modname() nature = {} nature.blossomqueue = {} nature.blossomqueue_max = 1000 nature.blossom_node = "nature:blossom" nature.blossom_leaves = "default:leaves" nature.blossom_textures ...
gpl-3.0
kiba/Factorio-MagneticFloor
prototypes/recipes.lua
1
2211
data:extend({ { type = "recipe", name = "copper-floor", enabled = "false", ingredients = { {"copper-plate",5}, {"concrete", 1} }, subgroup = "magnetic-floor", result = "copper-floor" }, { type = "recipe", name = "copper-floor2", enabled = false, ingredi...
mit
mitterdoo/wire
lua/wire/stools/gpu.lua
9
7423
WireToolSetup.setCategory( "Chips, Gates", "Visuals/Screens", "Advanced" ) WireToolSetup.open( "gpu", "GPU", "gmod_wire_gpu", nil, "GPUs" ) if CLIENT then language.Add("Tool.wire_gpu.name", "GPU Tool (Wire)") language.Add("Tool.wire_gpu.desc", "Spawns a graphics processing unit") language.Add("Tool.wire_gpu.0", ...
apache-2.0
minaka1412/Cocos3DEditor
cocos2d/cocos/scripting/lua-bindings/auto/api/Node.lua
3
45490
-------------------------------- -- @module Node -- @extend Ref -- @parent_module cc -------------------------------- -- @overload self, cc.Node, int -- @overload self, cc.Node -- @overload self, cc.Node, int, int -- @overload self, cc.Node, int, string -- @function [parent=#Node] ...
mit
GiuseppeGorgoglione/mame
3rdparty/genie/src/actions/xcode/xcode_project.lua
3
5636
-- -- xcode_project.lua -- Generate an Xcode C/C++ project. -- Copyright (c) 2009 Jason Perkins and the Premake project -- local xcode = premake.xcode local tree = premake.tree -- -- Create a tree corresponding to what is shown in the Xcode project browser -- pane, with nodes for files and folders, resources, frame...
gpl-2.0
ashdnazg/Zero-K
LuaRules/Configs/StartBoxes/Gehenna Rising 3.lua
5
10998
local areas = { { -- NW 8 A {2357, 228}, {2531, 285}, {2669, 348}, {2752, 450}, {2806, 589}, {2811, 688}, {2814, 700}, {2817, 791}, {2818, 802}, {2799, 874}, {2798, 889}, {2797, 899}, {2739, 972}, {2732, 984}, {2656, 1041}, {2643, 1049}, {2626, 1060}, {2529, 1105}, {2516, 1113}, ...
gpl-2.0
ali-iraqi-bot/devil3_bot
plugins/anti_spam.lua
191
5291
--An empty table for solving multiple kicking problem(thanks to @topkecleon ) kicktable = {} do local TIME_CHECK = 2 -- seconds -- Save stats, ban user local function pre_process(msg) -- Ignore service msg if msg.service then return msg end if msg.from.id == our_id then return msg end -- Save...
agpl-3.0
enkol/wow-premade-groups-filter
Init.lua
1
3281
------------------------------------------------------------------------------- -- Premade Groups Filter ------------------------------------------------------------------------------- -- Copyright (C) 2015 Elotheon-Arthas-EU -- -- This program is free software; you can redistribute it and/or modify -- it under the ter...
gpl-3.0
Doodle3D/doodle3d-firmware
src/rest/api/api_info.lua
1
8204
-- -- This file is part of the Doodle3D project (http://doodle3d.com). -- -- @copyright 2013, Doodle3D -- @license This software is licensed under the terms of the GNU GPL v2 or later. -- See file LICENSE.txt or visit http://www.gnu.org/licenses/gpl.html for full license details. local lfs = require('lfs') local log ...
gpl-2.0
mitterdoo/wire
lua/entities/gmod_wire_expression2/core/array.lua
2
17949
-------------------------------------------------------------------------------- -- Array Support -- Original author: Unknown (But the Wiki mentions Erkle) -- Rewritten by Divran at 2010-12-21 -------------------------------------------------------------------------------- ---------------------------------------------...
apache-2.0
ereizertmbot/fuck
plugins/setrank.lua
40
8897
do local Dev = 122774063 --put your id here(BOT OWNER ID) local function setrank(msg, name, value) -- setrank function local hash = nil if msg.to.type == 'chat' then hash = 'rank:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return send_msg('chat#id'..msg.to.id, 'مقام کاربر...
gpl-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/SkeletonRenderer.lua
5
5407
-------------------------------- -- @module SkeletonRenderer -- @extend Node,BlendProtocol -- @parent_module sp -------------------------------- -- -- @function [parent=#SkeletonRenderer] setTimeScale -- @param self -- @param #float scale -- @return SkeletonRenderer#SkeletonRenderer self (return value: sp.SkeletonR...
bsd-3-clause
padrinoo/padrino
plugins/quotes.lua
651
1630
local quotes_file = './data/quotes.lua' local quotes_table function read_quotes_file() local f = io.open(quotes_file, "r+") if f == nil then print ('Created a new quotes file on '..quotes_file) serialize_to_file({}, quotes_file) else print ('Quotes loaded: '..quotes_file) f...
gpl-2.0
napcode/ardour
share/scripts/s_region_gain2.lua
6
1987
ardour { ["type"] = "Snippet", name = "Normalize Regions" } function factory () return function () -- get Editor GUI Selection -- http://manual.ardour.org/lua-scripting/class_reference/#ArdourUI:Selection local sel = Editor:get_selection () -- prepare undo operation Session:begin_reversible_command ("Lua Normali...
gpl-2.0
Siarko/ComputercraftButtonApi
button.lua
1
5797
--Button api for computercraft by Siarko --Usage: -- -- FIRST SET MONITOR HANDLE BY -- button.setMonitor(handle) -- -- new button object creation: -- myFancyButton = button.create([label]) -- Methods: -- setText, setPos, setSize, setColor, setBlinkColor, setActive, onClick -- return button object so they ca...
gpl-3.0
Chessnut/NutScript
gamemode/core/libs/sh_flag.lua
5
3507
nut.flag = nut.flag or {} nut.flag.list = nut.flag.list or {} -- Adds a flag that does something when set. function nut.flag.add(flag, desc, callback) -- Add the flag to a list, storing the description and callback (if there is one). nut.flag.list[flag] = {desc = desc, callback = callback} end if (SERVER) then -- ...
mit
ashdnazg/Zero-K
units/cloakskirm.lua
1
3805
unitDef = { unitname = [[cloakskirm]], name = [[Ronin]], description = [[Skirmisher Bot (Direct-Fire)]], acceleration = 0.3, brakeRate = 0.2, buildCostMetal = 90, buildPic = [[cloakskirm.png]], canGuard ...
gpl-2.0
Ardour/ardour
share/scripts/s_region_gain_curve.lua
2
1304
ardour { ["type"] = "Snippet", name = "Set Region Gain Curve" } function factory () return function () -- get Editor GUI Selection -- http://manual.ardour.org/lua-scripting/class_reference/#ArdourUI:Selection local sel = Editor:get_selection () -- prepare undo operation Session:begin_reversible_command ("Lua Reg...
gpl-2.0
superopen/openwrt-luci
applications/luci-samba/luasrc/model/cbi/samba.lua
79
2602
--[[ 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...
apache-2.0
mitterdoo/wire
lua/entities/gmod_wire_egp/init.lua
9
1044
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') ENT.WireDebugName = "E2 Graphics Processor" function ENT:Initialize() self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType( SIMPLE_USE ) self.RenderTable = {} WireLib.Crea...
apache-2.0
lynnard/cocos2d-hs
cbits/cocos/scripting/lua-bindings/auto/api/SkeletonNode.lua
10
1992
-------------------------------- -- @module SkeletonNode -- @extend BoneNode -- @parent_module ccs -------------------------------- -- get bonenode in skeleton node by bone name -- @function [parent=#SkeletonNode] getBoneNode -- @param self -- @param #string boneName -- @return BoneNode#BoneNode ret (return value: c...
bsd-3-clause
atlimit8/OpenRA
mods/d2k/maps/harkonnen-08/harkonnen08.lua
7
11990
--[[ Copyright 2007-2022 The OpenRA Developers (see AUTHORS) This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
gpl-3.0
superopen/openwrt-luci
applications/luci-statistics/luasrc/statistics/rrdtool.lua
69
15320
--[[ Luci statistics - rrdtool interface library / diagram model interpreter (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
apache-2.0
NBSW/Atlas
lib/admin-bak.lua
37
3379
--[[ $%BEGINLICENSE%$ Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is dis...
gpl-2.0
marcoskirsch/nodemcu-httpserver
srv/_init.lua
7
3729
-- -- File: _init.lua --[[ This is a template for the LFS equivalent of the SPIFFS init.lua. It is a good idea to such an _init.lua module to your LFS and do most of the LFS module related initialisaion in this. This example uses standard Lua features to simplify the LFS API. For Lua 5.1, the first section...
gpl-2.0
Ardour/ardour
share/scripts/set_automation_mode.lua
5
2786
ardour { ["type"] = "EditorAction", name = "Engage Automation", author = "Ardour Team", description = [[Set automation mode of various controls (fader, trim, mute, pan), for all selected tracks.]] } function factory() return function() -- http://manual.ardour.org/lua-scripting/class_reference/#ARDOUR.AutoState l...
gpl-2.0