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 |
|---|---|---|---|---|---|
resistor58/deaths-gmod-server | Nuke Pack 4/lua/entities/sent_nuke/cl_init.lua | 2 | 2282 | local sndWaveBlast = Sound("ambient/levels/streetwar/city_battle11.wav")
local sndWaveIncoming = Sound("ambient/levels/labs/teleport_preblast_suckin1.wav")
local sndSplode = Sound("ambient/explosions/explode_6.wav")
local sndRumble = Sound("ambient/explosions/exp1.wav")
local sndPop = Sound("weapons/pistol/pistol_f... | gpl-3.0 |
comedinha/New-Poke-Lite | data/npc/scripts/bless.lua | 28 | 2641 | 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,... | gpl-2.0 |
tkdrob/Battle-Tag | Packages/StarterFrag/Data/Script/ByteCode/UAStarterFrag.ByteCode.lua | 1 | 1836 | byteCode =
{
0x09,
0x53, 0x43, 0x30, 0x35, 0x00, 0x00,
0x53, 0x43, 0x30, 0x33, 0x00, 0x00,
0x41, 0x53, 0x48, 0x54, 0x00, 0x00,
0x53, 0x57, 0x35, 0x36, 0x00, 0x00,
0x53, 0x57, 0x32, 0x32, 0x00, 0x00,
0x53, 0x43, 0x30, 0x38, 0x00, 0x00,
0x53, 0x57, 0x31, 0x32, 0x00, 0x00,
0x53, 0x57, 0x34, 0x32, 0x00, 0x00,
... | mit |
resistor58/deaths-gmod-server | counter-strike/lua/autorun/cs_playermodels.lua | 1 | 1896 | ----Counter terrorists
list.Set( "PlayerOptionsModel", "urban", "models/player/urban.mdl" )
player_manager.AddValidModel( "urban", "models/player/urban.mdl" )
list.Set( "PlayerOptionsModel", "swat", "models/player/swat.mdl" )
player_manager.AddValidModel( "swat", "models/player/swat.mdl" )
list.Set( "PlayerOpt... | gpl-3.0 |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_consolescreen/init.lua | 1 | 7616 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
ENT.WireDebugName = "ConsoleScreen"
function ENT:Initialize()
self.Entity:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
self.Entity:SetSolid(SOLID_VPHYSICS)
self.Inputs = Wire_CreateInputs(self.En... | gpl-3.0 |
resistor58/deaths-gmod-server | Ultimate Vehicle Pack/lua/autorun/VP_Government.lua | 1 | 10593 | // Vehicle Pack Governement v1.0
local Category = "GMow+ Government Vehicles"
local V = {
// Required information
Name = "UAZ",
Class = "prop_vehicle_jeep",
Category = Category,
// Optional information
Author = "Kuno86",
Information = "UAZ",
Model = "models/uazjeep.mdl... | gpl-3.0 |
punisherbot/hh | libs/mimetype.lua | 28 | 2924 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/ato... | gpl-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/doc.lua | 3 | 3586 | -- Copyright 2013 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
chewi/Aquaria | files/scripts/entities/nudinoshell.lua | 6 | 1149 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
zhaoxx063/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_ppp.lua | 47 | 3692 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, username, password
local ipv6, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand, mtu
device = section:taboption("general", Value... | apache-2.0 |
Aico/mudlet | src/old_mudlet-lua/lua/Other.lua | 6 | 16089 | ----------------------------------------------------------------------------------
--- Mudlet Unsorted Stuff
----------------------------------------------------------------------------------
-- Extending default libraries makes Babelfish happy.
setmetatable( _G, {
["__call"] = function(func, ...)
if type(func) ==... | gpl-2.0 |
zhaoxx063/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/processes.lua | 57 | 1951 | -- 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.processes", package.seeall)
function rrdargs( graph, plugin, plugin_instance, dtype )
return {
{
title = "%H: Processes",
vlabel = "Proce... | apache-2.0 |
javierguerragiraldez/snabbswitch | src/apps/rate_limiter/rate_limiter.lua | 2 | 6425 | module(..., package.seeall)
local app = require("core.app")
local link = require("core.link")
local config = require("core.config")
local packet = require("core.packet")
local timer = require("core.timer")
local basic_apps = require("apps.basic.basic_apps")
local ffi = require("ffi")
local C = ffi.C
local floor, min =... | apache-2.0 |
oratory/wago.io | backend/api/lua/libs/LibBase64-1.0/LibBase64-1.0.lua | 1 | 4957 | --[[
Name: LibBase64-1.0
Author(s): ckknight (ckknight@gmail.com)
Website: http://www.wowace.com/projects/libbase64-1-0/
Description: A library to encode and decode Base64 strings
License: MIT
]]
local LibBase64 = LibStub:NewLibrary("LibBase64-1.0", 1)
if not LibBase64 then
return
end
local _chars = 'ABCDEFGHIJK... | mit |
rickyHong/dptorchLib | init.lua | 1 | 6568 | require 'torch'
require 'nn'
require 'nnx'
require 'string'
_ = require 'moses'
require 'xlua'
require 'fs'
require 'os'
require 'sys'
require 'image'
require 'lfs'
ffi = require 'ffi'
------------------------------------------------------------------------
--[[ dp ]]--
-- deep learning library for torch7.
-----------... | bsd-3-clause |
zhusz/ICCV17-fashionGAN | ih1_p2p/net_graph_ih1.lua | 1 | 2959 | require 'nngraph'
local function weights_init(m)
local name = torch.type(m)
if name:find('Convolution') then
m.weight:normal(0.0, 0.02) -- zhuzhu
m.bias:fill(0) -- zhuzhu
-- m:noBias()
elseif name:find('BatchNormalization') then
if m.weight then m.weight:normal(1.0, 0.02) end
if m... | bsd-3-clause |
tehran980/tele_HSN | 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 |
resistor58/deaths-gmod-server | ulib/lua/ULib/server/hook.lua | 1 | 4783 | --[[
Title: Hook
This overrides garry's default hook system. We need this better hook system for any serious development.
We're implementing hook priorities. hook.Add() now takes an additional parameter of type number between -20 and 20.
0 is default (so we remain backwards compatible). -20 and 20 are read on... | gpl-3.0 |
ruvolof/telegram-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 |
fegimanam/telegram-bot-supergroups | 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 |
RobertZenz/minetest-australopithecus-utils | mods/utils/settings.lua | 2 | 7177 | --[[
Copyright (c) 2015, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
zchengquan/nn | SpatialConvolution.lua | 27 | 4452 | local SpatialConvolution, parent = torch.class('nn.SpatialConvolution', 'nn.Module')
function SpatialConvolution:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.kW = kW
... | bsd-3-clause |
zeta0134/LuaGB | gameboy/z80/arithmetic.lua | 1 | 7065 | local bit32 = require("bit")
local lshift = bit32.lshift
local rshift = bit32.rshift
local band = bit32.band
local bxor = bit32.bxor
local bor = bit32.bor
local bnor = bit32.bnor
function apply(opcodes, opcode_cycles, z80, memory)
local read_at_hl = z80.read_at_hl
local set_at_hl = z80.set_at_hl
local read_nn =... | bsd-3-clause |
nullstyle/docker-stellar-core | heka/stellar_core_metrics_filter.lua | 1 | 2930 | local cj = require "cjson"
local dt = require "date_time"
local l = require "lpeg"
local table = require "table"
local math = require "math"
local environment = read_config("environment")
local node = read_config("node")
local cluster = read_config("cluster")
local latest_stats = {}
function process_messa... | apache-2.0 |
resistor58/deaths-gmod-server | ulx/lua/ulx/modules/slots.lua | 1 | 3462 | -- This file handles reserved slots
ulx.setCategory( "Reserved Slots" )
ulx.convar( "rslotsMode", "0", " - Sets the slots mode. See server.ini for more information.", ULib.ACCESS_ADMIN )
ulx.convar( "rslots", "2", " - Sets the number of reserved slots, only applicable for modes 1 and 2.", ULib.ACCESS_ADMIN )
ulx.... | gpl-3.0 |
tkdrob/Battle-Tag | Packages/LastTeamStanding/Data/Script/ByteCode/UALastTeamStanding.ByteCode2.lua | 1 | 4699 | byteCode =
{
0x11,
0x53, 0x43, 0x30, 0x35, 0x00, 0x00,
0x53, 0x43, 0x30, 0x33, 0x00, 0x00,
0x41, 0x53, 0x48, 0x54, 0x00, 0x00,
0x53, 0x57, 0x35, 0x36, 0x00, 0x00,
0x53, 0x44, 0x30, 0x31, 0x00, 0x00,
0x53, 0x44, 0x31, 0x33, 0x00, 0x00,
0x53, 0x57, 0x32, 0x32, 0x00, 0x00,
0x53, 0x43, 0x30, 0x38, 0x00, 0x00,
... | mit |
Aico/mudlet | src/old_mudlet-lua/lua/LuaGlobal.lua | 6 | 2911 | ----------------------------------------------------------------------------------
--- Mudlet Lua packages loader
----------------------------------------------------------------------------------
if package.loaded["rex_pcre"] then rex = require "rex_pcre" end
if package.loaded["lpeg"] then lpeg = require "lpeg" end
... | gpl-2.0 |
adonaac/yaoui | yaoui/dialogs/winapi/comdlg.lua | 4 | 1860 |
--proc/comdlg: common dialogs
--Written by Cosmin Apreutesei. Public Domain.
local yui_path = (...):match('(.-)[^%.]+$')
setfenv(1, require(yui_path:sub(1, -2)))
require(yui_path .. 'winuser')
comdlg = ffi.load'comdlg32'
COMMDLG_ERROR_NAMES = constants{
CDERR_DIALOGFAILURE = 0xFFFF,
CDERR_GENERALCODES = ... | mit |
adonaac/yaoui | examples/anime/yaoui/dialogs/winapi/comdlg.lua | 4 | 1860 |
--proc/comdlg: common dialogs
--Written by Cosmin Apreutesei. Public Domain.
local yui_path = (...):match('(.-)[^%.]+$')
setfenv(1, require(yui_path:sub(1, -2)))
require(yui_path .. 'winuser')
comdlg = ffi.load'comdlg32'
COMMDLG_ERROR_NAMES = constants{
CDERR_DIALOGFAILURE = 0xFFFF,
CDERR_GENERALCODES = ... | mit |
chewi/Aquaria | files/scripts/maps/_unused/node_givealltreasures.lua | 5 | 1210 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
Chessnut/moderator | lua/moderator/commands/sh_teleport.lua | 2 | 1409 | local COMMAND = {}
COMMAND.name = "Teleport"
COMMAND.tip = "Teleports a player to your position."
COMMAND.icon = "arrow_up"
COMMAND.usage = "[bool toAimPos]"
COMMAND.example = "!bring #alive 1 - Brings everyone to your aim position."
COMMAND.aliases = {"bring"}
function COMMAND:OnRun(client, arguments, target)
... | gpl-2.0 |
squilter/ardupilot | libraries/AP_Scripting/examples/quadruped.lua | 24 | 16202 | -- Lua "motor driver" for a four legged (aka quadruped) walking robot
--
-- This script consumes controller outputs (i.e. roll, pitch, yaw/steering, throttle, lateral) from
-- the vehicle code and then calculates the outputs for 12 servos controlling four legs
--
-- AutoPilot servo connections:
-- Output1: front right... | gpl-3.0 |
mamadtnt/bot | plugins/media.lua | 376 | 1679 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
rickyHong/dptorchLib | feedback/fkdkaggle.lua | 2 | 3769 | ------------------------------------------------------------------------
--[[ FKDKaggle ]]--
-- Feedback
-- Prepares a kaggle submission
-- Requires csvigo
------------------------------------------------------------------------
local FKDKaggle, parent = torch.class("dp.FKDKaggle", "dp.Feedback")
FKDKaggle.isFKDKaggle ... | bsd-3-clause |
tkdrob/Battle-Tag | Data/Script/Lua/Classes/UTGame.Ui.Basics.lua | 1 | 3137 |
--[[--------------------------------------------------------------------------
--
-- File: UTGame.Ui.Basics.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: September 2, 2010
--
---------------------------------... | mit |
httpomid/TeleSeed | plugins/ingroup.lua | 371 | 44212 | do
-- Check Member
local function check_member_autorealm(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
-- Group configuration
data[tostr... | gpl-2.0 |
tkdrob/Battle-Tag | Packages/HostageSituation/Data/Script/Lua/UAHostageSituation.State.RoundLoop.lua | 1 | 18979 |
--[[--------------------------------------------------------------------------
--
-- File: UAHostageSituation.State.RoundLoop.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: November 25, 2010
--
---------------... | mit |
futesobriquet/Tower_D_beta | Tower_Beta/lib/30log/specs/mixin.lua | 1 | 1313 | require 'luacov'
local Class = require '30log'
context('Mixins', function()
test('are set of functions that can be imported into a class', function()
local mixin = {
foo = function() end,
bar = function() end,
baz = function() end
}
local theClass = Class()
assert_nil(th... | apache-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/deprecated/Node.lua | 3 | 6353 | -- Copyright 2010 by Renée Ahrens, Olof Frahm, Jens Kluttig, Matthias Schulz, Stephan Schuster
-- Copyright 2011 by Jannis Pohlmann
-- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the f... | mit |
chewi/Aquaria | files/scripts/maps/node_title_continue.lua | 6 | 2104 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
adonaac/yaoui | yaoui/ImageButton.lua | 4 | 1952 | local yui_path = (...):match('(.-)[^%.]+$')
local Object = require(yui_path .. 'UI.classic.classic')
local ImageButton = Object:extend('ImageButton')
function ImageButton:new(yui, settings)
self.yui = yui
self.x, self.y = 0, 0
self.settings = settings
self.ix, self.iy = settings.ix or 0, settings.iy or... | mit |
chewi/Aquaria | files/scripts/entities/mutantnaija.lua | 6 | 4573 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
rickyHong/dptorchLib | data/notmnist.lua | 3 | 6414 | ------------------------------------------------------------------------
--[[ NotMnist ]]--
-- http://yaroslavvb.blogspot.ca/2011/09/notmnist-dataset.html
-- http://yaroslavvb.com/upload/notMNIST/
-- A 500k+ example alternative to MNIST using unicode fonts.
--------------------------------------------------------------... | bsd-3-clause |
Meituan-Dianping/DBProxy | examples/tutorial-tokenize.lua | 4 | 1591 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2009, 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 |
Nottinghster/OTServ_SVN-0.6.4 | src/data/actions/scripts/liquids/great_spirit.lua | 2 | 1850 | local HEALTH_REGEN = {200, 400} --min 200, max 400
local MANA_REGEN = {100, 200} --min 100, max 200
local EMPTY_POTION = 7635
local combatHealth = createCombatObject()
setCombatParam(combatHealth, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combatHealth, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(c... | gpl-2.0 |
comedinha/New-Poke-Lite | data/spells/scripts/party/heal.lua | 13 | 1841 | local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, C... | gpl-2.0 |
Fir3element/tfs11 | data/spells/scripts/party/heal.lua | 13 | 1841 | local combat = createCombatObject()
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, C... | gpl-2.0 |
dunn/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 |
resistor58/deaths-gmod-server | Mad Cows DoD Weapons/lua/entities/ent_mad_dod_us_launcher/init.lua | 1 | 3816 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include('shared.lua')
/*---------------------------------------------------------
Name: ENT:Initialize()
---------------------------------------------------------*/
function ENT:Initialize()
self.Owner = self.Entity.Owner
if !ValidEntity(self.Own... | gpl-3.0 |
Nottinghster/OTServ_SVN-0.6.4 | src/data/actions/scripts/liquids/ultimate_health.lua | 2 | 1336 | local MIN = 600
local MAX = 900
local EMPTY_POTION = 7635
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_A... | gpl-2.0 |
ReccaStudio/ActiveStar | cocos2d/external/lua/luasocket/http.lua | 45 | 12330 | -----------------------------------------------------------------------------
-- HTTP/1.1 client support for the Lua language.
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
---------------------------------------------------------------------... | gpl-2.0 |
Luminess/catTables | init.lua | 1 | 6328 | --- A library that makes tables which dynamically inherit the fields of the tables they contain (child tables). Exports a factory function.
-- @script catTable
-- @license MIT
-- @copyright Howard Nguyen, 2016
local string = require('string')
--- Module table holding constants. Calling this table is equivalent to cal... | mit |
chewi/Aquaria | files/scripts/entities/_unused/mengil.lua | 6 | 2149 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
ld-test/loverocks | loverocks/commands/deps.lua | 1 | 1368 | local log = require 'loverocks.log'
local api = require 'loverocks.api'
local loadconf = require 'loadconf'
local deps = {}
function deps.build(parser)
parser:description
"Installs all packages listed as dependencies in your conf.lua file."
parser:option "-s" "--server"
:description
"Fetch rocks/rockspecs fr... | mit |
zhaoxx063/luci | applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/interface.lua | 29 | 2536 | -- 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.interface", package.seeall)
function rrdargs( graph, plugin, plugin_instance )
--
-- traffic diagram
--
local traffic = {
-- draw this diag... | apache-2.0 |
zhaoxx063/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua | 43 | 1470 | -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("OLSRd Plugin Configuration"),
translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
s = m:section(NamedSection,... | apache-2.0 |
Skuth/Mta-snippets | snippets.lua | 1 | 1820 | -- ACCOUNT
addAccount(username, password)
copyAccountData(theAccount, fromAccount)
getAccount(username, password)
getAccountData(theAccount, key)
getAccountName(theAccount)
getAccountPlayer(theAccount)
getAccounts()
getAccountsBySerial(serial)
getAccountSerial(theAccount)
getAllAccountData(theAccount)
getPlayerAccount... | mit |
webwlsong/ABTestingGateway | lib/abtesting/adapter/runtime.lua | 22 | 3599 | ---
-- @classmod abtesting.adapter.runtime
-- @release 0.0.1
local modulename = "abtestingAdapterRuntime"
local _M = {}
local metatable = {__index = _M}
_M._VERSION = "0.0.1"
local ERRORINFO = require('abtesting.error.errcode').info
---
-- @field fields
-- @warning this is a conf, may other file later
local fi... | mit |
dani-sj/evilbot | plugins/spamgroup.lua | 96 | 28863 | do
function run(msg, matches)
return " Group have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hacked fuck off and leave\nGroup have been hack... | gpl-2.0 |
ruvolof/telegram-bot | plugins/google.lua | 722 | 1037 | local function googlethat(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&"
local parameters = "q=".. (URL.escape(query) or "")
-- Do the request
local res, code = https.request(api..parameters)
if code ~=200 then return nil end
local data = json:decode(res)
local r... | gpl-2.0 |
NOVAR1/DEV_NOVAR | tg/test.lua | 210 | 2571 | started = 0
our_id = 0
function vardump(value, depth, key)
local linePrefix = ""
local spaces = ""
if key ~= nil then
linePrefix = "["..key.."] = "
end
if depth == nil then
depth = 0
else
depth = depth + 1
for i=1, depth do spaces = spaces .. " " end
end
if type(value) == 'tab... | gpl-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/lib/Direct.lua | 3 | 2868 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
resistor58/deaths-gmod-server | wire/lua/wire/server/WireLib.lua | 1 | 28933 | -- $Rev: 1753 $
-- $LastChangedDate: 2009-09-29 18:34:43 -0700 (Tue, 29 Sep 2009) $
-- $LastChangedBy: TomyLobo $
-- Compatibility Global
WireAddon = 1
function WireLib.PortComparator(a,b)
return a.Num < b.Num
end
-- Allow to specify the description and type, like "Name (Description) [TYPE]"
local fun... | gpl-3.0 |
tehran980/tele_HSN | plugins/plugins.lua | 325 | 6164 | do
-- 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 plugin_exists( ... | gpl-2.0 |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_egp/lib/objects/line.lua | 1 | 1111 | -- Author: Divran
local Obj = EGP:NewObject( "Line" )
Obj.w = nil
Obj.h = nil
Obj.x2 = 0
Obj.y2 = 0
Obj.size = 1
Obj.verticesindex = { { "x", "y" }, { "x2", "y2" } }
Obj.Draw = function( self )
if (self.a>0) then
surface.SetDrawColor( self.r, self.g, self.b, self.a )
EGP:DrawLine( self.x, self.y, self.x... | gpl-3.0 |
tkdrob/Battle-Tag | Packages/CaptureMax/Data/Script/ByteCode/UACaptureMax.ByteCode.lua | 1 | 6163 | byteCode =
{
0x13,
0x53, 0x43, 0x30, 0x35, 0x00, 0x00,
0x53, 0x44, 0x31, 0x38, 0x00, 0x00,
0x53, 0x47, 0x30, 0x37, 0x00, 0x00,
0x53, 0x43, 0x30, 0x33, 0x00, 0x00,
0x41, 0x53, 0x48, 0x54, 0x00, 0x00,
0x53, 0x57, 0x35, 0x36, 0x00, 0x00,
0x53, 0x57, 0x32, 0x32, 0x00, 0x00,
0x53, 0x43, 0x30, 0x38, 0x00, 0x00,
... | mit |
Salada/slua | build/luajit-2.0.4/src/jit/dis_x86.lua | 89 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
Aico/mudlet | src/old_mudlet-lua/lua/geyser/GeyserTests.lua | 22 | 5965 | --------------------------------------
-- --
-- The Geyser Layout Manager by guy --
-- --
--------------------------------------
-- TESTS FOR GEYSER --
--- Test labels. Creates 101 Labels of varying hue and transparency.
function Geyser.testLabels()
... | gpl-2.0 |
acoret/UnBot | UnBot.lua | 1 | 2943 | --###################################
--# #
--# UnCode Bot #
--# #
--###################################
--env
__debug=true
if __debug then
function print(x) weechat.print(debug_buffer,x)end
end
--hook #hook table contain
hook={}
r_name={}
e_name={}
fuc={}
fuc["unknow"]=function(buffer,usernam... | mit |
zhusz/ICCV17-fashionGAN | ih1/train.lua | 1 | 9299 | require 'nngraph'
require 'cunn'
require 'cudnn'
require 'hdf5'
require 'image'
require 'optim'
require 'paths'
local matio = require 'matio'
train_ind = matio.load('../data_release/benchmark/ind.mat','train_ind'):view(-1)
local dispSurrogate = dofile('../codes_lua/dispSurrogate.lua')
local disp = require 'display'
lo... | bsd-3-clause |
ellipticaldoor/a_sea_of_nothing | game/lua/player.lua | 1 | 1820 | player = {}
function player.load()
selector = love.graphics.newImage("images/selector.png");
selector_x, selector_y = 0, 0
moveplayer = true
whale_cell_x, whale_cell_y = 3, 2
whale_x, whale_y = 320/2+320*whale_cell_x, 240/2+240*whale_cell_y
player_x, player_y = 0, 0
end
function player.draw()
end
function p... | gpl-2.0 |
tkdrob/Battle-Tag | Data/Script/Lua/UTMain.lua | 1 | 2439 |
--[[--------------------------------------------------------------------------
--
-- File: UTMain.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: April 21, 2010
--
----------------------------------------------... | mit |
joehanchoi/hammerspoon | extensions/doc/init.lua | 3 | 14597 |
--- === hs.doc ===
---
--- Create documentation objects for interactive help within Hammerspoon
---
--- The documentation object created is a table with tostring metamethods allowing access to a specific functions documentation by appending the path to the method or function to the object created.
---
--- From the Ham... | mit |
OSGConnect/modulefiles | modulefiles/Core/cp2k/2.5.1.lua | 1 | 1105 | help(
[[
CP2K: A general program to perform molecular dynamics simulations
Copyright (C) 2000, 2001, 2002, 2003 CP2K developers group
Copyright (C) 2004, 2005, 2006, 2007 CP2K developers group
Copyright (C) 2008, 2009, 2010, 2011 CP2K developers group
Copyright (C) 201... | apache-2.0 |
dunn/ntopng | scripts/lua/get_host_data.lua | 6 | 3612 | --
-- (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')
function getNetworkStats(network)
local hosts_stats = interface.getHostsInfo()
my_network = nil
for key... | gpl-3.0 |
maxmax1/fooniks | resources/phoenix_Cops/spikeStrips/strips_s.lua | 2 | 8292 | local MAX_SPIKES = tonumber( get( "#MAX_SPIKES" ) );
--[[
SpikeStrips Class
variables:
table allSpikes = { spikeElem }
spikeElem =
{
posX,
posY,
posZ,
rotX,
rotY,
rotZ,
spikeType,
myObject,
myColShapes,
myBlip,
myMarker,
}
spikeType = -- ... | gpl-3.0 |
resistor58/deaths-gmod-server | Mad Cows DoD Weapons/lua/weapons/weapon_mad_dod_k98_rg/shared.lua | 1 | 5738 | // Variables that are used on both client and server
SWEP.Base = "weapon_mad_dod_base"
SWEP.ViewModelFOV = 50
SWEP.ViewModel = "models/weapons/v_k98_rg.mdl"
SWEP.WorldModel = "models/weapons/w_k98_rg.mdl"
SWEP.Spawnable = false
SWEP.AdminSpawnable = false
SWEP.Primary.Sound = Sound("W... | gpl-3.0 |
team-smart/smart_team | libs/fakeredis.lua | 650 | 40405 | local unpack = table.unpack or unpack
--- Bit operations
local ok,bit
if _VERSION == "Lua 5.3" then
bit = (load [[ return {
band = function(x, y) return x & y end,
bor = function(x, y) return x | y end,
bxor = function(x, y) return x ~ y end,
bnot = function(x) return ~x end,
rshift = function(x... | gpl-2.0 |
cyrillePrigent/kmod-ng | umod/modules/auto_panzer_disable.lua | 1 | 6529 | -- Auto panzer disable
-- From kmod script.
-- Global var
autoPanzerDisable = {
-- Auto panzer disable module status.
["enabled"] = false,
-- Panzer enable / disable message status.
["msg"] = {
["enabled"] = false,
["disabled"] = false,
},
-- Panzer disable warning level.
... | gpl-2.0 |
zchengquan/nn | ClassNLLCriterion.lua | 10 | 2966 | local ClassNLLCriterion, parent = torch.class('nn.ClassNLLCriterion', 'nn.Criterion')
function ClassNLLCriterion:__init(weights)
parent.__init(self)
self.sizeAverage = true
self.outputTensor = torch.Tensor(1)
if weights then
assert(weights:dim() == 1, "weights input should be 1-D Tensor")
sel... | bsd-3-clause |
amirik22/uzzbot | plugins/wiki.lua | 735 | 4364 | -- http://git.io/vUA4M
local socket = require "socket"
local JSON = require "cjson"
local wikiusage = {
"!wiki [text]: Read extract from default Wikipedia (EN)",
"!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola",
"!wiki search [text]: Search articles on default Wikipedia (EN)",
"!... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/map_veil02.lua | 12 | 1050 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria 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 vers... | gpl-2.0 |
mSenyor/sl4a | lua/luasocket/etc/forward.lua | 61 | 2077 | -- load our favourite library
local dispatch = require("dispatch")
local handler = dispatch.newhandler()
-- make sure the user knows how to invoke us
if table.getn(arg) < 1 then
print("Usage")
print(" lua forward.lua <iport:ohost:oport> ...")
os.exit(1)
end
-- function to move data from one socket to t... | apache-2.0 |
shahabsaf1/tg | plugins/media.lua | 297 | 1590 | do
local function run(msg, matches)
local receiver = get_receiver(msg)
local url = matches[1]
local ext = matches[2]
local file = download_to_file(url)
local cb_extra = {file_path=file}
local mime_type = mimetype.get_content_type_no_sub(ext)
if ext == 'gif' then
print('send_file')
send_docum... | gpl-2.0 |
alireza1516/self1 | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
zeta0134/LuaGB | gameboy/z80/rl_rr_cb.lua | 1 | 10210 | local bit32 = require("bit")
local lshift = bit32.lshift
local rshift = bit32.rshift
local band = bit32.band
local bxor = bit32.bxor
local bor = bit32.bor
local bnor = bit32.bnor
function apply(opcodes, opcode_cycles, z80, memory)
local read_nn = z80.read_nn
local reg = z80.registers
local flags = reg.flags
... | bsd-3-clause |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_speedometer/init.lua | 1 | 3082 | AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "Speedo"
local MODEL = Model("models/jaanus/wiretool/wiretool_speed.mdl")
function ENT:Initialize()
self.Entity:SetModel( MODEL )
self.Entity:PhysicsInit( SOLID_VPHYSICS )
self.Entity:SetMoveType( MOV... | gpl-3.0 |
ruvolof/telegram-bot | libs/redis.lua | 566 | 1214 | local Redis = require 'redis'
local FakeRedis = require 'fakeredis'
local params = {
host = os.getenv('REDIS_HOST') or '127.0.0.1',
port = tonumber(os.getenv('REDIS_PORT') or 6379)
}
local database = os.getenv('REDIS_DB')
local password = os.getenv('REDIS_PASSWORD')
-- Overwrite HGETALL
Redis.commands.hgetall = ... | gpl-2.0 |
snogglethorpe/snogray | lua-util/file.lua | 1 | 2139 | -- file.lua -- Miscellaneous file-related functions
--
-- Copyright (C) 2012, 2013 Miles Bader <miles@gnu.org>
--
-- This source code 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, or (a... | gpl-3.0 |
maxmax1/fooniks | resources/poffer/poffer_s.lua | 2 | 3746 | PlayerOffer = {
pTable = { },
offers = { },
cIndex = 1
};
function PlayerOffer:new( o )
o = o or { };
setmetatable( o, self );
self.__index = self;
return o;
end
function PlayerOffer:Cancel( offerId, thePlayer )
if( self.offers[offerId] ) then
if( self.offers[offerId].fr... | gpl-3.0 |
mamaddeveloper/miri | plugins/google.lua | 336 | 1323 | do
local function googlethat(query)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&'
local parameters = 'q='..(URL.escape(query) or '')
-- Do the request
local res, code = https.request(url..parameters)
if code ~=200 then return nil end
loca... | gpl-2.0 |
zhangf911/alilua | route.lua | 3 | 1066 | local routes = {}
routes['^/(.*).(jpg|gif|png|css|js|ico|swf|flv|mp3|mp4|woff|eot|ttf|otf|svg)$'] = function()
header('Cache-Control: max-age=864000')
if headers.uri:find('.js',1,1) or headers.uri:find('.css',1,1) then -- cloud be gzip
local mtime = filemtime(headers.uri)
if headers['if-none-mat... | mit |
tempbottle/alilua | route.lua | 3 | 1066 | local routes = {}
routes['^/(.*).(jpg|gif|png|css|js|ico|swf|flv|mp3|mp4|woff|eot|ttf|otf|svg)$'] = function()
header('Cache-Control: max-age=864000')
if headers.uri:find('.js',1,1) or headers.uri:find('.css',1,1) then -- cloud be gzip
local mtime = filemtime(headers.uri)
if headers['if-none-mat... | mit |
Aico/mudlet | src/old_mudlet-lua/lua/StringUtils.lua | 10 | 4592 | ----------------------------------------------------------------------------------
--- Mudlet String Utils
----------------------------------------------------------------------------------
--- Cut string to specified maximum length.
---
--- @release post Mudlet 1.1.1 (<b><u>TODO update before release</u></b>)
---
-... | gpl-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/control/Anchoring.lua | 1 | 2806 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
sanger-pathogens/companion | bin/add_products_to_fasta.lua | 4 | 4125 | #!/usr/bin/env gt
--[[
Author: Sascha Steinbiss <ss34@sanger.ac.uk>
Copyright (c) 2015 Genome Research Ltd
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all co... | isc |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/trees/ChildSpec.lua | 3 | 7344 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
kirkbridge/gamecode4 | Assets/Scripts/Events.lua | 44 | 2298 | --========================================================================
-- Events.lua : Defines event handler delegate functions for events
--
-- Part of the GameCode4 Application
--
-- GameCode4 is the sample application that encapsulates much of the source code
-- discussed in "Game Coding Complete - 4th Edi... | lgpl-3.0 |
shahabsaf1/tg | plugins/vote.lua | 615 | 2128 | do
local _file_votes = './data/votes.lua'
function read_file_votes ()
local f = io.open(_file_votes, "r+")
if f == nil then
print ('Created voting file '.._file_votes)
serialize_to_file({}, _file_votes)
else
print ('Values loaded: '.._file_votes)
f:close()
end
return loadfile (_file_votes)()... | gpl-2.0 |
resistor58/deaths-gmod-server | wire/lua/entities/gmod_wire_keyboard/remap.lua | 1 | 10218 | Wire_Keyboard_Remap = {}
----------------------------------------------------------------------
-- Default - Keys that all layouts use
----------------------------------------------------------------------
local Wire_Keyboard_Remap_default = {}
Wire_Keyboard_Remap_default.normal = {}
Wire_Keyboard_Remap_defau... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.