repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
musenshen/SandBoxLua | src/framework/cc/net/SocketTCP.lua | 17 | 6391 | --[[
For quick-cocos2d-x
SocketTCP lua
@author zrong (zengrong.net)
Creation: 2013-11-12
Last Modification: 2013-12-05
@see http://cn.quick-x.com/?topic=quickkydsocketfzl
]]
local SOCKET_TICK_TIME = 0.1 -- check socket data interval
local SOCKET_RECONNECT_TIME = 5 -- socket reconnect try interval
local SOCKET_CONN... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/reknor/objects.lua | 1 | 3100 | -- 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 |
RicherMans/audiodataload | JoinedDataloader.lua | 1 | 6592 | local adl = require 'audiodataload._base'
local JoinedDataloader = torch.class('adl.JoinedDataloader', 'adl.BaseDataloader',adl)
local initcheck = argcheck{
pack=true,
{
name='module',
type='adl.BaseDataloader',
help="The module to wrap around, if nil is passed we assume the data was al... | mit |
tianye910208/vi3d | lua/test/gles.lua | 1 | 2971 | print("============test_gles============")
local vShaderStr = [[
attribute vec4 a_position;
void main()
{
gl_Position = a_position;
}
]]
local fShaderStr = [[
void main()
{
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
} ... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/texts/tutorial/stats-scale/scale1.lua | 1 | 1043 | -- 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 |
sleepingwit/premake-core | src/base/global.lua | 21 | 2163 | ---
-- global.lua
-- The global container holds workspaces and rules.
-- Copyright (c) 2014-2015 Jason Perkins and the Premake project
---
local p = premake
p.global = p.api.container("global")
local global = p.global
---
-- Create a new global container instance.
---
function global.new(name)
return p.contai... | bsd-3-clause |
Blackdutchie/Zero-K | LuaRules/Configs/MetalSpots/haunteddowns.lua | 17 | 4541 | return {
spots = {
{x = 3240, z = 904, metal = 1.3},
{x = 7128, z = 4088, metal = 1.3},
{x = 3112, z = 3272, metal = 1.3},
{x = 8424, z = 4216, metal = 1.3},
{x = 4808, z = 1688, metal = 1.3},
{x = 312, z = 4888, met... | gpl-2.0 |
Blackdutchie/Zero-K | scripts/arm_venom.lua | 16 | 4422 | include "constants.lua"
include "spider_walking.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local body = piece 'body'
local turret = piece 'turret'
local gun = piece 'gun'
local flare... | gpl-2.0 |
29988122/Fate-Grand-Order_Lua | _JP_past_events/deprecated/FGO_JP_EVENT_NOT_SPECIFIED.lua | 1 | 1265 | --デフォルト
dir = scriptPath()
setImagePath(dir .. "image_JP")
stageCountRegion = Region(1724,24,38,50)
--スタミナ回復
Refill_or_Not = 0
Use_Stone = 0
How_Many = 0
--[[
オートスキル:
',' = ターン数
',#,' = BATTLE 数
'0' = 1回ターンスキップする
サーヴァントスキル = a b c d e f g h i
マスタースキル = j k l
スキルの使用対象 = 1 2 3
宝具使用 = 4 5 6
コマンドは "" の間に入力してください。
例:
S... | mit |
Blackdutchie/Zero-K | LuaUI/Widgets/gfx_halo.lua | 12 | 10613 | -- $Id: gfx_halo.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: gfx_halo.lua
-- brief:
-- author: jK
--
-- Copyright (C) 2008.
-- Licensed under ... | gpl-2.0 |
amirilk1414/i4bot | 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 |
mahdibagheri/aqa-mp3 | 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 |
feldoth/DST-Etho | scripts/prefabs/etho_remote.lua | 1 | 1937 | local assets =
{
Asset("ANIM", "anim/diviningrod.zip"),
Asset("ANIM", "anim/swap_diviningrod.zip"),
}
local prefabs =
{
"dr_hot_loop",
"dr_warmer_loop",
"dr_warm_loop_2",
"dr_warm_loop_1",
}
local EFFECTS =
{
hot = "dr_hot_loop",
warmer = "dr_warmer_loop",
warm = "dr_warm_loop_2",
... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/chronomancy/temporal-combat.lua | 1 | 15406 | -- 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 |
mrgodem/anti-ROBOT | languages.lua | 2 | 22862 | return {
en = {
pv = 'This is a command available only in a group',
not_mod = 'You are *not* a moderator',
breaks_markdown = 'This text breaks the markdown.\nCheck how many times you used * or _ or `',
ping= 'Pong!',
control = {
reload = '*Bot reloaded!*',
... | gpl-2.0 |
gwash/ion-3 | ioncore/ioncore_bindings.lua | 6 | 7492 | --
-- ion/share/ioncore-bindings.lua
--
-- Copyright (c) Tuomo Valkonen 2004-2009.
--
-- See the included file LICENSE for details.
--
local ioncore=_G.ioncore
local warn=ioncore.warn
local compiled2str=setmetatable({}, {__mode="k"})
--DOC
-- Compile string \var{cmd} into a bindable function. Within \var{cmd}, the... | lgpl-2.1 |
xen2/SharpLang | src/SharpLang.Runtime/premake4.lua | 1 | 1144 | local cmakePrepare32 = 'if not exist i686-pc-windows-gnu mkdir i686-pc-windows-gnu\r\ncd i686-pc-windows-gnu\r\ncmake ..\\..\\..\\.. -G "MinGW Makefiles"\r\n'
local cmakePrepare64 = 'if not exist x86_64-pc-windows-gnu mkdir x86_64-pc-windows-gnu\r\ncd x86_64-pc-windows-gnu\r\ncmake ..\\..\\..\\.. -G "MinGW Makefiles"\... | bsd-2-clause |
Blackdutchie/Zero-K | effects/michelle.lua | 18 | 12448 | -- michelle_ne
-- michelle_w
-- michelle
-- michelle_s
-- michelle_pacemaker
-- michelle_e
-- michelle_se
-- michelle_sw
-- michelle_n
-- michelle_nw
return {
["michelle_ne"] = {
rocks = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
g... | gpl-2.0 |
ryanplusplus/llox | src/interpret/Interpreter.lua | 1 | 8055 | local switch = require 'util.switch'
local Function = require 'interpret.Function'
local Class = require 'interpret.Class'
local Environment = require 'interpret.Environment'
local function check_types(expected, token, ...)
local operands = { ... }
for _, operand in ipairs(operands) do
if type(operand) ~= expe... | mit |
feldoth/DST-Etho | scripts/prefabs/etho_robot.lua | 1 | 3976 | require "stategraphs/SGethorobot"
local clockwork_common = require"prefabs/ethobot_common"
local assets =
{
}
local prefabs =
{
"gears",
"etho_multitool"
}
local brain = require "brains/etho_robotbrain"
local function ShouldSleep(inst)
return clockwork_common.ShouldSleep(inst)
end
local function ShouldW... | mit |
openwhisk/apigateway | scripts/lua/oauth/google.lua | 3 | 2564 | --
-- 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 may ... | mit |
daququ/nginx-lua-upload-module | nginx_upload/nginx_lua_upload.lua | 1 | 5362 | if ngx.var.package_path then
package.path = ngx.var.package_path .. ";" .. package.path
end
local posix = require "posix"
local upload = require "resty.upload"
local http_utils = require "nginx_upload.http_utils"
local string_utils = require "nginx_upload.string_utils"
local os_utils = require "nginx_upload.os_uti... | gpl-2.0 |
musenshen/SandBoxLua | src/cocos/cocostudio/DeprecatedCocoStudioFunc.lua | 39 | 3421 | --tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of GUIReader will be deprecated begin
local GUIReaderDeprecated = { }
function GUIReaderDeprecated.shareReader()
deprecatedTip("GUIReader... | mit |
ForgedAddons/StayFocused_Health | tekKonfig/tekKonfigButton.lua | 6 | 1708 |
local lib, oldminor = LibStub:NewLibrary("tekKonfig-Button", 5)
if not lib then return end
oldminor = oldminor or 0
if oldminor < 5 then
local GameTooltip = GameTooltip
local function HideTooltip() GameTooltip:Hide() end
local function ShowTooltip(self)
if self.tiptext then
GameTooltip:SetOwner(self, "ANCHOR... | apache-2.0 |
mInternauta/AgroSponsor | src/huds/hudRentMenu.lua | 1 | 10040 | -- Copyright (C) 2015 mInternauta
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later version.
-- This program is distri... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/the-master-resurrect.lua | 1 | 1148 | -- 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/blog/init.lua | 2 | 1513 | local date = require 'date'
-- The package table
blog = {}
blog.entries = {}
function blog.add_entry(name, func)
table.insert(blog.entries, {name = name, func = func})
end
function blog.open(url, d)
wx.wxLaunchDefaultBrowser(d:fmt(url))
end
-- Try to figure out the date for this puzzle
lo... | gpl-3.0 |
Blackdutchie/Zero-K | lups/ParticleClasses/Jet.lua | 14 | 6334 | -- $Id: Jet.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local Jet = {}
Jet.__index = Jet
local jit... | gpl-2.0 |
Blackdutchie/Zero-K | gamedata/modularcomms/weapons/shockrifle.lua | 6 | 1076 | local name = "commweapon_shockrifle"
local weaponDef = {
name = [[Shock Rifle]],
areaOfEffect = 16,
colormap = [[0 0 0 0 0 0 0.2 0.2 0 0 0.5 0.5 0 0 0.7 0.7 0 0 1 1 0 0 1 1]],
craterBoost = 0,
craterMult = 0,
customParams ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/towns/elvala.lua | 1 | 4030 | -- 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/quests/lightning-overload.lua | 1 | 6687 | -- 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 |
3scale/apicast | spec/policy/soap/soap_spec.lua | 1 | 4901 | local Usage = require('apicast.usage')
describe('SOAP policy', function()
describe('.rewrite', function()
local context -- Context shared between policies
local full_url = "http://www.example.com:80/path/to/myfile.html?" ..
"key1=value1&key2=value2#SomewhereInTheDocument"
-- Define a config wit... | apache-2.0 |
bsnuggs1/ObjHunt | gamemode/gui/scoreboard.lua | 3 | 10462 | surface.CreateFont( "SpectatorScoreboardObjHunt",
{
font = "Helvetica",
size = 20,
weight = 30,
antialias = true,
outline = false,
})
surface.CreateFont( "ScoreboardObjHunt",
{
font = "Helvetica",
size = 35,
weight = 30,
antialias = true,
outline = false,
})
surface.CreateFont( "PlayerObjHunt",
{
font = "Hel... | apache-2.0 |
nimaghorbani/nimatelegram | 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 |
moltafet35/darkness | 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 |
ozhanf/ozhanf---bot | 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 |
gmorishere/self | plugins/plugins.lua | 1 | 5293 | do
to_id = ""
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plu... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/maps/towns/lumberjack-village.lua | 1 | 1825 | -- 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 | LuaRules/Configs/lups_napalm_fxs.lua | 17 | 2057 | local napalm = {
default = {
colormap = { {0, 0, 0, 0.01}, {0.75, 0.75, 0.9, 0.02}, {0.45, 0.2, 0.3, 0.1}, {0.4, 0.16, 0.1, 0.12}, {0.3, 0.15, 0.01, 0.15}, {0.3, 0.15, 0.01, 0.15}, {0.3, 0.15, 0.01, 0.15}, {0.1, 0.035, 0.01, 0.15}, {0, 0, 0, 0.01} },
count = 4,
life = 175,
... | gpl-2.0 |
sleepingwit/premake-core | modules/gmake2/tests/test_gmake2_linking.lua | 12 | 5953 | --
-- test_gmake2_linking.lua
-- Validate the link step generation for makefiles.
-- (c) 2016-2017 Jason Perkins, Blizzard Entertainment and the Premake project
--
local suite = test.declare("gmake2_linking")
local p = premake
local gmake2 = p.modules.gmake2
local project = p.project
--
-- Setup and teardown
-... | bsd-3-clause |
ld-test/luasocket-unix | src/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 |
lmangani/ntopng | scripts/lua/get_hitters_data.lua | 1 | 2751 | --
-- (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')
local debug = false
local debug_process = false -- Show flow processed information
interface.select(ifname)
ifstat... | gpl-3.0 |
samuelmaddock/zombie-escape | ZombieEscape/gamemode/init.lua | 1 | 5740 | AddCSLuaFile("animations.lua")
AddCSLuaFile("cl_init.lua")
AddCSLuaFile('shared.lua')
AddCSLuaFile("sh_load.lua")
AddCSLuaFile('sh_meta.lua')
include('shared.lua')
include('sv_humans.lua')
include('sv_resources.lua')
GM.PlayerModelOverride = {}
CVars.ZSpawnLateJoin = CreateConVar( "ze_zspawn_latejoin", 1, {FCVAR_RE... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/general/objects/maces.lua | 1 | 2853 | -- 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/libs/wx/lib/toggle_button.lua | 1 | 1866 | --- A `BmpButton` toggling between two bitmaps.
--- Class BmpToggleButton
-- @section class
--- A BmpToggleButton.
-- @param parent Parent window
-- @param id Window id
-- @param collapsed The collapsed bitmap
-- @param expanded The expanded bitmap
-- @function BmpToggleButton
return function(parent, id, c... | gpl-3.0 |
teslamint/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 | 38035 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local nw = require "luci.model.network"
local ut = require "luci.util"
local nt = require "luci.sys".net
local fs = require "nixio.fs"
arg[1] = arg[1] or ""
m = Map("wi... | apache-2.0 |
froggatt/openwrt-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... | apache-2.0 |
ckuzma/apartment-internet-heater | tests/iotf-send-temp.lua | 1 | 2236 | -- Initialize BMP180
OSS = 1 -- oversampling setting (0-3)
SDA_PIN = 4 -- sda pin, GPIO2
SCL_PIN = 3 -- scl pin, GPIO0
bmp180 = require("bmp180")
bmp180.init(SDA_PIN, SCL_PIN)
-- IBM IoT Foundry Stuff:
orgID = "quickstart" -- IoT Foundation organization ID <==== "quickstart" for demo
broker = orgID..".messaging.intern... | apache-2.0 |
boundary/meter-plugin-spark | init.lua | 2 | 7109 | -- Copyright 2015 BMC Software, Inc.
--
-- 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 or agreed ... | apache-2.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/plugins/worlditemspawner.lua | 1 | 3227 | local PLUGIN = PLUGIN
PLUGIN.name = "World Item Spawner"
PLUGIN.author = "Black Tea (NS 1.0), Neon (NS 1.1)"
PLUGIN.desc = "World Item Spawner."
PLUGIN.itempoints = PLUGIN.itempoints or {}
PLUGIN.spawngroups = { -- Example is based on HL2RP items.
["ore"] = {
{"ore"},
}
}
PLUGIN.spawnrate = 30
PLUGIN.maxitems = 5... | mit |
Blackdutchie/Zero-K | LuaUI/Configs/lupsUnitFXs.lua | 4 | 23220 | -- note that the order of the MergeTable args matters for nested tables (such as colormaps)!
local presets = {
commandAuraRed = {
{class='StaticParticles', options=commandCoronaRed},
{class='GroundFlash', options=MergeTable(groundFlashRed, {radiusFactor=3.5,mobile=true,life=60,
colormap={ {1, 0.2, 0.2, 1},{1, ... | gpl-2.0 |
Blackdutchie/Zero-K | LuaRules/Configs/MetalSpots/Altored_Arctic.lua | 17 | 3564 | return {
spots = {
{x = 7832, z = 3208, metal = 1.1840000152588},
{x = 6152, z = 3816, metal = 1.9776002168655},
{x = 1128, z = 6520, metal = 1.1296001672745},
{x = 1928, z = 6312, metal = 1.8752002716064},
{x = 7256, z = 2984, metal = 1.4048000574112},
{x = 6296, z = 6936, metal = 1.1055999994278},
{x = 3256, ... | gpl-2.0 |
Blackdutchie/Zero-K | LuaRules/Gadgets/unit_transport_ai_buttons.lua | 10 | 9075 | -- $Id: unit_transport_ai_buttons.lua 3986 2009-02-22 01:56:11Z licho $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "TransportAIbuttons",
desc ... | gpl-2.0 |
crazyboy11/Sbss12 | plugins/inrealm.lua | 850 | 25085 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin(msg) then
local group_creator = msg.from.print_name
create_g... | gpl-2.0 |
xAleXXX007x/Witcher-RolePlay | witcherrp/entities/weapons/nut_crossbow.lua | 1 | 20011 | SWEP.VElements = {
["bow"] = { type = "Model", model = "models/dawnguardd/weapon_dawnguardcrossbow_dawnguardcrossbow_loaded.mdl", bone = "Crossbow_model.Crossbow_base", rel = "", pos = Vector(-0.519, 0.518, 0), angle = Angle(-92.338, -90, 0), size = Vector(1, 1, 1), color = Color(255, 255, 255, 255), surpresslightning... | mit |
mikar/awesome34-themes | bio/theme.lua | 1 | 3836 | -- bio, awesome3 theme, by bioe007
--{{{ Main
local awful = require("awful")
awful.util = require("awful.util")
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
shar... | mit |
teslamint/luci | applications/luci-app-multiwan/luasrc/controller/multiwan.lua | 62 | 1929 | module("luci.controller.multiwan", package.seeall)
function index()
local fs = require "nixio.fs"
if not fs.access("/etc/config/multiwan") then
return
end
local page
page = entry({"admin", "network", "multiwan"}, cbi("multiwan/multiwan"), _("Multi-WAN"))
page.dependent = true
entry({"admin", "network", "m... | apache-2.0 |
openwhisk/apigateway | tests/scripts/lua/security.lua | 3 | 14689 | --
-- 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 may ... | mit |
froggatt/openwrt-luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdhna.lua | 78 | 1844 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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 |
blockba5her/dispatchsystem | src/serverfiles/transactions.lua | 1 | 6121 | --[[
SERVER & CLIENT TRANSACTIONS
]]
-- Civ Transactions
function displayCivilian()
TriggerServerEvent("dispatchsystem:displayCiv", getHandle())
end
function displayVeh()
TriggerServerEvent("dispatchsystem:displayVeh", getHandle())
end
function createCivilian()
exitAllMenus()
local nameNotSplit = K... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/ancient-elven-ruins/npcs.lua | 1 | 5877 | -- 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 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJoint.lua | 7 | 1981 |
--------------------------------
-- @module PhysicsJoint
-- @parent_module cc
--------------------------------
-- @function [parent=#PhysicsJoint] getBodyA
-- @param self
-- @return PhysicsBody#PhysicsBody ret (return value: cc.PhysicsBody)
--------------------------------
-- @function [parent=#PhysicsJoint... | gpl-2.0 |
lmangani/ntopng | scripts/lua/host_sflow_distro.lua | 8 | 5608 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
require "flow_utils"
local json = require ("dkjson")
sendHTTPHeader('text/html; charset=iso-8859-1')
local debug = false
-----------------------------------
fu... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/zones/demon-plane-spell/zone.lua | 1 | 1492 | -- 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 |
froggatt/openwrt-luci | protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua | 59 | 3379 | --[[
LuCI - Lua Configuration Interface
Copyright 2011-2012 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
]]--
loc... | apache-2.0 |
githabbot/server85 | plugins/banhammer.lua | 2 | 13685 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/TMXObjectGroup.lua | 6 | 1907 |
--------------------------------
-- @module TMXObjectGroup
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @function [parent=#TMXObjectGroup] setPositionOffset
-- @param self
-- @param #vec2_table vec2
--------------------------------
-- @function [parent=#TMXObjectGroup] getProperty... | gpl-2.0 |
froggatt/openwrt-luci | applications/luci-asterisk/luasrc/model/cbi/asterisk/trunk_sip.lua | 80 | 2561 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
$Id$
]]--
l... | apache-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotarySpring.lua | 7 | 1400 |
--------------------------------
-- @module PhysicsJointRotarySpring
-- @extend PhysicsJoint
-- @parent_module cc
--------------------------------
-- @function [parent=#PhysicsJointRotarySpring] getDamping
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @f... | gpl-2.0 |
liamneit/Cornucopia | Cornucopia/Panel.lua | 1 | 1511 | --[[
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 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/script/bitExtend.lua | 14 | 1614 | -- bit operation
bit = bit or {}
bit.data32 = {}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit._b2d(arg)
local nr=0
for i=1,32 do
if arg[i] ==1 then
nr=nr+bit.data32[i]
end
end
return nr
end
function bit._d2b(arg)
arg = arg >= 0 and arg or (0xFFFFFFFF + a... | gpl-2.0 |
Cat5TV/tps_skyblock | mods/carts/rails.lua | 10 | 1752 | carts:register_rail("carts:rail", {
description = "Rail",
tiles = {
"carts_rail_straight.png", "carts_rail_curved.png",
"carts_rail_t_junction.png", "carts_rail_crossing.png"
},
inventory_image = "carts_rail_straight.png",
wield_image = "carts_rail_straight.png",
groups = carts:get_rail_groups(),
}, {})
mine... | lgpl-2.1 |
mlichvar/packages | net/smartsnmpd/files/mibs/interfaces.lua | 158 | 4833 | --
-- This file is part of SmartSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your optio... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/class/MapEffects.lua | 1 | 1368 | -- 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 |
AmyBSOD/ToME-SX | lib/scpt/corrupt.lua | 1 | 12024 | -- Definition of the corruptions
-- The Balrog corruptions
CORRUPT_BALROG_AURA = add_corruption
{
["color"] = TERM_ORANGE,
["name"] = "Balrog Aura",
["get_text"] = "A corrupted wall of flames surrounds you.",
["lose_text"] = "The wall of corrupted flames abandons you.",
["desc"] =
{
" Surrounds ... | gpl-2.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/talents/gifts/summon-melee.lua | 1 | 18297 | -- 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 |
mlichvar/packages | utils/luci-app-lxc/files/controller/lxc.lua | 26 | 4082 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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
Author: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
aliasIsolation/aliasIsolation | tools/tundra2/scripts/tundra/tools/msvc-winsdk.lua | 28 | 4318 | -- msvc-winsdk.lua - Use Microsoft Windows SDK 7.1 or later to build.
module(..., package.seeall)
local native = require "tundra.native"
local os = require "os"
if native.host_platform ~= "windows" then
error("the msvc toolset only works on windows hosts")
end
local function get_host_arch()
local snative = nati... | unlicense |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/birth/races/elf.lua | 1 | 7300 | -- 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 |
froggatt/openwrt-luci | applications/luci-olsr/luasrc/model/cbi/olsr/olsrdplugins.lua | 54 | 7297 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2009 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | apache-2.0 |
Blackdutchie/Zero-K | LuaUI/Configs/lupsFXs.lua | 8 | 14418 | VFS.Include("LuaRules/Utilities/tablefunctions.lua")
----------------------------------------------------------------------------
-- GROUNDFLASHES -----------------------------------------------------------
----------------------------------------------------------------------------
groundFlash = {
life = 40,
... | gpl-2.0 |
Blackdutchie/Zero-K | units/tele_beacon.lua | 5 | 2273 | unitDef = {
unitname = [[tele_beacon]],
name = [[Lamp]],
description = [[Teleport Bridge Entry Beacon, right click to teleport.]],
acceleration = 0,
brakeRate = 0,
buildAngle = 4096,
bui... | gpl-2.0 |
behrouz-mansoori/faranesh | plugins/groupmanager.lua | 1 | 108862 | local function modadd(msg)
local hash = "gp_lang:"..msg.chat_id_
local lang = redis:get(hash)
if not is_admin(msg) then
if not lang then
return '_You are not bot admin_'
else
return 'شما مدیر ربات نمیباشید'
end
end
local data = load_data(_config.moderation.data)
if data[tostring(msg.chat_i... | gpl-3.0 |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/quests/starter-zones.lua | 1 | 3283 | -- 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 |
saraedum/luci-packages-old | applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua | 10 | 4016 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2008-2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
htt... | apache-2.0 |
sriniiyer/codenn | src/model/nl2code.lua | 1 | 4396 |
include "utils.lua"
local debugger = require("fb.debugger")
include "MaskedLoss.lua"
require('encoder')
py = require('fb.python')
require('buildData')
server = {}
function get_predictions(xbatch, ybatch, enc, dec)
local ps = {}
for d = 1, 2 * params.layers do
ps[d] = torch.zeros(1, params.rnn_size):cuda() -- for... | mit |
electricpandafishstudios/Spoon | game/modules/tome-1.4.1/data/chats/corruptor-quest.lua | 1 | 3119 | -- 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 |
bazurbat/jagen | src/Context.lua | 1 | 2449 |
local Context = {}
function Context:new(o)
o = o or {}
setmetatable(o, self)
self.__index = self
return o
end
function Context:__rawtostring()
local saved = Context.__tostring
Context.__tostring = nil
local s = tostring(self)
Context.__tostring = saved
return s
end
function Conte... | mit |
teslamint/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/routes.lua | 58 | 2299 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("network",
translate("Routes"),
translate("Routes specify over which interface and gateway a certain host or network " ..
"can ... | apache-2.0 |
HandsomeCharming/RPG | Cocos2dx/frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Tween.lua | 7 | 1330 |
--------------------------------
-- @module Tween
-- @extend ProcessBase
-- @parent_module ccs
--------------------------------
-- @function [parent=#Tween] getAnimation
-- @param self
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
--------------------------------
-... | gpl-2.0 |
kuoruan/lede-luci | applications/luci-app-mwan3/luasrc/model/cbi/mwan/policy.lua | 6 | 2766 | -- Copyright 2014 Aedan Renner <chipdankly@gmail.com>
-- Copyright 2018 Florian Eckert <fe@dev.tdt.de>
-- Licensed to the public under the GNU General Public License v2.
dsp = require "luci.dispatcher"
uci = require "uci"
function policyCheck()
local policy_error = {}
uci.cursor():foreach("mwan3", "policy",
fun... | apache-2.0 |
GrimDerp/waifu2x | cleanup_model.lua | 34 | 1775 | require './lib/portable'
require './lib/LeakyReLU'
torch.setdefaulttensortype("torch.FloatTensor")
-- ref: https://github.com/torch/nn/issues/112#issuecomment-64427049
local function zeroDataSize(data)
if type(data) == 'table' then
for i = 1, #data do
data[i] = zeroDataSize(data[i])
end
elseif typ... | mit |
tianye910208/vi3d | tool/GenLuaGL/src/gles.lua | 1 | 14663 |
GL_DEPTH_BUFFER_BIT = 0x00000100
GL_STENCIL_BUFFER_BIT = 0x00000400
GL_COLOR_BUFFER_BIT = 0x00004000
GL_FALSE = false --0
GL_TRUE = true --1
GL_POINTS = 0x0000
GL_LINES ... | mit |
kuoruan/lede-luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_network/iface_add.lua | 6 | 3221 | -- Copyright 2009-2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local nw = require "luci.model.network".init()
local fw = require "luci.model.firewall".init()
local utl = require "luci.util"
local uci = require "luci.model.uci".cursor()
m = SimpleForm("network", tran... | apache-2.0 |
liamneit/Cornucopia | Cornucopia/Cornucopia.lua | 1 | 4262 | --[[
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 |
rtsisyk/luafun | tests/reducing.lua | 5 | 5134 | --------------------------------------------------------------------------------
-- foldl
--------------------------------------------------------------------------------
print(foldl(function(acc, x) return acc + x end, 0, range(5)))
--[[test
15
--test]]
print(foldl(operator.add, 0, range(5)))
--[[test
15
--test]]
p... | mit |
roboplus12/roboplus13 | 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 |
Blackdutchie/Zero-K | effects/gundam_vert_explosion.lua | 26 | 3091 | -- vert_explosion
return {
["vert_explosion"] = {
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.9,
circlegrowth = 25,
flashalpha = 0.9,
flashsize = 500,
ground = true,
ttl ... | gpl-2.0 |
teslamint/luci | modules/luci-mod-admin-mini/luasrc/model/cbi/mini/luci.lua | 76 | 1122 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
require "luci.config"
local fs = require "nixio.fs"
m = Map("luci", translate("Web <abbr title=\"User Interface\">UI</abbr>"), translate("Here you can customi... | apache-2.0 |
Blackdutchie/Zero-K | LuaRules/Configs/MetalSpots/Altair_Crossing_v3.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.