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 |
|---|---|---|---|---|---|
opentomb/OpenTomb | scripts/strings/portuguese-ptbr/sys_notify.lua | 1 | 4451 | -- OPENTOMB SYSTEM CONSOLE NOTIFICATIONS
-- by Lwmte, Apr 2015
-- Brazilian Portuguese translation by: Rafael Fontenelle
-- Translation Version: 1.0.0.0 (January 17, 2018)
--------------------------------------------------------------------------------
-- Here you have some global system console warnings which will fr... | lgpl-3.0 |
marwac-9/myframework | code/exts/luajit/dynasm/dasm_mips.lua | 3 | 30354 | ------------------------------------------------------------------------------
-- DynASM MIPS32/MIPS64 module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
local mips64 = mips64
... | apache-2.0 |
syj2010syj/w3x2lni | make.lua | 1 | 3179 | local lm = require 'luamake'
lm.arch = 'x86'
lm:import '3rd/bee.lua/make.lua'
lm.rootdir = 'c++/'
lm:executable 'w3x2lni' {
sources = {
'w3x2lni/main_gui.cpp',
'w3x2lni/common.cpp',
},
crt = 'static'
}
lm:executable 'w2l' {
deps = 'lua54',
sources = {
'w3x2lni/main_cli.c... | gpl-3.0 |
npge/lua-npge | src/npge/block/init.lua | 2 | 1510 | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
return {
identity = require 'npge.block.identity',
consensus = require 'npge.block.consensus',
reverse = require 'npge.block.reverse',
orient = require 'npge.block.o... | mit |
MinetestForFun/minetest-minetestforfun-server | mods/hudbars/init.lua | 7 | 17462 | local S
if (minetest.get_modpath("intllib")) then
dofile(minetest.get_modpath("intllib").."/intllib.lua")
S = intllib.Getter(minetest.get_current_modname())
else
S = function ( s ) return s end
end
hb = {}
hb.hudtables = {}
-- number of registered HUD bars
hb.hudbars_count = 0
-- table which records which HUD ba... | unlicense |
Sxcret/FrenchRP | gamemode/modules/base/cl_gamemode_functions.lua | 1 | 1822 | local GUIToggled = false
local mouseX, mouseY = ScrW() / 2, ScrH() / 2
function GM:ShowSpare1()
GUIToggled = not GUIToggled
if GUIToggled then
gui.SetMousePos(mouseX, mouseY)
else
mouseX, mouseY = gui.MousePos()
end
gui.EnableScreenClicker(GUIToggled)
end
function GM:PlayerStartVoi... | mit |
TsarN/uber-os | packages/uberkernel/drivers/fs/romfs/romfs.lua | 1 | 1774 | --ROM File System Driver. Works with fsd.
local romfs = {}
romfs.list = function(mountPath, device, path)
path = fsd.normalizePath(path)
path = fsd.resolveLinks(path)
path = fsd.stripPath(mountPath, path)
local p = oldfs.list(device .. path)
if path == "/" then path = "" end
for i = 1, #p do
... | mit |
Wohlhabend-Networks/PGE-Project | Engine/_resources/script/npcs/maincore_npc.lua | 4 | 2715 | class 'luaNPC' (BaseNPC)
function luaNPC:__setupEvents()
if(not self.isInvalid and self.controller)then
self.Has_onActivated = false
if(type(self.controller.onActivated) == "function")then
self.Has_onActivated = true
end
self.Has_onLoop = false
if(type(self.cont... | gpl-3.0 |
ddimon/cap | plugins/sticker_lock.lua | 39 | 19259 | -- data saved to data/moderation.json
do
local administrators_only = 'For administrator only!'
local moderators_only = 'For moderators only!'
local function create_group(msg)
if not is_admin(msg) then return administrators_only end
local group_creator = msg.from.print_name
create_group_chat (group_creator, grou... | gpl-2.0 |
rsjaffe/MIDI2LR | src/plugin/Options.lua | 1 | 5554 | --[[----------------------------------------------------------------------------
Options.lua
Manages options for plugin
This file is part of MIDI2LR. Copyright 2015 by Rory Jaffe.
MIDI2LR is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the... | gpl-3.0 |
icebreaker/premake-dev | tests/actions/vstudio/vc2010/test_link_settings.lua | 2 | 4846 | --
-- tests/actions/vstudio/vc2010/test_link_settings.lua
-- Validate linker settings in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011 Jason Perkins and the Premake project
--
T.vstudio_vs2010_link_settings = { }
local suite = T.vstudio_vs2010_link_settings
local vc2010 = premake.vstudio.vc2010
--
-- S... | bsd-3-clause |
liuweiwuxie/rnn | Recurrent.lua | 2 | 11582 | ------------------------------------------------------------------------
--[[ Recurrent ]]--
-- Ref. A.: http://goo.gl/vtVGkO (Mikolov et al.)
-- B. http://goo.gl/hu1Lqm
-- Processes the sequence one timestep (forward/backward) at a time.
-- A call to backward only keeps a log of the gradOutputs and scales.
-- Back-Pr... | bsd-3-clause |
syj2010syj/w3x2lni | script/core/map-builder/save.lua | 3 | 2971 | local w3xparser = require 'w3xparser'
local lang = require 'lang'
local function build_imp(w2l, output_ar, imp_buf)
local impignore = {}
for _, name in ipairs(w2l.info.pack.impignore) do
impignore[name] = true
end
for _, name in pairs(w2l.info.obj) do
impignore[name] = true
end
... | gpl-3.0 |
dev-osrose/osIROSE-new | scripts/mobs/fields/LP03.lua | 2 | 14478 |
--[[ MOB SPAWN LIST
mob(<mob_spawner_alias>, <mob_id>, <mob_count>, <spawner_limit>, <spawn_interval>, <spawner_range>, <map_id>, <x_pos>, <y_pos>, <z_pos>);
--]]
mob("", 384, 1, 1, 45, 5, 54, 5108.27, 5309.37, 36.24);
mob("", 384, 1, 1, 45, 5, 54, 5114.2, 5313.25, 35.8);
mob("", 384, 1, 1, 45, 5, 54, 5118.48, 5322.3... | apache-2.0 |
npge/lua-npge | spec/alignment/goodSlices_spec.lua | 2 | 7028 | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("npge.alignment.goodSlices", function()
it("finds good slices", function()
local goodSlices = require 'npge.alignment.goodSlices'
assert.same(goodSlices... | mit |
dev-osrose/osIROSE-new | scripts/npcs/ai/[sikuku_warrior]_kilie.lua | 2 | 1068 | registerNpc(1257, {
walk_speed = 0,
run_speed = 0,
scale = 120,
r_weapon = 1025,
l_weapon = 0,
level = 10,
hp = 100,
attack = 100,
hit = 100,
def = 100,
res = 100,
avoid ... | apache-2.0 |
dev-osrose/osIROSE-new | scripts/mobs/ai/tyrant.lua | 2 | 1956 | registerNpc(357, {
walk_speed = 230,
run_speed = 800,
scale = 220,
r_weapon = 1024,
l_weapon = 0,
level = 112,
hp = 36,
attack = 526,
hit = 248,
def = 647,
res = 261,
avoi... | apache-2.0 |
npge/lua-npge | spec/algo/ReAlign_spec.lua | 2 | 2407 | -- lua-npge, Nucleotide PanGenome explorer (Lua module)
-- Copyright (C) 2014-2016 Boris Nagaev
-- See the LICENSE file for terms of use.
describe("npge.algo.ReAlign", function()
it("aligns blockset, keep block with better identity (1)",
function()
local config = require 'npge.config'
local rev... | mit |
zapov/FrameworkBenchmarks | frameworks/Lua/openresty/app.lua | 25 | 2311 | local mysql = mysql
local encode = encode
local random = math.random
local min = math.min
local insert = table.insert
local sort = table.sort
local template = require'resty.template'
local ngx = ngx
local ngx_print = ngx.print
template.caching(false)
-- Compile template, disable cache, enable plain text view to skip f... | bsd-3-clause |
mrbangi/bangii | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile... | gpl-2.0 |
kusk356/fucktion | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Amorph/premake-dev | src/tools/gcc.lua | 1 | 6479 | --
-- gcc.lua
-- Provides GCC-specific configuration strings.
-- Copyright (c) 2002-2012 Jason Perkins and the Premake project
--
premake.tools.gcc = {}
local gcc = premake.tools.gcc
local project = premake5.project
local config = premake5.config
--
-- GCC flags for specific systems and architectures.
--
gcc.s... | bsd-3-clause |
dev-osrose/osIROSE-new | scripts/mobs/ai/king_hook.lua | 2 | 1072 | registerNpc(517, {
walk_speed = 300,
run_speed = 650,
scale = 240,
r_weapon = 0,
l_weapon = 0,
level = 155,
hp = 38,
attack = 773,
hit = 446,
def = 428,
res = 569,
avoid ... | apache-2.0 |
Zaratusa/gmod_stuff | gamemodes/terrortown/entities/weapons/weapon_ttt_tmp/shared.lua | 2 | 1985 | --[[Author informations]]--
SWEP.Author = "Zaratusa"
SWEP.Contact = "http://steamcommunity.com/profiles/76561198032479768"
if SERVER then
AddCSLuaFile()
resource.AddWorkshop("253737973")
else
LANG.AddToLanguage("english", "tmp_name", "TMP")
SWEP.PrintName = "tmp_name"
SWEP.Slot = 2
SWEP.Icon = "vgui/ttt/icon_tm... | gpl-3.0 |
icebreaker/premake-dev | src/actions/vstudio/vs2010_vcxproj.lua | 1 | 19192 | --
-- vs2010_vcxproj.lua
-- Generate a Visual Studio 2010 C/C++ project.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
premake.vstudio.vc2010 = { }
local vc2010 = premake.vstudio.vc2010
local vstudio = premake.vstudio
local function vs2010_config(prj)
_p(1,'<ItemGroup Label="ProjectConfig... | bsd-3-clause |
jetspam20/jetspam | libs/feedparser.lua | 31 | 12090 | local LOM = assert(require("lxp.lom"), "LuaExpat doesn't seem to be installed. feedparser kind of needs it to work...")
local XMLElement = (loadfile "./libs/XMLElement.lua")()
local dateparser = (loadfile "./libs/dateparser.lua")()
local URL = (loadfile "./libs/url.lua")()
local tinsert, tremove, tconcat = table.insert... | gpl-3.0 |
Cherser-s/gmod_combine_lock | lua/include/editor_gui/rule_dialog.lua | 1 | 10141 |
if not COMBINE_LOCK then
COMBINE_LOCK = {}
end
include('include/lock_whitelist/LockWhitelist.lua')
local PANEL = {}
function PANEL:Init()
self.counter = -1000
self.Rule = {}
self.cover = vgui.Create("DPanel",self)
self.cover:Dock(FILL)
self.cover.PerformLayout = function(panel)
local w,h = panel:GetSize()
... | mit |
MinetestForFun/minetest-minetestforfun-server | mods/WorldEdit/worldedit_shortcommands/init.lua | 8 | 2335 | --provides shorter names for the commands in `worldedit_commands`
--returns true if command could not be aliased, false otherwise
worldedit.alias_chatcommand = function(alias, original_command)
if not minetest.chatcommands[original_command] then
minetest.log("error", "worldedit_shortcommands: original command ... | unlicense |
azane/jason | complex.lua | 2 | 11815 | --[[
LUA MODULE
complex v$(_VERSION) - complex numbers implemented as Lua tables
SYNOPSIS
local complex = require 'complex'
local cx1 = complex "2+3i" -- or complex.new(2, 3)
local cx2 = complex "3+2i"
assert( complex.add(cx1,cx2) == complex "5+5i" )
assert( tostring(cx1) == "2+3i" )
DESCRIPTION
... | mit |
MinetestForFun/minetest-minetestforfun-server | minetestforfun_game/mods/farming/cocoa.lua | 8 | 3987 |
local S = farming.intllib
-- place cocoa
function place_cocoa(itemstack, placer, pointed_thing, plantname)
local pt = pointed_thing
-- check if pointing at a node
if not pt or pt.type ~= "node" then
return
end
local under = minetest.get_node(pt.under)
-- return if any of the nodes are not registered
if n... | unlicense |
lipengyu/lsyncd | examples/lgforce.lua | 13 | 2277 | -----
-- User configuration file for lsyncd.
--
-- This example refers to a common problem in unix.
--
-- You have a shared directory for a set of users and you want
-- to ensure all users have read and write permissions on all
-- files in there. Unfortunally sometimes users mess with their
-- umask, and create fil... | gpl-2.0 |
kensou97/redis | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
wuha1813/redis_ffcs_src-2.8.19 | deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
holyscroll/holyscroll | plugins/anti_spam.lua | 1 | 5965 |
--An empty table for solving multiple kicking problem(thanks to @topkecleon )
kicktable = {}
do
local TIME_CHECK = 2 -- seconds
local data = load_data(_config.moderation.data)
-- Save stats, ban user
local function pre_process(msg)
-- Ignore service msg
if msg.service then
return msg
end
if msg.from.id =... | gpl-2.0 |
LuaDist2/pegex | pegex.lua | 2 | 12374 | -- Copyright (C) 2014 Chris Emerson <github@mail.nosreme.org>
-- See LICENSE for details (MIT license).
-- Support for regular expressions (parsed and implemented with LPeg).
local M = {}
local lpeg = require('lpeg')
local P = lpeg.P
local R = lpeg.R
local S = lpeg.S
local C = lpeg.C
local V = lpeg.V
local B = lpeg.B... | mit |
eladhoffer/eladtools | RecurrentLayer.lua | 2 | 4885 | local RecurrentLayer, parent = torch.class('nn.RecurrentLayer', 'nn.Module')
function RecurrentLayer:__init(layers, iterations)
self.modules = {}
self.iterations = iterations or 1
self.layers = #layers
self.saved_outputs = {}
for j=1, self.layers do
table.insert(self.modules, layers[j])
... | mit |
ntop/nDPI | wireshark/sharkfest_scripts/tcp_no_data_exchanged.lua | 3 | 4479 | --
-- (C) 2021 - ntop.org
--
-- This is going to be an example of a lua script that can be written for cybersecurity reasons.
-- TCP No Data Exchanged:
-- The TCP No Data Exchanged is a really important script to check if flows are suspicious
-- Because usually, a typic TCP traffic, have some payload and it is not 0. I... | lgpl-3.0 |
pperichon/domoticz | dzVents/runtime/persistence.lua | 6 | 5656 | -- Internal persistence library
--[[ Provides ]]
-- persistence.store(path, ...): Stores arbitrary items to the file at the given path
-- persistence.load(path): Loads files that were previously stored with store and returns them
--[[ Limitations ]]
-- Does not export userdata, threads or most function values
-- Func... | gpl-3.0 |
terrgl/MyScripts | praca-magazynier/s_magazynier.lua | 1 | 1227 | --[[
Author: Terr
License: GNU v2
Zakaz usuwania tej notki.
]]--
addEvent("obiektMagazynier", true)
addEventHandler("obiektMagazynier", root, function()
local obiekt = createObject(3800,0,0,1)
setElementData(source, "obiekt", obiekt)
setElementData(source, "wlasnosc", getPlayerName(source))
exports.bone_attach:... | gpl-2.0 |
i-z/cocos2d-x-samples | samples/FantasyWarrior3D/src/Manager.lua | 9 | 3638 | require "Helper"
local size = cc.Director:getInstance():getWinSize()
local scheduler = cc.Director:getInstance():getScheduler()
HeroPool = List.new()
DragonPool = List.new()
SlimePool = List.new()
PigletPool = List.new()
RatPool = List.new()
BossPool = List.new()
--getPoolByName
function getPoolByName(name)
if na... | mit |
dev-osrose/osIROSE-new | scripts/mobs/ai/gate_crasher.lua | 2 | 1061 | registerNpc(296, {
walk_speed = 160,
run_speed = 290,
scale = 110,
r_weapon = 0,
l_weapon = 0,
level = 1,
hp = 100,
attack = 18,
hit = 50,
def = 45,
res = 50,
avoid ... | apache-2.0 |
ToqueWillot/M2DAC | AS/TME4/TME4AS_Toque_Willot.lua | 1 | 5914 | --TME 4 AS - Auto Encodeurs
--binome Florian Toqué et Paul Willot
require 'nn'
require 'image'
mnist = require 'mnist'
-- Apprentissage par descente de gradient
function fit(mlp, criterion, data, labels, lr, nIter)
local lr = lr or 1e-4
local nIter = nIter or 1200
-- local choices = torch.LongTensor((#data... | gpl-2.0 |
Amorph/premake-dev | src/base/os.lua | 1 | 6868 | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
--
-- Same as os.execute(), but accepts string formatting arguments.
--
function os.executef(cmd, ...)
cmd = string.format(cmd, unpack(arg))
return os.execute(cmd)
end
--
-- Sc... | bsd-3-clause |
i-z/cocos2d-x-samples | samples/FantasyWarrior3D/src/cocos/cocostudio/CocoStudio.lua | 39 | 9065 |
if not json then
require "cocos.cocos2d.json"
end
ccs = ccs or {}
require "cocos.cocostudio.StudioConstants"
function ccs.sendTriggerEvent(event)
local triggerObjArr = ccs.TriggerMng.getInstance():get(event)
if nil == triggerObjArr then
return
end
for i = 1, table.getn(triggerObjArr) d... | mit |
dev-osrose/osIROSE-new | scripts/mobs/ai/master_goblin.lua | 2 | 1075 | registerNpc(286, {
walk_speed = 310,
run_speed = 850,
scale = 280,
r_weapon = 173,
l_weapon = 0,
level = 100,
hp = 204,
attack = 568,
hit = 303,
def = 532,
res = 291,
avoi... | apache-2.0 |
ld-test/colors | lua/colors.lua | 4 | 9482 | -----------------------------------------------------------------------------
-- Provides support for color manipulation in HSL color space.
--
-- http://sputnik.freewisdom.org/lib/colors/
--
-- License: MIT/X
--
-- (c) 2008 Yuri Takhteyev (yuri@freewisdom.org) *
--
-- * rgb_to_hsl() implementation was contributed by ... | mit |
Sxcret/FrenchRP | gamemode/entities/entities/letter/init.lua | 1 | 2567 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
include("commands.lua")
function ENT:Initialize()
self:SetModel("models/props_c17/paper01.mdl")
self:PhysicsInit(SOLID_VPHYSICS)
self:SetMoveType(MOVETYPE_VPHYSICS)
self:SetSolid(SOLID_VPHYSICS)
self:SetUseType(SIMPLE_USE... | mit |
PurgePJ/VouchBot | deps/utils.lua | 4 | 2724 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
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
Unless required by applicable law o... | gpl-3.0 |
mrbangi/bangii | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
robho/packages | net/prosody/files/prosody.cfg.lua | 147 | 7257 | -- Prosody Example Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at http://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running: luac -p prosody.cfg.lua
-- If there are any errors, it will let you know... | gpl-2.0 |
MinetestForFun/minetest-minetestforfun-server | mods/homedecor_modpack/computer/init.lua | 11 | 3077 | computer = {}
screwdriver = screwdriver or {}
computer.register = function (name, def)
local nodename = name
if (name:sub(1, 1) == ":") then name = name:sub(2) end
local modname, basename = name:match("^([^:]+):(.*)")
local TEXPFX = modname.."_"..basename.."_"
local ONSTATE = modname..":"..basename
local OFFSTAT... | unlicense |
nerai/OpenRA | mods/ra/maps/survival02/survival02.lua | 6 | 13221 | FrenchSquad = { "2tnk", "2tnk", "mcv" }
TimerTicks = DateTime.Minutes(10)
AttackTicks = DateTime.Seconds(52)
AttackAtFrame = DateTime.Seconds(18)
AttackAtFrameIncrement = DateTime.Seconds(18)
Producing = true
SpawningInfantry = true
ProduceAtFrame = DateTime.Seconds(12)
ProduceAtFrameIncrement = DateTime.Seconds(12)
S... | gpl-3.0 |
drunklurker/wesnoth | data/lua/wml/objectives.lua | 22 | 6719 | local helper = wesnoth.require "lua/helper.lua"
local wml_actions = wesnoth.wml_actions
local game_events = wesnoth.game_events
local function color_prefix(r, g, b)
return string.format('<span foreground="#%02x%02x%02x">', r, g, b)
end
local function insert_before_nl(s, t)
return string.gsub(tostring(s), "[^\n]*", ... | gpl-2.0 |
dostiharise/libgdx-demo-pax-britannica | android/assets/data/components/particles.lua | 11 | 6852 | local v2 = require 'dokidoki.v2'
local particles = require 'particles'
local bubble_emitter = particles.make_emitter(
game.resources.bubble_sprite.size[1],
game.resources.bubble_sprite.size[2],
game.resources.bubble_sprite.tex.name,
300,
1,
0)
local big_bubble_emitter = particles.make_emit... | mit |
bn7/darkstar | scripts/zones/Rala_Waterways_U/Zone.lua | 17 | 1103 | -----------------------------------
--
-- Zone: Rala Waterways U
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Rala_Waterways_U/TextIDs"] = nil;
require("scripts/zones/Rala_Waterways_U/TextIDs");
-----------------------------------
-- onInitialize
-------... | gpl-3.0 |
AntonioModer/Algorithm-Implementations | Bresenham_Based_Supercover_Line/Lua/Yonaba/bresenham_based_supercover.lua | 25 | 2214 | -- Bresenham-based Supercover line marching algorithm
-- See: http://lifc.univ-fcomte.fr/home/~ededu/projects/bresenham/
-- Note: This algorithm is based on Bresenham's line marching, but
-- instead of considering one step per axis, it covers all the points
-- the ideal line covers. It may be useful for example when... | mit |
persia/freeciv | dependencies/tolua-5.2/src/bin/lua/define.lua | 14 | 1243 | -- tolua: define class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: define.lua,v 1.3 2009/11/24 16:45:13 fabraham Exp $
-- 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 provi... | gpl-2.0 |
bn7/darkstar | scripts/globals/spells/knights_minne_v.lua | 27 | 1498 | -----------------------------------------
-- Spell: Knight's Minne V
-- Grants Defense bonus to all allies.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(cast... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c200019.lua | 1 | 3112 |
--绯想✿灵乌路空
function c200019.initial_effect(c)
--code
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE)
e1:SetValue(24019)
c:Register... | gpl-2.0 |
never615/ipscanner | app/src/main/assets/nmap/share/nmap/nselib/ssh1.lua | 2 | 7161 | ---
-- Functions for the SSH-1 protocol. This module also contains functions for
-- formatting key fingerprints.
--
-- @author Sven Klemm <sven@c3d2.de>
-- @copyright Same as Nmap--See http://nmap.org/book/man-legal.html
module(... or "ssh1",package.seeall)
require "bin"
require "bit"
require "math"
require "stdnse"
... | mit |
bn7/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fj.lua | 2 | 1251 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Leviathan's Gate
-- @pos 88 -34 100 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
req... | gpl-3.0 |
simonemainardi/ntopng | third-party/LuaJIT-2.0.3/dynasm/dynasm.lua | 60 | 30989 | ------------------------------------------------------------------------------
-- DynASM. A dynamic assembler for code generation engines.
-- Originally designed and implemented for LuaJIT.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- See below for full copyright notice.
----------------------------... | gpl-3.0 |
shizhai/wprobe | build_dir/target-mips_r2_uClibc-0.9.33.2/luci/modules/admin-full/dist/usr/lib/lua/luci/controller/admin/index.lua | 79 | 1245 | --[[
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$
]]--
mod... | gpl-2.0 |
bn7/darkstar | scripts/zones/Xarcabard/npcs/Telepoint.lua | 14 | 1702 | -----------------------------------
-- Area: Xarcabard
-- NPC: Telepoint
-- @pos 150.258 -21.047 -37.256 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/Xarcabard/TextIDs");... | gpl-3.0 |
mahdib9/mahl | plugins/all.lua | 54 | 4746 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c24053.lua | 1 | 4040 | --蜘蛛「石窟的蜘蛛巢」
function c24053.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c24053.target)
e1:SetOperation(c24053.activate)
c:RegisterEffect(e1)
--token
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(24053... | gpl-2.0 |
IllusionRom-deprecated/android_platform_external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
... | bsd-3-clause |
charlesbjohnson/dotfiles | config/nvim/lua/init/plugins/statusline/content.lua | 1 | 2058 | return function(options)
vim.list_extend(options.force_inactive.filetypes, {
"^alpha$",
"^help$",
"^neo%-tree$",
"^packer$",
})
local active = options.components.active
active[1][1] = {
icon = "",
provider = "vi_mode",
}
active[1][2] = {
icon = " ",
provider = "git_branch... | mit |
McDaived/Zafer | plugins/info.lua | 1 | 9925 | do
local Arian = 118424930
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'set Rank for ('..name..') To : '..val... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c999602.lua | 1 | 1341 | --探宝棒✿SE
--require "expansions/script/nef/nef"
function c999602.initial_effect(c)
--pendulum summon
local argTable = {1}
Nef.EnablePendulumAttributeSP(c,99,aux.TRUE,argTable,false)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetOperation(c999602.ac... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c25099.lua | 1 | 3918 |
--灵面-妖狐
function c25099.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetTarget(c25099.target)
e1:SetOperation(c25099.operation)
c:RegisterEffect(e1)
--negat... | gpl-2.0 |
chenbaihu/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
bn7/darkstar | scripts/zones/Dynamis-Buburimu/mobs/Goblin_Replica.lua | 22 | 1186 | -----------------------------------
-- Area: Dynamis Buburimu
-- MOB: Goblin Replica
-----------------------------------
package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/dynamis");
require("scripts/zones/Dynamis-Buburimu/TextIDs");
--------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Parukoko.lua | 14 | 1061 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Parukoko
-- Type: Standard NPC
-- @zone 94
-- @pos -32.400 -3.5 -103.666
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;
---... | gpl-3.0 |
bn7/darkstar | scripts/globals/mobskills/sand_blast.lua | 24 | 1154 | ---------------------------------------------------
-- Sand Blast
-- Deals Earth damage to targets in a fan-shaped area of effect. Additional effect: Blind
-- Range: 8' cone
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/glob... | gpl-3.0 |
LuaDist2/kong | kong/api/routes/plugins.lua | 1 | 2243 | local crud = require "kong.api.crud_helpers"
local cjson = require "cjson"
local utils = require "kong.tools.utils"
local reports = require "kong.core.reports"
local singletons = require "kong.singletons"
-- Remove functions from a schema definition so that
-- cjson can encode the schema.
local function remove_functio... | apache-2.0 |
bn7/darkstar | scripts/globals/effects/sigil.lua | 32 | 3008 | -----------------------------------
--
-- EFFECT_SIGIL
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local power = effect:getPower(); -- Tracks which bonus effects are in use.
local sub... | gpl-3.0 |
HuangYuNan/thcsvr | expansions/script/c22052.lua | 1 | 3235 | --红魔 完全潇洒的女仆.
function c22052.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x208),aux.NonTuner(Card.IsSetCard,0x208),1)
c:EnableReviveLimit()
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(22052,0))
e2:SetCategory(CATEGORY_SP... | gpl-2.0 |
bn7/darkstar | scripts/globals/items/mug_of_honeyed_egg.lua | 12 | 1284 | -----------------------------------------
-- ID: 5739
-- Item: mug_of_honeyed_egg
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 8
-- Intelligence 1
-- MP recovered while healing 1
-----------------------------------------
require("scripts/globals/status");
--------------------------... | gpl-3.0 |
bn7/darkstar | scripts/zones/Port_Bastok/npcs/Klaus.lua | 14 | 1029 | -----------------------------------
-- Area: Port Bastok
-- NPC: Klaus
-- Type: Standard NPC
-- @pos -89.355 -3.611 -15.256 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Port_Bastok/TextIDs");
---------... | gpl-3.0 |
yinjun322/quick-ng | cocos/scripting/lua-bindings/auto/api/Grid3D.lua | 9 | 1900 |
--------------------------------
-- @module Grid3D
-- @extend GridBase
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Grid3D] getNeedDepthTestForBlit
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @{<br>
-- Getter and Setter ... | mit |
bn7/darkstar | scripts/zones/Nyzul_Isle/Zone.lua | 12 | 1457 | -----------------------------------
--
-- Zone: Nyzul_Isle
--
-----------------------------------
package.loaded["scripts/zones/Nyzul_Isle/IDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/missions");
require("scripts/globals/settings");
require("scripts/z... | gpl-3.0 |
bbinet/GoIoT | shared/util/uuid.lua | 6 | 7876 | ---------------------------------------------------------------------------------------
-- Copyright 2012 Rackspace (original), 2013 Thijs Schreijer (modifications)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtai... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c22174.lua | 1 | 3227 |
--七曜-金水符「水银之毒」
function c22174.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c22174.con)
c:RegisterEffect(e1)
--activate
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(22174,0))
e2:SetType(EFFECT_TYPE_IGNITION)
... | gpl-2.0 |
HuangYuNan/thcsvr | expansions/script/c22211.lua | 1 | 2151 | --秘法使魔契约
function c22211.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22211,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,22211)
e1:SetCost(c22211.cost)
e1:SetTarget(c22211.target)
e1:SetOperation... | gpl-2.0 |
bn7/darkstar | scripts/zones/West_Sarutabaruta/npcs/Cavernous_Maw.lua | 29 | 1467 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Cavernous Maw
-- Teleports Players to West Sarutabaruta [S]
-- @pos -2.229 0.001 -162.715 115
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require("scripts... | gpl-3.0 |
Cloudef/darkstar | scripts/globals/spells/slow.lua | 2 | 1762 | -----------------------------------------
-- 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 |
zzamboni/hammerspoon | extensions/milight/init.lua | 9 | 5073 | --- === hs.milight ===
---
--- Simple controls for the MiLight LED WiFi bridge (also known as LimitlessLED and EasyBulb)
local milight = require "hs.milight.internal"
milight.cmd = milight._cacheCommands()
local milightObject = hs.getObjectMetatable("hs.milight")
--- hs.milight.minBrightness
--- Constant
--- Specifie... | mit |
GymbylCoding/Dusk-Engine | tests/memory_leaks/runtest.lua | 1 | 1031 | --------------------------------------------------------------------------------
--[[
The Runtest file for the memory leak tests.
--]]
--------------------------------------------------------------------------------
local dusk = require("Dusk.Dusk")
-- Get memory usage
local function getMem()
collectgarbage("collect... | mit |
MinetestForFun/server-minetestforfun | mods/plantlife_modpack/dryplants/crafting.lua | 7 | 10493 | -----------------------------------------------------------------------------------------------
-- Dry Plants - Recipes 0.1.0 -- Short Grass -> Dirt
-----------------------------------------------------------------------------------------------
-- by Mossmanikin
-- License (everything): WTFPL
-- Looked at code fr... | unlicense |
Cloudef/darkstar | scripts/globals/effects/dex_down.lua | 1 | 1112 | -----------------------------------
--
-- dsp.effects.DEX_DOWN
--
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
if ((target:getStat(MOD_DEX) - effe... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Lower_Jeuno/npcs/Fephita.lua | 1 | 1404 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Fephita
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/keyitems");
require("scripts/globals/chocobo");
require("scripts/globals/status");
-----------------------------------
func... | gpl-3.0 |
david-xiao/luci | applications/luci-app-privoxy/luasrc/controller/privoxy.lua | 33 | 4608 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
module("luci.controller.privoxy", package.seeall)
local NX = require "nixio"
local NXFS = require "nixio.fs"
local HTTP = require "luci.http"
local UCI = require "luci.model.uci"
l... | apache-2.0 |
jedi453/JUMP-LOVE | OB_Gate_Key.lua | 1 | 4179 | --[[
LICENSE
Copyright (c) 2014-2015 Daniel Iacoviello
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... | mit |
Cloudef/darkstar | scripts/zones/Port_Windurst/npcs/Kumama.lua | 5 | 1418 | -----------------------------------
-- Area: Port Windurst
-- NPC: Kumama
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
-----------------------------------
require("scripts/... | gpl-3.0 |
Cloudef/darkstar | scripts/zones/Port_Bastok/npcs/Ensetsu.lua | 5 | 2965 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ensetsu
-- Finish Quest: Ayame and Kaede
-- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box
-- !pos 33 -6 67 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Owlies/server | lualib/skynet.lua | 6 | 15532 | local c = require "skynet.core"
local tostring = tostring
local tonumber = tonumber
local coroutine = coroutine
local assert = assert
local pairs = pairs
local pcall = pcall
local profile = require "profile"
local coroutine_resume = profile.resume
local coroutine_yield = profile.yield
local proto = {}
local skynet =... | mit |
Cloudef/darkstar | scripts/globals/homepoint.lua | 6 | 19194 | require("scripts/globals/settings");
local homepoints = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,
26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,
51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,
76,77,78,79,80,81... | gpl-3.0 |
ArchiveTeam/inkblazers-grab | urlcode.lua | 58 | 3476 | ----------------------------------------------------------------------------
-- Utility functions for encoding/decoding of URLs.
--
-- @release $Id: urlcode.lua,v 1.10 2008/01/21 16:11:32 carregal Exp $
----------------------------------------------------------------------------
local ipairs, next, pairs, tonumber, ty... | unlicense |
Cloudef/darkstar | scripts/globals/abilities/pets/somnolence.lua | 2 | 1081 | ---------------------------------------------------
-- Somnolence
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
require("scripts/globals/magic");
---------------------------------------------------
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.