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 |
|---|---|---|---|---|---|
PichotM/DarkRP | entities/weapons/unarrest_stick/shared.lua | 2 | 3057 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "Unarrest Baton"
SWEP.Slot = 1
SWEP.SlotPos = 3
end
DEFINE_BASECLASS("stick_base")
SWEP.Instructions = "Left click to unarrest\nRight click to switch batons"
SWEP.IsDarkRPUnarrestStick = true
SWEP.Spawnable = true
SWEP.Category = "DarkRP (Utility)"
SWEP.St... | mit |
PichotM/DarkRP | gamemode/modules/hitmenu/cl_menu.lua | 3 | 7300 | local PANEL
local minHitDistanceSqr = GM.Config.minHitDistance * GM.Config.minHitDistance
--[[---------------------------------------------------------------------------
Hitman menu
---------------------------------------------------------------------------]]
PANEL = {}
AccessorFunc(PANEL, "hitman", "Hitman")
Accesso... | mit |
haste/oUF | elements/stagger.lua | 2 | 5884 | --[[
# Element: Monk Stagger Bar
Handles the visibility and updating of the Monk's stagger bar.
## Widget
Stagger - A `StatusBar` used to represent the current stagger level.
## Sub-Widgets
.bg - A `Texture` used as a background. It will inherit the color of the main StatusBar.
## Notes
A default texture will be... | mit |
LORgames/premake-core | modules/d/_preload.lua | 3 | 4194 | --
-- Name: d/_preload.lua
-- Purpose: Define the D language API's.
-- Author: Manu Evans
-- Created: 2013/10/28
-- Copyright: (c) 2013-2015 Manu Evans and the Premake project
--
-- TODO:
-- MonoDevelop/Xamarin Studio has 'workspaces', which correspond to collections
-- of Premake workspaces. If ... | bsd-3-clause |
alireza1998/supergroup | 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 |
Sasu98/Nerd-Gaming-Public | resources/NGModshop/vehicle.funcs.lua | 4 | 2215 |
vehicleUpgrades = { names = { }, prices = { } }
lowriders = { [536]=true, [575]=true, [534]=true, [567]=true, [535]=true, [576]=true, [412]=true }
racers = { [562]=true, [565]=true, [559]=true, [561]=true, [560]=true, [558]=true }
_getVehicleCompatibleUpgrades = getVehicleCompatibleUpgrades
function getVehicleCompa... | mit |
Anarchid/Zero-K | units/chickenspire.lua | 4 | 4043 | return { chickenspire = {
unitname = [[chickenspire]],
name = [[Chicken Spire]],
description = [[Static Artillery]],
acceleration = 0,
activateWhenBuilt = true,
brakeRate = 0,
buildCostEnergy ... | gpl-2.0 |
Bew78LesellB/awesome | tests/test-drawable-bgimage.lua | 12 | 1633 | local runner = require("_runner")
local wibox = require("wibox")
local beautiful = require("beautiful")
local cairo = require("lgi").cairo
local w = wibox {
x = 10,
y = 10,
width = 20,
height = 20,
visible = true,
bg = "#ff0000",
}
local callback_called
local function callback(context, cr, wid... | gpl-2.0 |
lxl1140989/dmsdk | feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/iwinfo.lua | 78 | 1089 | --[[
Luci configuration model for statistics - collectd interface plugin configuration
(c) 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://ww... | gpl-2.0 |
iamgreaser/iceball | pkg/rakiru/flamethrower/gun_flamethrower.lua | 4 | 7945 | --[[
This file is derived from a part of Ice Lua Components.
Ice Lua Components 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 3 of the License, or
(at your option) any ... | gpl-3.0 |
ivendrov/nn | CMul.lua | 24 | 3600 | local CMul, parent = torch.class('nn.CMul', 'nn.Module')
function CMul:__init(...)
parent.__init(self)
local arg = {...}
self.size = torch.LongStorage()
local n = #arg
if n == 1 and torch.type(arg[1]) == 'torch.LongStorage' then
self.size:resize(#arg[1]):copy(arg[1])
else
self.size:r... | bsd-3-clause |
iamgreaser/iceball | pkg/base/mode/obj_tent.lua | 4 | 5077 | --[[
This file is part of Ice Lua Components.
Ice Lua Components 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 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
LORgames/premake-core | modules/vstudio/tests/vc2010/test_item_def_group.lua | 14 | 1930 | --
-- tests/actions/vstudio/vc2010/test_item_def_group.lua
-- Check the item definition groups, containing compile and link flags.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("vs2010_item_def_group")
local vc2010 = p.vstudio.vc2010
local project = p.p... | bsd-3-clause |
Anarchid/Zero-K | scripts/tankaa.lua | 5 | 3020 | include "constants.lua"
include "trackControl.lua"
include "pieceControl.lua"
local base, turret, guns, aim = piece("base", "turret", "guns", "aim")
local barrels = {piece("barrel1", "barrel2")}
local flares = {piece("flare1", "flare2")}
local a1, a2, neck = piece("a1", "a2", "neck")
local currentGun = 1
local isAimi... | gpl-2.0 |
cstroie/Pip | bgnum.lua | 1 | 2153 | -- LCD big numbers and symbols
lcd = require("lcd")
local bgnum = {}
function bgnum:cls()
-- Wrapper
lcd:cls()
end
function bgnum:define()
-- Define the big digits
if BIG_CHARS ~= "bgnum" then
lcd:defchar(0, "1f1f1f0000000000")
lcd:defchar(1, "00000000001f1f1f")
lcd:defchar(2, "1f1f000000001f1f"... | gpl-3.0 |
dglynch/PremadeRoleMonitor | PremadeRoleMonitor.lua | 1 | 9587 | --[[
Copyright 2013 Dan Lynch
This file is part of Premade Role Monitor.
Premade Role Monitor 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
... | gpl-3.0 |
Ractis/HookAndSlice | scripts/vscripts/DotaHS_MissionManager_RescueHostage.lua | 1 | 11246 |
require( "DotaHS_Common" )
require( "DotaHS_Quest" )
require( "DotaHS_SpawnManager" )
require( "DotaHS_SpawnDirector" )
--------------------------------------------------------------------------------
if MissionManager_RescueHostage == nil then
MissionManager_RescueHostage = class({})
MissionManager_RescueHostage.D... | mit |
Em30-tm-lua/team | plugins/rules.lua | 28 | 2270 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
Mutos/SoC-Test-001 | dat/events/neutral/shipwreck.lua | 11 | 2074 | --[[
-- Shipwreck Event
--
-- Creates a wrecked ship that asks for help. If the player boards it, the event switches to the Space Family mission.
-- See dat/missions/neutral/spacefamily.lua
--
-- 12/02/2010 - Added visibility/highlight options for use in bigsystems (Anatolis)
--]]
lang = naev.lang()
if lang == "es" ... | gpl-3.0 |
Whit3Tig3R/bestspammbot2 | 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 |
satanevil/eski-creed | 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 |
Sewerbird/blooming-suns | src_old/logic/mutate/MoveSelectionMutator.lua | 1 | 1290 | MoveSelectionMutator = {}
MoveSelectionMutator.new = function (init)
local init = init or {}
local self = Mutator.new(init)
self.units = init.units --units
self.src = init.src --hex
self.dst = init.dst --hex
self.map = init.map --tilemap
self.execute = function (state)
local map = state.getTilemap... | gpl-3.0 |
lxl1140989/dmsdk | feeds/packages/net/luci-app-ocserv/files/usr/lib/lua/luci/controller/ocserv.lua | 15 | 2075 | --[[
LuCI - Lua Configuration Interface
Copyright 2014 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
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/LICEN... | gpl-2.0 |
b1v1r/ironbee | lua/example.lua | 2 | 10838 | -- =========================================================================
-- =========================================================================
-- Licensed to Qualys, Inc. (QUALYS) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional informatio... | apache-2.0 |
PichotM/DarkRP | entities/weapons/ls_sniper/shared.lua | 7 | 2644 | AddCSLuaFile()
if SERVER then
AddCSLuaFile("cl_init.lua")
end
if CLIENT then
SWEP.PrintName = "Silenced Sniper"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 0
SWEP.SlotPos = 0
SWEP.IconLetter = "n"
killicon.AddFont("ls_sniper", "CSKillIcons", SWEP.IconLetter, Color(200, 200, 200, 255))
e... | mit |
Sasu98/Nerd-Gaming-Public | resources/NGGlue/glue.lua | 2 | 1801 | function glue()
local player = getLocalPlayer()
if not getPedOccupiedVehicle(player) then
local vehicle = getPedContactElement(player)
if getElementType(vehicle) == "vehicle" then
local px, py, pz = getElementPosition(player)
local vx, vy, vz = getElementPosition(vehicle)
local sx = px - vx
local ... | mit |
Sasu98/Nerd-Gaming-Public | resources/NGPlayerFunctions/server/teams.lua | 2 | 1349 | local teams = {
{ "Staff", 255, 140, 0 },
{ "Criminals", 255, 0, 0 },
{ "Law Enforcement", 0, 100, 255 },
{ "Services", 255, 255, 0 },
{ "Emergency", 0, 255, 255 },
{ "Unemployed", 255, 92, 0 },
}
local lawTeams = {
['Law Enforcement'] = true
}
local team = { }
for i, v in ipairs ( teams ) do
team[v[1]] = c... | mit |
LORgames/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 |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/luarules/configs/UnitMaterials/1_normalmapping.lua | 1 | 5171 | -- $Id$
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local GetGameFrame=Spring.GetGameFrame
local GetUnitHealth=Spring.GetUnitHealth
local modulo=math.fmod
local glUniform=gl.Uniform
local sine =math.sin... | gpl-2.0 |
lxl1140989/dmsdk | feeds/luci/applications/luci-diag-devinfo/luasrc/controller/luci_diag/devinfo_common.lua | 76 | 5638 | --[[
Luci diag - Diagnostics controller module
(c) 2009 Daniel Dickinson
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
]]--
module("luci.cont... | gpl-2.0 |
LORgames/premake-core | modules/d/tests/test_gmake.lua | 8 | 3517 | ---
-- d/tests/test_gmake.lua
-- Automated test suite for gmake project generation.
-- Copyright (c) 2011-2015 Manu Evans and the Premake project
---
local suite = test.declare("d_make")
local p = premake
local m = p.modules.d
local make = p.make
local project = p.project
--------------------------------------... | bsd-3-clause |
cooper-lyt/HSAPI | lua/media.lua | 1 | 7254 | --author:medcl,m@medcl.net,http://log.medcl.net
function table.contains(table, element)
for _, value in pairs(table) do
if value == element then
return true
end
end
return false
end
function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return tr... | apache-2.0 |
leonardowindbot/windbotscripts | dustbin/WindIcons.lua | 2 | 2100 | Icon = {}
Icon.__index = Icon
Icon.__class = "Icon"
local _ICONS = {}
-- dont even know if this works
function Icon.New(x, y, w, h, drawType, borderSize, borderColor, image)
local tbl = setmetatable(
{
id = -1,
width = w,
height = h,
x = x,
y = y,
drawType = drawType or 'rect',
borderSize = b... | mit |
Sasu98/Nerd-Gaming-Public | resources/NGJobs/criminal/vehicle_theft_c.lua | 2 | 1331 | -- NGJobs:Criminal:Theft:setWaypointsVisible
local waypoints = {
{ 1597.08, -1551.65, 13.59},
{ 2733.43, -1842.82, 9.97 },
{ 748.28, -1343.59, 13.52 },
}
local waypoint = { blip = { }, marker = { } }
addEvent ( "NGJobs:Criminal:Theft:setWaypointsVisible", true )
addEventHandler ( "NGJobs:Criminal:Theft:setWaypoint... | mit |
Anarchid/Zero-K | effects/gundam_heavybulletimpact.lua | 25 | 4293 | -- heavybulletimpact
return {
["heavybulletimpact"] = {
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0... | gpl-2.0 |
ComputerNerd/Retro-Graphics-Toolkit | TMS9918.lua | 1 | 6150 | --[[
This file is part of Retro Graphics Toolkit
Retro Graphics Toolkit 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 any later version.
Retro Graphics Toolkit is distr... | gpl-3.0 |
Anarchid/Zero-K | LuaUI/cache.lua | 4 | 5025 | -- Poisoning for Spring.* functions (caching, filtering, providing back compat)
if not Spring.IsUserWriting then
Spring.IsUserWriting = function()
return false
end
end
-- *etTeamColor
local teamColor = {}
-- GetVisibleUnits
local visibleUnits = {}
-- original functions
local GetTeamColor = Spring.GetTeamColor
l... | gpl-2.0 |
DiamondLovesYou/skia-sys | tools/lua/bitmap_statistics.lua | 207 | 1862 | 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
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
upndwn4par/android_external_skia | tools/lua/bitmap_statistics.lua | 207 | 1862 | 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
local canvas = nil
local num_perspective_bitmaps = 0
local num_affine_bitmaps = 0
local num_scaled_bitmaps = 0
loc... | bsd-3-clause |
Disslove77777/SSSS | plugins/logger.lua | 28 | 1214 | do
local function pre_process(msg)
if is_chat_msg(msg) then
local logtxt = os.date('%F;%T', msg.date)..';'..msg.to.title..';'..msg.to.id
..';'..(msg.from.first_name or '')..(msg.from.last_name or '')
..';@'..(msg.from.username or '')..';'..msg.from.id..';'
... | gpl-2.0 |
TylerR909/AppearanceSets_HideHelm | Libs/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua | 65 | 4515 | --[[-----------------------------------------------------------------------------
DropdownGroup Container
Container controlled by a dropdown on the top.
-------------------------------------------------------------------------------]]
local Type, Version = "DropdownGroup", 21
local AceGUI = LibStub and LibStub("AceGUI-... | mit |
jerizm/kong | spec/03-plugins/07-ip-restriction/01-schema_spec.lua | 11 | 2373 | local schemas_validation = require "kong.dao.schemas_validation"
local schema = require "kong.plugins.ip-restriction.schema"
local v = schemas_validation.validate_entity
describe("Plugin: ip-restriction (schema)", function()
it("should accept a valid whitelist", function()
assert(v({whitelist = {"127.0.0.1", "1... | apache-2.0 |
lxl1140989/dmsdk | feeds/luci/applications/luci-statistics/luasrc/statistics/i18n.lua | 69 | 2405 | --[[
Luci statistics - diagram i18n helper
(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 at
http://www.apache.org/licen... | gpl-2.0 |
moteus/lua-log | test/test_basic.lua | 3 | 9795 | local HAS_RUNNER = not not lunit
local lunit = require "lunit"
local TEST_CASE = assert(lunit.TEST_CASE)
local skip = lunit.skip or function() end
local path = require "path"
local utils = require "utils"
local LUA, ARGS = utils.lua_args(arg)
local PATH = path.fullpath(".")
local DATE_PAT = "%d... | mit |
TheWaffleDimension/lua-dungeon-crawler | game/classes/map_loader.lua | 1 | 4173 | local tml = {}
local maps = {}
local tilesets = {}
function tml:getMap(name)
end
local function loadLayer(layerData)
if not layerData then return nil end
local layer = {}
layer.name = tostring(layerData.name):lower()
layer.type = layerData.type
layer.x = layerData.x
layer.y = layerData.y
layer.offsetX... | mit |
TylerR909/AppearanceSets_HideHelm | Libs/AceComm-3.0/AceComm-3.0.lua | 20 | 10890 | --- **AceComm-3.0** allows you to send messages of unlimited length over the addon comm channels.
-- It'll automatically split the messages into multiple parts and rebuild them on the receiving end.\\
-- **ChatThrottleLib** is of course being used to avoid being disconnected by the server.
--
-- **AceComm-3.0** can be ... | mit |
lxl1140989/dmsdk | feeds/luci/modules/freifunk/luasrc/model/cbi/freifunk/basics.lua | 74 | 3518 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Manuel Munz <freifunk at somakoma 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
http:... | gpl-2.0 |
Anarchid/Zero-K | LuaUI/Widgets/chili/Skins/Evolved/skin.lua | 8 | 18360 | --// =============================================================================
--// Skin
local skin = {
info = {
name = "Evolved",
version = "0.3",
author = "jK",
}
}
--// =============================================================================
--//
skin.general = {
focusColor = {0.94, 0.50, 0... | gpl-2.0 |
nnesse/b2l-tools | lgi/samples/gstvideo.lua | 6 | 3219 | #! /usr/bin/env lua
--
-- Sample GStreamer application, based on public Vala GStreamer Video
-- Example (http://live.gnome.org/Vala/GStreamerSample)
--
local lgi = require 'lgi'
local GLib = lgi.GLib
local Gtk = lgi.Gtk
local GdkX11 = lgi.GdkX11
local Gst = lgi.Gst
if tonumber(Gst._version) >= 1.0 then
local Gs... | gpl-2.0 |
andwj/oblige-weird | scripts/brush.lua | 1 | 21517 | ------------------------------------------------------------------------
-- BRUSHES and TRANSFORMS
------------------------------------------------------------------------
--
-- Oblige Level Maker
--
-- Copyright (C) 2006-2014 Andrew Apted
--
-- This program is free software; you can redistribute it and/or
-- modi... | gpl-2.0 |
LuaDist2/ldoc | tests/example/style/simple.lua | 7 | 1227 | ---------------
-- Markdown-flavoured and very simple no-structure style.
--
-- Here the idea is to structure the document entirely with [Markdown]().
--
-- Using the default markdown processor can be a little irritating: you are
-- required to give a blank line before starting lists. The default stylesheet
-- i... | mit |
Anarchid/Zero-K | scripts/pw_artefact.lua | 8 | 1828 | include 'constants.lua'
local base = piece "base"
local wheel = piece "wheel"
local pumpcylinders = piece "pumpcylinders"
local turret = piece "turret"
local pump1 = piece "pump1"
local pump2 = piece "pump2"
local pump3 = piece "pump3"
local function Initialize()
Signal(1)
SetSignalMask(2)
Spin(wheel, y_axis, 3, ... | gpl-2.0 |
LORgames/premake-core | tests/base/test_criteria.lua | 15 | 10408 | --
-- tests/base/test_criteria.lua
-- Test suite for the criteria matching API.
-- Copyright (c) 2012-2015 Jason Perkins and the Premake project
--
local p = premake
local suite = test.declare("criteria")
local criteria = p.criteria
--
-- Setup and teardown
--
local crit
--
-- A criteria with no terms should ... | bsd-3-clause |
Anarchid/Zero-K | LuaRules/Configs/StartBoxes/Comet Catcher Redux.lua | 17 | 1056 | return {
[0] = {
nameLong = "North",
nameShort = "N",
startpoints = {
{3072,614},
{5120,614},
{1024,614},
},
boxes = {
{
{0,0},
{6144,0},
{6144,1229},
{0,1229},
},
},
},
[1] = {
nameLong = "South",
nameShort = "S",
startpoints = {
{3072,7578},
{1024,7578},
{5... | gpl-2.0 |
makefu/nodemcu-firmware | lua_modules/bmp085/bmp085.lua | 69 | 5037 | --------------------------------------------------------------------------------
-- BMP085 I2C module for NODEMCU
-- NODEMCU TEAM
-- LICENCE: http://opensource.org/licenses/MIT
-- Christee <Christee@nodemcu.com>
--------------------------------------------------------------------------------
local moduleName = ... ... | mit |
LORgames/premake-core | tests/project/test_config_maps.lua | 32 | 3971 | --
-- tests/project/test_config_maps.lua
-- Test mapping from workspace to project configurations.
-- Copyright (c) 2012-2014 Jason Perkins and the Premake project
--
local suite = test.declare("project_config_maps")
--
-- Setup and teardown
--
local wks, prj, cfg
function suite.setup()
wks = workspace("MyWor... | bsd-3-clause |
gbox3d/nodemcu-firmware | lua_modules/ds3231/ds3231-web.lua | 84 | 1338 | require('ds3231')
port = 80
-- ESP-01 GPIO Mapping
gpio0, gpio2 = 3, 4
days = {
[1] = "Sunday",
[2] = "Monday",
[3] = "Tuesday",
[4] = "Wednesday",
[5] = "Thursday",
[6] = "Friday",
[7] = "Saturday"
}
months = {
[1] = "January",
[2] = "Febuary",
[3] = "March",
[4] = "Apri... | mit |
Anarchid/Zero-K | LuaUI/camain.lua | 5 | 4061 | -- $Id: camain.lua 3171 2008-11-06 09:06:29Z det $
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: main.lua
-- brief: the entry point from gui.lua, relays call-ins to the widget manager
-... | gpl-2.0 |
gberger/PES-3 | src/controllers/authentication_controller.lua | 1 | 1936 | --[[
Módulo responsável por ser o controlador das rotas autenticação de usuário
Possui as seguintes funções:
login: exibe página de login
authenticate: verifica se a senha de usuário é válida
logout: efetua o logout do usuário
]]
local view = require('view')
local Authentication = require('models/authentication')
l... | mit |
Sasu98/Nerd-Gaming-Public | resources/NGModshop/cBlip.lua | 2 | 1227 | local locations = { }
local shopBlips = { }
local areBlipsEnabled = false;
addEvent ( "NGModshop:sendClientShopLocations", true );
addEventHandler ( "NGModshop:sendClientShopLocations", root, function ( l )
locations = l;
end );
addEvent ( "onClientPlayerLogin", true );
addEventHandler ( "onClientPlayerLogin", root,... | mit |
Anarchid/Zero-K | LuaUI/Widgets/unit_shapes.lua | 4 | 24479 | function widget:GetInfo()
return {
name = "UnitShapes",
desc = "0.5.8.zk.02 Draws blended shapes around units and buildings",
author = "Lelousius and aegis, modded Licho, CarRepairer, jK, Shadowfury333",
date = "30.07.2010",
license = "GNU GPL, v2 or later",
la... | gpl-2.0 |
cburlacu/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 |
Sasu98/Nerd-Gaming-Public | resources/NGBank/bank_server.lua | 2 | 6865 | local bankLocations = {
-- { x, y, z, int, dim, { out x, out y, out z } },
{ 362.3, 173.67, 1008.38, 3, 1, { 914.21, -1001.5, 38.1 } },
{ 362.3, 173.67, 1008.38, 3, 2, { 2474.86, 1021.09, 10.82 } },
{ 362.3, 173.67, 1008.38, 3, 3, { -1705.67, 785.32, 24.89 } },
--{ 2478.19, 1013.93, 10.68, 0, 0, { 899.88, -984.7, ... | mit |
fegimanam/crd | plugins/Boobs.lua | 150 | 1613 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
Mutos/StarsOfCall-NAEV | dat/events/npc/npc.lua | 1 | 8153 |
--[[
-- Event for creating random characters in the spaceport bar.
-- The random NPCs will tell the player things about the Naev universe in general, about their faction, or about the game itself.
-- This file contains the mechanisms to retrieve and display the messages.
-- Actual messages are dispatched in sever... | gpl-3.0 |
Anarchid/Zero-K | LuaRules/Utilities/glVolumes.lua | 8 | 10399 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Exported Functions:
-- gl.Utilities.DrawMyBox(minX,minY,minZ, maxX,maxY,maxZ)
-- gl.Utilities.DrawMyCylinder(x,y,z, height,radius,divs)
-- gl.Utilities.... | gpl-2.0 |
lxl1140989/dmsdk | feeds/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... | gpl-2.0 |
sric0880/unity-framework | tools/build_lua/LuaEncoder/luajit_ios/x86/jit/bcsave.lua | 41 | 18267 | ----------------------------------------------------------------------------
-- LuaJIT module to save/list bytecode.
--
-- Copyright (C) 2005-2016 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
-------------------------------------------------------------------------... | mit |
lxl1140989/dmsdk | feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/interface.lua | 78 | 1325 | --[[
Luci configuration model for statistics - collectd interface plugin configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Lic... | gpl-2.0 |
lxl1140989/dmsdk | feeds/luci/applications/luci-minidlna/luasrc/controller/minidlna.lua | 73 | 1448 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | gpl-2.0 |
Anarchid/Zero-K | scripts/zenith.lua | 1 | 11667 | include "constants.lua"
local base = piece "base"
local flare = piece "flare"
local firept = piece "firept"
local SOURCE_RANGE = 4000 -- size of the box which the emit point can be randomly placed in
local SOURCE_HEIGHT = 9001
local HOVER_RANGE = 1600
local HOVER_HEIGHT = 2600
local AIM_RADIUS = 160
-- 6 minutes t... | gpl-2.0 |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/luaui/widgets/cmd_buildsplit.lua | 1 | 3324 |
function widget:GetInfo()
return {
name = "Build Split",
desc = "Splits builds over cons, and vice versa",
author = "Niobium",
version = "v1.0",
date = "Jan 11, 2009",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true -- loaded by default?
}
end
local floor = ma... | gpl-2.0 |
PichotM/DarkRP | entities/weapons/weapon_mp52/shared.lua | 12 | 1074 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "MP5"
SWEP.Author = "DarkRP Developers"
SWEP.Slot = 2
SWEP.SlotPos = 0
SWEP.IconLetter = "x"
killicon.AddFont("weapon_mp52", "CSKillIcons", SWEP.IconLetter, Color(255, 80, 0, 255))
end
SWEP.Base = "weapon_cs_base2"
SWEP.Spawnable = true
SWEP.Adm... | mit |
bell07/minetest-smart_inventory | inventory_framework.lua | 1 | 3664 | local smartfs = smart_inventory.smartfs
local maininv = smart_inventory.maininv
local modpath = smart_inventory.modpath
-- smartfs callback
local inventory_form = smartfs.create("smart_inventory:main", function(state)
-- enhanced object to the main inventory functions
state.param.invobj = maininv.get(state.location... | lgpl-3.0 |
Anarchid/Zero-K | units/hoversonic.lua | 3 | 3810 | return { hoversonic = {
unitname = [[hoversonic]],
name = [[Morningstar]],
description = [[Antisub Hovercraft]],
acceleration = 0.24,
activateWhenBuilt = true,
brakeRate = 0.43,
buildCostMetal = 300,
builder = false,
buildPic ... | gpl-2.0 |
Sannis/tarantool | test/big/bitset.test.lua | 7 | 4871 | dofile('utils.lua')
dofile('bitset.lua')
create_space()
------------------------------------------------------------------------------
-- BitsetIndex: insert/delete
------------------------------------------------------------------------------
test_insert_delete(128)
-------------------------------------------------... | bsd-2-clause |
Whit3Tig3R/bestspammbot2 | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
amircheshme/megatron | bot/utils.lua | 239 | 13499 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
http.TIMEOUT = 10
funct... | gpl-2.0 |
apkbox/asplite | asplite/util/bin2c.lua | 2 | 4744 | --[=[
// The MIT License (MIT)
//
// Copyright (c) 2013 Alex Kozlov
//
// 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
// us... | mit |
Anarchid/Zero-K | effects/gundam_burnteal.lua | 25 | 3400 | -- burnteal
return {
["burnteal"] = {
groundflash = {
alwaysvisible = true,
circlealpha = 1,
circlegrowth = 3,
flashalpha = 1,
flashsize = 25,
ttl = 8,
color = {
[1] = 0,
[2] = 0.5,
[3] = 0.5,
... | gpl-2.0 |
helingping/Urho3D | bin/Data/LuaScripts/27_Urho2DPhysics.lua | 24 | 7973 | -- Urho2D physics sample.
-- This sample demonstrates:
-- - Creating both static and moving 2D physics objects to a scene
-- - Displaying physics debug geometry
require "LuaScripts/Utilities/Sample"
function Start()
-- Execute the common startup for samples
SampleStart()
-- Create the scene conte... | mit |
ZKINGBOTZ/KING | 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 |
mpranj/libelektra | src/bindings/swig/lua/tests/test_key.lua | 3 | 3768 | require("kdb")
local key = kdb.Key("user:/foo/bar",
kdb.KEY_VALUE, "value",
kdb.KEY_META, "by", "manuel",
kdb.KEY_META, "owner", "myowner"
)
local bkey = kdb.Key("system:/bkey",
kdb.KEY_FLAGS, kdb.KEY_BINARY,
kdb.KEY_VALUE, "bvalue\0\0",
kdb.KEY_END,
kdb.KEY_META, "lost", "lost"
)
-- ctor
assert(swig_... | bsd-3-clause |
Mutos/SoC-Test-001 | dat/scripts/pilot/generic.lua | 18 | 1641 | --[[
-- @brief Adds an outfit from a list of outfits to the pilot.
--
-- Outfits parameter should be something like:
--
-- outfits = {
-- "Laser Cannon",
-- { "Unicorp Fury Launcher", { "Fury Missile", 10 } }
-- }
--
-- @param p Pilot to add outfits to.
-- @param o Table to add what was added.
-- @param... | gpl-3.0 |
Anarchid/Zero-K | scripts/raveparty.lua | 5 | 4450 | include "pieceControl.lua"
local base, turret, spindle, fakespindle = piece('base', 'turret', 'spindle', 'fakespindle')
local guns = {}
for i=1,6 do
guns[i] = {
center = piece('center'..i),
sleeve = piece('sleeve'..i),
barrel = piece('barrel'..i),
flare = piece('flare'..i),
y = 0,
z = 0,
}
end
local hp... | gpl-2.0 |
166MMX/OpenRA | mods/cnc/maps/nod03a/nod03a.lua | 2 | 2671 | NodUnits = { "bike", "e3", "e1", "bggy", "e1", "e3", "bike", "bggy" }
FirstAttackWave = { "e1", "e1", "e1", "e2", }
SecondThirdAttackWave = { "e1", "e1", "e2", }
SendAttackWave = function(units, spawnPoint)
Reinforcements.Reinforce(enemy, units, { spawnPoint }, DateTime.Seconds(1), function(actor)
actor.AttackMove(... | gpl-3.0 |
mridgers/clink | clink/app/scripts/self.lua | 2 | 1763 | -- Copyright (c) 2012 Martin Ridgers
-- License: http://opensource.org/licenses/MIT
--------------------------------------------------------------------------------
local nothing = clink.argmatcher()
--------------------------------------------------------------------------------
local inject = clink.argmatcher()
:ad... | gpl-3.0 |
lxl1140989/dmsdk | feeds/luci/modules/base/luasrc/model/network.lua | 47 | 33988 | --[[
LuCI - Network model
Copyright 2009-2010 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... | gpl-2.0 |
lxl1140989/dmsdk | feeds/luci/modules/base/luasrc/cbi.lua | 76 | 40152 | --[[
LuCI - Configuration Bind Interface
Description:
Offers an interface for binding configuration values to certain
data types. Supports value and range validation and basic dependencies.
FileId:
$Id$
License:
Copyright 2008 Steven Barth <steven@midlink.org>
Licensed under the Apache License, Version 2.0 (the "Li... | gpl-2.0 |
CyberSecurityBot/Cyber-Security-pro | plugins/setlang.lua | 1 | 5564 | local function reload_plugins( )
plugins = {}
load_plugins()
end
function run(msg, matches)
if is_sudo(msg) or is_owner(msg) or is_admin(msg) or is_admin2(msg) then
if msg.to.type == 'channel' then
if matches[1] == "setlang" and matches[2] == "en" then
redis:set("sp:lang", "en")
file = htt... | agpl-3.0 |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/luaui/fonts/freesansbold_14.lua | 2 | 33857 | -- $Id: FreeSansBold_14.lua 3171 2008-11-06 09:06:29Z det $
local fontSpecs = {
srcFile = [[FreeSansBold.ttf]],
family = [[FreeSans]],
style = [[Bold]],
yStep = 15,
height = 14,
xTexSize = 512,
yTexSize = 256,
outlineRadius = 2,
outlineWeight = 100,
}
local glyphs = {}
glyphs[32] = { --'... | gpl-2.0 |
Mutos/SoC-Test-001 | dat/missions/neutral/kidnapped/traffic_00.lua | 10 | 14297 | --[[
MISSION: Kidnapped
AUTHOR: Superkoop - John Koopman
The first mission in a series of missions surrounding human trafficking. This mission consists of overhearing pirate a couple pirate conversations, disabling a trader ship, and returning the children home to their parents. It essentially sets u... | gpl-3.0 |
nimaghorbani/dozdi2 | 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 |
Anarchid/Zero-K | LuaUI/Configs/marking_menu_menu_athena.lua | 8 | 1311 | local menu_athena = {
items = {
{
angle = -90,
unit = "cloakcon",
label = "Bots",
items = {
{
angle= -45,
unit = "spiderscout",
},
{
angle = -135,
unit = "shieldraid",
},
{
angle = -180,
unit = "cloakheavyraid",
},
{
angle = 0,
unit = "cloakaa",
},
... | gpl-2.0 |
Sewerbird/blooming-suns | src_old/ui/component/PlanetsideTilemapCommandPanelComponent.lua | 1 | 2191 | --PlanetsideTilemapCommandPanelComponent
PlanetsideTilemapCommandPanelComponent = {}
PlanetsideTilemapCommandPanelComponent.new = function (init)
local init = init or {}
local self = {
target = init.target or nil,
description = init.description or "Commands",
ui_rect = init.ui_rect or {x = 0, y = 0, w ... | gpl-3.0 |
helingping/Urho3D | Source/ThirdParty/toluapp/src/bin/lua/module.lua | 44 | 1479 | -- tolua: module class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements,... | mit |
Insurgencygame/LivingDead | TheLivingDeadv0.1.sdd/gadg dev/Stealth_speed_state_1.7.lua | 1 | 2584 | function gadget:GetInfo()
return {
name = "Speed / Stealth state",
desc = "Toggles a units speed and decloak range.",
author = "Zealot",
date = "18 March 2013",
license = "GNU LGPL, v2.1 or later",
layer = 100, -------------------------What does this do?
enabled ... | gpl-2.0 |
Disslove77777/SSSS | plugins/moderation.lua | 29 | 12162 | do
local function check_member(extra, success, result)
local data = extra.data
for k,v in pairs(result.members) do
if v.id ~= our_id then
data[tostring(extra.msg.to.id)] = {
moderators = {[tostring(v.id)] = '@'..v.username},
settings = {
set_name = string.gsub(ex... | gpl-2.0 |
Sasu98/Nerd-Gaming-Public | resources/NGDrugs/weed_client.lua | 2 | 4343 | drugs.Marijuana = {
loaded = false,
func = { },
var = {
rasta = {
{ 0, 255, 0 },
{ 255, 255, 0 },
{ 255, 0, 0 }
}
},
info = {
timePerDoce = 30,
}
}
local weed = drugs.Marijuana
function weed.func.load ( )
if ( not weed.loaded ) then
weed.loaded = true
if ( not isElement ( weed.var.music ) ... | mit |
Whit3Tig3R/bestspammbot2 | plugins/btc.lua | 289 | 1375 | -- See https://bitcoinaverage.com/api
local function getBTCX(amount,currency)
local base_url = 'https://api.bitcoinaverage.com/ticker/global/'
-- Do request on bitcoinaverage, the final / is critical!
local res,code = https.request(base_url..currency.."/")
if code ~= 200 then return nil end
local data = j... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.