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 |
|---|---|---|---|---|---|
wilbefast/snowman-ludumdare31 | src/hump/signal.lua | 24 | 2729 | --[[
Copyright (c) 2012-2013 Matthias Richter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/npcs/orc-vor.lua | 1 | 5677 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/grids/slime.lua | 1 | 5261 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
mykmo/mbb-devel | mbbsh/lua/module.lua | 1 | 2148 | function modname(name)
if string.sub(name, -3) == ".so" then
return name
end
return name .. ".so"
end
function module_list(tag)
local xml
xml = mbb.request(tag)
for n, xt in ipairs(xml_tag_sort(xml.module, "_name")) do
print(xt._name)
end
end
function module_do_load(tag, name)
tag.module._name = modnam... | gpl-2.0 |
ladc/lgsl | lgsl/iter.lua | 1 | 2085 | -- iter.lua
--
-- Collection of functions for some common tasks related to iterators.
--
-- Copyright (C) 2009-2013 Francesco Abbate
--
-- 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... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/birth/classes/afflicted.lua | 1 | 5698 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
tarantonio/TheForgottenServer | data/actions/scripts/other/fluids.lua | 1 | 2103 | -- TODO: Rewrite this script using fluidtypes from LIQUIDS doc-file,
-- and correct itemid's to recieve the liquids.
local drunk = createConditionObject(CONDITION_DRUNK)
setConditionParam(drunk, CONDITION_PARAM_TICKS, 60000)
local poison = createConditionObject(CONDITION_POISON)
addDamageCondition(poison, 2, 6000, -... | gpl-2.0 |
hexahedronic/basewars | basewars_free/entities/weapons/weapon_twitch_galil/shared.lua | 2 | 1232 | SWEP.Base = "weapon_twitch_base"
if SERVER then
AddCSLuaFile ("shared.lua")
SWEP.HoldType = "smg"
end
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.PrintName = "Twitch Galil"
SWEP.Slot = 2
SWEP.IconLetter = "v"
SWEP.ViewModel = "models/weapons/v_rif_galil.mdl"
SWEP.WorldModel = "... | mit |
LinuxTeam98/Linux_TG | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
ozhanf/ozhanf---bot | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
Dyelan/API-Rues | plugins/youtube.lua | 1 | 1269 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
Facerafter/starcitizen-tools | extensions/Scribunto/engines/LuaCommon/lualib/mwInit.lua | 6 | 3939 | -- This file is for anything that needs to be set up before a Lua engine can
-- start. Things in this file may run more than once, so avoid putting anything
-- other than function definitions in it. Also, because this can run before
-- PHP can do anything, mw_interface is unavailable here.
mw = mw or {}
-- Extend pai... | gpl-3.0 |
teslamint/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrd6.lua | 68 | 16296 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "luci.util"
local ip = require "luci.ip"
local has_ipip = fs.glob("/etc/mo... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/class/generator/actor/HighPeakFinal.lua | 1 | 1903 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/techniques/sling.lua | 1 | 5621 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/spells/spells.lua | 1 | 16644 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
mrichards42/xword | lua/lxp/src/lxp/lom.lua | 14 | 1422 | -- See Copyright Notice in license.html
-- $Id: lom.lua,v 1.6 2005/06/09 19:18:40 tuler Exp $
local lxp = require "lxp"
local tinsert, tremove = table.insert, table.remove
local assert, type, print = assert, type, print
local function starttag (p, tag, attr)
local stack = p:getcallbacks().stack
local newelement... | gpl-3.0 |
teslamint/luci | applications/luci-app-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 68 | 7091 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ip = require "luci.ip"
local fs = require "nixio.fs"
if arg[1] then
mp = Map("olsrd", translate("OLSR - Plugins"))
p = mp:section(TypedSection, "Load... | apache-2.0 |
MOHAMMAD-MOSAVI/Security | plugins/stats.lua | 236 | 3989 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
saraedum/luci-packages-old | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 80 | 2172 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
froggatt/openwrt-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-codec.lua | 80 | 2172 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/objects/lore/sunwall.lua | 1 | 1077 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
kuoruan/lede-luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/disk.lua | 68 | 1180 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.statistics.rrdtool.definitions.disk", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
{
title = "%H: Disk I/O operations on %pi",
vlab... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/npcs/shertul.lua | 1 | 1411 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
lmangani/ntopng | scripts/lua/inc/change_user_password_form.lua | 10 | 2983 | print [[
<style type='text/css'>
.largegroup {
width:500px
}
</style>
<div id="password_dialog" tabindex="-1" >
<h3 id="password_dialog_label">Change ]] print(_SESSION["user"]) print [[ Password <span id="password_dialog_title"></span></h3>
<div id="password_alert_placeholder"></div>
<script>
password_alert... | gpl-3.0 |
protomech/epgp-dkp-reloaded | popups.lua | 5 | 7703 | local L = LibStub("AceLocale-3.0"):GetLocale("EPGP")
local GP = LibStub("LibGearPoints-1.2")
local DLG = LibStub("LibDialog-1.0")
DLG:Register("EPGP_CONFIRM_GP_CREDIT", {
text = "Unknown Item",
icon = [[Interface\DialogFrame\UI-Dialog-Icon-AlertNew]],
buttons = {
{
text = _G.ACCEPT,
on_click = fu... | bsd-3-clause |
tarantonio/TheForgottenServer | data/npc/scripts/addons.lua | 12 | 2219 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)... | gpl-2.0 |
saraedum/luci-packages-old | applications/luci-ahcp/luasrc/controller/ahcp.lua | 13 | 1547 | --[[
LuCI - Lua Configuration Interface
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id: init.lua... | apache-2.0 |
kuoruan/lede-luci | applications/luci-app-ngrokc/luasrc/model/cbi/ngrokc/overview.lua | 2 | 4226 | -- Mantainer : maz-1 < ohmygod19993 at gmail dot com >
m = Map("ngrokc", translate("Ngrok"),translate("Secure tunnels to localhost."))
local apply = luci.http.formvalue("cbi.apply")
if apply then
os.execute("/etc/init.d/ngrokc reload &") --... | apache-2.0 |
simeneuro/simeneurobot | 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 |
Samanstar/Learn | 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 |
LinuxTeam98/Linux_TG | 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 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/objects/egos/armor.lua | 1 | 9718 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
xAleXXX007x/Witcher-RolePlay | nutscript/gamemode/core/cl_skin.lua | 6 | 2254 | local SKIN = {}
SKIN.fontFrame = "BudgetLabel"
SKIN.fontTab = "nutSmallFont"
SKIN.fontButton = "nutSmallFont"
SKIN.Colours = table.Copy(derma.SkinList.Default.Colours)
SKIN.Colours.Window.TitleActive = Color(0, 0, 0)
SKIN.Colours.Window.TitleInactive = Color(255, 255, 255)
SKIN.Colours.Button.Normal = Color(80,... | mit |
saraedum/luci-packages-old | applications/luci-ntpc/luasrc/model/cbi/ntpc/ntpc.lua | 11 | 1310 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
h... | apache-2.0 |
sleepingwit/premake-core | modules/d/tests/test_gmake.lua | 8 | 3517 | ---
-- d/tests/test_gmake.lua
-- Automated test suite for gmake project generation.
-- Copyright (c) 2011-2015 Manu Evans and the Premake project
---
local suite = test.declare("d_make")
local p = premake
local m = p.modules.d
local make = p.make
local project = p.project
--------------------------------------... | bsd-3-clause |
zhirongw/Speech | Loader.lua | 1 | 6221 | require 'nn'
require 'torch'
require 'lmdb'
require 'xlua'
require 'paths'
tds = require 'tds'
--[[
this file defines indexer and loader:
- indexer returns different inds of nxt btach
- loader loads data from lmdb given the inds
--]]
torch.setdefaulttensortype('torch.FloatTensor')
local indexer ... | mit |
teslamint/luci | protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 52 | 4346 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password, dialnumber
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
d... | apache-2.0 |
Blackdutchie/Zero-K | LuaUI/Widgets/chili_new/controls/control.lua | 8 | 38837 | --//=============================================================================
--- Control module
--- Control fields.
-- Inherits from Object.
-- @see object.Object
-- @table Control
-- @tparam {left,top,right,bottom} padding table of padding, (default {5,5,5,5})
-- @number[opt=1.5] borderThickness border thicknes... | gpl-2.0 |
Facerafter/starcitizen-tools | extensions/Scribunto/engines/LuaCommon/lualib/ustring/ustring.lua | 1 | 30137 | local ustring = {}
-- Copy these, just in case
local S = {
byte = string.byte,
char = string.char,
len = string.len,
sub = string.sub,
find = string.find,
match = string.match,
gmatch = string.gmatch,
gsub = string.gsub,
format = string.format,
}
---- Configuration ----
-- To limit the length of strings or p... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/ruins-kor-pul/zone.lua | 1 | 2641 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
Cat5TV/tps_skyblock | mods/screwdriver/init.lua | 2 | 4827 | screwdriver = {}
screwdriver.ROTATE_FACE = 1
screwdriver.ROTATE_AXIS = 2
screwdriver.disallow = function(pos, node, user, mode, new_param2)
return false
end
screwdriver.rotate_simple = function(pos, node, user, mode, new_param2)
if mode ~= screwdriver.ROTATE_FACE then
return false
end
end
-- For attached wallmou... | lgpl-2.1 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/spells/stone.lua | 1 | 9401 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
tdubourg/geobombing | mobileapp/corona/lib/ecusson/Text.lua | 1 | 5914 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- Text.lua
--
-- An abstract layer over the Corona text fields, used to simplify how it is handled by
-- Corona.
-- It features:
-- A cleaner way t... | lgpl-3.0 |
Facerafter/starcitizen-tools | extensions/Scribunto/engines/LuaCommon/lualib/ustring/lower.lua | 14 | 16535 | -- This file is automatically generated by make-tables.php
return {
["A"] = "a",
["B"] = "b",
["C"] = "c",
["D"] = "d",
["E"] = "e",
["F"] = "f",
["G"] = "g",
["H"] = "h",
["I"] = "i",
["J"] = "j",
["K"] = "k",
["L"] = "l",
["M"] = "m",
["N"] = "n",
["O"] = "o",
["P"] = "p",
["Q"] = "q",
["R"] = "r",
... | gpl-3.0 |
Blackdutchie/Zero-K | gamedata/modularcomms/weapons/multistunner.lua | 5 | 1340 | local name = "commweapon_multistunner"
local weaponDef = {
name = [[Multi-Stunner]],
areaOfEffect = 144,
avoidFeature = false,
burst = 16,
burstRate = 0.1875,
commandFire = true,
customParams = {
muzzleEffectFire =... | gpl-2.0 |
mikejsavage/hirveserv | src/protocols/zmud.lua | 1 | 2033 | local CommandBytes = {
nameChange = string.ushort( 1 ),
chat = string.ushort( 4 ),
pm = string.ushort( 5 ),
message = string.ushort( 7 ),
pingRequest = string.ushort( 26 ),
pingResponse = string.ushort( 27 ),
stamp = string.ushort( 106 ),
}
local Commands = { }
for name, byte in pairs( CommandBytes ) do
Comma... | isc |
mrichards42/xword | scripts/libs/wx/lib/collapse.lua | 1 | 3648 | local _R = string.match(..., '^.+%.')
local ArrowButton = require(_R .. 'arrow_button')
local TextButton = require(_R .. 'text_button')
-- A panel with a title and a collapse button
local function CollapsePanel(parent, id, label)
local self = wx.wxPanel(parent, id or wx.wxID_ANY)
local sizer = wx.wxBo... | gpl-3.0 |
AmyBSOD/ToME-SX | src/lua/verbatim.lua | 1 | 1430 | -- tolua: verbatim class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: verbatim.lua,v 1.2 2001/11/26 23:00:27 darkgod 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 pr... | gpl-2.0 |
behrouz-mansoori/faranesh | libs/dkjson.lua | 1 | 19786 | -- Module options:
local always_try_using_lpeg = true
local register_global_module_table = false
local global_module_name = 'json'
-- global dependencies:
local pairs, type, tostring, tonumber, getmetatable, setmetatable, rawset =
pairs, type, tostring, tonumber, getmetatable, setmetatable, raws... | gpl-3.0 |
Blackdutchie/Zero-K | units/chicken_leaper.lua | 4 | 3808 | unitDef = {
unitname = [[chicken_leaper]],
name = [[Leaper]],
description = [[Hopping Raider]],
acceleration = 0.5,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[chicken_leape... | gpl-2.0 |
Blackdutchie/Zero-K | LuaUI/Widgets/map_draw_blocker.lua | 17 | 9188 | function widget:GetInfo()
return {
name = "Map Draw Blocker",
desc = "blocks map draws from spamers",
author = "SirMaverick",
date = "2010",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = false,
}
end
local GetPlayerList = Spring.GetPlayerList
local GetPlayerInfo = S... | gpl-2.0 |
Blackdutchie/Zero-K | units/terraunit.lua | 7 | 1714 | unitDef = {
unitname = [[terraunit]],
name = [[Terraform]],
description = [[Spent: 0]],
acceleration = 0,
brakeRate = 0,
buildCostEnergy = 1000000,
buildCostMetal = 1000000,
builder = false,
buildPic ... | gpl-2.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/schema/items/weapons/sh_dagger_steel.lua | 1 | 1405 | ITEM.name = "Стальной кинжал"
ITEM.desc = "Популярен из-за своих маленьких размеров и смертельной остроты."
ITEM.class = "nut_dagger_steel"
ITEM.weaponCategory = "secondary"
ITEM.price = 200
ITEM.category = "Оружие"
ITEM.model = "models/morrowind/silver/dagger/w_silverdagger.mdl"
ITEM.width = 2
ITEM.height = 1
ITEM.ico... | mit |
mrichards42/xword | scripts/libs/pl/data.lua | 8 | 19947 | --- Reading and querying simple tabular data.
--
-- data.read 'test.txt'
-- ==> {{10,20},{2,5},{40,50},fieldnames={'x','y'},delim=','}
--
-- Provides a way of creating basic SQL-like queries.
--
-- require 'pl'
-- local d = data.read('xyz.txt')
-- local q = d:select('x,y,z where x > 3 and z < 2 sort by y... | gpl-3.0 |
kuoruan/lede-luci | libs/luci-lib-nixio/docsrc/nixio.File.lua | 173 | 4457 | --- Large File Object.
-- Large file operations are supported up to 52 bits if the Lua number type is
-- double (default).
-- @cstyle instance
module "nixio.File"
--- Write to the file descriptor.
-- @class function
-- @name File.write
-- @usage <strong>Warning:</strong> It is not guaranteed that all data
-- in the bu... | apache-2.0 |
saraedum/luci-packages-old | modules/niu/luasrc/model/cbi/niu/wireless/bridge.lua | 51 | 2481 | local uci = require "luci.model.uci"
local cursor = uci.cursor()
if not cursor:get("wireless", "bridge") then
cursor:section("wireless", "wifi-iface", "bridge",
{device = "_", doth = "1", _niu = "1", mode = "sta", wds = "1"})
cursor:save("wireless")
end
local function deviceroute(self)
cursor:unload("wireless")
... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/objects/2hmaces.lua | 1 | 2981 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
LuaDist2/lua-nucleo | lua-nucleo/table-utils.lua | 2 | 18817 | --------------------------------------------------------------------------------
--- Small table utilities
-- @module lua-nucleo.table-utils
-- This file is a part of lua-nucleo library
-- @copyright lua-nucleo authors (see file `COPYRIGHT` for the license)
--------------------------------------------------------------... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/texts/unlock-mage_cryomancer.lua | 1 | 1689 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | LuaUI/Widgets/unit_shapes.lua | 3 | 13377 | function widget:GetInfo()
return {
name = "UnitShapes",
desc = "0.5.8.zk.02 Draws blended shapes around units and buildings",
author = "Lelousius and aegis, modded Licho, CarRepairer, jK",
date = "30.07.2010",
license = "GNU GPL, v2 or later",
layer = 2,
... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/grushnak-pride/zone.lua | 1 | 3281 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/engines/te4-1.4.1/engine/Emote.lua | 1 | 2320 | -- TE4 - T-Engine 4
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later version.... | gpl-3.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/plugins/realistic.lua | 1 | 3525 | PLUGIN.name = "Realistic effect"
PLUGIN.author = "AleXXX_007"
PLUGIN.desc = "Adds viewbobbing."
PLUGIN.currAng = PLUGIN.currAng or Angle( 0, 0, 0 )
PLUGIN.currPos = PLUGIN.currPos or Vector( 0, 0, 0 )
PLUGIN.targetAng = PLUGIN.targetAng or Angle( 0, 0, 0 )
PLUGIN.targetPos = PLUGIN.targetPos or Vector( 0, 0, 0 )
PLUGI... | mit |
Wiladams/lj2core | lj2core/ffitypes.lua | 1 | 2200 | -- these are types which are currently the same for all ports
-- in a module so rump does not import twice
-- note that even if type is same (like pollfd) if the metatype is different cannot be here due to ffi
-- TODO not sure we want these long term, merge to individual OS files.
local require, error, assert, tonumb... | mit |
RatchetJ/cqui | BTS/Choosers/TradeRouteChooser.lua | 2 | 64837 | print("Better Trade Screen loaded")
-- ===========================================================================
-- Settings
-- ===========================================================================
local alignTradeRouteYields = true
local showSortOrdersPermanently = false
------------------------------------... | mit |
froggatt/openwrt-luci | applications/luci-pbx/luasrc/model/cbi/pbx.lua | 146 | 4360 | --[[
Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com>
This file is part of luci-pbx.
luci-pbx is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | apache-2.0 |
sleepingwit/premake-core | tests/project/test_config_maps.lua | 32 | 3971 | --
-- tests/project/test_config_maps.lua
-- Test mapping from workspace to project configurations.
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_config_maps")
--
-- Setup and teardown
--
local wks, prj, cfg
function suite.setup()
wks = workspace("MyWor... | bsd-3-clause |
sleepingwit/premake-core | modules/gmake2/tests/test_gmake2_perfile_flags.lua | 8 | 2450 | --
-- gmake2_perfile_flags.lua
-- Tests compiler and linker flags for Makefiles.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local suite = test.declare("gmake2_perfile_flags")
local p = premake
local gmake2 = p.modules.gmake2
local project = p.project
--
-- Setup
--
local... | bsd-3-clause |
saraedum/luci-packages-old | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
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 |
mrichards42/xword | scripts/libs/pl/tablex.lua | 1 | 25844 | --- Extended operations on Lua tables.
--
-- See @{02-arrays.md.Useful_Operations_on_Tables|the Guide}
--
-- Dependencies: `pl.utils`, `pl.types`
-- @module pl.tablex
local utils = require ('pl.utils')
local types = require ('pl.types')
local getmetatable,setmetatable,require = getmetatable,setmetatable,require
local t... | gpl-3.0 |
ellipticaldoor/yes_only_1 | game/lua/background.lua | 1 | 1641 | bg = {}
function bg.load()
-- Colors
color = {
white = {236,240,241},
black = {52,73,94},
blue = {52,152,219},
red = {231,76,60},
blank = {255,255,255}
}
-- Intro
bg.intro = {
love.graphics.newImage("/images/intro/You.png"),
love.graphics.newImage("/images/intro/only.png"),
love.graphics.newImage... | gpl-2.0 |
mwharris1313/AutoSheet | img/sheet64.lua | 4 | 13168 | local options =
{
frames =
{
{x=0,y=0,width=64,height=64,}, -- frame 1
{x=64,y=0,width=64,height=64,}, -- frame 2
{x=128,y=0,width=64,height=64,}, -- frame 3
{x=192,y=0,width=64,height=64,}, -- frame 4
{x=256,y=0,width=64,height=64,}, -- frame 5
{x=320,y=0,width=64,height=64,}, -- frame 6 ... | apache-2.0 |
Wiladams/lj2core | testy/libc.lua | 1 | 23713 | --libc.lua
local ffi = require("ffi")
local bit = require("bit")
local band, bor = bit.band, bit.bor
local lshift, rshift = bit.lshift, bit.rshift
local C = {} -- Constants
local F = {} -- Functions
local Types = {} -- Types
-- utility functions
function F.octal(val)
return tonumber(val,8);
end
-- reverse dictionar... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/dialogs/MapMenu.lua | 1 | 11263 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | units/scorpion.lua | 1 | 9945 | unitDef = {
unitname = [[scorpion]],
name = [[Scorpion]],
description = [[Cloaked Infiltration Strider]],
acceleration = 0.26,
brakeRate = 0.26,
buildCostEnergy = 3000,
buildCostMetal = 3000,
builder = false,... | gpl-2.0 |
saraedum/luci-packages-old | applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 78 | 1325 | --[[
Luci configuration model for statistics - collectd interface 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 Lic... | apache-2.0 |
lmangani/ntopng | scripts/lua/get_filter_host.lua | 4 | 6226 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
-- Table parameters
all = _GET["all"]
host = _GET["host"]
vlan = _GET["vlan"]
key = _GET["key... | gpl-3.0 |
Blackdutchie/Zero-K | units/armca.lua | 5 | 5975 | unitDef = {
unitname = [[armca]],
name = [[Crane]],
description = [[Construction Aircraft, Builds at 4 m/s]],
acceleration = 0.1,
airStrafe = 0,
amphibious = true,
brakeRate = 0.1,
buildCostEnergy = 220,
buildCostMetal = 22... | gpl-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/external/lua/luasocket/http.lua | 45 | 12330 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------------... | gpl-2.0 |
froggatt/openwrt-luci | applications/luci-minidlna/luasrc/controller/minidlna.lua | 73 | 1448 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.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... | apache-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/quests/start-point-zero.lua | 1 | 2316 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
musenshen/SandBoxLua | src/framework/cc/mvc/ModelBase.lua | 22 | 2467 | local ModelBase = class("ModelBase")
ModelBase.idkey = "id"
ModelBase.schema = {
id = {"string"}
}
ModelBase.fields = {"id"}
local function filterProperties(properties, filter)
for i, field in ipairs(filter) do
properties[field] = nil
end
end
function ModelBase:ctor(properties)
cc(self):addCom... | mit |
xen2/SharpLang | build/premake4.lua | 1 | 3183 | -- This is the starting point of the build scripts for the project.
-- It defines the common build settings that all the projects share
-- and calls the build scripts of all the sub-projects.
config = {}
dofile "Helpers.lua"
--dofile "Tests.lua"
dofile "LLVM.lua"
solution "SharpLang"
configurations { "Debug", "Re... | bsd-2-clause |
samuelmaddock/zombie-escape | ZombieEscape/gamemode/modules/css/ents/weapons/weapon_elite/shared.lua | 1 | 3951 | if SERVER then
AddCSLuaFile()
else
SWEP.PrintName = "Dual Elites"
SWEP.Author = "Counter-Strike"
SWEP.Slot = 2
SWEP.SlotPos = 3
SWEP.IconLetter = "s"
SWEP.ViewModelFlip = false
killicon.AddFont( "weapon_elite", "CSKillIcons", SWEP.IconLetter, Color( 255, 80, 0, 255 ) )
end
SWEP.HoldType = "du... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/events/thunderstorm.lua | 1 | 2981 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/boot/dialogs/MainMenu.lua | 1 | 5226 | -- TE4 - T-Engine 4
-- Copyright (C) 2009, 2010, 2011, 2012 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any lat... | gpl-3.0 |
liamneit/Cornucopia | Cornucopia_Minimap/Instance.lua | 1 | 2133 | --[[
Edited by LiamNeit 2016
Copyright 2010-2013 João Cardoso
Cornucopia is distributed under the terms of the GNU General Public License (or the Lesser GPL).
This file is part of Cornucopia.
Cornucopia is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... | gpl-3.0 |
crazyboy11/Sbss12 | 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 |
ladc/lgsl | lgsl/linfit.lua | 1 | 1969 | -- linfit.lua
--
-- Linear least squares fitting function.
--
-- Copyright (C) 2009-2015 Francesco Abbate
--
-- 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 3 of the License,... | gpl-3.0 |
teslamint/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/tcpconns.lua | 68 | 1143 | -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("TCPConns Plugin Configuration"),
translate(
"The tcpconns plugin collects informations about open tcp " ..
"connections on selected ports."
))
-- ... | apache-2.0 |
Blackdutchie/Zero-K | LuaRules/Configs/MetalSpots/Altair_Crossing-V1.lua | 38 | 1516 | return {
spots = {
{x = 3864, z = 2136, metal = 2.2},
{x = 888, z = 4024, metal = 1},
{x = 3944, z = 184, metal = 1},
{x = 568, z = 1928, metal = 2.2},
{x = 1528, z = 1560, metal = 2.6},
{x = 3640, z = 2056, metal = ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/spells/ice.lua | 1 | 8749 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
Blackdutchie/Zero-K | units/corraid.lua | 1 | 6876 | unitDef = {
unitname = [[corraid]],
name = [[Ravager]],
description = [[Assault Vehicle]],
acceleration = 0.027,
brakeRate = 0.0385,
buildCostEnergy = 250,
buildCostMetal = 250,
builder = false,
buildPic ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/lore/sunwall.lua | 1 | 5605 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
mrichards42/xword | scripts/xword/pkgmgr/updater/dummydata.lua | 2 | 6544 | return {
{
name="testing",
packagename="testing",
version="1",
description = "This is a test description.",
download="no"
},
{
name = "A-Z",
packagename = "a2z",
requires = "0.5",
download = "http://sourceforge.net/projects/... | gpl-3.0 |
Blackdutchie/Zero-K | LuaRules/Deploy/main.lua | 8 | 28450 | -- $Id: main.lua 4534 2009-05-04 23:35:06Z licho $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: LuaRules/Deploy/main.lua
-- brief: deployment game mode
-- author: Dave Rodgers
--
-- ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/lore/age-allure.lua | 1 | 28188 | -- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2016 Nicolas Casalini
--
-- 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 3 of the License, or
-- (at your option) any later ... | gpl-3.0 |
teslamint/luci | modules/luci-base/luasrc/controller/admin/servicectl.lua | 28 | 1167 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.servicectl", package.seeall)
function index()
entry({"servicectl"}, alias("servicectl", "status")).sysauth = "root"
entry({"servicectl", "status"}, call("action_status")).leaf = ... | apache-2.0 |
3scale/apicast | gateway/src/apicast/cli/environment.lua | 1 | 7679 | --- Environment configuration
-- @module environment
-- This module is providing a configuration to APIcast before and during its initialization.
-- You can load several configuration files.
-- Fields from the ones added later override fields from the previous configurations.
local pl_path = require('pl.path')
local re... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.