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
zwhfly/openwrt-luci
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/iptables.lua
86
1131
--[[ Luci statistics - iptables plugin diagram definition (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.a...
apache-2.0
freifunk-gluon/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
80
3813
--[[ LuCI - Lua Configuration Interface Copyright 2008 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 http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- l...
apache-2.0
anshkumar/yugioh-glaze
assets/script/c86100785.lua
3
1261
--ゾーン・イーター function c86100785.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(86100785,0)) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_DAMAGE_STEP_END) e1:SetCondition(c86100785.condition) e1:SetOperation(c86100785.operat...
gpl-2.0
dwing4g/jane
port/lua/test.lua
1
3875
-- UTF-8 without BOM local print = print local error = error local require = require local setmetatable = setmetatable local floor = math.floor local format = string.format local util = require "util" local bean = require "bean" local Stream = require "stream" local Queue = require "queue" local Rc4 = require "rc4" loc...
lgpl-3.0
RockySeven3161/Merbot-test
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
sjznxd/lc-20130302
applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
71
3274
--[[ 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$ ]]-- requ...
apache-2.0
anshkumar/yugioh-glaze
assets/script/c40884383.lua
3
1302
--凶悪犯-チョップマン function c40884383.initial_effect(c) --equip local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(40884383,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_FLIP_SUMMON_SUCCESS) e1:SetTarget(c40...
gpl-2.0
anshkumar/yugioh-glaze
assets/script/c94454495.lua
3
2669
--Kozmo Sliprider function c94454495.initial_effect(c) --destroy local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_SUMMON_SUCCESS) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetTarget(c9...
gpl-2.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Nogelle.lua
16
2431
----------------------------------- -- Area: Port San d'Oria -- NPC: Nogelle -- Starts Lufet's Lake Salt ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scripts/globals/quests"...
gpl-3.0
3203317/g
assets/redis/group_users_ready_channel.lua
1
1051
-- huangxin <3203317@qq.com> local db = KEYS[1]; local server_id = KEYS[2]; local channel_id = KEYS[3]; -- redis.call('SELECT', db); local user_id = redis.call('GET', server_id ..'::'.. channel_id); if (false == user_id) then return 'invalid_user_id'; end; -- 不在任何群组 local group_id = redis.call('HGET', ...
mit
Scavenge/darkstar
scripts/zones/Cloister_of_Flames/mobs/Ifrit_Prime.lua
23
1783
----------------------------------------------------- -- Area: Cloister of Flames -- MOB: Ifrit Prime -- Involved in Quest: Trial by Fire -- Involved in Mission: ASA-4 Sugar Coated Directive ----------------------------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems");...
gpl-3.0
angking0802wu/UniLua
Assets/StreamingAssets/LuaRoot/test/big.lua
9
2059
if _soft then return 'a' end print "testing large tables" local debug = require"debug" local lim = 2^18 + 1000 local prog = { "local y = {0" } for i = 1, lim do prog[#prog + 1] = i end prog[#prog + 1] = "}\n" prog[#prog + 1] = "X = y\n" prog[#prog + 1] = ("assert(X[%d] == %d)"):format(lim - 1, lim - 2) prog[#pro...
mit
Scavenge/darkstar
scripts/zones/Gustav_Tunnel/npcs/qm2.lua
16
2311
----------------------------------- -- Area: Gustav tunnel -- NPC: qm2 (???) -- Missions: Bastok 9-1 -- @pos -130 1.256 252.696 212 ----------------------------------- package.loaded["scripts/zones/Gustav_Tunnel/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Gustav_Tunnel/TextIDs"); requir...
gpl-3.0
Kyklas/luci-proto-hso
libs/nixio/axTLS/samples/lua/axssl.lua
176
19286
#!/usr/local/bin/lua -- -- Copyright (c) 2007, Cameron Rich -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- * Redistributions of source code must retain the above copyright notice, -...
apache-2.0
Scavenge/darkstar
scripts/zones/Riverne-Site_A01/npcs/_0u2.lua
17
1368
----------------------------------- -- Area: Riverne Site #A01 -- NPC: Unstable Displacement ----------------------------------- package.loaded["scripts/zones/Riverne-Site_A01/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Riverne-Site_A01/TextIDs"); ...
gpl-3.0
Scavenge/darkstar
scripts/zones/West_Ronfaure/mobs/Forest_Hare.lua
14
1059
----------------------------------- -- Area: West Ronfaure -- MOB: Forest Hare ----------------------------------- require("scripts/globals/fieldsofvalor"); require("scripts/zones/West_Ronfaure/MobIDs"); ----------------------------------- -- onMobDeath ----------------------------------- function onMobDeath(mob, p...
gpl-3.0
Scavenge/darkstar
scripts/zones/Windurst_Waters/npcs/Clais.lua
14
1723
----------------------------------- -- Area: Windurst Waters -- NPC: Clais -- Involved In Quest: Hat in Hand -- @zone = 238 -- @pos = -31 -3 11 ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); requi...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/hobgoblin_pie.lua
12
1617
----------------------------------------- -- ID: 4325 -- Item: hobgoblin_pie -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 15 -- Magic 15 -- Agility 4 -- Charisma -7 -- Health Regen While Healing 2 -- Defense % 12 (cap 60) ----------------------------------------- require("script...
gpl-3.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/libraries/modifiers/modifier_animation.lua
24
10825
modifier_animation = 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", [12]= "f...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
gamedata/modularcomms/weapons/flamethrower.lua
4
1508
local name = "commweapon_flamethrower" local weaponDef = { name = [[Flame Thrower]], areaOfEffect = 64, avoidGround = false, avoidFeature = false, cegTag = [[flamer]], collideFeature = false, collideGround = false, craterBo...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
EngineOptions.lua
15
6020
-- $Id$ -- Custom Options Definition Table format -- NOTES: -- - using an enumerated table lets you specify the options order -- -- These keywords must be lowercase for LuaParser to read them. -- -- key: the string used in the script.txt -- name: the displayed name -- desc: the description (could ...
gpl-2.0
taxler/radish
packaging/extensions/platform_win32/lua/exports/mswindows/shell/init.lua
1
14229
local ffi = require 'ffi' local mswin = require 'exports.mswindows' local guids = require 'exports.guids' local com = require 'exports.mswindows.com' local automation = require 'exports.mswindows.automation' ffi.cdef [[ typedef enum FDE_SHAREVIOLATION_RESPONSE { FDESVR_DEFAULT = 0, FDESVR_ACCEPT = 1, ...
mit
Scavenge/darkstar
scripts/globals/limbus.lua
21
37011
-------------------------------------- require("scripts/globals/keyitems") -------------------------------------- APPOLLYON_SE_NE = 1 -- out 557 -1 441 128 APPOLLYON_NW_SW = 2 -- out -561 0 443 242 TEMENOS = 3 -- WHITE_CARD = 349 -- RED_CARD = 350 -- BLACK_CARD = 351 -- COSMOCLEANSE = 734 -- REGION NW_Apollyon = 1 ...
gpl-3.0
Joker-Developer/jokersuper
plugins/anti-spam.lua
4
5321
--[[ # For More Information ....! # Developer : Aziz < @devss_bot > #Dev # our channel: @help_tele ]] 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 r...
gpl-2.0
Scavenge/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Daswil.lua
6
2734
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Daswil -- Type: Assault -- @pos -208.720 -12.889 -779.713 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("script...
gpl-3.0
Scavenge/darkstar
scripts/zones/Bastok_Mines/npcs/Trail_Markings.lua
7
3061
----------------------------------- -- Area: Bastok Mines -- NPC: Trail Markings -- Dynamis-Bastok Enter -- @pos 99 1 -67 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/global...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_Bastok/npcs/Ilita.lua
14
1224
----------------------------------- -- Area: Port Bastok -- NPC: Ilita -- Linkshell merchant -- @pos -142 -1 -25 236 -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop");...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
units/tacnuke.lua
3
3979
unitDef = { unitname = [[tacnuke]], name = [[Eos]], description = [[Tactical Nuke]], buildCostEnergy = 600, buildCostMetal = 600, builder = false, buildingGroundDecalDecaySpeed = 30, buildi...
gpl-2.0
Scavenge/darkstar
scripts/zones/Cape_Teriggan/mobs/Greater_Manticore.lua
14
1046
----------------------------------- -- Area: Cape Teriggan -- MOB: Greater Manticore -- Note: Place Holder for Frostmane ----------------------------------- require("scripts/zones/Cape_Teriggan/MobIDs"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onMobDeath ---------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Mount_Zhayolm/npcs/Mining_Point.lua
17
1080
----------------------------------- -- Area: Mount Zhayolm -- NPC: Mining Point ----------------------------------- package.loaded["scripts/zones/Mount_Zhayolm/TextIDs"] = nil; ------------------------------------- require("scripts/globals/mining"); require("scripts/zones/Mount_Zhayolm/TextIDs"); -----------------...
gpl-3.0
Kyklas/luci-proto-hso
contrib/luadoc/lua/luadoc/lp.lua
175
4389
---------------------------------------------------------------------------- -- Lua Pages Template Preprocessor. -- -- @release $Id: lp.lua,v 1.7 2007/04/18 14:28:39 tomas Exp $ ---------------------------------------------------------------------------- local assert, error, getfenv, loadstring, setfenv = assert, erro...
apache-2.0
Scavenge/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Lobho_Ukipturi.lua
14
1789
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Lobho Ukipturi -- @pos -485 -31 50 118 ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest");...
gpl-3.0
ramindel0761/tele_ir
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-3.0
nmacs/lm3s-uclinux
lib/liblua/LuaTwitter-0.9.2/test.lua
1
1662
#!/usr/bin/env lua -- Example usage of the LuaTwitter :) -- loading module local twitter = require("twitter") local APP_KEY = "YourAppConsumerKey" local APP_SECRET = "YourAppConsumerSecret" -- if you already have access token and it's secret - pass them :) -- but if you don't have an access token, then you sholud g...
gpl-2.0
Scavenge/darkstar
scripts/globals/spells/bluemagic/wild_carrot.lua
27
1735
----------------------------------------- -- Spell: Wild Carrot -- Restores HP for the target party member -- Spell cost: 37 MP -- Monster Type: Beasts -- Spell Type: Magical (Light) -- Blue Magic Points: 3 -- Stat Bonus: HP+5 -- Level: 30 -- Casting Time: 2.5 seconds -- Recast Time: 6 seconds -- -- Combos: Resist Sle...
gpl-3.0
ShayanHaddadian/Tele-OvEr
plugins/banhammer.lua
1085
11557
local function pre_process(msg) -- 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('Checking invited user '..user_id) local banned ...
gpl-2.0
Scavenge/darkstar
scripts/zones/Beadeaux/npcs/Treasure_Coffer.lua
13
4750
----------------------------------- -- Area: Beadeaux -- NPC: Treasure Coffer -- @zone 147 -- @pos 215 40 69 ----------------------------------- package.loaded["scripts/zones/Beadeaux/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); require...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/piece_of_bubble_chocolate.lua
12
1154
----------------------------------------- -- ID: 4496 -- Item: piece_of_bubble_chocolate -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic Regen While Healing 1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- O...
gpl-3.0
omid1212/spam
plugins/greeter.lua
18
4399
--[[ Sends a custom message when a user enters or leave a chat. !welcome group The custom message will send to the group. Recommended way. !welcome pm The custom message will send to private chat newly joins member. Not recommended as a privacy concern and the possibility of user reporting the bot. !welcome disable Dis...
gpl-2.0
Zero-K-Experiments/Zero-K-Experiments
effects/tess.lua
25
7232
-- tess return { ["tess"] = { air = true, count = 10, ground = true, water = true, debris1 = { air = true, class = [[CSimpleParticleSystem]], count = 20, ground = true...
gpl-2.0
Scavenge/darkstar
scripts/globals/weaponskills/smash_axe.lua
18
1569
----------------------------------- -- Smash Axe -- Axe weapon skill -- Skill level: 40 -- Stuns enemy. Duration of stun varies with TP. -- Will stack with Sneak Attack. -- Aligned with the Snow Gorget & Aqua Gorget. -- Aligned with the Snow Belt & Aqua Belt. -- Element: None -- Modifiers: STR:100% -- 100%TP 200%TP ...
gpl-3.0
PaulBatchelor/Soundpipe
modules/data/nsmp.lua
3
2591
sptbl["nsmp"] = { files = { module = "nsmp.c", header = "nsmp.h", example = "ex_nsmp.c", }, func = { create = "sp_nsmp_create", destroy = "sp_nsmp_destroy", init = "sp_nsmp_init", compute = "sp_nsmp_compute", other = { sp_nsmp_pri...
mit
Scavenge/darkstar
scripts/zones/Southern_San_dOria_[S]/npcs/HomePoint#1.lua
27
1300
----------------------------------- -- Area: Southern_San_dOria_[S] -- NPC: HomePoint#1 -- @pos -85.468 1.000 -66.454 80 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Southern_San_dOria_[S]/TextIDs...
gpl-3.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Perdiouvilet.lua
14
1750
----------------------------------- -- Area: Port San d'Oria -- NPC: Perdiouvilet -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -59 -5 -29 232 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zone...
gpl-3.0
mymedia2/GroupButler
plugins/configure.lua
8
3170
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function cache_chat_title(chat_id, title) print('caching title...') local key = 'chat:'..chat_id..':title' db:set(key, title) db:expire(key, config.bot_settings.cache_time.chat_titles) ...
gpl-2.0
endlessm/chromium-browser
third_party/skia/resources/lua/slides_content.lua
78
1789
Skia Overview 2014 < transition =slide> One API -- many backends - Raster [8888, 565, A8] - GPU [opengl] - PDF - XPS - Picture - Pipe <transition= fade> One Team -- many clients - Chrome - ChromeOS - Clank - Android Framework - 3rd parties (e.g. FireFox) <transition= rotate> <blockstyle = code> Optimize for CPU v...
bsd-3-clause
endlessm/chromium-browser
third_party/spirv-headers/src/include/spirv/1.0/spirv.lua
59
25964
-- Copyright (c) 2014-2018 The Khronos Group Inc. -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and/or associated documentation files (the "Materials"), -- to deal in the Materials without restriction, including without limitation -- the rights to use, copy, mod...
bsd-3-clause
wjhandboy/Atlas
examples/tutorial-resultset.lua
40
3110
--[[ $%BEGINLICENSE%$ Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is dis...
gpl-2.0
ld-test/cwtest
cwtest.lua
3
8506
local has_strict = pcall(require, "pl.strict") local has_pretty, pretty = pcall(require, "pl.pretty") if not has_strict then print("WARNING: pl.strict not found, strictness not enforced.") end if not has_pretty then pretty = nil print("WARNING: pl.pretty not found, using alternate formatter.") end --- logic borr...
mit
Scavenge/darkstar
scripts/zones/Grauberg_[S]/npcs/qm5.lua
48
1159
----------------------------------- -- Area: Grauberg [S] -- NPC: ??? -- Quest - Fires of Discontent -- pos 258 33 516 ----------------------------------- package.loaded["scripts/zones/Grauberg_[S]/TextIDs"] = nil; ------------------------------------- require("scripts/globals/harvesting"); require("scripts/zones/...
gpl-3.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Themes/_fallback/Scripts/00 init.lua
1
2650
-- This file is always executed first. -- Override Lua's upper and lower functions with our own, which is always UTF-8. if Uppercase then string.upper = Uppercase string.lower = Lowercase Uppercase = nil -- don't use directly Lowercase = nil -- don't use directly end Trace = lua.Trace Warn = lua.Warn print = Trac...
mit
Scavenge/darkstar
scripts/globals/items/green_curry_bun.lua
12
1831
----------------------------------------- -- ID: 5756 -- Item: green_curry_bun -- Food Effect: 30 min, All Races ----------------------------------------- -- TODO: Group effects -- VIT +1 -- AGI +2 -- Ranged Accuracy +5% (cap 25) -- DEF +9% (cap 160) -- Resist Sleep +3 -- hHP +2 -- hMP +1 ------------------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Tavnazian_Safehold/npcs/Melleupaux.lua
17
1304
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Melleupaux -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs"); ----------------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Outer_Horutoto_Ruins/npcs/Treasure_Chest.lua
17
3006
----------------------------------- -- Area: Horutoto Ruins -- NPC: Treasure Chest -- @zone 194 ----------------------------------- package.loaded["scripts/zones/Outer_Horutoto_Ruins/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/treasure"); require(...
gpl-3.0
wkitty42/snort3
piglet/tests/interface/codec_data.lua
1
1218
plugin = { type = "piglet", name = "piglet::codec_data", test = function() -- Put the dofile here so that it doesn't get loaded twice dofile(SCRIPT_DIR .. "/common.lua") return run_all(tests) end } INIT_PROTO = 1 DEFAULT_VALUES = { next_prot_id = 0, lyr_len = 0, inv...
gpl-2.0
kankaristo/premake-core
tests/actions/make/cpp/test_make_linking.lua
3
4230
-- -- tests/actions/make/cpp/test_make_linking.lua -- Validate the link step generation for makefiles. -- Copyright (c) 2010-2013 Jason Perkins and the Premake project -- local suite = test.declare("make_linking") local make = premake.make local project = premake.project -- -- Setup and teardown -- local wks, p...
bsd-3-clause
afonso360/lua-llvm
src/core/type.nobj.lua
1
6530
-- Copyright (C) 2017 Afonso Bordado -- -- Licensed under the MIT license <http://opensource.org/licenses/MIT>, -- This file may not be copied, modified, or distributed except according -- to the terms of that license. -- Missing -- Sequential types -- Structure types -- Function types object "Type" { c_source [[ ...
mit
smanolache/kong
kong/plugins/runscope/log.lua
5
2874
local cjson = require "cjson" local url = require "socket.url" local _M = {} local HTTPS = "https" local ngx_log = ngx.log local ngx_log_ERR = ngx.ERR local ngx_timer_at = ngx.timer.at local string_format = string.format local string_len = string.len -- Generates http payload . -- @param `method` http method to be u...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
LuaUI/Widgets/chili_new/skins/default/skin.lua
9
17179
--//============================================================================= --// default local skin = { info = { name = "default", version = "0.1", author = "jK", } } --//============================================================================= --// Render Helpers local function _DrawBo...
gpl-2.0
Scavenge/darkstar
scripts/globals/spells/sleep.lua
27
1086
----------------------------------------- -- Spell: Sleep I ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function onMagicCastingCheck(caster,target,spell)...
gpl-3.0
Brenin/PJ-3100
Working Launchers/Games/Stepmania/StepMania 5/Themes/_fallback/Scripts/02 StageMods.lua
1
3876
function AreStagePlayerModsForced() return GAMESTATE:IsAnExtraStage() or (GAMESTATE:GetPlayMode() == "PlayMode_Oni") end function AreStageSongModsForced() local pm = GAMESTATE:GetPlayMode() local bOni = pm == "PlayMode_Oni" local bBattle = pm == "PlayMode_Battle" local bRave = pm == "PlayMode_Rave" return GAMEST...
mit
zozaiq/DEV_ZOZO
libs/XMLElement.lua
569
4025
-- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence. -- updated for module-free world of lua 5.3 on April 2 2015 -- Not documented at all, but not interesting enough to warrant documentation anyway. local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ...
gpl-2.0
Scavenge/darkstar
scripts/globals/items/cluster_of_paprika.lua
12
1278
----------------------------------------- -- ID: 5740 -- Item: Cluster of Paprika -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility 1 -- Vitality -3 -- Defense -1 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -...
gpl-3.0
Kyklas/luci-proto-hso
modules/admin-full/luasrc/model/cbi/admin_status/processes.lua
85
1448
--[[ 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
Scavenge/darkstar
scripts/zones/Sauromugue_Champaign/npcs/qm4.lua
14
2471
----------------------------------- -- 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
Scavenge/darkstar
scripts/zones/Port_Bastok/npcs/Qiji.lua
29
2077
----------------------------------- -- Area: Port Bastok -- NPC: Qiji -- Starts & Ends Quest: Forever to Hold ----------------------------------- package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil; ----------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require(...
gpl-3.0
BlockMen/minetest_next
mods/beds/spawns.lua
10
1365
local world_path = minetest.get_worldpath() local org_file = world_path .. "/beds_spawns" local file = world_path .. "/beds_spawns" local bkwd = false -- check for PA's beds mod spawns local cf = io.open(world_path .. "/beds_player_spawns", "r") if cf ~= nil then io.close(cf) file = world_path .. "/beds_player_spawn...
gpl-3.0
Zero-K-Experiments/Zero-K-Experiments
LuaRules/Gadgets/unit_nanoframe_death.lua
2
4743
-- $Id: unit_terraform.lua 3299 2008-11-25 07:25:57Z google frog $ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- function gadget:GetInfo() return { name = "Nano Frame Death Handeling", desc ...
gpl-2.0
Scavenge/darkstar
scripts/globals/mobskills/Head_Snatch.lua
37
1058
--------------------------------------------- -- Head Snatch -- -- Description: Grabs a single target's head. -- Type: Physical -- Utsusemi/Blink absorb: Ignores shadows -- Range: Melee -- Notes: Only used by Gurfurlur the Menacing. Reduces HP to 10%. --------------------------------------------- require("script...
gpl-3.0
Scavenge/darkstar
scripts/zones/The_Garden_of_RuHmet/npcs/HomePoint#1.lua
14
1284
----------------------------------- -- Area: The_Garden_of_RuHmet -- NPC: HomePoint#1 -- @pos -426 0 368 35 ----------------------------------- package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/The_Garden_of_RuHmet/TextIDs"); require("scr...
gpl-3.0
jchuang1977/openwrt
package/lean/luci-app-nfs/luasrc/model/cbi/nfs.lua
3
1768
local fs = require "nixio.fs" m = Map("nfs", translate("NFS Manage")) -- NFS Share -- s = m:section(TypedSection, "share", translate("Shared Directories")) s.anonymous = true s.addremove = true s.template = "cbi/tblsection" en = s:option(Flag, "enabled", translate("Enable")) en.rmempty = false en.default = "1" ph1 ...
gpl-2.0
OpenPrograms/mpmxyz-Programs
home/lib/parser/automaton.lua
2
4368
----------------------------------------------------- --name : lib/parser/automaton.lua --description: automaton.merge allows converting a non deterministic finite automaton to a deterministic one --author : mpmxyz --github page: https://github.com/mpmxyz/ocprograms --forum page : none -----------------------...
mit
Scavenge/darkstar
scripts/globals/mobskills/Hexidiscs.lua
35
1129
--------------------------------------------- -- Hexidiscs -- -- Description: A sixfold attack damages targets in a fan-shaped area of effect. -- Type: Physical -- Utsusemi/Blink absorb: 6 shadows -- Range: Unknown cone -- Notes: Only used in "ball" form. --------------------------------------------- require("scr...
gpl-3.0
nirs/libguestfs
lua/examples/create_disk.lua
4
1857
-- Example showing how to create a disk image. local G = require "guestfs" local output = "disk.img" local g = G.create () -- Create a raw-format sparse disk image, 512 MB in size. file = io.open (output, "w") file:seek ("set", 512 * 1024 * 1024) file:write (' ') file:close () -- Set the trace flag so that we can ...
gpl-2.0
Scavenge/darkstar
scripts/zones/East_Ronfaure_[S]/npcs/qm3.lua
29
1569
----------------------------------- -- Area: East Ronfaure [S] -- NPC: qm3 "???" -- Involved in Quests: Steamed Rams -- @pos 312.821 -30.495 -67.15 ----------------------------------- package.loaded["scripts/zones/East_Ronfaure_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems...
gpl-3.0
Scavenge/darkstar
scripts/globals/items/melon_pie.lua
12
1259
----------------------------------------- -- ID: 4421 -- Item: melon_pie -- Food Effect: 30Min, All Races ----------------------------------------- -- Magic 25 -- Agility -1 -- Intelligence 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnIt...
gpl-3.0
Scavenge/darkstar
scripts/zones/Throne_Room/npcs/_4l4.lua
66
1207
----------------------------------- -- Area: Throne Room -- NPC: Ore Door ------------------------------------- require("scripts/globals/bcnm"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) if (TradeBCNM(player,player:getZoneID...
gpl-3.0
Scavenge/darkstar
scripts/zones/Quicksand_Caves/npcs/Grounds_Tome.lua
30
1100
----------------------------------- -- Area: Quicksand Caves -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,...
gpl-3.0
XingxingZhang/lstm-lm
nnets/lstmutil.lua
1
2027
local lstmutil = {} function lstmutil.createLSTM(x_t, c_tm1, h_tm1, nin, nhid) -- compute activations of four gates all together local x2h = nn.Linear(nin, nhid * 4)(x_t) local h2h = nn.Linear(nhid, nhid * 4)(h_tm1) local allGatesActs = nn.CAddTable()({x2h, h2h}) local allGatesActsSplits = nn.SplitTable(2)(...
apache-2.0
Scavenge/darkstar
scripts/zones/Port_San_dOria/npcs/Fiva.lua
17
1912
----------------------------------- -- Area: Port San d'Oria -- NPC: Fiva -- Only sells when San d'Oria controls Kolshushu ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_San_dOria/TextIDs"); require("scr...
gpl-3.0
Scavenge/darkstar
scripts/zones/Grand_Palace_of_HuXzoi/npcs/_iyc.lua
14
1036
----------------------------------- -- Area: Grand Palace of Hu'Xzoi -- NPC: Particle Gate -- @pos -39 0 -319 34 ----------------------------------- package.loaded["scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Grand_Palace_of_HuXzoi/TextIDs"); ---...
gpl-3.0
Scavenge/darkstar
scripts/zones/Chateau_dOraguille/npcs/_6h0.lua
14
4838
----------------------------------- -- Area: Chateau d'Oraguille -- Door: Prince Royal's -- Finishes Quest: A Boy's Dream, Under Oath -- Involved in Missions: 3-1, 5-2, 8-2 -- @pos -38 -3 73 233 ----------------------------------- package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil; -----------------------...
gpl-3.0
SHIELDTM/shield5
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
Scavenge/darkstar
scripts/globals/items/mushroom_crepe.lua
12
1465
----------------------------------------- -- ID: 5773 -- Item: mushroom_crepe -- Food Effect: 30Min, All Races ----------------------------------------- -- Mind 2 -- MP % 10 (cap 30) -- Magic Accuracy +10 -- Magic Def. Bonus +5 ----------------------------------------- require("scripts/globals/status"); -------------...
gpl-3.0
Scavenge/darkstar
scripts/zones/Northern_San_dOria/npcs/Anilla.lua
14
1745
----------------------------------- -- Area: Northern San d'Oria -- NPC: Anilla -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos 8 0.1 61 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/No...
gpl-3.0
Scavenge/darkstar
scripts/zones/Quicksand_Caves/npcs/HomePoint#2.lua
27
1270
----------------------------------- -- Area: Quicksand_Caves -- NPC: HomePoint#2 -- @pos 573 9 -500 208 ----------------------------------- package.loaded["scripts/zones/Quicksand_Caves/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/Quicksand_Caves/TextIDs"); require("scripts/globals/h...
gpl-3.0
Scavenge/darkstar
scripts/zones/Bastok_Markets/npcs/Raghd.lua
15
1319
----------------------------------- -- Area: Bastok Markets -- NPC: Raghd -- Standard Merchant NPC -- -- Updated Aug-09-2013 by Zerahn, based on bgwiki and gamerescape ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zon...
gpl-3.0
Kyklas/luci-proto-hso
modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
6
8984
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2010-2011 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
Scavenge/darkstar
scripts/zones/Newton_Movalpolos/npcs/Moblin_Showman.lua
14
1064
----------------------------------- -- Area: Newton Movalpolos -- NPC: Moblin Showman - Bugbear Matman -- @pos 124.544 19.988 -60.670 12 ----------------------------------- package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Newton_Movalpolos/Tex...
gpl-3.0
Kyklas/luci-proto-hso
applications/luci-firewall/luasrc/model/cbi/firewall/zones.lua
84
2233
--[[ 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$ ]]-- loc...
apache-2.0
Zero-K-Experiments/Zero-K-Experiments
units/corjamt.lua
3
4048
unitDef = { unitname = [[corjamt]], name = [[Aegis]], description = [[Area Shield]], acceleration = 0, activateWhenBuilt = true, brakeRate = 0, buildCostEnergy = 525, buildCostM...
gpl-2.0
Kyklas/luci-proto-hso
applications/luci-asterisk/luasrc/asterisk.lua
80
18044
--[[ LuCI - Lua Configuration Interface Asterisk PBX interface library Copyright 2009 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 http://www.apache.org/licen...
apache-2.0
cyclonetm/XmakanX
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
mrvigeo/pride
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
Joker-Developer/jokersuper
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
A-N-bot/anonymous
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
Tele-Fox/self
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/libraries/timers.lua
11
6560
TIMERS_VERSION = "1.05" --[[ -- A timer running every second that starts immediately on the next frame, respects pauses Timers:CreateTimer(function() print ("Hello. I'm running immediately and then every second thereafter.") return 1.0 end ) -- The same timer as above with a shorthand call ...
apache-2.0
Scavenge/darkstar
scripts/zones/Gusgen_Mines/Zone.lua
12
1638
----------------------------------- -- -- Zone: Gusgen_Mines (196) -- ----------------------------------- package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil; ---------------------------------- require("scripts/globals/settings"); require("scripts/globals/zone"); require("scripts/zones/Gusgen_Mines/TextIDs"); ...
gpl-3.0
PicoleDeLimao/Ninpou2
game/dota_addons/ninpou2/scripts/vscripts/items/doton_kusanagi_no_tsurugi.lua
1
1157
--[[ Author: PicoleDeLimao Date: 03.04.2016 Deals area critical strike damage ]] function CriticalStrike(event) local caster = event.caster local target = event.target local ability = event.ability local bonus = ability:GetLevelSpecialValueFor("crit_bonus", ability:GetLevel() - 1) / 100.0 local radius = abili...
apache-2.0