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 |
|---|---|---|---|---|---|
dinodeck/ninety_nine_days_of_dev | 003_combat_numbers/code/Panel.lua | 7 | 3565 |
--
-- params =
-- {
-- texture = [texture],
-- size = [size of a single tile in pixels]
-- }
--
--
Panel = {}
Panel.__index = Panel
function Panel:Create(params)
local this =
{
mTexture = params.texture,
mUVs = GenerateUVs(params.size, params.size, params.texture),
... | mit |
TRex22/hawkthorne-journey | src/vendor/hardoncollider/spatialhash.lua | 4 | 4305 | --[[
Copyright (c) 2011 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | mit |
jamiepg1/MCServer | src/Bindings/virtual_method_hooks.lua | 2 | 11834 | -- flags
local disable_virtual_hooks = true
local enable_pure_virtual = true
local default_private_access = false
local access = {public = 0, protected = 1, private = 2}
function preparse_hook(p)
if default_private_access then
-- we need to make all structs 'public' by default
p.code = string.gsub(p.code, "(str... | apache-2.0 |
Inorizushi/DDR-SN1HD | Scripts/SN1Scoring.lua | 1 | 4925 | --This is an implementation of DDR SuperNOVA scoring as described
--by Aaron Chmielowiec at http://aaronin.jp/ddrssystem.html#ss8
--To use it, you can call PrepareScoringInfo at the start of each stage or course.
--Shared functions/data
SN1Scoring = {}
--ScoringInfo is used and maintained solely by PrepareSc... | gpl-3.0 |
backburn/Probably | interface/locale/deDE.lua | 1 | 3671 | -- ProbablyEngine Rotations - https://probablyengine.com/
-- Released under modified BSD, see attached LICENSE.
local pels = ProbablyEngine.locale.set
ProbablyEngine.locale.new('deDE')
-- Buttons
pels('toggle', 'An/Aus')
pels('toggle_tooltip', 'Rotation ein-/ausschalten')
pels('cooldowns', 'Cooldowns')
pels('cooldow... | bsd-3-clause |
nimaghorbani/dozdi7 | utilities.lua | 6 | 2031 | -- utilities.lua
-- Functions shared among plugins.
function get_word(s, i) -- get the indexed word in a string
s = s or ''
i = i or 1
local t = {}
for w in s:gmatch('%g+') do
table.insert(t, w)
end
return t[i] or false
end
function string:input() -- Returns the string after the first space.
if not self:... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua | 5 | 1362 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Explorer Moogle
--
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/teleports");
-----------------------------------
function onTrade(player,npc,trade)
end;
function onTrigger(player,npc)
accept = 0;
e... | gpl-3.0 |
Frankie-666/color-emoji.skia | tools/lua/skia.lua | 4 | 1656 | -- Experimental helpers for skia --
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
-------------------------------------------------------------------------------
Sk.Rect = { left = 0, top = 0, right = 0, bottom = 0 }
Sk.Rect.__index = Sk.Rect
function Sk.Rect.new(l, t, r, b)
local rect
if r the... | bsd-3-clause |
clphusf/cz | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
allwenandashi/seed | plugins/stats.lua | 866 | 4001 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
jokersso3/joker | plugins/anti_spam.lua | 21 | 5144 | --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... | gpl-2.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Mines/npcs/Proud_Beard.lua | 5 | 1396 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Proud Beard
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Mines/TextIDs");
requ... | gpl-3.0 |
ccyphers/kong | spec/02-integration/04-core/01-reports_spec.lua | 7 | 1236 | local meta = require "kong.meta"
local helpers = require "spec.helpers"
local reports = require "kong.core.reports"
describe("reports", function()
describe("send()", function()
setup(function()
reports.toggle(true)
end)
it("sends report over UDP", function()
local thread = helpers.udp_server(... | apache-2.0 |
MattSeen/Love2d-examples | GameOfLife/game/conwaysrules.lua | 1 | 2068 | require "utils"
--[[
0,0 | 1,0 | 2,0
0,1 | 1,1* | 2,1
0,2 | 1,2 | 2,2
Every cell interacts with its eight neighbours, which are the cells that
are horizontally, vertically, or diagonally **adjacent**.
]]--
coordinateNeighourhoodOverlay = {
topLeft = {-1, -1},
top = {0, -1},
topRight = {1, -1},
left =... | mit |
Inorizushi/DDR-SN1HD | BGAnimations/ScreenSelectMusic decorations/bpmmeter.lua | 1 | 2883 | --Explanation of these values:
--The game seems to treat every BPM below about 100 and above about 270 exactly the same.
--115 is about the lowest BPM where there will always be showing bar pieces.
--This is not necessarily true at 100 BPM, so a negative value is generated.
--155 is simply 270-115, the spread between 0... | gpl-3.0 |
dinodeck/ninety_nine_days_of_dev | 004_stat_numbers/code/Animation.lua | 10 | 1057 | Animation = {}
Animation.__index = Animation
function Animation:Create(frames, loop, spf)
if loop == nil then
loop = true
end
local this =
{
mFrames = frames or { 1 },
mIndex = 1,
mSPF = spf or 0.12,
mTime = 0,
mLoop = loop
}
setmetatable(this, ... | mit |
eugenesan/openwrt-luci | modules/admin-full/luasrc/model/cbi/admin_system/leds.lua | 83 | 3272 | --[[
LuCI - Lua Configuration Interface
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 may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
m = ... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Southern_San_dOria/npcs/Gizel.lua | 5 | 1171 | -----------------------------------
-- Area: Southern San dOria
-- NPC: Gizel
-- Type: Event Scene Replayer NPC
-- @zone 230
-- !pos -34.412 0.000 33.362
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Sout... | gpl-3.0 |
THEGENRRAL/GENERAL | plugins/kickme-ar.lua | 2 | 1891 | --[[ -- تم التعديل و التعريب بواسطه @KNSLTHM
--[[
Dev @KNSLTHM
Dev @NAHAR2_BOT
CH > @NENO_CH
--]]
local function run(msg, matches)
if matches[1] == 'مغادره' then
local hash = 'kick:'..msg.to.id..':'..ms... | gpl-3.0 |
JimmyS83/packages | net/luci-app-clamav/files/model/cbi/clamav-cbi.lua | 100 | 6776 | --[[
LuCI ClamAV module
Copyright (C) 2015, Itus Networks, Inc.
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
Author: Marko Ratkaj <marko.ratkaj@sar... | gpl-2.0 |
ocurr/hammerspoon | extensions/tabs/init.lua | 9 | 6069 | --- === hs.tabs ===
---
--- Place the windows of an application into tabs drawn on its titlebar
local tabs = {}
local drawing = require "hs.drawing"
local uielement = require "hs.uielement"
local watcher = uielement.watcher
local fnutils = require "hs.fnutils"
local timer = require "hs.timer"
local application = requi... | mit |
AlexisBRENON/awesome | spec/gears/color_spec.lua | 12 | 7901 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2014 Uli Schlachter
---------------------------------------------------------------------------
local color = require("gears.color")
local cairo = require("lgi").cairo
local say = require("say")
describ... | gpl-2.0 |
neofob/sile | lua-libraries/std/strbuf.lua | 6 | 1203 | --[[--
String buffers.
@classmod std.strbuf
]]
local Object = require "std.object"
--- Add a string to a buffer.
-- @tparam string s string to add
-- @treturn std.strbuf modified buffer
local function concat (self, s)
table.insert (self, s)
return self
end
--- Convert a buffer to a string.
-- @treturn strin... | mit |
dinodeck/ninety_nine_days_of_dev | 006_magic_menu/code/EntityDefs.lua | 8 | 13484 |
-- WaitState, MoveState must already be loaded.
assert(WaitState)
assert(MoveState)
gCharacterStates =
{
wait = WaitState,
move = MoveState,
npc_stand = NPCStandState,
plan_stroll = PlanStrollState,
follow_path = FollowPathState,
cs_run_anim = CSRunAnim,
cs_hurt = CSHurt,
... | mit |
hvbommel/domoticz | dzVents/runtime/integration-tests/domoticzTestTools.lua | 6 | 18311 | package.path = package.path ..
";../?.lua;../device-adapters/?.lua;./data/?.lua;../../../scripts/dzVents/generated_scripts/?.lua;" ..
"../../../scripts/lua/?.lua"
local _ = require 'lodash'
local File = require('File')
local http = require("socket.http")
local ltn12 = require("ltn12")
local jsonParser = require('... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/bastore_bream.lua | 3 | 1076 | -----------------------------------------
-- ID: 4461
-- Item: Bastore Bream
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 4
-- Mind -6
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemCheck(... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Windurst_Waters/npcs/Mashuu-Ajuu.lua | 5 | 5827 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Mashuu-Ajuu
-- Starts and Finished Quest: Reap What You Sow
-- Involved in Quest: Making the Grade
-- !pos 129 -6 167 238
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Sealions_Den/Zone.lua | 5 | 1454 | -----------------------------------
--
-- Zone: Sealions_Den (32)
--
-----------------------------------
package.loaded["scripts/zones/Sealions_Den/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Sealions_Den/TextIDs");
-----------------------------------... | gpl-3.0 |
hvbommel/domoticz | dzVents/runtime/integration-tests/scriptDelayedVariableScene.lua | 10 | 1595 | local testLastUpdate = function(dz, trigger, expectedDifference)
local now = dz.time.secondsSinceMidnight
local lastUpdate = trigger.lastUpdate.secondsSinceMidnight
local diff = (now - lastUpdate)
print('current: ' .. now .. ', lastUpdate: ' .. lastUpdate .. ', diff: ' .. diff .. ', expected: ' .. expectedDifferenc... | gpl-3.0 |
johnsoch/cuberite | Server/Plugins/APIDump/Hooks/OnHopperPushingItem.lua | 44 | 1338 | return
{
HOOK_HOPPER_PUSHING_ITEM =
{
CalledWhen = "A hopper is pushing an item into another block entity. ",
DefaultFnName = "OnHopperPushingItem", -- also used as pagename
Desc = [[
This hook is called whenever a {{cHopperEntity|hopper}} transfers an {{cItem|item}} from its own
internal storage into an... | apache-2.0 |
mandersan/premake-core | modules/gmake/tests/cpp/test_wiidev.lua | 15 | 1183 | --
-- tests/actions/make/cpp/test_wiidev.lua
-- Tests for Wii homebrew support in makefiles.
-- Copyright (c) 2011-2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("make_wiidev")
local make = p.make
local project = p.project
--
-- Setup
--
local cfg
function suite.se... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/items/plate_of_shrimp_sushi.lua | 3 | 1301 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 14 (cap 68)
-- Ranged Accuracy % 14 (cap 68)
-- Resist sleep +1
-----------------------------------------
require("scri... | gpl-3.0 |
mandersan/premake-core | tests/base/test_filename.lua | 32 | 1690 | --
-- tests/base/test_filename.lua
-- Verify generation of project/workspace/rule filenames.
-- Copyright (c) 2008-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_filename")
local p = premake
--
-- Setup
--
local wks
function suite.setup()
wks = test.createWorkspace()
end... | bsd-3-clause |
YoanRenard-awin/aw-scripts | lsyncd/configuration.lua | 1 | 2709 | settings {
logfile = "/home/sites/lsync/lsyncd.log",
pidfile = "/home/sites/lsync/lsyncd.pid",
statusFile = "/home/sites/lsync/lsyncd.status",
statusInterval = 10,
delay = 1,
nodaemon = true,
insist = true,
}
sync {
default.rsync,
source="/home/sites/awin-darwin"... | mit |
johnsoch/cuberite | Server/Plugins/APIDump/Hooks/OnServerPing.lua | 42 | 2367 | return
{
HOOK_SERVER_PING =
{
CalledWhen = "Client pings the server from the server list.",
DefaultFnName = "OnServerPing", -- also used as pagename
Desc = [[
A plugin may implement an OnServerPing() function and register it as a Hook to process pings from
clients in the server server list. It can change... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Upper_Jeuno/npcs/Zuber.lua | 5 | 1504 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Zuber
-- Involved in Quests: Save the Clock Tower
-- @zone 244
-- !pos -106 0 90
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
requi... | gpl-3.0 |
bluetomatoes/ExploreTimelines | Code/ArrowSprites.lua | 1 | 2654 | -- This file is for use with Corona SDK
--
-- It is intended for use with the image sheet and sprite API's
--
-- This module writes no global values, not even the module table
--
-- Usage example:
---local options =
--{
-- frames = require("ArrowSprites").frames,
--}
--local imageSheet = graphics.newIm... | mit |
backburn/Probably | external/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 52 | 9726 | local AceGUI = LibStub("AceGUI-3.0")
-- Lua APIs
local pairs, assert, type = pairs, assert, type
-- WoW APIs
local PlaySound = PlaySound
local CreateFrame, UIParent = CreateFrame, UIParent
-- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
-- List them here for Mikk's FindGlobals... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/items/beef_stewpot.lua | 3 | 1393 | -----------------------------------------
-- ID: 5547
-- Item: Beef Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 50
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Attack +18% Cap 40
-- Evasion +5
--------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/North_Gustaberg/npcs/relic.lua | 5 | 1549 | -----------------------------------
-- Area: North Gustaberg
-- NPC: <this space intentionally left blank>
-- !pos -217 97 461 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/North_Gustaberg/TextIDs");
---... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/fuscina.lua | 7 | 1060 | -----------------------------------------
-- ID: 18104
-- Item: Fuscina
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
-----------------------------------
function onAdditionalEffect(p... | gpl-3.0 |
SilverIce/JContainers | JContainers/Data/SKSE/Plugins/JCData/lua/testing/basic.lua | 1 | 5626 |
local JCTypeList = {JArray, JMap, JFormMap}
local function print( ... )
end
local basicTest = function()
do
assert(Form(1) == Form(1))
assert(Form(1) ~= Form(2))
end
local function expectSize(o, size)
assert(o)
local s = JValue.typeOf(o).typeName
assert(#o == size, 'expected object si... | mit |
witcxc/ibus-pinyin | lua/base.lua | 5 | 17113 | -- encoding: UTF-8
_CHINESE_DIGITS = {
[0] = "〇",
[1] = "一",
[2] = "二",
[3] = "三",
[4] = "四",
[5] = "五",
[6] = "六",
[7] = "七",
[8] = "八",
[9] = "九",
[10] = "十",
}
_DATE_PATTERN = "^(%d+)-(%d+)-(%d+)$"
_TIME_PATTERN = "^(%d+):(%d+)$"
function GetChineseMathNum(num)
local ret
if num < 10 then
... | gpl-2.0 |
dinodeck/ninety_nine_days_of_dev | 007_map_cure/code/EquipMenuState.lua | 4 | 8607 | EquipMenuState = {}
EquipMenuState.__index = EquipMenuState
function EquipMenuState:Create(parent)
local this =
{
mParent = parent,
mStack = parent.mStack,
mStateMachine = parent.mStateMachine,
mScrollbar = Scrollbar:Create(Texture.Find('scrollbar.png'), 135),
mBetterSpr... | mit |
Ninjistix/darkstar | scripts/zones/Bastok_Markets/npcs/Matthias.lua | 5 | 7256 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Matthias
-- Standard Info NPC
-- Involved in Quest:
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets/TextIDs");
require("scripts... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Tavnazian_Safehold/TextIDs.lua | 5 | 2255 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6380; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6386; -- Obtained: <item>
GIL_OBTAINED = 6387; -- Obtained <number> gil
KEY... | gpl-3.0 |
mandersan/premake-core | src/base/container.lua | 23 | 8189 | ---
-- container.lua
-- Implementation of configuration containers.
-- Copyright (c) 2014 Jason Perkins and the Premake project
---
local p = premake
p.container = {}
local container = p.container
---
-- Keep a master dictionary of container class, so they can be easily looked
-- up by name (technically you cou... | bsd-3-clause |
Ninjistix/darkstar | scripts/globals/abilities/addendum_black.lua | 2 | 1483 | -----------------------------------
-- Ability: Addendum: Black
-- Allows access to additional Black Magic spells while using Dark Arts.
-- Obtained: Scholar Level 30
-- Recast Time: Stratagem Charge
-- Duration: 2 hours
--
-- Level |Charges |Recharge Time per Charge
-- ----- -------- ---------------
-- 10 |1 ... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/filamented_hold.lua | 3 | 1490 | -----------------------------------------
-- Spell: Filamented Hold
-- Reduces the attack speed of enemies within a fan-shaped area originating from the caster
-- Spell cost: 38 MP
-- Monster Type: Vermin
-- Spell Type: Magical (Earth)
-- Blue Magic Points: 3
-- Stat Bonus: VIT+1
-- Level: 52
-- Casting Time: 2 seconds... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Bastok_Markets/npcs/Gwill.lua | 5 | 2620 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Gwill
-- Starts & Ends Quest: The Return of the Adventurer
-- Involved in Quests: The Cold Light of Day, Riding on the Clouds
-- !pos ? ? ? 235
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
---------... | gpl-3.0 |
mamad-ali/xilibot | bot/bot.lua | 1 | 7094 | 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 |
abosalah22/zak | plugins/time.lua | 3 | 2836 | --[[
$ :)
-- - ( #ابو_شهوده ) - --
$ :)
-- - ( @abo_shosho98 ) - --
$ :)
--Channel-( @aboaloshbot )--
$ :)
]]--
api_key = nil
base_api = "https://maps.googleapis.com/maps/api"
dateFormat = "%A %d %B - %H:%M:%S"
-- Need the utc time for the google api
function utctime()
return os.time(os.date("!*t")) ... | gpl-2.0 |
drhelius/bstone-ios | dependencies/SDL-1bc5372ee27f/premake/util/sdl_string.lua | 7 | 3245 | -- Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for an... | gpl-2.0 |
Ninjistix/darkstar | scripts/globals/items/burtgang.lua | 3 | 4187 | -----------------------------------------
-- ID: 18997
-- Item: Burtgang
-----------------------------------------
require("scripts/globals/msg");
require("scripts/globals/status");
require("scripts/globals/weaponskills");
require("scripts/globals/weaponskillids");
-----------------------------------
local NAME_WEAPON... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/aurorastorm.lua | 32 | 1189 | --------------------------------------
-- Spell: Aurorastorm
-- Changes the weather around target party member to "auroras."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
---------------------------------------... | gpl-3.0 |
mandersan/premake-core | binmodules/luasocket/test/testmesg.lua | 45 | 2957 | -- load the smtp support and its friends
local smtp = require("socket.smtp")
local mime = require("mime")
local ltn12 = require("ltn12")
function filter(s)
if s then io.write(s) end
return s
end
source = smtp.message {
headers = { ['content-type'] = 'multipart/alternative' },
body = {
[1] = {
... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Shahau.lua | 3 | 1394 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Shahau
-- Type: Alchemy Image Support
-- !pos -10.470 -6.25 -141.700 241
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status"... | gpl-3.0 |
dragoonreas/Timeless-Answers | Localexporter.lua | 1 | 16437 | --[[
Timeless Answers - Locale Exporter: Exports gossip strings required by the main Timeless Answers addon.
Copyright (C) 2013 @project-author@
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, e... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/earth_carol.lua | 5 | 1506 | -----------------------------------------
-- Spell: Earth Carol
-- Increases earth resistance for party members within the area of effect.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
require("scripts/globals/msg");
--------------------------------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Chateau_dOraguille/npcs/_6h4.lua | 5 | 3351 | -----------------------------------
-- Area: Chateau d'Oraguille
-- Door: Great Hall
-- Involved in Missions: 3-3, 5-2, 6-1, 8-2, 9-1
-- !pos 0 -1 13 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
package.loaded["scripts/globals/missions"] = nil;
--------------... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/dish_of_spaghetti_marinara_+1.lua | 3 | 1285 | -----------------------------------------
-- ID: 5720
-- Item: dish_of_spaghetti_marinara_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- HP % 15 (cap 130)
-- Vitality 2
-- Defense 6
-- Store TP 6
-- hHP +1
-----------------------------------------
require("scripts/globals/status");
---... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Port_Jeuno/npcs/Zona_Shodhun.lua | 5 | 3973 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Zona Shodhun
-- Starts and Finishes Quest: Pretty Little Things
-- @zone 246
-- !pos -175 -5 -4
-----------------------------------
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/shop");
require("scripts/... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/bluemagic/blastbomb.lua | 3 | 1872 | -----------------------------------------
-- Spell: Blastbomb
-- Deals fire damage to enemies within area of effect. Additional effect: "Bind"
-- Spell cost: 36 MP
-- Monster Type: Beastmen
-- Spell Type: Magical (Fire)
-- Blue Magic Points: 2
-- Stat Bonus: STR+1
-- Level: 18
-- Casting Time: 2.25 seconds
-- Recast Ti... | gpl-3.0 |
Endika/density | build/premake5.lua | 2 | 2689 | #!lua
--
-- Centaurean Density
--
-- Copyright (c) 2015, Guillaume Voirin
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above cop... | bsd-3-clause |
Ninjistix/darkstar | scripts/zones/Fort_Karugo-Narugo_[S]/npcs/Indescript_Markings.lua | 3 | 1946 | ----------------------------------
-- Area: Fort Karugo Narugo [S]
-- NPC: Indescript Markings
-- Type: Quest
-- @zone 96
-- !pos -63 -75 4
-----------------------------------
package.loaded["scripts/zones/Fort_Karugo-Narugo_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Fort_Karugo-N... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/treasure.lua | 4 | 21476 | -------------------------------------------------
-- Treasure functions
-- Info from:
-- http://wiki.ffxiclopedia.org/wiki/Picking_your_Coffers_and_Chests
-- http://ffxi.allakhazam.com/db/jobs.html?fjob=10&mid=1086187627165365190&num=150
-------------------------------------------------
require("scripts/... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/spells/dragonfoe_mambo.lua | 5 | 1582 | -----------------------------------------
-- Spell: Dragonfoe Mambo
-- Grants evasion bonus to all members.
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/msg");
-----------------------------------------
function onMagicCastingCheck(caster,target,spell)
return... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/North_Gustaberg/npcs/Monument.lua | 5 | 1147 | -----------------------------------
-- Area: North Gustaberg
-- NPC: Monument
-- Involved in Quest "Hearts of Mythril"
-- !pos 300.000 -62.803 498.200 106
-----------------------------------
package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/ques... | gpl-3.0 |
MaxTeamch/s-yagop | plugins/moderation.lua | 1 | 23279 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
local members
if not cb_extra.is_chan then
members = result.members
else
members = result
end
for k,v in pairs(members) do
... | gpl-2.0 |
iassael/torch-ddcnn | LinearO.lua | 3 | 2055 | --[[
Torch Linear Unit with Orthogonal Weight Initialization
Exact solutions to the nonlinear dynamics of learning in deep linear neural networks
http://arxiv.org/abs/1312.6120
Copyright (C) 2015 John-Alexander M. Assael (www.johnassael.com)
The MIT License (MIT)
Permission is hereby granted... | mit |
wangyi0226/skynet | lualib/skynet/db/redis/crc16.lua | 30 | 2687 | --/*
-- This is the CRC16 algorithm used by Redis Cluster to hash keys.
-- Implementation according to CCITT standards.
--
-- This is actually the XMODEM CRC 16 algorithm, using the
-- following parameters:
--
-- Name : "XMODEM", also known as "ZMODEM", "CRC-16/ACORN"
-- Width ... | mit |
Ninjistix/darkstar | scripts/zones/Western_Adoulin/npcs/Dewalt.lua | 7 | 1754 | -----------------------------------
-- Area: Western Adoulin
-- NPC: Dewalt
-- Type: Standard NPC and Quest NPC
-- Involved with Quests: 'Flavors of our Lives'
-- 'Dont Ever Leaf Me'
-- @zone 256
-- !pos -23 0 28 256
-----------------------------------
require("scripts/globals/quests");
-----... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/mobskills/gregale_wing.lua | 33 | 1230 | ---------------------------------------------
-- Gregale Wing
--
-- Description: An icy wind deals Ice damage to enemies within a very wide area of effect. Additional effect: Paralyze
-- Type: Magical
-- Utsusemi/Blink absorb: Wipes shadows
-- Range: 30' radial.
-- Notes: Used only by Jormungand and Isgebind
----... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Navukgo_Execution_Chamber/Zone.lua | 5 | 1145 | -----------------------------------
--
-- Zone: Navukgo_Execution_Chamber (64)
--
-----------------------------------
package.loaded["scripts/zones/Navukgo_Execution_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/globals/settings");
require("scripts/zo... | gpl-3.0 |
arca1n/cocos2d-x_nextpeer_integration | external/lua/luajit/src/src/jit/bc.lua | 78 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
area31/telegram-bot | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
Xamla/torch-ros | lua/init.lua | 1 | 1115 | local ros = require 'ros.env'
-- std
require 'ros.std.String'
require 'ros.std.StringVector'
require 'ros.std.StringMap'
require 'ros.std.Variable'
require 'ros.std.VariableVector'
require 'ros.std.VariableTable'
require 'ros.std.Task'
-- ros
require 'ros.ros'
require 'ros.Time'
require 'ros.Duration'
require 'ros.Ra... | bsd-3-clause |
neofob/sile | languages/gu.lua | 3 | 1042 | SILE.hyphenator.languages["gu"] = {}
SILE.hyphenator.languages["gu"].patterns =
{
-- GENERAL RULE
-- Do not break either side of ZERO-WIDTH JOINER (U+200D)
"22",
-- Break on both sides of ZERO-WIDTH NON JOINER (U+200C)
"11",
-- Break before or after any independent vowel.
"અ1",
"આ1",
"ઇ1",
"ઈ1",
"ઉ1",
"ઊ1",
"ઋ1"... | mit |
davidbuzz/ardupilot | libraries/AP_Scripting/examples/plane-wind-failsafe.lua | 26 | 1195 | -- warn the user if wind speed exceeds a threshold, failsafe if a second threshold is exceeded
-- note that this script is only intended to be run on ArduPlane
-- tuning parameters
local warn_speed = 10 -- metres/second
local failsafe_speed = 15 -- metres/second
local warning_interval_ms = uint32_t(15000) -- send use... | gpl-3.0 |
wangyi0226/skynet | examples/login/msgagent.lua | 58 | 1165 | local skynet = require "skynet"
skynet.register_protocol {
name = "client",
id = skynet.PTYPE_CLIENT,
unpack = skynet.tostring,
}
local gate
local userid, subid
local CMD = {}
function CMD.login(source, uid, sid, secret)
-- you may use secret to make a encrypted data stream
skynet.error(string.format("%s is lo... | mit |
eugenesan/openwrt-luci | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/smap_devinfo_mini.lua | 141 | 1031 | --[[
smap_devinfo - SIP Device Information
(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
$Id$
]]--
require("luci.i18n")
re... | apache-2.0 |
eugenesan/openwrt-luci | modules/freifunk/luasrc/model/cbi/freifunk/profile.lua | 56 | 2755 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 Manuel Munz <freifunk at somakoma dot de>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
httc://www.apache.org/licenses/LICENSE-2.0
]]... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Sacrificial_Chamber/Zone.lua | 5 | 1155 | -----------------------------------
--
-- Zone: Sacrificial_Chamber (163)
--
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/missi... | gpl-3.0 |
draekko/keys | VSCOKeys.lrdevplugin/halfway_server/socket/http.lua | 121 | 12193 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: http.lua,v 1.71 2007/10/13 23:55:20 diego Exp $
-----------------------------------------------------------------------------
-----... | gpl-2.0 |
ogahara/esp8266-devkit | Espressif/examples/nodemcu-spiffy/files/bmp180.lua | 9 | 4174 | -- ***************************************************************************
-- BMP180 module for ESP8266 with nodeMCU
-- BMP085 compatible but not tested
--
-- Written by Javier Yanez
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
... | gpl-3.0 |
ld-test/dromozoa-http | test/test_uri.lua | 2 | 1703 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-http.
--
-- dromozoa-http 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 |
jamiepg1/MCServer | MCServer/Plugins/APIDump/Classes/BlockEntities.lua | 2 | 12426 | return
{
cBlockEntity =
{
Desc = [[
Block entities are simply blocks in the world that have persistent data, such as the text for a sign
or contents of a chest. All block entities are also saved in the chunk data of the chunk they reside in.
The cBlockEntity class acts as a common ancestor for all the indi... | apache-2.0 |
karrots/nodemcu-firmware | lua_examples/irsend.lua | 88 | 1803 | ------------------------------------------------------------------------------
-- IR send module
--
-- LICENCE: http://opensource.org/licenses/MIT
-- Vladimir Dronnikov <dronnikov@gmail.com>
--
-- Example:
-- dofile("irsend.lua").nec(4, 0x00ff00ff)
-----------------------------------------------------------------------... | mit |
Ninjistix/darkstar | scripts/zones/Davoi/npcs/_45g.lua | 3 | 1921 | -----------------------------------
-- Area: Davoi
-- NPC: Groaning Pond
-- Used In Quest: Whence Blows the Wind
-- !pos 101 0.1 60 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/glob... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/items/slice_of_hare_meat.lua | 3 | 1170 | -----------------------------------------
-- ID: 4358
-- Hare Meat
-- 5 Minutes, food effect, Galka Only
-----------------------------------------
-- Strength +1
-- Intelligence -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
function onItemChec... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/La_Theine_Plateau/npcs/Laurisse.lua | 5 | 1426 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Laurisse
-- Involved in Mission: The Rescue Drill
-- !pos -292 28 143 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
... | gpl-3.0 |
Ninjistix/darkstar | scripts/globals/effects/afflatus_misery.lua | 33 | 1221 | -----------------------------------
--
-- EFFECT_AFFLATUS_MISERY
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
target:setMod(MOD_AFFLATUS_MISERY,0);
... | gpl-3.0 |
Ninjistix/darkstar | scripts/zones/Rabao/npcs/Agado-Pugado.lua | 5 | 5279 | -----------------------------------
-- Area: Rabao
-- NPC: Agado-Pugado
-- Starts and Finishes Quest: Trial by Wind
-- !pos -17 7 -10 247
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/gl... | gpl-3.0 |
s-d-a/DCS-ExportScripts | Scripts/DCS-ExportScript/ExportsModules/Ka-50.lua | 1 | 76528 | -- Ka-50 Export
ExportScript.FoundDCSModule = true
ExportScript.Version.Ka50 = "1.2.1"
ExportScript.ConfigEveryFrameArguments =
{
--[[
every frames arguments
based of "mainpanel_init.lua"
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
[DeviceID] = "Format"
[4] = "%.4f", <-... | lgpl-3.0 |
poldracklab/lmod_modules | freesurfer/6.0.0.lua | 1 | 1373 | help (
[[
This module loads freesurfer. This module makes available the freesurfer executables. Documentation for freesurfer is available online at the publisher\'s website: http://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki
These executables can be found in TACC_FREESURFER_DIR, e.g. recon-all. No need to run SetU... | apache-2.0 |
Ninjistix/darkstar | scripts/zones/Apollyon/mobs/Earth_Elemental.lua | 35 | 2314 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
ccyphers/kong | spec/02-integration/05-proxy/04-uri_encoding_spec.lua | 1 | 2928 | local cjson = require "cjson"
local helpers = require "spec.helpers"
describe("URI encoding", function()
local client
setup(function()
assert(helpers.dao.apis:insert {
name = "api-1",
hosts = { "httpbin.com" },
upstream_url = "http://httpbin.org",
})
assert(helpers.dao.apis:insert {... | apache-2.0 |
mandersan/premake-core | src/_manifest.lua | 9 | 1390 | --
-- _manifest.lua
-- Manage the list of built-in Premake scripts.
-- Copyright (c) 2002-2015 Jason Perkins and the Premake project
--
-- The master list of built-in scripts. Order is important! If you want to
-- build a new script into Premake, add it to this list.
return
{
-- core files
"base/_foundation.lua... | bsd-3-clause |
neofob/sile | vendor/luaexpat/src/lxp/lom.lua | 14 | 1422 | -- See Copyright Notice in license.html
-- $Id: lom.lua,v 1.6 2005/06/09 19:18:40 tuler Exp $
local lxp = require "lxp"
local tinsert, tremove = table.insert, table.remove
local assert, type, print = assert, type, print
local function starttag (p, tag, attr)
local stack = p:getcallbacks().stack
local newelement... | mit |
Ninjistix/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Pucotte.lua | 3 | 1377 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Pucotte
-- Type: Chocobo Renter
-- !pos 101.591 39.999 360.898 117
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
--... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.