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
dafei2015/hugular_cstolua
Client/Assets/Lua/core/Color.lua
4
2327
Color = { r = 0, g = 0, b = 0, a = 0, class = "Color", } setmetatable(Color, Color) local fields = {} Color.__index = function(t,k) local var = rawget(Color, k) if var == nil then var = rawget(fields, k) if var ~= nil then return var(t) end end return var end function Color.Ne...
mit
eugenesan/openwrt-luci
applications/luci-firewall/luasrc/model/cbi/firewall/rule-details.lua
52
8016
--[[ 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
PetarTilevRusev/EndlessWar
game/scripts/vscripts/libraries/modifiers/modifier_animation_translate.lua
29
10463
modifier_animation_translate = class({}) local _CODE_TO_ANIMATION_TRANSLATE = { [0]= "loadout", [1]= "split_shot", [2]= "chemical_rage", [3]= "agedspirit", [4]= "aggressive", [5]= "injured", [6]= "ancient_armor", [7]= "anvil", [8]= "arcana", [9]= "techies_arcana", [10]= "fast", [11]= "faster", ...
mit
Ninjistix/darkstar
scripts/globals/mobskills/equalizer.lua
35
1146
--------------------------------------------------- -- Equalizer -- AoE damage (~600-800), -- --------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); --------------------------------------------------- funct...
gpl-3.0
dding3/BigDL
dl/src/test/resources/torch/genPreprocessRefTensors.lua
3
2098
-- -- Licensed to Intel Corporation under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- Intel Corporation licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use ...
apache-2.0
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/BitmapText.lua
5
7982
-- Should be support for newlines -- Render and nextline and size BitmapText = {} BitmapText.__index = BitmapText function BitmapText:Create(def) local texture = Texture.Find(def.texture) local this = { mTexture = texture, mWidth = texture:GetWidth(), mHeight = texture:GetHeight(...
mit
neilbu/osrm-backend
profiles/debug_example.lua
8
1429
-- -- Example of how to use debug.lua to debug profiles in a pure lua environment. -- It makes it easy to manually set tags, run the way processing and check the result. -- -- To use, make a copy of this file and gitignore your copy. (If you use the name ndebug.lua, -- it's already gitignored.) -- -- You run your copy...
bsd-2-clause
Ninjistix/darkstar
scripts/zones/Ilrusi_Atoll/npcs/Treasure_Coffer.lua
5
1471
----------------------------------- -- Area: -- NPC: Treasure Coffer -- @zone illrusi atoll -- !pos ----------------------------------- package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/settings"); require("script...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Chateau_dOraguille/npcs/Halver.lua
5
9311
----------------------------------- -- Area: Chateau d'Oraguille -- NPC: Halver -- Involved in Mission 2-3, 3-3, 5-1, 5-2, 8-1 -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- !pos 2 0.1 0.1 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; -------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Wajaom_Woodlands/npcs/Watisa.lua
3
1361
----------------------------------- -- Area: Wajaom Woodlands -- NPC: Watisa -- Type: Chocobo Renter -- !pos -201 -11 93 51 ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("scripts/globals/chocobo"); require("scripts/globals/status"); -------------...
gpl-3.0
iranianboy/group
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...
agpl-3.0
rigeirani/s
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
Inorizushi/DDR-SN1HD
BGAnimations/BGScripts/default.lua
2
1189
--DO NOT TRY TO LOAD THIS ACTOR DIRECTLY!! --IT WILL NOT WORK!! local t = Def.ActorFrame{}; local function setVisibility(self) local song = GAMESTATE:GetCurrentSong(); local shouldShowBGScripts = false if song then shouldShowBGScripts = not song:HasBGChanges() if shouldShowBGScri...
gpl-3.0
neofob/sile
languages/bg.lua
3
17439
SILE.hyphenator.languages["bg"] = {} SILE.hyphenator.languages["bg"].patterns = { "1а1", "1б1", "1в1", "1г1", "1д1", "1е1", "1ж1", "1з1", "1и1", "1й1", "1к1", "1л1", "1м1", "1н1", "1о1", "1п1", "1р1", "1с1", "1т1", "1у1", "1ф1", "1х1", "1ц1", "1ч1", "1ш1", "1щ1", "1ъ1", "0ь0", "1ю1", "1я1", "б4а б4е б4и б4о б4у б4ъ ...
mit
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/EquipMenuState.lua
1
8601
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
dinodeck/ninety_nine_days_of_dev
007_map_cure/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
mandersan/premake-core
src/base/json.lua
23
55197
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2016 Jeffrey Friedl -- http://regex.info/blog/ -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses/by...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/ActorSummary.lua
4
4578
ActorSummary = {} ActorSummary.__index = ActorSummary function ActorSummary:Create(actor, params) params = params or {} local this = { mX = 0, mY = 0, mWidth = 340, -- width of entire box mActor = actor, mHPBar = ProgressBar:Create { value = actor...
mit
dinodeck/ninety_nine_days_of_dev
007_map_cure/code/ActorSummary.lua
4
4578
ActorSummary = {} ActorSummary.__index = ActorSummary function ActorSummary:Create(actor, params) params = params or {} local this = { mX = 0, mY = 0, mWidth = 340, -- width of entire box mActor = actor, mHPBar = ProgressBar:Create { value = actor...
mit
charles-l/LD29
Cloud.lua
1
1320
Cloud = class('Cloud') Cloud.static.cloudSprites = {} for i=1, 3 do table.insert(Cloud.static.cloudSprites, love.graphics.newImage('res/cloud' .. i .. '.png')) end function Cloud:initialize(x, y, scale, speed, sprite, alpha) self.p = vector(x, y) self.scale = scale self.speed = speed self.sprite = Cloud.stat...
mit
area31/telegram-bot
plugins/id.lua
226
4260
local function user_print_name(user) if user.print_name then return user.print_name end local text = '' if user.first_name then text = user.last_name..' ' end if user.lastname then text = text..user.last_name end return text end local function returnids(cb_extra, success, result) local re...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Western_Adoulin/npcs/Clautaire.lua
5
1958
----------------------------------- -- Area: Western Adoulin -- NPC: Clautaire -- Type: Standard NPC and Quest Giver -- Starts, Involved with, and Finishes Quest: 'F.A.I.L.ure Is Not an Option' -- @zone 256 -- !pos 44 4 -159 256 ----------------------------------- package.loaded["scripts/zones/Western_Adoulin/TextI...
gpl-3.0
dafei2015/hugular_cstolua
Client/Assets/Lua/components/assetLoader.lua
7
3041
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ --Gameobject 资源集合 local LuaHelper=LuaHelper local Loader=Loader local CUtils=CUtils local Asset = Asset local StateManager = StateManager local GAMEO...
mit
hamrah12/hamrah_shoma
plugins/minecraft.lua
624
2605
local usage = { "!mine [ip]: Searches Minecraft server on specified ip and sends info. Default port: 25565", "!mine [ip] [port]: Searches Minecraft server on specified ip and port and sends info.", } local ltn12 = require "ltn12" local function mineSearch(ip, port, receiver) --25565 local responseText = "" l...
gpl-2.0
TEAMvirus/ViRuS
plugins/Instagram.lua
1
3901
local access_token = "3084249803.280d5d7.999310365c8248f8948ee0f6929c2f02" -- your api key local function instagramUser(msg, query) local receiver = get_receiver(msg) local url = "https://api.instagram.com/v1/users/search?q="..URL.escape(query).."&access_token="..access_token local jstr, res = https.request(url) ...
gpl-2.0
ogahara/esp8266-devkit
Espressif/examples/nodemcu-firmware/lua_examples/yet-another-dht22.lua
65
2195
------------------------------------------------------------------------------ -- DHT11/22 query module -- -- LICENCE: http://opensource.org/licenses/MIT -- Vladimir Dronnikov <dronnikov@gmail.com> -- -- Example: -- print("DHT11", dofile("dht22.lua").read(4)) -- print("DHT22", dofile("dht22.lua").read(4, true)) -- NB: ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Animated_Longbow.lua
7
1148
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Animated Longbow ----------------------------------- require("scripts/globals/status"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) if (mob:AnimationSub() == 3) the...
gpl-3.0
Xamla/torch-ros
lua/Time.lua
1
3653
local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros.env' local utils = require 'ros.utils' local Time = torch.class('ros.Time', ros) function init() local Time_method_names = { "new", "clone", "delete", "isZero", "fromSec", "toSec", "set", "assign", "...
bsd-3-clause
teozkr/WorldMarkers
libs/GeminiLogging.lua
7
15049
------------------------------------------------------------------------------- -- GeminiLogging -- Copyright (c) NCsoft. All rights reserved -- Author: draftomatic -- Logging library (loosely) based on LuaLogging. -- Comes with appenders for GeminiConsole and Print() Debug Channel. ------------------------------------...
mit
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Pikiki.lua
5
1118
----------------------------------- -- Area: Northern San d'Oria -- NPC: Pikiki -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Northern_San_dOria/TextIDs"); require("scripts/globals/se...
gpl-3.0
DEVll190ll/DEV_HR
plugins/DEV_12.lua
1
1544
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LL190LL) ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LLSNLL) ▀▄ ▄▀ ▀▄ ▄▀ Image Converter : تحويل صوره ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄...
gpl-2.0
dafei2015/hugular_cstolua
Client/Assets/Lua/net/proxy.lua
7
2351
Proxy = {} local Net=Net local NetChat=NetChat local Msg=Msg local NetProtocalPaser = NetProtocalPaser local getValue=getValue local Proxy=Proxy Proxy.tables = {} Proxy.errorTables = {} Proxy.sendDelay = {} function Proxy:binding(api,fun) if self.tables[api.Code]==nil then self.tables[api.Code]={} end local msgTabl...
mit
Inorizushi/DDR-SN1HD
Graphics/ScreenGameplay StageDisplay/default.lua
2
1319
local StageDisplay = Def.ActorFrame{ BeginCommand=cmd(playcommand,"Set";); CurrentSongChangedMessageCommand=cmd(finishtweening;playcommand,"Set";); }; if (GAMESTATE:Env()).EndlessState or GAMESTATE:IsCourseMode() then StageDisplay[#StageDisplay+1] = Def.Sprite{ Texture="counter background" } StageDispl...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Aht_Urhgan_Whitegate/npcs/Fochacha.lua
5
2284
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Fochacha -- Type: Standard NPC -- !pos 2.897 -1 -10.781 50 -- Quest: Delivering the Goods ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/bowl_of_eyeball_soup.lua
3
1303
----------------------------------------- -- ID: 4453 -- Item: Bowl of Eyeball Soup -- Food Effect: 180Min, All Races ----------------------------------------- -- HP +6% (cap 70) -- Charisma -10 -- Health Regen While Healing 4 -- Accuracy 12 -- Ranged ACC 12 ----------------------------------------- require("scripts/gl...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/howling_fist.lua
26
1490
----------------------------------- -- Howling Fist -- Hand-to-Hand weapon skill -- Skill Level: 200 -- Damage varies with TP. -- Will stack with Sneak Attack. -- Ignores some defense. -- Aligned with the Light Gorget & Thunder Gorget. -- Aligned with the Light Belt & Thunder Belt. -- Element: None -- Modifiers: STR:20...
gpl-3.0
MoltenPlastic/nersis
luajit/src/jit/bcsave.lua
28
18091
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
Ninjistix/darkstar
scripts/globals/items/piece_of_kusamochi.lua
3
1725
----------------------------------------- -- ID: 6262 -- Item: kusamochi -- Food Effect: 30 Min, All Races ----------------------------------------- -- HP + 20 (Pet & Master) -- Vitality + 3 (Pet & Master) -- Attack + 20% Cap: 72 (Pet & Master) Pet Cap: 113 -- Ranged Attack + 20% Cap: 72 (Pet & Master) Pet Cap: 113 ---...
gpl-3.0
ahmetabdi/JC2-MP-Racing
shared/sharedUtility.lua
2
1883
Utility = {} local M = Utility math.tau = math.pi * 2 M.NumberToPlaceString = function(number) if number == 1 then return string.format("%i%s" , 1 , "st") elseif number == 2 then return string.format("%i%s" , 2 , "nd") elseif number == 3 then return string.format("%i%s" , 3 , "rd") else return string.fo...
mit
Ninjistix/darkstar
scripts/zones/Ordelles_Caves/npcs/qm2.lua
5
1141
----------------------------------- -- Area: Ordelle's Caves -- NPC: ??? (qm2) -- Involved in Quest: A Squire's Test II -- !pos -94 1 273 193 ------------------------------------- package.loaded["scripts/zones/Ordelles_Caves/TextIDs"] = nil; ------------------------------------- require("scripts/globals/settings"); re...
gpl-3.0
Ninjistix/darkstar
scripts/globals/effects/int_boost.lua
34
1027
----------------------------------- -- -- EFFECT_INT_BOOST -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_INT,effect:getPower()); end; ...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_Windurst/npcs/Taniko-Maniko.lua
5
1503
----------------------------------- -- Area: Port Windurst -- NPC: Taniko-Maniko -- Standard Merchant NPC -- Confirmed shop stock, August 2013 ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("s...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Count_Zaebos.lua
7
1332
----------------------------------- -- Area: Dynamis Xarcabard -- MOB: Count Zaebos ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- function onMobEngaged(mob,target) end; ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/effects/voidstorm.lua
35
1337
----------------------------------- -- -- -- ----------------------------------- ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) target:addMod(MOD_STR,math.floor(effect:getPower()/2)); target:addMod(MOD_DEX,math.floor(effect:g...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Sauromugue_Champaign/npcs/qm4.lua
7
1676
----------------------------------- -- Area: Sauromugue Champaign -- NPC: qm4 (???) (Tower 4) -- Involved in Quest: THF AF "As Thick As Thieves" -- !pos 129.587 -0.600 -235.525 120 ----------------------------------- package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil; --------------------------------...
gpl-3.0
TRex22/hawkthorne-journey
src/nodes/movingplatform.lua
2
7430
-- The MovingPlatform node facilitates platforms that move back and fourth along a Bspline Curve -- So setup a movingplatform, you will need to create 2 objects: -- The 'control' object represents the size of the ledge and contains all of the properties required to make it work -- The 'line' object is a polyl...
mit
TRex22/hawkthorne-journey
src/vendor/gamestate.lua
1
3343
--[[ Copyright (c) 2010-2012 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, dis...
mit
fegimanam/LPT
bot/utils.lua
646
23489
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() JSON = (loadfile "./libs/...
gpl-2.0
neofob/sile
lua-libraries/vstruct/test/fp-littleendian.lua
6
2949
local vstruct = require "vstruct" local test = require "vstruct.test.common" local inf = math.huge -- work around a bug in the Lua constant table optimizer local z = 0 local nz = -z local function T(n, buf) return test.autotest(tostring(n), "< f8", buf, n) end test.group("little-endian ieee doubles") T(0, "\000\0...
mit
Xamla/torch-ros
lua/MsgSpec.lua
1
8553
--- Message specification class -- @classmod MsgSpec local md5 = require 'md5' local path = require 'pl.path' local torch = require 'torch' local ros = require 'ros.env' local MsgSpec = torch.class('ros.MsgSpec', ros) local msgspec_cache = {} local BUILTIN_TYPES = { 'bool', 'char', 'byte', 'int8', 'uint8', '...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Castle_Oztroja/npcs/_47c.lua
5
1816
----------------------------------- -- Area: Castle Oztroja -- NPC: _47c (Handle) -- Notes: Opens Trap Door (_47a) or Brass Door (_470) -- !pos 17.717 -1.087 -14.320 151 ----------------------------------- package.loaded["scripts/zones/Castle_Oztroja/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
codedash64/Urho3D
bin/Data/LuaScripts/Utilities/ScriptCompiler.lua
29
1247
-- Script to recursively compile lua files located in specified rootFolder to luc (bytecode) -- Usage: require "LuaScripts/Utilities/LuaScriptCompiler" -- Set root folder containing lua files to convert local rootFolder = "Data/LuaScripts/" -- Starting from bin folder if not fileSystem:DirExists(rootFolder) then log:...
mit
carnalis/Urho3D
bin/Data/LuaScripts/Utilities/ScriptCompiler.lua
29
1247
-- Script to recursively compile lua files located in specified rootFolder to luc (bytecode) -- Usage: require "LuaScripts/Utilities/LuaScriptCompiler" -- Set root folder containing lua files to convert local rootFolder = "Data/LuaScripts/" -- Starting from bin folder if not fileSystem:DirExists(rootFolder) then log:...
mit
mandersan/premake-core
modules/vstudio/vs2005_fsproj_user.lua
14
1945
-- -- vs2005_fsproj_user.lua -- Generate a Visual Studio 2005+ F# .user file. -- Copyright (c) Jason Perkins and the Premake project -- local p = premake local m = p.vstudio.fs2005 local dn = p.vstudio.dotnetbase -- -- Generate a Visual Studio 200x C# user file. -- m.elements.userProjectPropertyGroup = function...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/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
bmddota/ContainersPlayground
game/dota_addons/containersplayground/scripts/vscripts/events.lua
2
10452
-- This file contains all barebones-registered events and has already set up the passed-in parameters for your use. -- Do not remove the GameMode:_Function calls in these events as it will mess with the internal barebones systems. -- Cleanup a player when they leave function GameMode:OnDisconnect(keys) DebugPrint('[...
apache-2.0
neofob/sile
core/baseclass.lua
1
10576
SILE.Help = {} SILE.registerCommand = function (name, func, help, pack) SILE.Commands[name] = func if not pack then local where = debug.getinfo(2).source pack = where:match("(%w+).lua") end --if not help and not pack:match(".sil") then SU.error("Could not define command '"..name.."' (in package "..pack...
mit
neofob/sile
packages/font-fallback.lua
2
7384
local sep = lpeg.S(",;") local quotedString = (lpeg.P("\"") * lpeg.C((1-lpeg.S("\""))^1) * lpeg.P("\"")) / function(t) return t end local value = (quotedString + lpeg.C((1-lpeg.S(",;]"))^1)) local list = (value * sep^-1)^0 local fallbackQueue = std.object { init = function(self, text, fallbacks) self.q = {} ...
mit
Ninjistix/darkstar
scripts/zones/Bastok_Mines/npcs/Rashid.lua
5
3349
----------------------------------- -- Area: Bastok Mines -- NPC: Rashid -- Type: Mission Giver -- !pos -8.444 -2 -123.575 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
area31/telegram-bot
plugins/img_google.lua
1
3237
do local mime = require("mime") local google_config = load_from_file('data/google.lua') local cache = {} --[[ local function send_request(url) local t = {} local options = { url = url, sink = ltn12.sink.table(t), method = "GET" } local a, code, headers, status = http.request(options) return tabl...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Nashmau/npcs/Kakkaroon.lua
5
1923
----------------------------------- -- Area: Nashmau -- NPC: Kakkaroon -- Standard Info NPC -- !pos 13.245 0.000 -25.307 53 ----------------------------------- package.loaded["scripts/zones/Nashmau/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings...
gpl-3.0
ld-test/lunajson
src/lunajson/_str_lib.lua
12
2418
local inf = math.huge local byte, char, sub = string.byte, string.char, string.sub local setmetatable = setmetatable local floor = math.floor local _ENV = nil local hextbl = { 0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, inf, inf, inf, inf, inf, inf, inf, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF, inf, inf, inf, inf, inf, ...
mit
Ninjistix/darkstar
scripts/zones/Garlaige_Citadel/npcs/qm5.lua
5
1041
----------------------------------- -- Area: Garlaige Citadel -- NPC: qm5 (???) -- Involved in Quest: Hitting the Marquisate (THF AF3) -- !pos -259.927 -5.500 194.410 200 ----------------------------------- package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil; ----------------------------------- require("scr...
gpl-3.0
area31/telegram-bot
plugins/anti-flood.lua
281
2422
local NUM_MSG_MAX = 5 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 5 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
Ninjistix/darkstar
scripts/globals/abilities/dark_maneuver.lua
2
1444
----------------------------------- -- Ability: Dark Maneuver -- Enhances the effect of dark attachments. Must have animator equipped. -- Obtained: Puppetmaster level 1 -- Recast Time: 10 seconds (shared with all maneuvers) -- Duration: 1 minute ----------------------------------- require("scripts/globals/status"); req...
gpl-3.0
amir1213/tamir
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
mt246/mt24679
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
jaydipdave/quickdefencewaf
Rules/rules.lua
1
4838
---------------------------------------------------------------------------------------------------------------------- -- Important Note: Below defined XSS and SQLi protection rules are just for demo purpose, they are not tested at all. ----------------------------------------------------------------------------------...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Port_Jeuno/npcs/Purequane.lua
5
1026
----------------------------------- -- Area: Port Jeuno -- NPC: Purequane -- @zone 246 -- !pos -76 8 54 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require("sc...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/tacticians_roll.lua
1
2571
----------------------------------- -- Ability: Tacticians's Roll -- Grants a Regain effect to party members within area of effect. -- Optimal Job: None -- Lucky Number: 5 -- Unlucky Number: 8 -- Level: 86 -- -- Die Roll | Regain -- -------- ------- -- 1 |+10 -- 2 |+10 -- 3 |+...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/armys_paeon.lua
5
1336
----------------------------------------- -- Spell: Army's Paeon -- Gradually restores target's HP. ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; end;...
gpl-3.0
mandersan/premake-core
tests/api/test_deprecations.lua
16
1664
-- -- tests/api/test_table_kind.lua -- Tests the table API value type. -- Copyright (c) 2012-2014 Jason Perkins and the Premake project -- local p = premake local suite = test.declare("api_deprecations") local api = p.api function suite.setup() workspace("MyWorkspace") configurations { "Debug", "Release" } ...
bsd-3-clause
ccyphers/kong
kong/cmd/stop.lua
2
1146
local nginx_signals = require "kong.cmd.utils.nginx_signals" local serf_signals = require "kong.cmd.utils.serf_signals" local conf_loader = require "kong.conf_loader" local DAOFactory = require "kong.dao.factory" local pl_path = require "pl.path" local log = require "kong.cmd.utils.log" local function execute(args) ...
apache-2.0
DEVll190ll/DEV_HR
plugins/DEV.lua
1
1480
--[[ ▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LL190LL) ▀▄ ▄▀ ▀▄ ▄▀ BY ADOLF_HITLER (@LLSNLL) ▀▄ ▄▀ ▀▄ ▄▀ ▀▄ ▄▀ ▀▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄▄▀▀▄▄▀▀▄▄▀▄...
gpl-2.0
neofob/sile
languages/lt.lua
3
13145
SILE.hyphenator.languages["lt"] = {} SILE.hyphenator.languages["lt"].patterns = { ".ap1", ".api1", ".ap3r", ".arbi1", ".arti1", ".as3p", ".at1", ".ata1", ".at3r", ".aš3v", ".dina1", ".ek3r", ".i2š3", ".iši2", ".kirti1", ".nu1", ".nusi1", ".pie2č", ".sam1", ".sida1", ".sk4", ".st4", ".su5kr", ".te3s2", ".uk3", ".u2š3...
mit
Ninjistix/darkstar
scripts/zones/Bastok_Mines/npcs/Mille.lua
5
1259
----------------------------------- -- Area: Bastok_Mines -- NPC: Mille -- Only sells when Bastok controlls Norvallen Region ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/events/harvest_festivals"); require("...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/fried_popoto.lua
3
1295
----------------------------------------- -- ID: 6272 -- Item: fried_popoto -- Food Effect: 30Min, All Races ----------------------------------------- -- HP +30 -- VIT +2 -- Fire resistance +20 -- DEF +20% (cap 145) -- Subtle Blow +8 ----------------------------------------- require("scripts/globals/status"); ---------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/regen_iv.lua
5
1338
----------------------------------------- -- Spell: Regen IV -- Gradually restores target's HP. ----------------------------------------- -- Scale down duration based on level -- Composure increases duration 3x ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic")...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Sacrificial_Chamber/npcs/_4j4.lua
8
1408
----------------------------------- -- Area: Sacrificial Chamber -- NPC: Mahogany Door -- !pos 300 30 -324 163 ------------------------------------- package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil; ------------------------------------- require("scripts/globals/bcnm"); require("scripts/globals/missio...
gpl-3.0
ld-test/dromozoa-http
dromozoa/http/oauth.lua
3
3971
-- 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
Ninjistix/darkstar
scripts/globals/weaponskills/double_thrust.lua
26
1348
----------------------------------- -- Double Thrust -- Polearm weapon skill -- Skill Level: 5 -- Delivers a two-hit attack. Damage varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Light Gorget. -- Aligned with the Light Belt. -- Element: None -- Modifiers: STR:30% -- 100%TP 200%TP 300%TP -- 1...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/blackened_frog.lua
3
1475
----------------------------------------- -- ID: 4536 -- Item: Blackened Frog -- Food Effect: 30Min, All Races ----------------------------------------- -- Dexterity 2 -- Agility 2 -- Mind -2 -- Attack % 14 -- Attack Cap 75 -- Ranged ATT % 14 -- Ranged ATT Cap 75 -- Evasion +5 ----------------------------------------- ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/sweeping_flail.lua
39
1067
--------------------------------------------------- -- Sweeping Flail -- Family: Bahamut -- Description: Spins around to deal physical damage to enemies behind user. Additional effect: Knockback -- Type: Physical -- Utsusemi/Blink absorb: 2-3 shadows -- Range: 20' cone -- Notes: Used when someone pulls hate from...
gpl-3.0
premake/premake-4.x
src/actions/vstudio/vs2005_csproj.lua
3
9382
-- -- vs2005_csproj.lua -- Generate a Visual Studio 2005/2008 C# project. -- Copyright (c) 2009-2011 Jason Perkins and the Premake project -- -- -- Set up namespaces -- premake.vstudio.cs2005 = { } local vstudio = premake.vstudio local cs2005 = premake.vstudio.cs2005 -- -- Figure out what elemen...
bsd-3-clause
karrots/nodemcu-firmware
tools/utils.lua
48
11997
-- Generic utility functions module( ..., package.seeall ) local lfs = require "lfs" local sf = string.format -- Taken from Lake dir_sep = package.config:sub( 1, 1 ) is_os_windows = dir_sep == '\\' -- Converts a string with items separated by 'sep' into a table string_to_table = function( s, sep ) if type( s ) ~= ...
mit
Ninjistix/darkstar
scripts/zones/Waughroon_Shrine/bcnms/prehistoric_pigeons.lua
5
1821
----------------------------------- -- Area: Waughroon_Shrine -- Name: Prehistoric Pigeons -- KSNM30 ----------------------------------- package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scr...
gpl-3.0
DarkRing/TeleDarkRing
plugins/lock_fwd_supergp.lua
1
1228
do local function pre_process(msg) local hash = 'mate:'..msg.to.id if redis:get(hash) and msg.fwd_from and not is_momod(msg) then channel_kick_user('channel#id'..msg.to.id,'user#id'..msg.from.id, ok_cb, false) return "fwd was locked" end return msg end local ...
gpl-2.0
dafei2015/hugular_cstolua
Client/Assets/Lua/game/server/serverMsgHelperr.lua
2
2534
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ ServerMsgHelperr = {} local ServerMsgHelperr = ServerMsgHelperr local StateManager = StateManager local delay = delay local LuaHelper=LuaHelper loca...
mit
Ninjistix/darkstar
scripts/zones/Konschtat_Highlands/npcs/Signpost.lua
5
1207
----------------------------------- -- Area: Konschtat Highlands -- NPC: Signpost -- Involved in Quest: The Signpost Marks the Spot -- !pos -183 65 599 108 ----------------------------------- package.loaded["scripts/zones/Konschtat_Highlands/TextIDs"] = nil; ----------------------------------- require("scripts/globals...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/caestus.lua
3
2046
----------------------------------------- -- ID: 18263 -- Item: Caestus ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_WEAPONS...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/nullifying_dropkick.lua
58
1046
--------------------------------------------- -- Nullifying Dropkick -- --------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/monstertpmoves"); require("scripts/zones/Empyreal_Paradox/TextIDs"); -----------------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/slice_of_juicy_mutton.lua
3
1031
----------------------------------------- -- ID: 4335 -- Item: slice_of_juicy_mutton -- Food Effect: 240Min, All Races ----------------------------------------- -- Strength 3 -- Intelligence -1 -- Attack % 27 -- Attack Cap 35 ----------------------------------------- require("scripts/globals/status"); -----------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Uleguerand_Range/npcs/Zebada.lua
5
2060
----------------------------------- -- Area: Uleguerand Range -- NPC: Zebada -- Type: ENM Quest Activator -- !pos -308.112 -42.137 -570.096 5 ----------------------------------- package.loaded["scripts/zones/Uleguerand_Range/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Uleguerand_Range/T...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Dynamis-Xarcabard/mobs/Vanguard_Eye.lua
5
2494
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: Vanguard_Eye -- Map Position: http://images.wikia.com/ffxi/images/c/cc/Xar.jpg ----------------------------------- require("scripts/globals/status"); require("scripts/globals/dynamis"); ----------------------------------- function onMobInitialize(...
gpl-3.0
hvbommel/domoticz
scripts/lua/script_time_demo.lua
55
1932
-- demo time script -- script names have three name components: script_trigger_name.lua -- trigger can be 'time' or 'device', name can be any string -- domoticz will execute all time and device triggers when the relevant trigger occurs -- -- copy this script and change the "name" part, all scripts named "demo" are ign...
gpl-3.0
backburn/Probably
system/timers/rotation.lua
1
5101
-- ProbablyEngine Rotations - https://probablyengine.com/ -- Released under modified BSD, see attached LICENSE. local GetSpellInfo = GetSpellInfo ProbablyEngine.cycleTime = ProbablyEngine.cycleTime or 50 ProbablyEngine.cycle = function(skip_verify) local turbo = ProbablyEngine.config.read('pe_turbo', false) loc...
bsd-3-clause
ignacio/Moses
moses_min.lua
6
17706
local daa='1.4.0'local _ba,aba,bba,cba,dba=next,type,unpack,select,pcall local _ca,aca=setmetatable,getmetatable;local bca,cca=table.insert,table.sort;local dca,_da=table.remove,table.concat local ada,bda,cda=math.randomseed,math.random,math.huge;local dda,__b,a_b=math.floor,math.max,math.min;local b_b=rawget;local c_b...
mit
Ninjistix/darkstar
scripts/globals/items/bowl_of_adoulinian_soup_+1.lua
3
1302
----------------------------------------- -- ID: 5999 -- Item: Bowl of Adoulin Soup +1 -- Food Effect: 240 Min, All Races ----------------------------------------- -- HP % 4 Cap 45 -- Vitality 4 -- Defense % 16 Cap 75 -- HP Healing 7 ----------------------------------------- require("scripts/globals/status"); ---------...
gpl-3.0
Inorizushi/DDR-SN1HD
Scripts/Starter.lua
2
2869
function IsStarterMode() if GAMESTATE then local env = GAMESTATE:Env() if GAMESTATE:Env() then if not env.StarterMode then return false end return true end end --the question is not yet meaningful if we get here return nil end local outputPath = THEME:GetAbsolutePath("Other/SongManager Starter.t...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/serving_of_crimson_jelly.lua
3
1155
----------------------------------------- -- ID: 5144 -- Item: serving_of_crimson_jelly -- Food Effect: 180Min, All Races ----------------------------------------- -- Magic % 12 -- Magic Cap 85 -- Intelligence 6 -- Magic Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); ...
gpl-3.0