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 |
|---|---|---|---|---|---|
rlcevg/Zero-K | LuaUI/Widgets/dbg_stuckkeys.lua | 18 | 1634 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Stuck Keys",
desc = "v0.01 Alerts user when a key is stuck.",
author = "CarRepairer",
... | gpl-2.0 |
VladimirTyrin/wireshark | test/lua/dir.lua | 31 | 6467 | -- test script for wslua Dir functions
------------- helper funcs ------------
local total_tests = 0
local function testing(name)
print("---- Testing "..name.." ---- ")
end
local function test(name, ...)
total_tests = total_tests + 1
io.stdout:write("test "..name.."-"..total_tests.."...")
if (...) =... | gpl-2.0 |
rlcevg/Zero-K | effects/corpun.lua | 25 | 1956 | -- corpun_shockwave
return {
["corpun_shockwave"] = {
clouds0 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
underwater = 0,
water = false,
properties = {
aird... | gpl-2.0 |
cailyoung/CommandPost | src/extensions/cp/apple/finalcutpro/plugins/guiscan.lua | 1 | 20650 | local log = require("hs.logger").new("guiscan")
local dialog = require("cp.dialog")
local fcp = require("cp.apple.finalcutpro")
local plugins = require("cp.apple.finalcutpro.plugins")
local just = require("cp.just")
local insert, remove = table.insert, table.remove
local format = string.format
... | mit |
AOKP/external_skia | tools/lua/skia.lua | 207 | 1863 | -- Experimental helpers for skia --
function string.startsWith(String,Start)
return string.sub(String,1,string.len(Start))==Start
end
function string.endsWith(String,End)
return End=='' or string.sub(String,-string.len(End))==End
end
Sk = {}
function Sk.isFinite(x)
return x * 0 == 0
end
----------------... | bsd-3-clause |
rlcevg/Zero-K | LuaUI/Widgets/gui_chili_rejoin_progress.lua | 9 | 16494 | function widget:GetInfo()
return {
name = "Chili Rejoining Progress Bar",
desc = "v1.132 Show the progress of rejoining and temporarily turn-off Text-To-Speech while rejoining",
author = "msafwan (use UI from KingRaptor's Chili-Vote) ",
date = "Oct 10, 2012",
license = "GNU GPL... | gpl-2.0 |
Unrepentant-Atheist/mame | 3rdparty/genie/src/_premake_main.lua | 6 | 4416 | --
-- _premake_main.lua
-- Script-side entry point for the main program logic.
-- Copyright (c) 2002-2011 Jason Perkins and the Premake project
--
_WORKING_DIR = os.getcwd()
--
-- Inject a new target platform into each solution; called if the --platform
-- argument was specified on the command line.
--
loc... | gpl-2.0 |
Satoshi-t/Re-SBS | lang/zh_CN/Package/SPPackage.lua | 1 | 39476 | -- translation for SP Package
return {
["sp"] = "SP",
["#yangxiu"] = "恃才放旷",
["yangxiu"] = "杨修",
["illustrator:yangxiu"] = "张可",
["jilei"] = "鸡肋",
[":jilei"] = "每当你受到伤害后,你可以选择一种牌的类别,伤害来源不能使用、打出或弃置其该类别的手牌,直到回合结束。",
["@jilei_basic"] = "鸡肋(基本牌)",
["@jilei_equip"] = "鸡肋(装备牌)",
["@jilei_trick"] = "鸡肋(锦囊牌)",
["da... | gpl-3.0 |
notcake/glib | lua/glib/databases/mysqldatabase.lua | 1 | 1820 | -- MySQL1.8
local self = {}
GLib.Databases.MySqlDatabase = GLib.MakeConstructor (self, GLib.Databases.IDatabase)
local loaded = false
function self:ctor ()
self.Database = nil
if not loaded then
require ("mysql")
loaded = true
end
end
function self:Connect (server, port, username, password, d... | gpl-3.0 |
AliKhodadad/Telebot | plugins/all.lua | 1321 | 4661 | 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 |
aqasaeed/fix | plugins/inrealm.lua | 1 | 18414 | -- 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_realmM(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator... | gpl-2.0 |
anholt/ValyriaTear | dat/battles/characters_animations/kalya_throw_stone.lua | 4 | 5809 | -- Filename: thanis_attack.lua
-- This file is scripting Bronann's attack animation, called by attack skills.
-- The initialize() function is called once, followed by calls to the update function.
-- When the update function returns true, the attack is finished.
-- Set the namespace
local ns = {};
setmetatable(ns, {__... | gpl-2.0 |
anholt/ValyriaTear | dat/actors/map_objects.lua | 1 | 15305 | objects = {}
objects["Barrel1"] = {
animation_filename = "img/sprites/map/objects/barrel1.lua",
coll_half_width = 0.78,
coll_height = 1.6,
img_half_width = 0.78,
img_height = 2.125
}
objects["Bed1"] = {
animation_filename = "img/sprites/map/objects/bed1.lua",
coll_half_width = 1.75,
co... | gpl-2.0 |
notcake/glib | lua/glib/lua/decompiler/tableconstant.lua | 1 | 2973 | local self = {}
GLib.Lua.TableConstant = GLib.MakeConstructor (self, GLib.Lua.GarbageCollectedConstant)
function self:ctor (str)
self.Type = GLib.Lua.GarbageCollectedConstantType.Table
self.ArrayCount = 0
self.HashCount = 0
self.ArrayElements = {}
self.HashKeys = {}
self.HashValues = {}
self.Val... | gpl-3.0 |
stas2z/openwrt-witi | package/luci/modules/luci-mod-admin-mini/luasrc/model/cbi/mini/wifi.lua | 48 | 11450 | -- 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.
-- Data init --
local fs = require "nixio.fs"
local sys = require "luci.sys"
local uci = require "luci.model.uci".cursor()
if not uci:get("network", "wan") ... | gpl-2.0 |
rlcevg/Zero-K | LuaUI/Configs/nubtron_config.lua | 12 | 8942 | --[[
INSTRUCTIONS
Choose names for the unitClass table and use those names in conditions.
For example if you use "Con" then you must use "ConSelected" not "conSelected":
local unitClasses = {
Con = { 'armrectr' },
}
local steps = {
selectCon = {
image = unitClasses.Con[1] ..'.png',
passIfAny = { 'ConSelecte... | gpl-2.0 |
nbkmmw/-m1_l1 | plugins/ar-supergroup.lua | 1 | 80814 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ Orders : الاوامر ▀▄ ▄▀
▀▄... | gpl-2.0 |
rlcevg/Zero-K | LuaUI/Widgets/unit_jumper_jumpOverObstacle.lua | 5 | 20448 | local version = "v0.507"
function widget:GetInfo()
return {
name = "Auto Jump Over Terrain",
desc = version .. " Jumper automatically jump over terrain or buildings if it shorten walk time.",
author = "Msafwan",
date = "4 February 2014",
license = "GNU GPL, v2 or later",
layer... | gpl-2.0 |
Satoshi-t/Re-SBS | lua/ai/sp-ai.lua | 1 | 95602 | sgs.weapon_range.SPMoonSpear = 3
sgs.ai_skill_playerchosen.sp_moonspear = function(self, targets)
targets = sgs.QList2Table(targets)
self:sort(targets, "defense")
for _, target in ipairs(targets) do
if self:isEnemy(target) and self:damageIsEffective(target) and sgs.isGoodTarget(target, targets, self) then
retu... | gpl-3.0 |
rlcevg/Zero-K | LuaUI/Widgets/init_startup_info_selector.lua | 1 | 9334 | local versionNumber = "1.22"
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Startup Info and Selector",
desc = "[v" .. string.format("%s", versionNumber ) ..... | gpl-2.0 |
rlcevg/Zero-K | scripts/nanoaim.h.lua | 15 | 2783 | -------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------
--
-- Author: jK @ 2010
--
-- How to use:
--
-- 1. Add to the start of your script: include "nanoaim.h.lua"
-- 2. After you define your piec... | gpl-2.0 |
stas2z/openwrt-witi | package/luci/modules/luci-base/luasrc/sys.lua | 40 | 15171 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local os = require "os"
local table = require "table"
local nixio = require "nixio"
local fs = require "nixio.fs"
local uci = require "luci.model.uci"
local luci = {}
l... | gpl-2.0 |
Unrepentant-Atheist/mame | 3rdparty/genie/src/actions/fastbuild/fastbuild_solution.lua | 41 | 5961 | -- Generates a FASTBuild config file for a solution.
-- Note that table order iteration should be deterministic, so the .bff file content is not
-- arbitrarily changed each time it's generated. There are several places in this file
-- where sorts are done for that reason.
function premake.fastbuild.solution(sln)
-... | gpl-2.0 |
Jeffyrao/nn | NarrowTable.lua | 38 | 1151 | local NarrowTable, parent = torch.class('nn.NarrowTable', 'nn.Module')
function NarrowTable:__init(offset, length)
parent.__init(self)
self.offset = offset
self.length = length or 1
if not offset then
error('nn.NarrowTable(offset, length)')
end
self.output = {}
self.gradInput = {}
end
f... | bsd-3-clause |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/luarocks/fetch/svn.lua | 14 | 2187 |
--- Fetch back-end for retrieving sources from Subversion.
--module("luarocks.fetch.svn", package.seeall)
local svn = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
--- Download sources for building a rock, using S... | mit |
ikstream/Minstrel-Blues | measurement/minstrel-measurement/bin/fetch_file.lua | 1 | 1382 |
misc = require ('misc')
local argparse = require "argparse"
local parser = argparse("fetch_file", "dump file continuously to stdout")
parser:argument("filename", "Filename to fetch.")
parser:flag ("-l --line", "Read line by line", false )
parser:flag ("-b --binary", "Read binary file", false )
parser:option ("-i --in... | gpl-2.0 |
simpla-fusion/SimPla | scripts/configure/cold_plasma.lua | 1 | 3329 | Description="For Cold Plasma Dispersion" -- description or other text things.
-- SI Unit System
c = 299792458 -- m/s
e=1.60217656e-19 -- C
me=9.10938291e-31 --kg
mp=1.672621777e-27 --kg
mp_me=1836.15267245 --
KeV = 1.1604e7 -- K
Tesla = 1.0 -- Tesla
PI=3.141592653589793
TWOPI=PI*2
k_B=1.3806488e-23 --... | bsd-3-clause |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/physics/init.lua | 1 | 1742 | -- a Mod for keeping track of a player's current
-- physics properties and allows building layers of
-- physics across multiple mods
-- physics persist across sessions and server shutdowns
physics = {}
function physics.adjust_physics(player,_physics)
local name = player:get_player_name()
for p,v in pairs(_physics)... | mit |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/mg_villages/spawn_player.lua | 1 | 1525 |
function mg_villages.spawnplayer(player)
if( minetest.setting_get("static_spawnpoint")) then
return;
end
-- make sure the village types are initialized
if( not( mg_villages.village_types )) then
mg_villages.init_weights();
end
local noise1 = minetest.get_perlin(12345, 6, 0.5, 256)
local min_dist = math.h... | mit |
Jennal/cocos2dx-3.2-qt | cocos/scripting/lua-bindings/auto/api/CCBReader.lua | 6 | 3794 |
--------------------------------
-- @module CCBReader
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @function [parent=#CCBReader] addOwnerOutletName
-- @param self
-- @param #string str
--------------------------------
-- @function [parent=#CCBReader] getOwnerCallbackNames
-- @par... | mit |
rlcevg/Zero-K | units/corthud.lua | 6 | 5705 | unitDef = {
unitname = [[corthud]],
name = [[Thug]],
description = [[Shielded Assault Bot]],
acceleration = 0.25,
activateWhenBuilt = true,
brakeRate = 0.22,
buildCostEnergy = 180,
buildCostMetal = 180,
buildPic = [[CORTHUD.png]]... | gpl-2.0 |
EliHar/Pattern_recognition | openface1/training/torch-TripletEmbedding/test.lua | 3 | 1950 | --------------------------------------------------------------------------------
-- Test function for TripletEmbeddingCriterion
--------------------------------------------------------------------------------
-- Alfredo Canziani, Apr/May 15
-------------------------------------------------------------------------------... | mit |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/modules/nameplates/elements/NPCTitle.lua | 2 | 1646 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("NamePlates")
local mod = _NamePlates
local LSM = LibStub("LibSharedMedia-3.0")
local tooltip = CreateFrame("GameTooltip", "RayUI_NPCTitle", UIParent, "GameTo... | mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/nn/DepthConcat.lua | 9 | 4601 | ------------------------------------------------------------------------
--[[ DepthConcat ]]--
-- Concatenates the output of Convolutions along the depth dimension
-- (nOutputFrame). This is used to implement the DepthConcat layer
-- of the Going deeper with convolutions paper :
-- http://arxiv.org/pdf/1409.4842v1.pdf
... | mit |
joaocc/ta3d-git | src/netserver/netserver.lua | 2 | 35514 | #!/usr/bin/lua
if log_file == nil then
log_file = io.open("netserver.log","w")
end
function log_debug(...)
local msg = os.date() .. " [debug] " .. table.concat({...}," ")
print(msg)
log_file:write(msg)
log_file:write("\n")
log_file:flush()
end
function log_error(...)
local msg = os.date()... | gpl-2.0 |
anholt/ValyriaTear | dat/tilesets/mountain_house_exterior.lua | 4 | 11981 | tileset = {}
tileset.image = "img/tilesets/mountain_house_exterior.png"
tileset.num_tile_cols = 16
tileset.num_tile_rows = 16
-- The general walkability of the tiles in the tileset. Zero indicates walkable. One tile has four walkable quadrants listed as: NW corner, NE corner, SW corner, SE corner.
tileset.walkability... | gpl-2.0 |
rlcevg/Zero-K | units/roost.lua | 2 | 3459 | unitDef = {
unitname = [[roost]],
name = [[Roost]],
description = [[Spawns Chicken]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle = 4096,
buildCostEnergy = 340,
buildCostMetal = 340,
builder = false,
buildPic ... | gpl-2.0 |
pielover88888/denice | lua/functions.lua | 2 | 2062 | -- global variable for xml lib
xml = require('LuaXml')
-- select words above threshold size and add to a table
function big_words(str, thresh)
local r = {}
for i,word in pairs(str_split(str, " ")) do
if word:len() >= thresh then
r[#r+1] = word
end
end
return r
end
-- split string by separator
function str_... | mit |
upsoft/Atlas | lib/proxy/tokenizer.lua | 41 | 6215 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
rlcevg/Zero-K | LuaRules/Configs/lups_projectile_fxs.lua | 12 | 3125 | local MergeTable = Spring.Utilities.MergeTable
local fx = {
flame_heat = {
class = 'JitterParticles2',
colormap = { {1,1,1,1},{1,1,1,1} },
count = 6,
life = 24,
delaySpread = 25,
force = {-10,0,0},
--forceExp = 0.2,
emitRotSprea... | gpl-2.0 |
avataronline/avatarclient | data/locales/Nova pasta/sv.lua | 7 | 17580 | -- thanks cometangel, who made these translations
locale = {
name = "sv",
charset = "cp1252",
languageName = "Svenska",
formatNumbers = true,
decimalSeperator = ',',
thousandsSeperator = ' ',
translation = {
["1a) Offensive Name"] = "1a) Offensivt Namn",
["1b) Invalid Name Format"] = "1b) Ogilt... | mit |
stanfordnlp/treelstm | relatedness/main.lua | 10 | 5522 | --[[
Training script for semantic relatedness prediction on the SICK dataset.
--]]
require('..')
-- Pearson correlation
function pearson(x, y)
x = x - x:mean()
y = y - y:mean()
return x:dot(y) / (x:norm() * y:norm())
end
-- read command line arguments
local args = lapp [[
Training script for semantic relat... | gpl-2.0 |
rlcevg/Zero-K | effects/ataalaser.lua | 8 | 4970 | return {
["ataalaser"] = {
groundsmoke = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = 0,
unit = 1,
properties = {
airdrag = 0.8,
colormap = [[0.2 0 0.25 1 0.4 0 0.7 1 0 0 0 0]],
dir... | gpl-2.0 |
EliHar/Pattern_recognition | openface1/training/attic/test-hardNeg.lua | 8 | 6898 | -- Copyright 2015-2016 Carnegie Mellon University
--
-- 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 ... | mit |
TeleBang/bangtg | plugins/funhelp.lua | 2 | 2826 | do
function run(msg, matches)
if msg.to.type == 'channel' and is_momod(msg) then
return ''..[[
➖➖➖➖➖➖➖
✔️لیست دستورات فان:
➖➖➖➖➖➖➖
💢》#فعالان گروه
❔لیست سه فعال گروه
💢》#درباره من
❔اطلاعاتی درباره شما
💢》#استیکر نوشته (کلمه)
❔نوشتن متن بر روی استیکر
💢》#استیکر
❔تبدیل عکس به استیکر با ریپلی بر روی عکس
💢》#عکس
❔تب... | agpl-3.0 |
DrFR0ST/Human-Apocalypse | lib/shine/init.lua | 7 | 3313 | --[[
The MIT License (MIT)
Copyright (c) 2015 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, m... | mit |
cailyoung/CommandPost | src/extensions/cp/apple/finalcutpro/main/KeywordEditor.lua | 1 | 17340 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- F I N A L C U T P R O A P I --
-----------------------------------------------------------------------------... | mit |
mrjon1/kpbot | plugins/get.lua | 613 | 1067 | local function get_variables_hash(msg)
if msg.to.type == 'chat' then
return 'chat:'..msg.to.id..':variables'
end
if msg.to.type == 'user' then
return 'user:'..msg.from.id..':variables'
end
end
local function list_variables(msg)
local hash = get_variables_hash(msg)
if hash then
local names =... | gpl-2.0 |
avataronline/avatarclient | modules/game_shadermanager/shadermanager.lua | 1 | 1859 | local MapShaders = {
["default"] = { path = "/data/shaders/default.frag" };
["temple_effect"] = { path = "/data/shaders/temple_effect.frag" };
["red_alert"] = {path = "/data/shaders/red_alert.frag"};
["challenge_effect"] = {path = "/data/shaders/challenge_effect.frag"};
["test1"] = {path = "/data/shaders/test1.fra... | mit |
botme2018/sky202020 | tg/tdcli.lua | 102 | 88571 | --[[
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 distributed in the hope that it will be use... | gpl-3.0 |
Jennal/cocos2dx-3.2-qt | cocos/scripting/lua-bindings/auto/api/CardinalSplineTo.lua | 7 | 1438 |
--------------------------------
-- @module CardinalSplineTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- @function [parent=#CardinalSplineTo] getPoints
-- @param self
-- @return point_table#point_table ret (return value: point_table)
--------------------------------
--... | mit |
stas2z/openwrt-witi | package/luci/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 75 | 2451 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
if luci.http.formvalue("cbid.luci.1._list") then
luci.http.redirect(luci.dispatcher.build_url("admin/system/flashops/backupfiles") .. "?display=list")
elseif ... | gpl-2.0 |
ZyX-I/luassert | src/mock.lua | 5 | 1402 | -- module will return a mock module table, and will not register any assertions
local spy = require 'luassert.spy'
local stub = require 'luassert.stub'
local function mock_apply(object, action)
if type(object) ~= "table" then return end
if spy.is_spy(object) then
return object[action](object)
end
for k,v i... | mit |
drcforbin/rwte | lua/util.lua | 1 | 1588 | local util = {}
-- set the magic bit for a color value
function util.truecolor(color)
return color | 0x1000000
end
function util.bench(func, samples, batch_size)
local times = {}
for j=1, samples do
local t1 = os.clock()
for i=1, batch_size do
res = func()
end
... | mit |
rlcevg/Zero-K | LuaUI/Widgets/camera_cofc.lua | 1 | 88891 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Combo Overhead/Free Camera (experimental)",
desc = "v0.138 Camera featuring 6 actions. Type \2... | gpl-2.0 |
ViolyS/RayUI_VS | Interface/AddOns/Skada/InlineDisplay.lua | 1 | 21751 | local L = LibStub("AceLocale-3.0"):GetLocale("Skada", false)
local Skada = Skada
local name = L["Inline bar display"]
local mod = Skada:NewModule(name)
local mybars = {}
local barlibrary = {
bars = {},
nextuuid = 1
}
local leftmargin = 40
local ttactive = false
local libwindow = LibStub("LibWindow-1.1")
local... | mit |
rlcevg/Zero-K | units/destroyer.lua | 4 | 6504 | unitDef = {
unitname = [[destroyer]],
name = [[Daimyo]],
description = [[Destroyer (Riot/Antisub)]],
acceleration = 0.0417,
activateWhenBuilt = true,
brakeRate = 0.142,
buildAngle = 16384,
buildCostEnergy = 700,
... | gpl-2.0 |
rlcevg/Zero-K | LuaUI/Widgets/chili_new/controls/screen.lua | 8 | 7553 | --- Screen module
--- Screen fields.
-- Inherits from Object.
-- @see object.Object
-- @table Screen
-- @int[opt=0] x x position
-- @int[opt=0] y y position
-- @int[opt=0] width width
-- @int[opt=0] height height
-- @tparam control.Control activeControl active control
-- @tparam control.Control focusedControl focused ... | gpl-2.0 |
rlcevg/Zero-K | effects/mary_sue.lua | 25 | 5718 | -- mary_sue_fireball1
-- mary_sue_fireball3
-- mary_sue
-- mary_sue_fireball2
return {
["mary_sue_fireball1"] = {
wezels = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
... | gpl-2.0 |
stas2z/openwrt-witi | package/alt/luci-app-vsftpd/files/usr/lib/lua/luci/controller/vsftpd.lua | 1 | 2064 | --[[
LuCI - Lua Configuration Interface - vsftpd support
Script by Admin @ NVACG.org (af_xj@hotmail.com , xujun@smm.cn)
Some codes is based on luci-app-upnp, TKS.
The Author of luci-app-upnp is Steven Barth <steven@midlink.org> and Jo-Philipp Wich <xm@subsignal.org>
Licensed under the GPL License, Version 3.0 (the "l... | gpl-2.0 |
rlcevg/Zero-K | LuaUI/Widgets/gui_nukeButton.lua | 3 | 17189 | local versionNumber = "1.3.4"
function widget:GetInfo()
return {
name = "Nuke Button Zero-K",
desc = "[v" .. string.format("%s", versionNumber ) .. "] Displays Nuke Button",
author = "very_bad_soldier / versus666",
date = "July 19, 2009 / September 08, 2010",
license = "GNU GPL v2",
la... | gpl-2.0 |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/moreblocks/nodes.lua | 2 | 12304 | --[[
More Blocks: node definitions
Copyright (c) 2011-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
--]]
local S = moreblocks.intllib
local sound_wood = default.node_sound_wood_defaults()
local sound_stone = default.node_sound_stone_defaults()
local sound_glass ... | mit |
joole/private-pkgs | luci/applications/luci-app-shadowsocks/files/luci/model/cbi/shadowsocks/servers-details.lua | 3 | 2058 | -- Copyright (C) 2016-2017 Jian Chang <aa65535@live.com>
-- Licensed to the public under the GNU General Public License v3.
local m, s, o
local shadowsocks = "shadowsocks"
local sid = arg[1]
local encrypt_methods = {
"rc4-md5",
"aes-128-cfb",
"aes-192-cfb",
"aes-256-cfb",
"aes-128-ctr",
"aes-192-ctr",
"aes-256-... | gpl-2.0 |
ViolyS/RayUI_VS | Interface/AddOns/RayUI_Options/libs/AceGUI-3.0-SharedMediaWidgets/Libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 3 | 8912 | --[[-----------------------------------------------------------------------------
Frame Container
-------------------------------------------------------------------------------]]
local Type, Version = "Frame", 22
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or ... | mit |
Satoshi-t/Re-SBS | lua/ai/ol-ai.lua | 1 | 28825 | sgs.ai_skill_choice.olmiji_draw = function(self, choices)
return "" .. self.player:getLostHp()
end
sgs.ai_skill_invoke.olmiji = function(self, data)
if #self.friends == 0 then return false end
for _, friend in ipairs(self.friends) do
if not friend:hasSkill("manjuan") and not self:isLihunTarget(frie... | gpl-3.0 |
Jigoku/boxclip | src/entities/pickups.lua | 1 | 5032 | --[[
* Copyright (C) 2015 - 2022 Ricky K. Thomson
*
* 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.
* This progra... | gpl-3.0 |
minetest-australopithecus/minetest-australopithecus | mods/core/mechanics/removetopping.lua | 1 | 1571 | --[[
Australopithecus, a game for Minetest.
Copyright (C) 2015, Robert 'Bobby' Zenz
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any l... | lgpl-2.1 |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/bushes/cooking.lua | 2 | 1952 | -- Basket
minetest.register_node("bushes:basket_empty", {
description = "Basket",
tiles = {
"bushes_basket_empty_top.png",
"bushes_basket_bottom.png",
"bushes_basket_side.png"
},
groups = { dig_immediate = 3 },
})
minetest.register_craft({
output = 'bushes:basket_empty',
recipe = {
{ 'defau... | mit |
circlespainter/FrameworkBenchmarks | frameworks/Lua/lapis/web.lua | 72 | 5957 | local lapis = require("lapis")
local db = require("lapis.db")
local Model
do
local _obj_0 = require("lapis.db.model")
Model = _obj_0.Model
end
local config
do
local _obj_0 = require("lapis.config")
config = _obj_0.config
end
local insert
do
local _obj_0 = table
insert = _obj_0.insert
end
local sort
do
loc... | bsd-3-clause |
mrjon1/kpbot | plugins/img_google.lua | 660 | 3196 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
medialab-prado/Interactivos-15-Ego | minetest-ego/builtin/mainmenu/tab_multiplayer.lua | 2 | 8128 | --Minetest
--Copyright (C) 2014 sapier
--
--This program is free software; you can redistribute it and/or modify
--it under the terms of the GNU Lesser General Public License as published by
--the Free Software Foundation; either version 2.1 of the License, or
--(at your option) any later version.
--
--This program is ... | mit |
EliHar/Pattern_recognition | torch1/extra/cudnn/SpatialCrossEntropyCriterion.lua | 4 | 2958 | require 'nn'
local SpatialCrossEntropyCriterion, parent = torch.class('cudnn.SpatialCrossEntropyCriterion', 'nn.Criterion')
--[[
This criterion does the SpatialCrossEntropyCriterion across
the feature dimension for a N-channel image of HxW in size.
It only supports mini-batches (4D input, 3D target)
... | mit |
cloudkick/ck-agent | extern/luasocket/src/tp.lua | 146 | 3608 | -----------------------------------------------------------------------------
-- Unified SMTP/FTP subsystem
-- LuaSocket toolkit.
-- Author: Diego Nehab
-- RCS ID: $Id: tp.lua,v 1.22 2006/03/14 09:04:15 diego Exp $
-----------------------------------------------------------------------------
--------------------------... | apache-2.0 |
sanjeevtripurari/hue | tools/wrk-scripts/lib/uri-f570bf7.lua | 22 | 6368 | -- The MIT License (MIT)
--
-- Copyright (c) 2014 Cyril David <cyx@cyx.is>
-- Copyright (c) 2011-2013 Bertrand Mansion <bmansion@mamasam.com>
--
-- 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 So... | apache-2.0 |
Mehranhpr/spam | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
abbasgh12345/Abbas01 | plugins/webshot.lua | 919 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
AnahitaParsa/telemax | plugins/time.lua | 771 | 2865 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
dromozoa/dromozoa-regexp | dromozoa/regexp/automaton.lua | 3 | 5463 | -- Copyright (C) 2015 Tomoyuki Fujimori <moyu@dromozoa.com>
--
-- This file is part of dromozoa-regexp.
--
-- dromozoa-regexp 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 |
rlcevg/Zero-K | effects/grav.lua | 17 | 3193 | -- grav
return {
["grav"] = {
drag = {
air = true,
class = [[CSimpleParticleSystem]],
ground = true,
water = true,
properties = {
airdrag = 1,
colormap = [[1 .5 1 .1 0 0 0 0]],
direct... | gpl-2.0 |
EliHar/Pattern_recognition | torch1/pkg/torch/Tensor.lua | 8 | 16317 | -- additional methods for Storage
local Storage = {}
-- additional methods for Tensor
local Tensor = {}
-- types
local types = {'Byte', 'Char', 'Short', 'Int', 'Long', 'Float', 'Double'}
-- Lua 5.2 compatibility
local log10 = math.log10 or function(x) return math.log(x, 10) end
-- tostring() functions for Tensor an... | mit |
rlcevg/Zero-K | units/chickenwurm.lua | 3 | 4323 | unitDef = {
unitname = [[chickenwurm]],
name = [[Wurm]],
description = [[Burrowing Flamer (Assault/Riot)]],
acceleration = 0.36,
brakeRate = 0.205,
buildCostEnergy = 0,
buildCostMetal = 0,
builder = false,
buildPic = [[... | gpl-2.0 |
avataronline/avatarclient | modules/client/client.lua | 1 | 3361 | local musicFilename = "/sounds/startup"
local musicChannel = g_sounds.getChannel(1)
function setMusic(filename)
musicFilename = filename
if not g_game.isOnline() then
musicChannel:stop()
musicChannel:enqueue(musicFilename, 3)
end
end
function reloadScripts()
g_textures.clearCache()
g_modules.reload... | mit |
abdllhbyrktr/Urho3D | Source/Urho3D/LuaScript/pkgs/ToZerobraneStudioHook.lua | 9 | 12213 | --
-- Copyright (c) 2008-2017 the Urho3D project.
--
-- 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, m... | mit |
drmingdrmer/mysql-proxy-xp | tests/suite/run-tests.lua | 2 | 25475 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the
License.
This program is dis... | gpl-2.0 |
stas2z/openwrt-witi | package/luci/modules/luci-mod-admin-full/luasrc/controller/admin/uci.lua | 40 | 1769 | -- 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.
module("luci.controller.admin.uci", package.seeall)
function index()
local redir = luci.http.formvalue("redir", true) or
luci.dispatcher.build_url(unpack(... | gpl-2.0 |
EliHar/Pattern_recognition | torch1/exe/luajit-rocks/luarocks/src/luarocks/fetch/hg.lua | 14 | 2144 |
--- Fetch back-end for retrieving sources from HG.
--module("luarocks.fetch.hg", package.seeall)
local hg = {}
local unpack = unpack or table.unpack
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
--- Download sources for building a rock, using hg.
-- @par... | mit |
nshermione/pingpongcocos2dx | proj.android-studio/app/assets/pingponggui-ccs/src/cocos/cocostudio/DeprecatedCocoStudioFunc.lua | 61 | 3456 | if nil == ccs then
return
end
--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.shareRe... | apache-2.0 |
stas2z/openwrt-witi | package/luci/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6to4.lua | 72 | 1073 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local ipaddr, defaultroute, metric, ttl, mtu
ipaddr = section:taboption("general", Value, "ipaddr",
translate("Local IPv4 address"),
translate("Leave empty to use the current W... | gpl-2.0 |
mightymadTV/gcraft | gcraft/entities/entities/base_ai/init.lua | 3 | 2936 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
include('schedules.lua')
include('tasks.lua')
-- Variables
ENT.m_fMaxYawSpeed = 200 -- Max turning speed
ENT.m_iClass = CLASS_CITIZEN_REBEL -- NPC Class
AccessorFunc( ENT, "m_iClass", "NPCClass" )
AccessorFunc( ENT, "m_fM... | gpl-2.0 |
rlcevg/Zero-K | units/armbrtha.lua | 5 | 5821 | unitDef = {
unitname = [[armbrtha]],
name = [[Big Bertha]],
description = [[Strategic Plasma Cannon]],
buildCostEnergy = 5000,
buildCostMetal = 5000,
builder = false,
buildingGroundDecalDecay... | gpl-2.0 |
firebitsbr/ettercap | src/lua/share/scripts/http_requests.lua | 12 | 2720 | ---
--
-- Created by Ryan Linn and Mike Ryan
-- Copyright (C) 2012 Trustwave Holdings, Inc.
description = "Script to show HTTP requsts";
local http = require("http")
local packet = require("packet")
local bin = require("bit")
hook_point = http.hook
packetrule = function(packet_object)
-- If this isn't a tcp pa... | gpl-2.0 |
Mehranhpr/spam | plugins/moderation.lua | 336 | 9979 | do
local function check_member(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
local username = v.username
data[tostring(m... | gpl-2.0 |
anholt/ValyriaTear | img/sprites/map/npcs/npc_woman02_idle.lua | 4 | 1055 | -- Sprite animation file descriptor
-- This file will describe the frames used to load the sprite animations
-- This files is following a special format compared to other animation scripts.
local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH;
local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH;
local ANIM_WEST = vt_map.MapMode.ANI... | gpl-2.0 |
Jigoku/boxclip | src/entities/enemies/blob.lua | 1 | 3404 | --[[
* Copyright (C) 2015 - 2022 Ricky K. Thomson
*
* 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.
* This progr... | gpl-3.0 |
EliHar/Pattern_recognition | torch1/extra/fftw3/dev/create-init.lua | 3 | 2992 | -- Adapted from https://github.com/torch/sdl2-ffi/blob/master/dev/create-init.lua
print[[
-- Do not change this file manually
-- Generated with dev/create-init.lua
local ffi = require 'ffi'
local C = ffi.load('fftw3')
local ok, Cf = pcall(function () return ffi.load('fftw3f') end)
if not ok then
print('Warning: ... | mit |
weirdouncle/QSanguosha-For-Hegemony-personal | lang/zh_CN/Package/StandardWeiGeneral.lua | 5 | 7220 | --[[********************************************************************
Copyright (c) 2013-2015 Mogara
This file is part of QSanguosha-Hegemony.
This game 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... | gpl-3.0 |
rlcevg/Zero-K | units/armasp.lua | 5 | 3428 | unitDef = {
unitname = [[armasp]],
name = [[Air Repair/Rearm Pad]],
description = [[Repairs and Rearms Aircraft, repairs at 2.5 e/s per pad]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildAngle = 0,
buildCostEnergy = 35... | gpl-2.0 |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/config/filters/raid.lua | 1 | 45236 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Raid")
local function ClassBuff(id, point, color, anyUnit, onlyShowMissing)
local r, g, b = unpack(color)
return {["enabled"] = true, ["id"] = id, ["po... | mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/luarocks/type_check.lua | 14 | 11451 | --- Type-checking functions.
-- Functions and definitions for doing a basic lint check on files
-- loaded by LuaRocks.
--module("luarocks.type_check", package.seeall)
local type_check = {}
package.loaded["luarocks.type_check"] = type_check
local cfg = require("luarocks.cfg")
local deps = require("luarocks.deps")
type... | mit |
renolike/LuaSrcDiet | src/llex.lua | 2 | 12301 | --[[--------------------------------------------------------------------
llex.lua: Lua 5.1 lexical analyzer in Lua
This file is part of LuaSrcDiet, based on Yueliang material.
Copyright (c) 2008,2011 Kein-Hong Man <keinhong@gmail.com>
The COPYRIGHT file describes the conditions
under which this software may... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.