repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/PartyMemberDefs.lua
7
2696
gPartyMemberDefs = { hero = { id = "hero", stats = { ["hp_now"] = 36, ["hp_max"] = 36, ["mp_now"] = 5, ["mp_max"] = 5, ["strength"] = 10, ["speed"] = 16, ["intelligence"] = 10, }, actionGr...
mit
wounds1/zaza2
plugins/admin.lua
5
10801
local function set_bot_photo(msg, success, result) local receiver = get_receiver(msg) if success then local file = 'data/photos/bot.jpg' print('File downloaded to:', result) os.rename(result, file) print('File moved to:', file) set_profile_photo(file, ok_cb, false) send_large_msg(rec...
gpl-2.0
eugenesan/openwrt-luci
modules/admin-mini/luasrc/model/cbi/mini/luci.lua
81
1335
--[[ 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
Igalia/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
sorakun/hikari
middleclass.lua
63
6117
local middleclass = { _VERSION = 'middleclass v3.0.1', _DESCRIPTION = 'Object Orientation for Lua', _URL = 'https://github.com/kikito/middleclass', _LICENSE = [[ MIT LICENSE Copyright (c) 2011 Enrique García Cota Permission is hereby granted, free of charge, to any person obtaining...
mit
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/main.lua
1
4123
LoadLibrary('Asset') Asset.Run('Dependencies.lua') gRenderer = Renderer.Create() gGame = { Font = { default = BitmapText:Create(NumberFontDef), damage = BitmapText:Create(DamageFontDef), damageSprite = CreateSpriteSet(DamageSpriteDef) }, Stack = {}, World = {}...
mit
ASHRAF97/ASHRAFKASPER
data/config.lua
1
1314
do local _ = { about_text = "▫️Welcome to TH3BOSS V6 For more information Subscribe to the channel @llDEV1lln\n https://github.com/moody2020/TH3BOSS\n\n▫️Dev @TH3BOSS\n\n▫️ Dev Bot @ll60Kllbot\n\n ▫️channel @llDEV1ll", enabled_plugins = { "badword", "admin", "ingroup", "stats", "anti_spam", ...
gpl-2.0
aqasaeed/hesamm
plugins/inpm.lua
10
4114
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
jagu-sayan/42Premake
tests/actions/vstudio/test_vs2010_links.lua
3
4916
T.vs2010_links = { } local vs10_links = T.vs2010_links local sln, prj function vs10_links.setup() _ACTION = "vs2010" sln = solution "MySolution" configurations { "Debug" } platforms {} prj = project "MyProject" language "C++" kind "ConsoleApp" uuid "AE61726D-187C-E440-BD07-2556188A6565" ...
bsd-3-clause
LuaDist2/dromozoa-chunk
dromozoa/chunk/writer.lua
3
8283
-- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-chunk. -- -- dromozoa-chunk 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-3.0
Ninjistix/darkstar
scripts/globals/items/bowl_of_wisdom_soup.lua
3
1553
----------------------------------------- -- ID: 4592 -- Item: bowl_of_wisdom_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP 3 -- MP 3 -- Strength 1 -- Dexterity 1 -- Agility 1 -- Vitality 1 -- Intelligence 1 -- Mind 1 -- Charisma 1 -- HP Recovered While Healing 3 -----------------...
gpl-3.0
chroteus/clay
states/diplScr.lua
1
6247
diplScr = {} -- Diplomacy screen diplScr.margin = 20 diplScr.country = "" diplScr.enabled = false -- indicates if player clicked on the country to talk local rectW,rectH = 130,80 function diplScr:init() diplScr.msg = require "misc.randMsg" diplCam = Camera(the.screen.width/2, the.screen.height/2) loca...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/leremieu_salad.lua
3
1323
----------------------------------------- -- ID: 5185 -- Item: leremieu_salad -- Food Effect: 240Min, All Races ----------------------------------------- -- Health 20 -- Magic 20 -- Dexterity 4 -- Agility 4 -- Vitality 6 -- Charisma 4 -- Defense % 25 -- Defense Cap 160 ----------------------------------------- require(...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Cape_Teriggan/mobs/Tegmine.lua
4
1649
---------------------------------- -- Area: Cape Teriggan -- NM: Tegmine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFFECT, 1); ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/tornado_ii.lua
4
1263
----------------------------------------- -- Spell: Tornado II -- Deals wind damage to an enemy and lowers its resistance against ice. ----------------------------------------- require("scripts/globals/magic"); require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ---------------...
gpl-3.0
mandersan/premake-core
tests/project/test_eachconfig.lua
16
3443
-- -- tests/project/test_eachconfig.lua -- Test the project object configuration iterator function. -- Copyright (c) 2011-2015 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("project_eachconfig") -- -- Setup and teardown -- local wks, prj function suite.setup() wks = wo...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Yung_Yaam.lua
5
1389
----------------------------------- -- Area: Windurst Waters -- NPC: Yung Yaam -- Involved In Quest: Wondering Minstrel -- !pos -63 -4 27 238 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Waters/Tex...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Spare_Four.lua
5
1236
----------------------------------- -- Area: Windurst Woods -- NPC: Spare Four -- Working 100% -- Involved in quest: A Greeting Cardian ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/globals/quests"] = nil; ----------------------------------- require("scripts/globals/...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/pets/attachments/strobe_ii.lua
4
1264
----------------------------------- -- Attachment: Strobe II -- http://forum.square-enix.com/ffxi/threads/49065?p=565264#post565264 -- Values are currently PRIOR TO NOVEMBER 2015 UPDATE! ----------------------------------- require("scripts/globals/status"); function onEquip(pet) pet:addMod(MOD_ENMITY, 20) pet:...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Apollyon/mobs/Metalloid_Amoeba.lua
5
1067
----------------------------------- -- Area: Apollyon SE -- NPC: Metalloid_Amoeba ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Kuftal_Tunnel/MobIDs.lua
4
2828
----------------------------------- -- Area: Kuftal Tunnel -- Comments: -- posX, posY, posZ --(Taken from 'mob_spawn_points' table) ----------------------------------- AMEMET_PH = { [17490000] = 17490016, -- 123.046 0.250 18.642 [17489994] = 17490016, -- 112.135 -0.278 38.281 [17490001] = 17490016, -- 112....
gpl-3.0
bmddota/ContainersPlayground
game/dota_addons/containersplayground/scripts/vscripts/test.lua
1
23868
require('libraries/playertables') require('libraries/containers') local unit = PlayerResource:GetSelectedHeroEntity(0) GameRules:SetUseUniversalShopMode(true) if cc then cc:Delete() end cc = Containers:CreateContainer({ layout = {3,4,4}, skins = {}, headerText = "Equipment", pids = {0}, ...
apache-2.0
hvbommel/domoticz
dzVents/runtime/device-adapters/thermostat_operating_state_device.lua
6
1249
return { baseType = 'device', name = 'Thermostat operating state device adapter', matches = function(device, adapterManager) local res = (device.deviceSubType == 'Thermostat Operating State') if (not res) then adapterManager.addDummyMethod(device, 'updateMode') end return res end, process = function...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Meriphataud_Mountains/Zone.lua
5
3883
----------------------------------- -- -- Zone: Meriphataud_Mountains (119) -- ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Meriphataud_Mountains/TextIDs"); require("scripts/zones/Meriphataud_Mountains...
gpl-3.0
scan-bot/scan-bot
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
mamad-ali/xilibot
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
Ninjistix/darkstar
scripts/globals/items/serving_of_zaru_soba.lua
3
1130
----------------------------------------- -- ID: 5727 -- Item: serving_of_zaru_soba -- Food Effect: 30Min?, All Races ----------------------------------------- -- Agility 3 -- HP % 12 (cap 180) -- Resist Sleep +5 ----------------------------------------- require("scripts/globals/status"); ------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Maleme.lua
5
1160
----------------------------------- -- Area: Southern San dOria -- NPC: Maleme -- Type: Weather Reporter -- Involved in Quest: Flyers for Regine ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_...
gpl-3.0
fjz13/Medusa
Test/Test/Data/Script/Medusa/Core/Log.lua
4
3587
function babe_tostring(...) local num = select("#",...); local args = {...}; local outs = {}; for i = 1, num do if i > 1 then outs[#outs+1] = "\t"; end outs[#outs+1] = tostring(args[i]); end return table.concat(outs); end local babe_print = print; local babe_...
mit
fjz13/Medusa
Example/Client/HelloLua/Resource/Script/Medusa/Core/Log.lua
4
3587
function babe_tostring(...) local num = select("#",...); local args = {...}; local outs = {}; for i = 1, num do if i > 1 then outs[#outs+1] = "\t"; end outs[#outs+1] = tostring(args[i]); end return table.concat(outs); end local babe_print = print; local babe_...
mit
neofob/sile
packages/footnotes.lua
1
2918
-- Footnotes class -- Exports: The \footnote command -- outputInsertions (call this in endPage) SILE.require("packages/counters") SILE.require("packages/raiselower") local insertions = SILE.require("packages/insertions") SILE.scratch.counters.footnote = { value= 1, display= "arabic" } SILE.registerCommand("...
mit
Ninjistix/darkstar
scripts/globals/spells/frazzle.lua
5
1083
----------------------------------------- -- Spell: Frazzle ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end; func...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/key.lua
1
2495
----------------------------------------------- -- key.lua -- Represents a key when it is in the world ----------------------------------------------- local Item = require 'items/item' local Prompt = require 'prompt' local Key = {} Key.__index = Key Key.isKey = true --- -- Creates a new key object -- @return the key...
mit
Ninjistix/darkstar
scripts/globals/items/verethragna.lua
3
3338
----------------------------------------- -- ID: 19456 -- Item: Verethragna ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEA...
gpl-3.0
hexahedronic/luahexed
src/modules/vfs.lua
1
2857
local vfs = vfs or {} local fs = require("modules.fs") vfs.mounts = {} function vfs.getMounts(pre) assertType(pre, "string") return vfs.mounts[pre] end function vfs.mount(path, pre) assertType(path, "string") assertType(pre, "string") vfs.unmount(path) path = path:gsub("\\","/") if path:sub(1,1) == "/" then...
mit
Ninjistix/darkstar
scripts/globals/items/serving_of_flurry_courante.lua
3
1244
----------------------------------------- -- ID: 5555 -- Item: serving_of_flurry_courante -- Food Effect: 240Min, All Races ----------------------------------------- -- Magic % 19 -- Magic Cap 65 -- Intelligence 2 -- Magic Regen While Healing 1 -- Wind Resist 5 ----------------------------------------- require("scripts...
gpl-3.0
hfjgjfg/hhh
plugins/invite.lua
7
1183
do local function callbackres(extra, success, result) -- Callback for res_user in line 27 local user = 'user#id'..result.id local chat = 'chat#id'..extra.chatid if is_banned(result.id, extra.chatid) then -- Ignore bans send_large_msg(chat, 'User is banned.') elseif is_gbanned(result.id) then -- I...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/bibiki_slug.lua
3
1160
----------------------------------------- -- ID: 5122 -- Item: Bibiki Slug -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity -5 -- Vitality 4 -- defense % 16 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- fun...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Western_Altepa_Desert/npcs/_3h6.lua
5
1593
----------------------------------- -- Area: Western Altepa Desert -- NPC: _3h6 (Topaz Column) -- Notes: Mechanism for Altepa Gate -- !pos -260 10 -344 125 ----------------------------------- package.loaded["scripts/zones/Western_Altepa_Desert/TextIDs"] = nil; ----------------------------------- require("scripts/zones...
gpl-3.0
ASHRAF97/ASHRAFKASPER
plugins/ingroup.lua
47
60291
do -- Check Member local function check_member_autorealm(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.peer_id if member_id ~= our_id then -- Group configuration data[...
gpl-2.0
amirb8/telepersian
plugins/banhammer.lua
3
13017
local function pre_process(msg) local data = load_data(_config.moderation.data) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('در ...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Apollyon/mobs/Dark_Elemental.lua
5
2301
----------------------------------- -- Area: Apollyon SW -- NPC: elemental ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ----------------------------------- require("scripts/globals/limbus"); require("scripts/zones/Apollyon/TextIDs"); ----------------------------------- ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Stellar_Fulcrum/npcs/_4z0.lua
8
1605
----------------------------------- -- Area: Stellar Fulcrum -- Door: Qe'Lov Gate -- !pos -520 -4 17 179 ------------------------------------- package.loaded["scripts/zones/Stellar_Fulcrum/TextIDs"] = nil; package.loaded["scripts/globals/bcnm"] = nil; ------------------------------------- require("scripts/globals/bcnm...
gpl-3.0
scan-bot/scan-bot
plugins/gnuplot.lua
622
1813
--[[ * Gnuplot plugin by psykomantis * dependencies: * - gnuplot 5.00 * - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html * ]] -- Gnuplot needs absolute path for the plot, so i run some commands to find where we are local outputFile = io.popen("pwd","r") io.input(outputFile...
gpl-2.0
yuryleb/osrm-backend
third_party/flatbuffers/tests/MyGame/Example/Monster.lua
7
21498
-- automatically generated by the FlatBuffers compiler, do not modify -- namespace: Example local flatbuffers = require('flatbuffers') -- an example documentation comment: monster object local Monster = {} -- the module local Monster_mt = {} -- the class metatable function Monster.New() local o = {} setmeta...
bsd-2-clause
Ninjistix/darkstar
scripts/globals/items/red_hot_cracker.lua
3
1073
----------------------------------------- -- ID: 4281 -- Item: red_hot_cracker -- Food Effect: 3Min, All Races ----------------------------------------- -- HP Recovered While Healing 9 -- Beast Killer 12 -- Resist Sleep 12 ----------------------------------------- require("scripts/globals/status"); --------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Chomoro-Kyotoro.lua
5
1292
----------------------------------- -- Area: Windurst Waters -- NPC: Chomoro-Kyotoro -- Involved in Quest: Making the Grade -- !pos 133 -5 167 238 ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/keyitems"); require("scripts/globals/settings"); ---------------------------...
gpl-3.0
mohammad25253/persianguard12
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
Ninjistix/darkstar
scripts/globals/mobskills/deadeye.lua
5
1247
--------------------------------------------- -- Deadeye -- Family: Qiqurn -- Description: Lowers the defense and magical defense of enemies within range. -- Type: Magical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Unknown -- Notes: Used only by certain Notorious Monsters. Strong effect. ----------------------...
gpl-3.0
Xamla/torch-ros
demo/service_client.lua
1
1309
local ros = require 'ros' ros.init('service_client_demo') local nh = ros.NodeHandle() -- 1. Call a simple service with empty request message local clientA = nh:serviceClient('/rosout/get_loggers', 'roscpp/GetLoggers') -- we can check if the service exists local ok = clientA:exists() print('exists() returned: ' .....
bsd-3-clause
Xamla/torch-ros
lua/tf/Transform.lua
1
2723
local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros.env' local utils = require 'ros.utils' local tf = ros.tf local Transform = torch.class('tf.Transform', tf) function init() local Transform_method_names = { "new", "clone", "delete", "setIdentity", "mul_Quaternion", ...
bsd-3-clause
eugenesan/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
neofob/sile
core/length.lua
1
3435
local _length _length = std.object { length = 0, stretch = 0, shrink = 0, _type = "Length", absolute = function (self, context) return _length { length = SILE.toAbsoluteMeasurement(self.length), stretch = SILE.toAbsoluteMeasurement(self.stretch), shrink = SILE.toAbsoluteMeasurement(self.shrin...
mit
Ninjistix/darkstar
scripts/globals/abilities/pets/attachments/drum_magazine.lua
4
1036
----------------------------------- -- Attachment: Drum Magazine ----------------------------------- require("scripts/globals/status"); function onEquip(pet) pet:addMod(MOD_SNAP_SHOT, 2) pet:addMod(MOD_ACC, -2) end function onUnequip(pet) pet:delMod(MOD_SNAP_SHOT, 2) pet:delMod(MOD_ACC, -2) end funct...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/drop_hammer.lua
33
1032
--------------------------------------------- -- Drop Hammer -- -- Description: Drops the hammer. Additional effect: Bind -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows? -- Range: Melee -- Notes: Only used by "destroyers" (carrying massive warhammers). --------------------------------------------- requi...
gpl-3.0
THEGENRRAL/GENERAL
plugins/lock_user.lua
2
1095
--[[ -- تم التعديل و التعريب بواسطه @KNSLTHM --[[ Dev @KNSLTHM Dev @NAHAR2_BOT CH > @NENO_CH --]] local function run(msg, matches) if is_momod(msg) then return end local data = load_da...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Cape_Teriggan/mobs/Kreutzet.lua
5
1077
---------------------------------- -- Area: Cape Teriggan -- NM: Kreutzet ----------------------------------- require("scripts/globals/weather"); function onMobWeaponSkill(target, mob, skill) if (skill:getID() == 926) then local stormwindCounter = mob:getLocalVar("stormwindCounter"); stormwindC...
gpl-3.0
teeple/pns_server
work/install/redis-2.8.6/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
gpl-2.0
rihjsantos/dgnp
redis-stable/deps/lua/test/sort.lua
889
1494
-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l<u then local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u x[l],x[m]=x[m],x[l] -- swap pivot to first posit...
gpl-2.0
DDDGamer/factorio-dz-softmod
modules/common/custom-tech.lua
1
2688
-- Custom_Tech Soft Module -- Disables certain technologies from being researched -- Reference `factorio/data/base/prototypes/technology/rechnology.lua` -- for list of tech and recipie names -- @usage require('modules/common/custom-tech') -- ------------------------------------------------------- -- -- @author Denis Zh...
gpl-3.0
jagu-sayan/42Premake
src/base/api.lua
6
12633
-- -- api.lua -- Implementation of the solution, project, and configuration APIs. -- Copyright (c) 2002-2008 Jason Perkins and the Premake project -- -- -- Here I define all of the getter/setter functions as metadata. The actual -- functions are built programmatically below. -- premake.fields = { basedir = {...
bsd-3-clause
ztuowen/chill-dev
Manual/test-cases/examples/cuda-chill/mriq-fh.lua
3
2236
--CUBLAS 2 MM Multiply --This function form intializes "CUDAIZE v2" versus "CUDAIZE v1" if you --call init() and use global variables to specify procedure and loop --Second parameter is procedure # and third is loop # init("mriq-fh.c", "mriFH_cpu", 0) dofile("cudaize.lua") --defines custom tile_by_index, copy_to_re...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/keen_edge.lua
25
1370
----------------------------------- -- Keen Edge -- Great Axe weapon skill -- Skill level: 150 -- Delivers a single hit attack. Chance of params.critical varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Shadow Gorget. -- Aligned with the Shadow Belt. -- Element: None -- Modifiers: STR:35% -- 100%TP ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Nashmau/npcs/Porter_Moogle.lua
7
1150
----------------------------------- -- Area: Nashmau -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 53 -- !pos TODO ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Nashmau/TextIDs"); require("scripts/glo...
gpl-3.0
carnalis/Urho3D
Source/ThirdParty/toluapp/src/bin/lua/container.lua
28
17414
-- tolua: container abstract class -- Written by Waldemar Celes -- TeCGraf/PUC-Rio -- Jul 1998 -- $Id: $ -- This code is free software; you can redistribute it and/or modify it. -- The software provided hereunder is on an "as is" basis, and -- the author has no obligation to provide maintenance, support, updates, -- e...
mit
eugenesan/openwrt-luci
applications/luci-diag-devinfo/luasrc/controller/luci_diag/netdiscover_common.lua
76
3146
--[[ Luci diag - Diagnostics controller module (c) 2009 Daniel Dickinson 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 ]]-- module("luci.cont...
apache-2.0
Intrinsically-Sublime/Tool_Change-post-processor
Tool_change.lua
1
22295
-- Tool_change.lua -- By Sublime 2014 https://github.com/Intrinsically-Sublime -- Change extruder used for individual section of a print -- Licence: GPL v3 -- This library 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...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Talacca_Cove/Zone.lua
5
1538
----------------------------------- -- -- Zone: Talacca_Cove (57) -- ----------------------------------- package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); require("scripts/globals/settings"); require(...
gpl-3.0
premake/premake-4.x
src/actions/vstudio/vs2002_csproj_user.lua
19
1483
-- -- vs2002_csproj_user.lua -- Generate a Visual Studio 2002/2003 C# .user file. -- Copyright (c) 2009 Jason Perkins and the Premake project -- local cs2002 = premake.vstudio.cs2002 function cs2002.generate_user(prj) io.eol = "\r\n" _p('<VisualStudioProject>') _p(1,'<CSHARP>') _p(2,'<Build>') -- Visu...
bsd-3-clause
TRex22/hawkthorne-journey
src/cheat.lua
1
1066
local Cheat = {} local cheatList ={} --if turnOn is true the cheat is enabled -- if turnOn is false the cheat is disabled local function setCheat(cheatName, turnOn) local Player = require 'player' if cheatName=="jump_high" then cheatList[cheatName] = turnOn Player.jumpFactor = cheatList[cheatN...
mit
neofob/sile
packages/grid.lua
1
5272
local gridSpacing -- Should be a setting local makeUp = function () if not SILE.typesetter.frame.state.totals.gridCursor then SILE.typesetter.frame.state.totals.gridCursor = 0 end local toadd = gridSpacing - (SILE.typesetter.frame.state.totals.gridCursor % gridSpacing) SILE.typesetter.frame.state.totals.gridCurs...
mit
blackman1380/antispam
plugins/all.lua
184
4452
do local function get_msgs_user_chat(user_id, chat_id) local user_info = {} local uhash = 'user:'..user_id local user = redis:hgetall(uhash) local um_hash = 'msgs:'..user_id..':'..chat_id user_info.msgs = tonumber(redis:get(um_hash) or 0) user_info.name = user_print_name(user)..' ['..user_id..']' return u...
gpl-2.0
dafei2015/hugular_cstolua
Client/Assets/uLua/Source/LuaJIT/dynasm/dasm_mips.lua
120
28080
------------------------------------------------------------------------------ -- DynASM MIPS module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ -- Module information: local _i...
mit
eugenesan/openwrt-luci
applications/luci-firewall/luasrc/model/cbi/firewall/forwards.lua
85
3942
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2012 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at htt...
apache-2.0
codedash64/Urho3D
Source/ThirdParty/LuaJIT/dynasm/dasm_ppc.lua
33
57489
------------------------------------------------------------------------------ -- DynASM PPC/PPC64 module. -- -- Copyright (C) 2005-2016 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. -- -- Support for various extensions contributed by Caio Souza Oliveira. ---------------------------------...
mit
Ninjistix/darkstar
scripts/globals/items/cheval_salmon.lua
3
1080
----------------------------------------- -- ID: 4379 -- Item: cheval_salmon -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 2 -- Charisma -4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- function onItemCh...
gpl-3.0
johnsoch/cuberite
src/Bindings/CheckBindingsDependencies.lua
9
2961
-- CheckBindingsDependencies.lua -- This script checks whether all files listed in AllToLua.pkg are also in the dependencies for bindings regeneration. -- This script is run as part of the CircleCI tests --- Filenames that should be ignored in the AllToLua.pkg file: -- Dictionary of "filename" -> true for each ig...
apache-2.0
premake/premake-4.x
tests/base/test_action.lua
59
1366
-- -- tests/base/test_action.lua -- Automated test suite for the action list. -- Copyright (c) 2009 Jason Perkins and the Premake project -- T.action = { } -- -- Setup/teardown -- local fake = { trigger = "fake", description = "Fake action used for testing", } function T.action.setup() premake.action.li...
bsd-3-clause
abosalah22/zak
libs/serpent.lua
656
7877
local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} lo...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Port_Bastok/npcs/Argus.lua
5
3347
----------------------------------- -- Area: Port Bastok -- NPC: Argus -- Type: Mission Giver -- !pos 132.157 7.496 -2.187 236 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals...
gpl-3.0
poldracklab/lmod_modules
crnenv/1.0.0.lua
1
1135
-- Load module dependencies load("afni") load("ants") load("c3d") load("fsl") load("freesurfer") load("nodejs") load("anaconda") -- Initialize variable names local ncpus = string.gsub(capture("grep -c '^processor' /proc/cpuinfo"),'\\',"") local hostname = capture("/bin/hostname -d") if string.match(hostname, "stanfor...
apache-2.0
Ninjistix/darkstar
scripts/zones/West_Sarutabaruta/npcs/Ipupu.lua
5
1087
----------------------------------- -- Area: West Sarutabaruta -- NPC: Ipupu -- Involved in Quest: Glyph Hanger -- !pos 251.745 -5.5 35.539 115 ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); ...
gpl-3.0
jagu-sayan/42Premake
src/actions/vstudio/_vstudio.lua
6
11628
-- -- _vstudio.lua -- Define the Visual Studio 200x actions. -- Copyright (c) 2008-2010 Jason Perkins and the Premake project -- _VS = { } -- deprecated, will remove eventually premake.vstudio = { } local vstudio = premake.vstudio -- -- Map Premake platform identifiers to the Visual Studio versions. Adds the Vi...
bsd-3-clause
eugenesan/openwrt-luci
modules/base/luasrc/i18n.lua
77
3182
--[[ LuCI - Internationalisation Description: A very minimalistic but yet effective internationalisation module FileId: $Id$ License: Copyright 2008 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 ...
apache-2.0
Ninjistix/darkstar
scripts/zones/QuBia_Arena/TextIDs.lua
5
1632
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED...
gpl-3.0
abosalah22/zak
plugins/lk_english.lua
3
1104
--[[ $ :) -- - ( #ابو_شهوده ) - -- $ :) -- - ( @abo_shosho98 ) - -- $ :) --Channel-( @aboaloshbot )-- $ :) ]]-- local function run(msg, matches) if is_momod(msg) then return end local data = load_data(_config.moderation.data) if data[tostring(msg.to.id)] then if data[tostr...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Yuhtunga_Jungle/TextIDs.lua
5
2128
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6386; -- Obtained: <item>. GIL_OBTAINED = 6387; -- Obtained <number> gil. KEYITEM_OBTAINED = 6...
gpl-3.0
a1ive/grub2-mod
grub-core/script/lua/osdetect.lua
4
7533
#!lua -- -- Copyright (C) 2009 Free Software Foundation, Inc. -- -- GRUB 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 -- (at your option) any later version. -- -- GRUB...
gpl-3.0
mandersan/premake-core
modules/vstudio/tests/vc2010/test_rule_targets.lua
16
1808
-- -- tests/actions/vstudio/vc2010/vstudio_vs2010_rule_targets.lua -- Validate generation of custom rules -- Author Tom van Dijck -- Copyright (c) 2016 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("vstudio_vs2010_rule_targets") local vc2010 = p.vstudio.vc2010 local m = p.vs...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Door_Acolyte_hostel.lua
5
1733
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Door Acolyte hostel -- !pos 125 -2 216 94 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/setti...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_San_dOria/npcs/Portaure.lua
5
1336
----------------------------------- -- 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"); require("scripts/globals/quests"); --...
gpl-3.0
mt246/mt24679
plugins/rss.lua
700
5434
local function get_base_redis(id, option, extra) local ex = '' if option ~= nil then ex = ex .. ':' .. option if extra ~= nil then ex = ex .. ':' .. extra end end return 'rss:' .. id .. ex end local function prot_url(url) local url, h = string.gsub(url, "http://", "") local...
gpl-2.0
karrots/nodemcu-firmware
lua_examples/email/send_email_smtp.lua
82
4640
--- -- Working Example: https://www.youtube.com/watch?v=CcRbFIJ8aeU -- @description a basic SMTP email example. You must use an account which can provide unencrypted authenticated access. -- This example was tested with an AOL and Time Warner email accounts. GMail does not offer unecrypted authenticated access. -- To o...
mit
Ninjistix/darkstar
scripts/zones/FeiYin/npcs/_no4.lua
5
1890
----------------------------------- -- Area: Fei'Yin -- NPC: Cermet Door (triggers Rukususu dialog) -- Type: Quest NPC -- !pos -183 0 190 204 -- Involved in Quests: Curses, Foiled A-Golem!?,SMN AF2: Class Reunion, SMN AF3: Carbuncle Debacle -- Involved in Missions: Windurst 5-1/7-2/8-2 -------------------------...
gpl-3.0
bluetomatoes/ExploreTimelines
CodeSamples/Storyboard-Sample-master/scene3.lua
2
3528
--------------------------------------------------------------------------------- -- -- testscreen3.lua -- --------------------------------------------------------------------------------- local storyboard = require( "storyboard" ) local scene = storyboard.newScene() --------------------------------------------------...
mit
premake/premake-4.x
src/tools/dotnet.lua
4
2038
-- -- dotnet.lua -- Interface for the C# compilers, all of which are flag compatible. -- Copyright (c) 2002-2009 Jason Perkins and the Premake project -- premake.dotnet = { } premake.dotnet.namestyle = "windows" -- -- Translation of Premake flags into CSC flags -- local flags = { FatalWarning = "/warnaser...
bsd-3-clause
neofob/sile
lua-libraries/vstruct/ast.lua
6
4980
-- Abstract Syntax Tree module for vstruct -- This module implements the parser for vstruct format definitions. It is a -- fairly simple recursive-descent parser that constructs an AST using Lua -- tables, and then generates lua source from it. -- See ast/*.lua for the implementations of various node types in the AST,...
mit
Ninjistix/darkstar
scripts/zones/Cloister_of_Gales/npcs/Wind_Protocrystal.lua
5
1940
----------------------------------- -- Area: Cloister of Gales -- NPC: Wind Protocrystal -- Involved in Quests: Trial by Wind, Trial Size Trial By Wind -- @zone -361 1 -381 201 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil; ----------------------------------- requ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Ratonne.lua
4
3963
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Ratonne -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstorage"); requ...
gpl-3.0
Xamla/torch-ros
demo/action_client.lua
1
1437
local ros = require 'ros' require 'ros.actionlib.SimpleActionClient' local actionlib = ros.actionlib local SimpleClientGoalState = actionlib.SimpleClientGoalState ros.init('test_action_client') nh = ros.NodeHandle() ros.console.setLoggerLevel('actionlib', ros.console.Level.Debug) local ac = actionlib.SimpleActionCli...
bsd-3-clause