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 |
|---|---|---|---|---|---|
kidaa/Awakening-Core3 | bin/scripts/mobile/tutorial/tutorial_commoner.lua | 1 | 4906 | tutorial_commoner = Creature:new {
objectName = "@mob/creature_names:commoner",
socialGroup = "",
pvpFaction = "",
faction = "",
level = 30,
chanceHit = 0.390000,
damageMin = 290,
damageMax = 300,
baseXp = 2914,
baseHAM = 8400,
baseHAMmax = 10200,
armor = 0,
resists = {-1,-1,-1,-1,-1,-1,-1,-1,-1},
meatTyp... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/wearables/wookiee/wke_gloves_s03.lua | 3 | 2875 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
airstruck/luigi | luigi/backend/ffisdl.lua | 3 | 14995 | local ROOT = (...):gsub('[^.]*.[^.]*$', '')
local Hooker = require(ROOT .. 'hooker')
local ffi = require 'ffi'
local sdl = require((...) .. '.sdl')
local Image = require((...) .. '.image')
local Font = require((...) .. '.font')
local Keyboard = require((...) .. '.keyboard')
local Text = require((...) .. '.text')
lo... | mit |
kidaa/Awakening-Core3 | bin/scripts/object/static/flora/flora_plant_tato_falotil_bare.lua | 3 | 2256 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/wearables/necklace/necklace_ornamental_ratchet.lua | 3 | 4267 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/creature/npc/base/weequay_base_male.lua | 3 | 2228 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_binayre_ruffian_trandoshan_female_01.lua | 3 | 2292 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/furniture/cheap/objects.lua | 3 | 18219 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
eraffxi/darkstar | scripts/globals/items/bowl_of_shark_fin_soup.lua | 2 | 1666 | -----------------------------------------
-- ID: 4452
-- Item: bowl_of_shark_fin_soup
-- Food Effect: 3Hrs, All Races
-----------------------------------------
-- HP % 5 (cap 150)
-- MP 5
-- Dexterity 4
-- HP Recovered While Healing 9
-- Attack % 14 (cap 85)
-- Ranged Attack % 14 (cap 85)
------------------------------... | gpl-3.0 |
eraffxi/darkstar | scripts/zones/Apollyon/mobs/Carnagechief_Jackbodokk.lua | 2 | 2127 | -----------------------------------
-- Area: Apollyon CS
-- MOB: Carnagechief_Jackbodokk
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
require("scripts/globals/limbus");
------------------------... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/hair/human/hair_human_male_s03.lua | 3 | 2244 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/weapon/ranged/rifle/serverobjects.lua | 3 | 3196 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
sohrab96/tabchi | fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
EhsanFox/Self-Bot-V3 | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-3.0 |
Richard857/BadRotations | Rotations/Paladin/Retribution/RetributionCuteOne.lua | 1 | 51534 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "基于范围内的目标数,在单目标和多目标自动切换输出方式.", highlight = 1, icon = br.player.spell.divineStorm },
... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/rori/first_brigade_gunner.lua | 1 | 1257 | first_brigade_gunner = Creature:new {
objectName = "@mob/creature_names:brigade_gunner",
socialGroup = "restuss",
pvpFaction = "restuss",
faction = "restuss",
level = 9,
chanceHit = 0.27,
damageMin = 80,
damageMax = 90,
baseXp = 292,
baseHAM = 675,
baseHAMmax = 825,
armor = 0,
resists = {0,0,0,0,0,0,0,-1,-... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/draft_schematic/space/weapon/shield_effectiveness_intensifier_mk1.lua | 2 | 3284 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/component/droid/armor_module_2.lua | 1 | 2912 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/fireLightningCone2.lua | 1 | 2411 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/spawn/naboo_world_creatures.lua | 1 | 7693 | naboo_world_creatures = {
wanderRadius = 10,
commandLevel = 0,
type = LAIR,
maxSpawnLimit = 2048,
lairSpawns = {
{
lairTemplateName = "naboo_gnort_lair_neutral_small",
spawnLimit = -1,
minDifficulty = 4,
maxDifficulty = 4,
numberToSpawn = 0,
weighting = 15,
size = 25
},
{
lairTempla... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/remmer/serverobjects.lua | 3 | 2221 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/base/poi_all_lair_mound_small_evil_fire_red.lua | 2 | 2368 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
suppayami/alex-gets-oppai | data/class/layermanager.lua | 1 | 2063 | -- singleton
LayerManager = class(Object)
LayerManager.layer = {}
LayerManager.sort = {}
function LayerManager:clearAll()
for k,v in pairs(self.layer) do
for i,s in pairs(v) do
s:unsetImage()
v[i] = nil
end
self.layer[k] = nil
end
end
function LayerManager:clea... | mit |
eraffxi/darkstar | scripts/globals/items/cone_of_seraphs_kiss.lua | 2 | 1173 | -----------------------------------------
-- ID: 5556
-- Item: cone_of_seraphs_kiss
-- Food Effect: 1Hr, All Races
-----------------------------------------
-- HP 15
-- MP % 16 (cap 85)
-- MP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status");
-------------------------... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/base/poi_all_lair_nest_small_fog_green.lua | 2 | 2348 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Richard857/BadRotations | System/Libs/DiesalGUI-1.0/Objects/Toggle.lua | 4 | 5897 | -- $Id: Button.lua 43 2014-02-23 18:40:01Z diesal@reece-tech.com $
local DiesalGUI = LibStub("DiesalGUI-1.0")
-- ~~| Libraries |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
local DiesalTools = LibStub("DiesalTools-1.0")
lo... | gpl-3.0 |
palmettos/cnLuCI | applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua | 141 | 1054 | --[[
netdiscover_devinfo - SIP Device Information
(c) 2009 Daniel Dickinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
require("luci.i1... | apache-2.0 |
kidaa/Awakening-Core3 | bin/scripts/object/creature/npc/base/twilek_base_male.lua | 3 | 2224 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/prp_junk_s4.lua | 3 | 2232 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/static/structure/general/streetlamp_small_red_style_02.lua | 3 | 2304 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/building/endor/endor_lake_hut_s02.lua | 3 | 2220 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
jmchandonia/narrative | docker/test_docker.lua | 8 | 1638 | -- author: Steve Chan sychan@lbl.gov
--
-- Copyright 2013 The Regents of the University of California,
-- Lawrence Berkeley National Laboratory
-- United States Department of Energy
-- The DOE Systems Biology Knowledgebase (KBase)
-- Made available under the KBase Open Source Li... | mit |
eraffxi/darkstar | scripts/globals/weaponskills/shoulder_tackle.lua | 2 | 1638 | -----------------------------------
-- Shoulder Tackle
-- Hand-to-Hand weapon skill
-- Skill Level: 40
-- Stuns target. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Aqua Gorget & Thunder Gorget.
-- Aligned with the Aqua Belt & Thunder Belt.
-- Element: None
-- Modifiers: VIT:1... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/swirl_prong/objects.lua | 3 | 5576 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/corellia/hidden_daggers_leader.lua | 1 | 1432 | hidden_daggers_leader = Creature:new {
objectName = "@mob/creature_names:hidden_daggers_leader",
socialGroup = "hidden_daggers",
pvpFaction = "hidden_daggers",
faction = "hidden_daggers",
level = 18,
chanceHit = 0.32,
damageMin = 170,
damageMax = 180,
baseXp = 1426,
baseHAM = 2900,
baseHAMmax = 3500,
armor ... | lgpl-3.0 |
upsoft/avbot | extension/luascript/lpeg-0.11/re.lua | 160 | 6286 | -- $Id: re.lua,v 1.44 2013/03/26 20:11:40 roberto Exp $
-- imported functions and modules
local tonumber, type, print, error = tonumber, type, print, error
local setmetatable = setmetatable
local m = require"lpeg"
-- 'm' will be used to parse expressions, and 'mm' will be used to
-- create expressions; that is, 're' ... | agpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/mobile/tatooine/sennex_slavemaster.lua | 1 | 1705 | sennex_slavemaster = Creature:new {
objectName = "@mob/creature_names:sennex_slavemaster",
socialGroup = "sennex",
pvpFaction = "pirate",
faction = "pirate",
level = 37,
chanceHit = 0.43,
damageMin = 340,
damageMax = 390,
baseXp = 3733,
baseHAM = 9200,
baseHAMmax = 11200,
armor = 0,
resists = {0,0,0,30,-1,... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/building/player/city/garden_naboo_med_01.lua | 3 | 2756 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
eraffxi/darkstar | scripts/globals/weaponskills/calamity.lua | 25 | 1516 | -----------------------------------
-- Calamity
-- Axe weapon skill
-- Skill level: 200 (Beastmasters and Warriors only.)
-- Delivers a single-hit attack. Damage varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Soil Gorget & Thunder Gorget.
-- Aligned with the Soil Belt & Thunder Belt.
-- Element: N... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/ship/components/reactor/rct_sfs_imperial_2.lua | 3 | 2292 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/commands/healActionWoundOther2.lua | 3 | 2156 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
eraffxi/darkstar | scripts/globals/spells/bluemagic/temporal_shift.lua | 2 | 1501 | -----------------------------------------
-- Spell: Temporal Shift
-- Enemies within range are temporarily prevented from acting
-- Spell cost: 48 MP
-- Monster Type: Luminians
-- Spell Type: Magical (Lightning)
-- Blue Magic Points: 5
-- Stat Bonus: HP+10, MP+15
-- Level: 73
-- Casting Time: 0.5 seconds
-- Recast Time... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/womp_rat/serverobjects.lua | 3 | 2167 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dalyrake_matriarch.lua | 3 | 2188 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/lair/dune_lizard/lair_dune_lizard_desert.lua | 2 | 2336 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
widelands/widelands | data/campaigns/emp01.wmf/scripting/mission_thread.lua | 1 | 3640 | function mission_thread()
sleep(1000)
-- Initial messages
local sea = wl.Game().map:get_field(50,25)
local ship = p1:place_ship(sea)
p1:hide_fields(sea:region(6), "permanent")
scroll_to_field(sea,0)
campaign_message_box(diary_page_1)
sleep(200)
-- Show the sea
reveal_concentric(p1, sea,... | gpl-2.0 |
houqp/koreader | spec/unit/nickel_conf_spec.lua | 4 | 4438 | describe("Nickel configuation module", function()
local lfs, NickelConf
setup(function()
require("commonrequire")
lfs = require("libs/libkoreader-lfs")
NickelConf = require("device/kobo/nickel_conf")
end)
describe("Frontlight module", function()
it("should read value", f... | agpl-3.0 |
houqp/koreader | spec/unit/benchmark.lua | 13 | 1556 | require("commonrequire")
local DocumentRegistry = require("document/documentregistry")
local util = require("ffi/util")
local function logDuration(filename, pageno, dur)
local file = io.open(filename, "a+")
if file then
if file:seek("end") == 0 then -- write the header only once
file:write(... | agpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/ship/crafted/engine/engine_incom_fusialthrust.lua | 3 | 2304 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_robber_human_female_01.lua | 3 | 2236 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/mobile/dressed_lost_aqualish_infiltrator_male_01.lua | 3 | 2280 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
widelands/widelands | data/tribes/buildings/productionsites/frisians/charcoal_kiln/init.lua | 1 | 1685 | push_textdomain("tribes")
dirname = path.dirname (__file__)
wl.Descriptions():new_productionsite_type {
name = "frisians_charcoal_kiln",
-- TRANSLATORS: This is a building name used in lists of buildings
descname = pgettext ("frisians_building", "Charcoal Kiln"),
icon = dirname .. "menu.png",
size = "m... | gpl-2.0 |
eraffxi/darkstar | scripts/zones/Al_Zahbi/npcs/Zafif.lua | 2 | 1314 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Zafif
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil
-----------------------------------
require("scripts/zones/Al_Zahbi/TextIDs")
require("scripts/globals/shop")
function onTrade(player,... | gpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/loot/collectible/collectible_parts/orange_rug_patches.lua | 3 | 2336 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
kidaa/Awakening-Core3 | bin/scripts/object/tangible/component/bio/bio_component_food_light.lua | 3 | 2276 | --Copyright (C) 2010 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
LuaDist2/lua-aplicado | lua-aplicado/code/profile.lua | 2 | 1188 | --------------------------------------------------------------------------------
-- profile.lua: lua-aplicado exports profile
-- This file is a part of Lua-Aplicado library
-- Copyright (c) Lua-Aplicado authors (see file `COPYRIGHT` for the license)
----------------------------------------------------------------------... | mit |
n0xus/darkstar | scripts/zones/Nashmau/npcs/Yoyoroon.lua | 34 | 1613 | -----------------------------------
-- Area: Nashmau
-- NPC: Yoyoroon
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Nashmau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Nashmau/TextIDs");
require("scripts/globals/shop");
----------... | gpl-3.0 |
xjdrew/levent | tests/test_socket.lua | 1 | 1210 | local levent = require "levent.levent"
local socket = require "levent.socket"
local timeout = require "levent.timeout"
local test_data = "hello"
function client(host)
local sock, errcode = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
assert(sock, errcode)
print("begin connect:", sock:fileno())
loc... | mit |
n0xus/darkstar | scripts/zones/Tahrongi_Canyon/npcs/Excavation_Point.lua | 29 | 1114 | -----------------------------------
-- Area: Tahrongi Canyon
-- NPC: Excavation Point
-----------------------------------
package.loaded["scripts/zones/Tahrongi_Canyon/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/excavation");
require("scripts/zones/Tahrongi_Canyon/TextIDs... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/src/base/bake.lua | 3 | 21785 | --
-- base/bake.lua
--
-- Takes all the configuration information provided by the project scripts
-- and stored in the solution->project->block hierarchy and flattens it all
-- down into one object per configuration. These objects are cached with the
-- project, and can be retrieved by calling the getconfig() or eachco... | gpl-2.0 |
karai17/Peep | LoveFrames/objects/internal/tooltip.lua | 3 | 9176 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- tooltip clas
local newobject = loveframes.NewObject("tooltip", "loveframes_object_tooltip", true)
--[[------------------... | mit |
sixin-zh/mpiT | BiCNN/optim-adadelta.lua | 1 | 1427 | -- Adadelta
-- Author: Minwei Feng (mfeng@us.ibm.com)
require 'optim'
function optim.adadelta(opfunc, w, config, state)
local config = config or {}
local state = state or config
local rho = config.rho or 0.9
local epsilon = config.epsilon or 1e-6
local mode = config.mode or 'global' -- global or local
loc... | apache-2.0 |
n0xus/darkstar | scripts/zones/Southern_San_dOria/npcs/Raminel.lua | 19 | 4714 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Raminel
-- Involved in Quests: Riding on the Clouds
-- @zone 230
-- @pos -56 2 -21
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Metalworks/npcs/Lorena.lua | 17 | 2528 | -----------------------------------
-- Area: Metalworks
-- NPC: Lorena
-- Type: Blacksmithing Guildworker's Union Representative
-- @zone: 237
-- @pos -104.990 1 30.995
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/zones/Metalworks/TextIDs");
requir... | gpl-3.0 |
sixin-zh/mpiT | asyncsgd/testreduceall.lua | 1 | 1945 | -- mpirun -n 2 luajit testreduceall.lua
local ssize = 3*4096*4096
local usecuda = false
require 'mpiT'
dofile('init.lua')
mpiT.Init()
local world = mpiT.COMM_WORLD
local rank = mpiT.get_rank(world)
local size = mpiT.get_size(world)
assert((size>0) and (size%2==0))
local conf = {}
conf.rank = rank
conf.world = world... | apache-2.0 |
privatesource/Vira_max | plugins/active_user.lua | 6 | 11802 | local function checktodaygr(cb_extra, success, result)
local hash = ''
local thash=''
for k,user in pairs(result.members) do
thash = 'today:'..user.peer_id
if redis:get(thash) then
if redis:get(thash) < os.date("%x",os.time() + 16200) then
hash = 'utmsgst:'..user.peer_id..':'..cb_extra
redis:set(hash,0)
... | gpl-2.0 |
rekotc/game-engine-demo | Source/GCC4/3rdParty/luaplus51-all/Src/Modules/LuaMacro/macro/try.lua | 2 | 1238 | --- A try/except block.
-- This generates syntactical sugar around `pcal`l, and correctly
-- distinguishes between the try block finishing naturally and
-- explicitly using 'return' with no value. This is handled by
-- converting any no value `return` to `return nil`.
--
-- Apart from the usual creation of a closure, t... | lgpl-3.0 |
n0xus/darkstar | scripts/globals/items/bowl_of_mushroom_soup.lua | 35 | 1384 | -----------------------------------------
-- ID: 4419
-- Item: mushroom_soup
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Magic Points 20
-- Strength -1
-- Mind 2
-- MP Recovered While Healing 1
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
Arashbrsh/lifeiran | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
hamed9898/maxbott | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
ArmanIr/ProFbOt | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Qulight_ConfigUI/local/english.lua | 1 | 15650 | QulightL = { }
-- general
QulightL.option_general = "General"
QulightL.option_general_uiscale = "Auto UI Scale"
QulightL.option_general_multisample = "Multisample protection (clean 1px border)"
QulightL.option_general_customuiscale = "UI Scale (if auto-scale is disabled)"
QulightL.option_general_AutoRepair = "Au... | gpl-2.0 |
n0xus/darkstar | scripts/globals/items/smoked_salmon.lua | 35 | 1196 | -----------------------------------------
-- ID: 4380
-- Item: smoked_salmon
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Mind -3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItem... | gpl-3.0 |
n0xus/darkstar | scripts/globals/mobskills/Core_Meltdown.lua | 18 | 1084 | ---------------------------------------------------
-- Core Meltdown (Ghrah)
-- Reactor core fails and self-destructs, damaging any nearby targets.
-- Note: Very rare, estimated 5% chance
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require... | gpl-3.0 |
alexandre-mbm/SimTools | RandomWeather/Lua/socket/socket.lua | 146 | 4061 | -----------------------------------------------------------------------------
-- LuaSocket helper module
-- Author: Diego Nehab
-- RCS ID: $Id: socket.lua,v 1.22 2005/11/22 08:33:29 diego Exp $
-----------------------------------------------------------------------------
-----------------------------------------------... | mit |
davymai/CN-QulightUI | Interface/AddOns/QulightUI/Addons/Actionbars/Bar1.lua | 1 | 2985 | if not Qulight["actionbar"].enable == true then return end
local bar = QuBar1
local shd = 7
if Qulight.actionbar.ownshdbar then shd = 10 end
local Page = {
["DRUID"] = "[bonusbar:1,nostealth] 7; [bonusbar:1,stealth] 8; [bonusbar:2] 8; [bonusbar:3] 9; [bonusbar:4] 10;",
["PRIEST"] = "[bonusbar:1] 7;",
["ROGUE"] =... | gpl-2.0 |
ihaveamac/downgrade-check | index.lua | 1 | 1655 | --ihaveamac--
-- https://github.com/ihaveamac/downgrade-check
version = "1.0"
-- 9.2 NATIVE_FIRM: 2.46-0
firmmajor, firmminor, firmrev = System.getKernel()
downgraded = false
if firmmajor <= 2 and firmminor <= 46 and firmrev <= 0 then
downgraded = true
end
Screen.waitVblankStart()
Screen.refresh()
Screen.clear(BO... | mit |
n0xus/darkstar | scripts/globals/missions.lua | 14 | 49872 | -----------------------------------
-- Areas ID
-----------------------------------
SANDORIA = 0;
BASTOK = 1;
WINDURST = 2;
ZILART = 3;
TOAU = 4;
WOTG = 5;
COP = 6;
ASSAULT = 7;
CAMPAIGN = 8;
ACP = 9;
AMK = 10;
ASA = 11;
SOA = 12;
------------------------------... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Temenos/mobs/Goblin_Slaughterman.lua | 16 | 1072 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Slaughterman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------... | gpl-3.0 |
gpedro/server | data/scripts/otstd/actions/rope.lua | 3 | 1329 | otstd.rope = {}
otstd.ropes = {
[2120] = {},
[6392] = {},
[7731] = {}
}
otstd.ropespots = {
[384] = {},
[418] = {}
}
function otstd.rope.callback(event)
local toPos = event.targetPosition
local tile = toPos and map:getTile(toPos)
if not tile then
return
end
local hole = tile:getThing(toPos.sta... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Mazween.lua | 34 | 1639 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Mazween
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
require(... | gpl-3.0 |
niello/deusexmachina | Deps/CEGUI/cegui/src/ScriptModules/Lua/support/tolua++bin/lua/container.lua | 15 | 16995 | -- tolua: container abstract class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id$
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enh... | mit |
n0xus/darkstar | scripts/zones/Port_Windurst/npcs/Sigismund.lua | 36 | 2342 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Sigismund
-- Starts and Finishes Quest: To Catch a Falling Star
-- Working 100%
-- @zone = 240
-- @pos = -110 -10 82
-----------------------------------
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-------------------------... | gpl-3.0 |
chengyi818/openwrt | customer/packages/luci/modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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... | gpl-2.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/modules/admin-mini/luasrc/controller/mini/index.lua | 79 | 1429 | --[[
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... | gpl-2.0 |
chengyi818/openwrt | customer/packages/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/email.lua | 78 | 1934 | --[[
Luci configuration model for statistics - collectd email plugin configuration
(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... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Ifrits_Cauldron/npcs/qm4.lua | 16 | 1477 | -----------------------------------
-- Area: Ifrit's Cauldron
-- NPC: ???
-- Involved in Mission: Bastok 6-2
-- @pos 171 0 -25 205
-----------------------------------
package.loaded["scripts/zones/Ifrits_Cauldron/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
requi... | gpl-3.0 |
ppriest/mame | 3rdparty/genie/tests/base/test_path.lua | 52 | 6597 | --
-- tests/base/test_path.lua
-- Automated test suite for the action list.
-- Copyright (c) 2008-2010 Jason Perkins and the Premake project
--
T.path = { }
local suite = T.path
--
-- path.getabsolute() tests
--
function suite.getabsolute_ReturnsCorrectPath_OnMissingSubdir()
local expected = path.translate(os.... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm15.lua | 25 | 1460 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm15 (???)
-- Involved in Quest: Hitting the Marquisate (THF AF3)
-- @pos 19.893 -5.500 325.767 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
davymai/CN-QulightUI | Interface/AddOns/FriendListColors/libs/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-... | gpl-2.0 |
davymai/CN-QulightUI | Interface/AddOns/Skada/lib/AceGUI-3.0-SharedMediaWidgets/Libs/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-... | gpl-2.0 |
n0xus/darkstar | scripts/zones/Misareaux_Coast/npcs/_0p8.lua | 17 | 1782 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Iron Gate
-- Entrance to Sacrarium
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Misarea... | gpl-3.0 |
n0xus/darkstar | scripts/zones/Lower_Jeuno/npcs/_l04.lua | 36 | 1559 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Streetlamp
-- Involved in Quests: Community Service
-- @zone 245
-- @pos -73.039 6 -95.633
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/glob... | gpl-3.0 |
mopplayer/BLESS | klib/lua/klib.lua | 42 | 20155 | --[[
The MIT License
Copyright (c) 2011, Attractive Chaos <attractor@live.co.uk>
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 th... | gpl-3.0 |
feiying1460/witi-openwrt | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua | 76 | 1096 | --[[
Luci statistics - cpu 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.apache... | gpl-2.0 |
xennygrimmato/nmt | src/OpenNMT/onmt/utils/Cuda.lua | 5 | 4263 | local Cuda = {
fp16 = false,
gpuIds = {},
activated = false
}
local options = {
{
'-gpuid', { 0 },
[[List of GPU identifiers (1-indexed). CPU is used when set to 0.]]
},
{
'-fallback_to_cpu', false,
[[If GPU can't be used, rollback on the CPU.]]
},
{
'-fp16', false,
[[Use half-p... | lgpl-3.0 |
n0xus/darkstar | scripts/zones/Apollyon/mobs/Kerkopes.lua | 16 | 1585 | -----------------------------------
-- Area: Apollyon NE
-- NPC: Kerkopes
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
--------------------------... | gpl-3.0 |
ArchiveTeam/ziplist-grab | ziplist.lua | 1 | 2973 | dofile("urlcode.lua")
dofile("table_show.lua")
JSON = (loadfile "JSON.lua")()
local url_count = 0
local tries = 0
load_json_file = function(file)
if file then
local f = io.open(file)
local data = f:read("*all")
f:close()
return JSON:decode(data)
else
return nil
end
end
read_file = function(... | unlicense |
lduboeuf/lit | commands/update.lua | 2 | 2928 | local log = require('log').log
local updater = require('auto-updater')
local uv = require('uv')
local pathJoin = require('luvi').path.join
local exec = require('exec')
local prompt = require('prompt')(require('pretty-print'))
local miniz = require('miniz')
local binDir = pathJoin(uv.exepath(), "..")
local function up... | apache-2.0 |
ozhanf/ozhanf--bot | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.