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
premake/premake-4.x
tests/actions/make/test_makesettings.lua
57
1055
-- -- tests/actions/make/test_makesettings.lua -- Tests makesettings lists in generated makefiles. -- Copyright (c) 2011 Jason Perkins and the Premake project -- T.make_settings = { } local suite = T.make_settings local make = premake.make local sln, prj, cfg function suite.setup() _ACTION = "gmake" sln...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Bhaflau_Thickets/npcs/Runic_Portal.lua
5
1401
----------------------------------- -- Area: Bhaflau Thickets -- NPC: Runic Portal -- Mamook Ja Teleporter Back to Aht Urgan Whitegate -- !pos -211 -11 -818 52 ----------------------------------- package.loaded["scripts/zones/Bhaflau_Thickets/TextIDs"] = nil; ----------------------------------- require("scripts/zones/...
gpl-3.0
vovochka404/eiskaltdcpp
data/luascripts/ignore.lua
6
8287
--// ignore.lua -- makes possible to (un)ignore someone from the chat --// ignore.lua -- Version 0.9c; Rev 004/20100312 --// ignore.lua -- Szabolcs Molnar, 2006-2010 --[[ LOG: 004/20100312: Settings is loaded from config directory now 003/20070104: Fixed so nick with any non-space character can be added to...
gpl-3.0
jamiepg1/MCServer
MCServer/Plugins/APIDump/Hooks/OnPlayerSpawned.lua
44
1282
return { HOOK_PLAYER_SPAWNED = { CalledWhen = "After a player (re)spawns in the world to which they belong to.", DefaultFnName = "OnPlayerSpawned", -- also used as pagename Desc = [[ This hook is called after a {{cPlayer|player}} has spawned in the world. It is called after {{OnLogin|HOOK_LOGIN}} and {{O...
apache-2.0
Ninjistix/darkstar
scripts/globals/items/serving_of_salmon_meuniere_+1.lua
3
1041
----------------------------------------- -- ID: 4347 -- Item: serving_of_salmon_meuniere_+1 -- Food Effect: 240Min, All Races ----------------------------------------- -- Dexterity 2 -- Mind -2 -- Ranged ACC % 7 -- Ranged ACC Cap 15 ----------------------------------------- require("scripts/globals/status"); ---------...
gpl-3.0
wangyi0226/skynet
examples/simpleweb.lua
13
3362
local skynet = require "skynet" local socket = require "skynet.socket" local httpd = require "http.httpd" local sockethelper = require "http.sockethelper" local urllib = require "http.url" local table = table local string = string local mode, protocol = ... protocol = protocol or "http" if mode == "agent" then local...
mit
bagobor/cpp2lua-buindings-battle
external/LuaJIT-2.0.4/src/jit/vmdef.lua
56
6676
-- This is a generated file. DO NOT EDIT! module(...) bcnames = "ISLT ISGE ISLE ISGT ISEQV ISNEV ISEQS ISNES ISEQN ISNEN ISEQP ISNEP ISTC ISFC IST ISF MOV NOT UNM LEN ADDVN SUBVN MULVN DIVVN MODVN ADDNV SUBNV MULNV DIVNV MODNV ADDVV SUBVV MULVV DIVVV MODVV POW CAT KSTR KCDATAKSHORTKNUM KPRI K...
mit
Ninjistix/darkstar
scripts/zones/Konschtat_Highlands/mobs/Ghillie_Dhu.lua
5
1782
----------------------------------- -- Area: Konschtat Highlands -- NM: Ghillie Dhu ----------------------------------- require("scripts/globals/fieldsofvalor"); require("scripts/globals/status"); require("scripts/globals/utils"); require("scripts/globals/msg"); ----------------------------------- function onMobInit...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters_[S]/npcs/Pihra_Rhebenslo.lua
4
3974
----------------------------------- -- Area: Windurst Waters [S] -- NPC: Pihra_Rhebenslo -- Armor Storage NPC ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/armorstora...
gpl-3.0
Ninjistix/darkstar
scripts/globals/abilities/pets/armor_piercer.lua
2
1367
--------------------------------------------------- -- Armor Piercer --------------------------------------------------- require("scripts/globals/status") require("scripts/globals/settings") require("scripts/globals/automatonweaponskills") --------------------------------------------------- function onMobSkillCheck(t...
gpl-3.0
ccyphers/kong
spec/02-integration/02-dao/05-use_cases_spec.lua
2
4220
local helpers = require "spec.02-integration.02-dao.helpers" local Factory = require "kong.dao.factory" helpers.for_each_dao(function(kong_config) describe("Real use-cases with DB: #"..kong_config.database, function() local factory setup(function() factory = assert(Factory.new(kong_config)) asser...
apache-2.0
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/FrontMenuState.lua
1
6237
FrontMenuState = {} FrontMenuState.__index = FrontMenuState function FrontMenuState:Create(parent) local layout = Layout:Create() layout:Contract('screen', 118, 40) layout:SplitHorz('screen', "top", "bottom", 0.12, 2) layout:SplitVert('bottom', "left", "party", 0.726, 2) layout:SplitHorz(...
mit
Ninjistix/darkstar
scripts/globals/items/bloody_bolt.lua
7
1377
----------------------------------------- -- ID: 18151 -- Item: Bloody Bolt -- Additional Effect: Drains HP ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffect(player,target,damage) local chance...
gpl-3.0
hamrah12/hamrah_shoma
plugins/bugzilla.lua
611
3983
do local BASE_URL = "https://bugzilla.mozilla.org/rest/" local function bugzilla_login() local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password print("accessing " .. url) local res,code = https.request( url ) local data = json:decode(res) return data ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/weaponskills/tachi_shoha.lua
22
1782
----------------------------------- -- Tachi: Shoha -- Great Katana weapon skill -- Skill Level: 357 -- Delivers a two-hit attack. Damage varies with TP. -- To obtain Tachi: Shoha, the quest Martial Mastery must be completed and it must be purchased from the Merit Points menu. -- Suspected to have an Attack Bonus simil...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Ship_bound_for_Mhaura/npcs/Sahn.lua
5
1784
----------------------------------- -- Area: Ship_bound_for_Mhaura -- NPC: Sahn -- Notes: Tells ship ETA time -- !pos 0.278 -14.707 -1.411 221 ----------------------------------- package.loaded["scripts/zones/Ship_bound_for_Mhaura/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Ship_bound_f...
gpl-3.0
drhelius/bstone-ios
dependencies/SDL-1bc5372ee27f/premake/util/sdl_file.lua
7
4923
-- 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
labjack/I2C-AppNotes
LJM_Library/Accel-Compass-LSM303DLHC/lua/Accel + Compass.lua
1
5647
--This is an example that uses the LSM303DLHC Accelerometer & Magnetometer on the I2C Bus on EIO4(SCL) and EIO5(SDA) --outputs data to: --X mag = 46000 --Y mag = 46002 --Z mag = 46004 --X accel = 46006 --Y accel = 46008 --Z accel = 46010 I2C_Utils= {} function I2C_Utils.configure(self, sda, scl, speed, options, slave, ...
mit
Ninjistix/darkstar
scripts/zones/Cloister_of_Tremors/bcnms/sugar-coated_directive.lua
5
1797
---------------------------------------- -- Area: Cloister of Tremors -- BCNM: Sugar Coated Directive (ASA-4) ---------------------------------------- package.loaded["scripts/zones/Cloister_of_Tremors/TextIDs"] = nil; ---------------------------------------- require("scripts/globals/keyitems"); require("scripts/global...
gpl-3.0
bogdanm/luaelf
lib/class/classes.lua
1
2265
--[[ Simple, easy to use class system, single inheritance only. Each class must be implemented in its own module To create a _class_ (not an instance), call new_class( class_name, superclass_name ) To create an instance, call new_instance( class_name ) --]] module( ..., package.seeall ) local sf = string.format local...
mit
Ninjistix/darkstar
scripts/globals/effects/weakness.lua
34
1361
----------------------------------- -- -- Weakness -- ----------------------------------- require("scripts/globals/status"); ----------------------------------- -- onEffectGain Action ----------------------------------- function onEffectGain(target,effect) --reduce HP and MP by the power amount. Add 100% slow ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/entropy.lua
22
1701
----------------------------------- -- Entropy -- Scythe weapon skill -- Skill level: 357 -- Description: Delivers a fourfold attack that converts damage dealt into own MP. Damage varies with TP. -- In order to obtain Entropy, the quest Martial Mastery must be completed. -- MP recovery is about 15~25% of damage dealt. ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/prime_seafood_stewpot.lua
3
1683
----------------------------------------- -- ID: 5239 -- Item: Prime Seafood Stewpot -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +10% Cap 75 -- MP +15 -- Dexterity 1 -- Vitality 1 -- Agility 1 -- Mind 1 -- HP Recovered while healing 7 -- MP Recovered while heal...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Kazham/npcs/Gatih_Mijurabi.lua
5
1638
----------------------------------- -- Area: Kazham -- NPC: Gatih Mijurabi -- Type: Standard NPC -- @zone 250 -- !pos 58.249 -13.086 -49.084 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; ------------------------...
gpl-3.0
Igalia/skia
tools/lua/bitmap_statistics.lua
207
1862
function string.startsWith(String,Start) return string.sub(String,1,string.len(Start))==Start end function string.endsWith(String,End) return End=='' or string.sub(String,-string.len(End))==End end local canvas = nil local num_perspective_bitmaps = 0 local num_affine_bitmaps = 0 local num_scaled_bitmaps = 0 loc...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Den_of_Rancor/npcs/_4g4.lua
5
2186
----------------------------------- -- Area: Den of Rancor -- NPC: Lantern (NW) -- !pos -59 45 24 160 ----------------------------------- package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Den_of_Rancor/TextIDs");...
gpl-3.0
backburn/Probably
external/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua
65
4515
--[[----------------------------------------------------------------------------- DropdownGroup Container Container controlled by a dropdown on the top. -------------------------------------------------------------------------------]] local Type, Version = "DropdownGroup", 21 local AceGUI = LibStub and LibStub("AceGUI-...
bsd-3-clause
dinodeck/ninety_nine_days_of_dev
005_bitmap_text/code/combat_events/CESlash.lua
10
3716
CESlash = {} CESlash.__index = CESlash function CESlash:Create(state, owner, def, targets) local this = { mState = state, mOwner = owner, mDef = def, mFinished = false, mCharacter = state.mActorCharMap[owner], mTargets = targets, mIsFinished = false }...
mit
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/combat_events/CESlash.lua
10
3716
CESlash = {} CESlash.__index = CESlash function CESlash:Create(state, owner, def, targets) local this = { mState = state, mOwner = owner, mDef = def, mFinished = false, mCharacter = state.mActorCharMap[owner], mTargets = targets, mIsFinished = false }...
mit
arca1n/cocos2d-x_nextpeer_integration
samples/Lua/TestLua/Resources/luaScript/TransitionsTest/TransitionsName.lua
12
2456
require "luaScript/helper" Transition_Table = { "CCTransitionJumpZoom", "CCTransitionProgressRadialCCW", "CCTransitionProgressRadialCW", "CCTransitionProgressHorizontal", "CCTransitionProgressVertical", "CCTransitionProgressInOut", "CCTransitionProgressOutIn", "CCTransitionCrossFade", ...
mit
wendlers/edubot-nodemcu-fw
firmware/lua/gear.lua
1
1565
-- EDU Bot NodeMCU Lua firmware, 2016 sw@kaltpost.de -- MIT License (MIT) -- See LICENSE file for details gear = {} function gear.init(pin_pwm1, pin_dir1, pin_pwm2, pin_dir2) --1,2EN D1 GPIO5 PWM 0 --3,4EN D2 GPIO4 PWM 1 --1A ~2A D3 GPIO0 DIR 0 --3A ~4A D4 GPIO2 DIR 1 pin_pwm1 = pin_pwm1 or 1 pin_pwm2...
mit
TRex22/hawkthorne-journey
src/nodes/block.lua
1
1750
local Timer = require 'vendor/timer' local game = require 'game' local Wall = {} Wall.__index = Wall function Wall.new(node, collider, ice) local wall = {} setmetatable(wall, Wall) wall.bb = collider:addRectangle(node.x, node.y, node.width, node.height) wall.bb.node = wall wall.node = node coll...
mit
istarIQ/Source
plugins/inrealm.lua
850
25085
-- data saved to moderation.json -- check moderation plugin do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
Ninjistix/darkstar
scripts/zones/Jugner_Forest_[S]/npcs/qm6.lua
5
1751
----------------------------------- -- Area: Jugner Forest (S) -- NPC: ??? -- Type: Quest NPC -- !pos 68 -0.5 324 82 ----------------------------------- package.loaded["scripts/zones/Jugner_Forest_[S]/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Jugner_Forest_[S]/TextIDs"); require("scri...
gpl-3.0
eugenesan/openwrt-luci
modules/base/luasrc/http/protocol.lua
55
18445
--[[ HTTP protocol implementation for LuCI (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licen...
apache-2.0
Ninjistix/darkstar
scripts/globals/mining.lua
6
17208
------------------------------------------------------------------------------------------ -- Mining 2.0 -- Note: When implementing new zones, ensure there are more mining point locations -- than there are mining points for the zone. -----------------------------------------------------------------------------------...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
002_bitmap_numbers/code/MoveState.lua
10
3261
MoveState = { mName = "move" } MoveState.__index = MoveState function MoveState:Create(character, map) local this = { mCharacter = character, mMap = map, mTileWidth = map.mTileWidth, mEntity = character.mEntity, mController = character.mController, mMove...
mit
bluetomatoes/ExploreTimelines
Other/ExploreTimelinesCode copy/scene4.lua
1
82262
W,H = display.contentWidth,display.contentHeight display.setStatusBar(display.HiddenStatusBar) ---------------------------------------------------------------------------------- -- -- scenetemplate.lua -- ---------------------------------------------------------------------------------- local storyboard = require( "st...
mit
davidbuzz/ardupilot
libraries/AP_Scripting/examples/quadruped.lua
24
16202
-- Lua "motor driver" for a four legged (aka quadruped) walking robot -- -- This script consumes controller outputs (i.e. roll, pitch, yaw/steering, throttle, lateral) from -- the vehicle code and then calculates the outputs for 12 servos controlling four legs -- -- AutoPilot servo connections: -- Output1: front right...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/quick_etude.lua
5
1810
----------------------------------------- -- Spell: Quick Etude -- Static AGI Boost, BRD 28 ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Matata.lua
5
1574
----------------------------------- -- Area: Windurst Woods -- NPC: Matata -- Type: Standard NPC -- Involved in quest: In a Stew -- !pos 131 -5 -109 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/crepe_forestiere.lua
3
1203
----------------------------------------- -- ID: 5774 -- Item: crepe_forestiere -- Food Effect: 30Min, All Races ----------------------------------------- -- Mind 2 -- MP % 10 (cap 35) -- Magic Accuracy +15 -- Magic Def. Bonus +6 ----------------------------------------- require("scripts/globals/status"); -------------...
gpl-3.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/RCIN_test.lua
21
1255
-- example of getting RC input local scripting_rc_1 = rc:find_channel_for_option(300) local scripting_rc_2 = rc:find_channel_for_option(301) local flip_flop = 0 function update() pwm1 = rc:get_pwm(1) pwm2 = rc:get_pwm(2) pwm3 = rc:get_pwm(3) pwm4 = rc:get_pwm(4) gcs:send_text(0, "RCIN 1:" .. tostring(pwm1) ...
gpl-3.0
neofob/sile
classes/docbook.lua
1
4650
local plain = SILE.require("plain", "classes") docbook = plain { id = "docbook" } SILE.scratch.docbook = { seclevel = 0, seccount = {} } docbook:loadPackage("image") docbook:loadPackage("simpletable", { tableTag = "tgroup", trTag = "row", tdTag = "entry" }) function docbook.push(t, val) if not SILE.scratc...
mit
Ninjistix/darkstar
scripts/zones/Port_Windurst/npcs/Papo-Hopo.lua
5
2654
----------------------------------- -- Area: Port Windurst -- NPC: Papo-Hopo ----------------------------------- package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil; ----------------------------------- require("scripts/globals/quests"); require("scripts/globals/settings"); require("scripts/zones/Port_Windurst/...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Northern_San_dOria/npcs/Kuu_Mohzolhi.lua
5
3315
----------------------------------- -- Area: Northern San d'Oria -- NPC: Kuu Mohzolhi -- Starts and Finishes Quest: Growing Flowers -- @zone 231 -- !pos -123 0 80 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/g...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/slowga.lua
5
1501
----------------------------------------- -- Spell: Slow -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. -- Slow's potency is calculated with the formula (187.5 + dMND*1.5)/1024, and caps at 300/1024 (~29.3%). -- And MND of 75 is neccessary to reach the hardcap of Slow. ---...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua
5
1133
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Cavernous Maw -- !pos 597 -32 279 119 -- Teleports Players to Meriphataud Mountains [S] ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("script...
gpl-3.0
MkNiz/LOSS
main.lua
1
1151
function love.load() Class = require "libs.class" Gamestate = require "libs.gamestate" Timer = require "libs.timer" loadDir("func") loadDir("classes") local res = loadSetting("resolution") love.window.setMode(res.w, res.h, {borderless = true, resizable = true, minwidth = 320, minheight = 240}) winWid...
mit
ocurr/hammerspoon
extensions/location/init.lua
13
7506
--- === hs.location === --- --- Determine the machine's location and useful information about that location local location = require("hs.location.internal") local internal = {} internal.__callbacks = {} --- hs.location.register(tag, fn[, distance]) --- Function --- Registers a callback function to be called when the ...
mit
Ninjistix/darkstar
scripts/globals/mobskills/amplification.lua
5
1236
--------------------------------------------- -- Amplification -- Enhances Magic Attack and Magic Defense. Bonus stacks when used by mobs. --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("scripts/globals/status"); --------------------...
gpl-3.0
HanduMan/trellet.civ
2.3/rules/default/data/default/default.lua
8
5921
-- Freeciv - Copyright (C) 2007 - The Freeciv Project -- 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; either version 2, or (at your option) -- any later version. -- -- This program ...
gpl-2.0
dinodeck/ninety_nine_days_of_dev
004_stat_numbers/code/Map.lua
10
11427
Map = {} Map.__index = Map function Map:Create(mapDef) local layer = mapDef.layers[1] local this = { mX = 0, mY = 0, mMapDef = mapDef, mTextureAtlas = Texture.Find(mapDef.tilesets[1].image), mTileSprite = Sprite.Create(), mLayer = layer, ...
mit
dafei2015/hugular_cstolua
Client/Assets/Lua/game/common/loadCSV.lua
5
3461
------------------------------------------------ -- Copyright © 2013-2014 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local CUtils=CUtils local FileHelper=toluacs.FileHelper --luanet.import_type("FileHelper") local Loader = Loader local Model = Model local json = j...
mit
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/CombatChoiceState.lua
2
13110
CombatChoiceState = {} CombatChoiceState.__index = CombatChoiceState function CombatChoiceState:Create(context, actor) local this = { mStack = context.mStack, mCombatState = context, mActor = actor, mCharacter = context.mActorCharMap[actor], mUpArrow = gGame.World.mIcons:...
mit
Xanthin/sea
whiteshell/init.lua
1
2286
-- Boilerplate to support localized strings if intllib mod is installed. local S if minetest.get_modpath("intllib") then S = intllib.Getter() else S = function(s) return s end end -- NODES minetest.register_node("whiteshell:whiteshell", { description = S("White shell"), drawtype = "normal", -- tiles = {"default_...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Port_San_dOria/npcs/Ufanne.lua
5
1239
----------------------------------- -- Area: Port San d'Oria -- NPC: Ufanne -- Type: Standard NPC -- @zone 232 -- !pos -15.965 -3 -47.748 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil; -------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/RuLude_Gardens/npcs/Neraf-Najiruf.lua
5
1691
----------------------------------- -- Area: Ru'Lud Gardens -- NPC: Neraf-Najiruf -- Involved in Quests: Save my Sister -- @zone 243 -- !pos -36 2 60 ----------------------------------- package.loaded["scripts/zones/RuLude_Gardens/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings")...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Windurst_Waters/npcs/Churano-Shurano.lua
5
1139
----------------------------------- -- Area: Windurst Waters -- NPC: Churano-Shurano -- Working 100% ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/keyitems"); ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc)...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Bastok-Jeuno_Airship/npcs/Dereck.lua
5
1927
----------------------------------- -- Area: Bastok-Jeuno Airship -- NPC: Dereck -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Bastok-Jeuno_Airship/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Bastok-Jeuno_Airship/TextIDs"); ----------------------...
gpl-3.0
eugenesan/openwrt-luci
applications/luci-radvd/luasrc/model/cbi/radvd/rdnss.lua
74
2324
--[[ LuCI - Lua Configuration Interface Copyright 2010 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$ ]]-- lo...
apache-2.0
Ninjistix/darkstar
scripts/globals/items/serving_of_zaru_soba_+1.lua
3
1135
----------------------------------------- -- ID: 5728 -- Item: serving_of_zaru_soba_+1 -- Food Effect: 60min, All Races ----------------------------------------- -- Agility 4 -- HP % 12 (cap 185) -- Resist Sleep +10 ----------------------------------------- require("scripts/globals/status"); ---------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Xarcabard/npcs/Pelogrant.lua
5
1505
----------------------------------- -- Area: Xarcabard -- NPC: Pelogrant -- Type: Outpost Vendor -- !pos 210 -22 -201 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest")...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
006_magic_menu/code/TitleScreenState.lua
4
2292
TitleScreenState = {} TitleScreenState.__index = TitleScreenState function TitleScreenState:Create(stack, storyboard) local this this = { mTitleBanner = Sprite.Create(), mStack = stack, mStoryboard = storyboard, } this.mTitleBanner:SetTexture(Texture.Find("title...
mit
Ninjistix/darkstar
scripts/zones/Buburimu_Peninsula/npcs/Mashasha_WW.lua
3
2978
----------------------------------- -- Area: Buburimu Peninsula -- NPC: Mashasha, W.W. -- Border Conquest Guards -- !pos -599.903 -41.441 165.776 118 ----------------------------------- package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conque...
gpl-3.0
nimaghorbani/dozdi7
plugins/commit.lua
15
13045
-- Commits from https://github.com/ngerakines/commitment. local command = 'commit' local doc = '`Returns a commit message from whatthecommit.com.`' local triggers = { '^/commit[@'..bot.username..']*' } local commits = { "One does not simply merge into master", "Merging the merge", "Another bug bites the dust", ...
gpl-2.0
ccyphers/kong
spec/03-plugins/001-tcp-log/01-tcp-log_spec.lua
1
2475
local cjson = require "cjson" local helpers = require "spec.helpers" local TCP_PORT = 35000 local HTTP_DELAY_PORT = 35003 describe("Plugin: tcp-log (log)", function() local client setup(function() local api1 = assert(helpers.dao.apis:insert { name = "api-1", hosts = { "tcp_logging.com" }, u...
apache-2.0
athasach/waifu2x
cleanup_model.lua
34
1775
require './lib/portable' require './lib/LeakyReLU' torch.setdefaulttensortype("torch.FloatTensor") -- ref: https://github.com/torch/nn/issues/112#issuecomment-64427049 local function zeroDataSize(data) if type(data) == 'table' then for i = 1, #data do data[i] = zeroDataSize(data[i]) end elseif typ...
mit
pfirsich/kraidGUI
kraidGUI/widgets/numberwheel.lua
1
2013
function getModule(gui) local Numberwheel = gui.internal.class(gui.widgets.Base) function Numberwheel:init(params) self.type = "Numberwheel" self.position = {0, 0} self.width = 100 self.height = 30 self.value = 0 self.speed = 100.0 -- may be a function s...
mit
amirb8/telepersian
bot/teleadvan.lua
1
17719
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") local f = assert(io.popen('/usr/bin/git describe --tags', 'r')) VERSION = assert(f:read('*a')) f:close() -- This function is ...
gpl-2.0
Ninjistix/darkstar
scripts/globals/items/cinna-cookie.lua
3
1075
----------------------------------------- -- ID: 4397 -- Item: cinna-cookie -- Food Effect: 3Min, All Races ----------------------------------------- -- Magic Regen While Healing 4 -- Vermin Killer 10 -- Poison Resist 10 ----------------------------------------- require("scripts/globals/status"); ----------------------...
gpl-3.0
iranianboy/group
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
agpl-3.0
rigeirani/s
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
abbasgh12345/extremenew
plugins/inpm.lua
1114
3008
do local function pairsByKeys (t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
Xamla/torch-ros
lua/tests/test_serialization.lua
1
1658
ros = require 'ros' function base_test() local sw = ros.StorageWriter() sw:writeString('Hello, this is a string!') for i=1,100 do sw:writeInt16(i) end sw:writeFloat32(1.23) sw:writeFloat64(1.23) sw:writeTensor(torch.linspace(0,10,10)) local rw = ros.StorageReader(sw.storage) print(rw:readStrin...
bsd-3-clause
Ninjistix/darkstar
scripts/globals/items/bowl_of_zesty_zoni.lua
3
1722
----------------------------------------- -- ID: 5619 -- Item: Bowl of Zesti Zoni -- Food Effect: 4 Hrs, All Races ----------------------------------------- -- HP 12 -- MP 12 -- Strength 2 -- Dexterity 2 -- Vitality 2 -- Agility 2 -- Accuracy +2 -- Ranged Accuracy +2 -- Attack +2 -- Ranged Attack +2 -- Evasion +2 -- MP...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Spire_of_Dem/npcs/_0j1.lua
66
1350
----------------------------------- -- Area: Spire_of_Dem -- NPC: web of regret ----------------------------------- package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil; ----------------------------------- require("scripts/globals/bcnm"); require("scripts/zones/Spire_of_Dem/TextIDs"); -------------------------...
gpl-3.0
Ninjistix/darkstar
scripts/globals/mobskills/soothing_aroma.lua
5
1036
--------------------------------------------- -- Soothing Aroma -- Family: Rafflesia -- Description: Charms nearby players. -- Type: -- Utsusemi/Blink absorb: -- Range: -- Notes: --------------------------------------------- require("scripts/globals/monstertpmoves"); require("scripts/globals/settings"); require("script...
gpl-3.0
dinodeck/ninety_nine_days_of_dev
003_combat_numbers/code/combat_events/CECastSpell.lua
8
2997
CECastSpell = {} CECastSpell.__index = CECastSpell function CECastSpell:Create(state, owner, spell, targets) local this = { mState = state, mOwner = owner, mSpell = spell, mTargets = targets, mIsFinished = false, mCharacter = state.mActorCharMap[owner], } ...
mit
Ninjistix/darkstar
scripts/globals/items/death_penalty.lua
3
4296
----------------------------------------- -- ID: 19007 -- Item: Death Penalty ----------------------------------------- require("scripts/globals/msg"); require("scripts/globals/status"); require("scripts/globals/weaponskills"); require("scripts/globals/weaponskillids"); ----------------------------------- local NAME_W...
gpl-3.0
pfirsich/kraidGUI
kraidGUI/widgets/category.lua
2
1385
function getModule(gui) local Category = gui.internal.class(gui.widgets.Base) function Category:init(params) self.type = "Category" self.position = {0, 0} self.text = "Category" self.collapsedHeight = 30 self.inflatedHeight = 150 self.width = 150 self.he...
mit
random-nick/Townvalds
libs/numberlua.lua
115
13399
--[[ LUA MODULE bit.numberlua - Bitwise operations implemented in pure Lua as numbers, with Lua 5.2 'bit32' and (LuaJIT) LuaBitOp 'bit' compatibility interfaces. SYNOPSIS local bit = require 'bit.numberlua' print(bit.band(0xff00ff00, 0x00ff00ff)) --> 0xffffffff -- Interface providing strong Lua 5.2 '...
agpl-3.0
Ninjistix/darkstar
scripts/zones/Port_Jeuno/npcs/Squintrox_Dryeyes.lua
5
4526
----------------------------------- -- Area: Port Jeuno -- NPC: Squintrox Dryeyes -- Type: Addon Mission Merchant -- !pos -100.071 -1 11.869 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); requir...
gpl-3.0
TRex22/hawkthorne-journey
src/select.lua
1
6951
local Gamestate = require 'vendor/gamestate' local Level = require 'level' local window = require 'window' local fonts = require 'fonts' local background = require 'selectbackground' local state = Gamestate.new() local sound = require 'vendor/TEsound' local Character = require 'character' local characters = Character.c...
mit
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Peshi_Yohnts.lua
5
1837
----------------------------------- -- Area: Windurst Woods -- NPC: Peshi Yohnts -- Type: Bonecraft Guild Master -- !pos -6.175 -6.249 -144.667 241 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Windurst_Woods...
gpl-3.0
eugenesan/openwrt-luci
modules/base/luasrc/cbi.lua
76
40152
--[[ LuCI - Configuration Bind Interface Description: Offers an interface for binding configuration values to certain data types. Supports value and range validation and basic dependencies. FileId: $Id$ License: Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "Li...
apache-2.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Andecia.lua
5
2818
----------------------------------- -- Area: Northern San d'Oria -- NPC: Andecia -- Starts and Finishes Quest: Grave Concerns -- @zone 230 -- !pos 167 0 45 ----------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/So...
gpl-3.0
Ninjistix/darkstar
scripts/globals/weaponskills/shadowstitch.lua
3
1737
----------------------------------- -- Shadowstitch -- Dagger weapon skill -- Skill level: 70 -- Binds target. Chance of binding varies with TP. -- Does stack with Sneak Attack. -- Aligned with the Aqua Gorget. -- Aligned with the Aqua Belt. -- Element: None -- Modifiers: CHR:100% -- 100%TP 200%TP 300%TP -- 1.00 ...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/battlefield_elegy.lua
5
1747
----------------------------------------- -- Spell: Battlefield Elegy ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function onMagicCastingCheck(caster,target,spell) return 0; ...
gpl-3.0
justDax/darkmeter
ui/DM_ReportForm.lua
1
4275
local ReportForm = {} -- prompt reset data form and all the correlated functions ReportForm.controls = {} -- form controls local UI local Fight local DarkMeter local DMUtils function ReportForm:init(xmlDoc) UI = Apollo.GetPackage("DarkMeter:UI").tPackage Fight = Apollo.GetPackage("DarkMeter:Fi...
mit
scan-bot/scan-bot
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
Ninjistix/darkstar
scripts/globals/weaponskills/vidohunir.lua
3
1721
----------------------------------- -- Vidohunir -- Staff weapon skill -- Skill Level: N/A -- Lowers target's magic defense. Duration of effect varies with TP. Laevateinn: Aftermath effect varies with TP. -- Reduces enemy's magic defense by 10%. -- Available only after completing the Unlocking a Myth (Black Mage) quest...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Horlais_Peak/bcnms/rank_2_mission.lua
5
2416
----------------------------------- -- Area: Horlais Peak -- Name: Mission Rank 2 -- !pos -509 158 -211 139 ----------------------------------- package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scripts/globals/missions"); requi...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Southern_San_dOria/npcs/Coderiant.lua
5
1156
----------------------------------- -- Area: Southern San d'Oria -- NPC: Coderiant -- General Info NPC -- @zone 230 -- !pos -111 -2 33 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Southern_San_dOria/...
gpl-3.0
Ninjistix/darkstar
scripts/globals/spells/cure_iv.lua
3
4842
----------------------------------------- -- Spell: Cure IV -- Restores target's HP. ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------------- function on...
gpl-3.0
ztuowen/chill-dev
Manual/test-cases/examples/cuda-chill/mv.lua
4
1787
init("mv.c","normalMV",0) dofile("cudaize.lua") --defines custom tile_by_index, copy_to_registers, --copy_to_shared methods N=129 TI=32 TJ=64 N=1024 --Tile the i and j loop, introducing "ii" as the control loop for the "i" --tile, "k" for the control loop fo the "j" tile, with th...
gpl-3.0
Xamla/torch-ros
lua/StorageReader.lua
1
4598
local ffi = require 'ffi' local torch = require 'torch' local ros = require 'ros.env' local StorageReader = torch.class('ros.StorageReader', ros) local SIZE_OF_UINT32 = ffi.sizeof('uint32_t') local function ensurePosReadable(self, pos) if pos < 0 or pos > self.length then error(string.format('Read position out ...
bsd-3-clause
neofob/sile
packages/simpletable.lua
1
2877
-- A very simple table formatting class -- Calling conventions: -- myClass:loadPackage("simpletable", { -- tableTag = "a", -- trTag = "b", -- tdTag = "c" -- }) -- Defines commands \a, \b and \c equivalent to HTML -- <table>, <tr> and <td> tags. -- Todo: Set a maximum width for the whole table and ensure -- vbox w...
mit
chrisjbray/hammerspoon
extensions/wifi/init.lua
1
3890
--- === hs.wifi === --- --- Inspect WiFi networks local USERDATA_TAG = "hs.wifi" local module = require(USERDATA_TAG..".internal") module.watcher = require(USERDATA_TAG..".watcher") local watcherMT = hs.getObjectMetatable(USERDATA_TAG..".watcher") -- private variables and methods --------------------------...
mit
xuejian1354/attitude_adjustment
feeds/luci/contrib/luasrcdiet/lua/optlex.lua
125
31588
--[[-------------------------------------------------------------------- optlex.lua: does lexer-based optimizations This file is part of LuaSrcDiet. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which this software may be distributed. See the Chan...
gpl-2.0