repo_name stringlengths 6 78 | path stringlengths 4 206 | copies stringclasses 281
values | size stringlengths 4 7 | content stringlengths 625 1.05M | license stringclasses 15
values |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/rebel/rebelGeneral.lua | 1 | 4645 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/grenadeSet.lua | 1 | 2219 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versi... | lgpl-3.0 |
bartvm/Penlight | lua/pl/func.lua | 14 | 10456 | --- Functional helpers like composition, binding and placeholder expressions.
-- Placeholder expressions are useful for short anonymous functions, and were
-- inspired by the Boost Lambda library.
--
-- > utils.import 'pl.func'
-- > ls = List{10,20,30}
-- > = ls:map(_1+1)
-- {11,21,31}
--
-- They can also b... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/weaponsmith/noviceWeaponsmith/weaponScope.lua | 1 | 4248 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Hammerspoon/hammerspoon | extensions/crash/crash.lua | 4 | 1770 | --- === hs.crash ===
---
--- Various features/facilities for developers who are working on Hammerspoon itself, or writing extensions for it. It is extremely unlikely that you should need any part of this extension, in a normal user configuration.
local crash = require "hs.libcrash"
--- hs.crash.dumpCLIBS() -> table
-... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/creatures/warrenHuurtonFierce.lua | 1 | 4723 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
nicholas-leonard/optim | cg.lua | 15 | 5634 | --[[
This cg implementation is a rewrite of minimize.m written by Carl
E. Rasmussen. It is supposed to produce exactly same results (give
or take numerical accuracy due to some changed order of
operations). You can compare the result on rosenbrock with minimize.m.
http://www.gatsby.ucl.ac.uk/~edward/code/minimize/exam... | bsd-3-clause |
Mohammadrezar/telediamond | plugins/banhammer.lua | 9 | 13240 |
local function pre_process(msg)
local data = load_data(_config.moderation.data)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Che... | agpl-3.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/bandolier/bandolier1.lua | 1 | 2263 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
MaxG87/awesome | lib/gears/sort.lua | 11 | 1694 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.sort
---------------------------------------------------------------------------
local setmetatable = setmetatable
local ipairs = ipairs... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/cannonNpcs/mellichae.lua | 2 | 4994 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
amirfo18/Star-Queen | libs/XMLElement.lua | 569 | 4025 | -- Copyright 2009 Leo Ponomarev. Distributed under the BSD Licence.
-- updated for module-free world of lua 5.3 on April 2 2015
-- Not documented at all, but not interesting enough to warrant documentation anyway.
local setmetatable, pairs, ipairs, type, getmetatable, tostring, error = setmetatable, pairs, ipairs, typ... | gpl-3.0 |
fischerling/lumail2 | t/luaunit.lua | 4 | 90827 | --[[
luaunit.lua
Description: A unit testing framework
Homepage: https://github.com/bluebird75/luaunit
Development by Philippe Fremy <phil@freehackers.org>
Based on initial work of Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit)
License: BSD License, see LICENSE.txt
Version: 3.2
]] --
require "math"
loc... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/spined_snake/objects.lua | 1 | 6082 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/creatures/ikopiStoutStallion.lua | 1 | 4753 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/corellia/npcs/beldonnasAttacks.lua | 1 | 2971 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
robertbrook/underscore_lua | lib/underscore.lua | 22 | 9838 | -- Copyright (c) 2009 Marcus Irven
--
-- Permission is hereby granted, free of charge, to any person
-- obtaining a copy of this software and associated documentation
-- files (the "Software"), to deal in the Software without
-- restriction, including without limitation the rights to use,
-- copy, modify, merge, publ... | mit |
TheAnswer/FirstTest | bin/scripts/object/intangible/data_item/objects.lua | 1 | 12224 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/intangible/ship/objects.lua | 1 | 57080 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
Afforess/ConcreteLogistics | libs/tile_cache.lua | 1 | 1644 |
tile_cache = {}
function tile_cache.new(pos, height, width)
local cache = {center_position = {x = math.floor(pos.x), y = math.floor(pos.y)}, height = height, width = width, cache_table = {}}
tile_cache.reset(cache)
return cache
end
function tile_cache.reset(cache)
cache.cache_table = {}
for dx = 0... | isc |
Mizugola/MeltingSagaEngine | engine/Lib/Extlibs/pl/strict.lua | 8 | 3889 | --- Checks uses of undeclared global variables.
-- All global variables must be 'declared' through a regular assignment
-- (even assigning `nil` will do) in a main chunk before being used
-- anywhere or assigned to inside a function. Existing metatables `__newindex` and `__index`
-- metamethods are respected.
--
-- Yo... | mit |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/position.lua | 2 | 2088 | --prints current time and position
--[====[
position
========
Reports the current time: date, clock time, month, and season. Also reports
location: z-level, cursor position, window size, and mouse location.
]====]
local months = {
'Granite, in early Spring.',
'Slate, in mid Spring.',
'Fel... | mit |
selboo/wrk | deps/luajit/dynasm/dasm_mips.lua | 74 | 28080 | ------------------------------------------------------------------------------
-- DynASM MIPS module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _i... | apache-2.0 |
ruphy/tagua | data/scripts/piece_theme.lua | 1 | 1995 |
function addShadow(func)
return function(size, args)
local isz = math.floor( size*100/(100+shadow_grow) + 0.5)
local offx = shadow_offset_x*isz/200
local offy = shadow_offset_y*isz/200
local i = func(isz, args)
local s = i:create_shadow( shadow*isz/100, shadow_color,
... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_sg550.lua | 1 | 2392 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "SG550"
SWEP.Slot = 3
SWEP.SlotPos = 0
SWEP.ViewModelFOV = 60
SWEP.ViewModelFlip = false
end
SWEP.HoldType = "ar2"
SWEP.Base = "wea... | gpl-2.0 |
fischerling/lumail2 | t/test.progress_bar.lua | 4 | 3645 | --
-- Configure a sane load-path
--
package.path = package.path .. ";t/?.lua;../lib/?.lua;lib/?.lua"
--
-- Require our unit-testing framework.
--
luaunit = require 'luaunit'
--
-- Require the library we're testing
--
Progress = require "progress_bar"
--
-- Mocked function.
--
Screen = {}
function Screen:width ()
r... | gpl-2.0 |
zain211/zain.aliraqe | en-h1.lua | 1 | 2511 | do
local function run(msg, matches)
if is_momod(msg) and matches[1]== "h 1" then
return [[
الاوامر العامه او الرئيسية
××××××××××××××××××
✔️ Group Promote commands
⚪️ setadmin : رفع ادمن في المجموعة
⚪️ deadmin : حذف ادمن في المجوعة
⚪️ promote : رفع ادمن
⚪️ demote : حذف ادمن
⚪️ spromote : اضافة #مدير
⚪️ modlist : لا... | gpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/gui/create-item.lua | 2 | 8664 | -- create-item.lua
-- A gui-based item creation script.
-- author Putnam
-- edited by expwnent
--@module = true
--[====[
gui/create-item
===============
A graphical interface for creating items.
See also: `createitem`, `modtools/create-item`, :issue:`735`
]====]
local function getGenderString(gender)... | mit |
Wargus/stargus | scripts/terran/unit-terran-armory.lua | 1 | 1329 | --
-- unit-terran-armory
--
DefineAnimations("animations-terran-armory", {
Still = {
"frame 0", "wait 125",
},
Research = {--[[FIXME: active overlay 269]]
"frame 0", "wait 125",
},
})
DefineConstruction("construction-terran-armory", {
Files = image_327_terran_tbldmed_var,
ShadowFiles = image_327_t... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/object.lua | 1 | 2272 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Animate3D.lua | 1 | 3835 |
--------------------------------
-- @module Animate3D
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- get & set speed, negative speed means playing reverse
-- @function [parent=#Animate3D] getSpeed
-- @param self
-- @return float#float ret (return value: float)
... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/flit/objects.lua | 1 | 5939 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
Xeltor/ovale | libs/AceBucket-3.0/AceBucket-3.0.lua | 21 | 10446 | --- A bucket to catch events in. **AceBucket-3.0** provides throttling of events that fire in bursts and
-- your addon only needs to know about the full burst.
--
-- This Bucket implementation works as follows:\\
-- Initially, no schedule is running, and its waiting for the first event to happen.\\
-- The first ev... | mit |
RockySeven3161/Unknown | libs/mimetype.lua | 3662 | 2922 | -- 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/atom... | gpl-2.0 |
ftpvanmaanen/esp8266 | tools/LuaLoader/examples/DS18B20 One Wire Temperature server.lua | 2 | 1969 | -- 1 wire to server for DS18B20 temperature sensor
-- http://www.esp8266.com/viewtopic.php?f=19&t=752
-- http://www.esp8266.com/viewtopic.php?f=19&t=757
-- untested
pin = 9
ow.setup(pin)
counter=0
lasttemp=-999
function bxor(a,b)
local r = 0
for i = 0, 31 do
if ( a % 2 + b % 2 == 1 ) then
r = ... | gpl-2.0 |
zain211/zain.aliraqe | libs/mimetype.lua | 3662 | 2922 | -- 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/atom... | gpl-3.0 |
badboyam/redstorm | libs/mimetype.lua | 3662 | 2922 | -- 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/atom... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/formalWearIFashionBasics/fashionablyPleatedSkirt.lua | 1 | 4525 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiiWeatherWear/sunguard.lua | 1 | 4389 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Xeltor/ovale | dist/scripts/ovale_common.lua | 1 | 17049 | local __exports = LibStub:NewLibrary("ovale/scripts/ovale_common", 80300)
if not __exports then return end
__exports.registerCommon = function(OvaleScripts)
local name = "ovale_common"
local desc = "[8.2] Ovale: Common spell definitions"
local code = [[
# Common spell definitions shared by all classes and s... | mit |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/fynock/objects.lua | 1 | 4655 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/squall/objects.lua | 1 | 4657 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
kensipe/dcos | packages/adminrouter/extra/src/lib/url.lua | 16 | 11957 | -- neturl.lua - a robust url parser and builder
-- https://raw.githubusercontent.com/golgote/neturl/master/lib/net/url.lua
--
-- Bertrand Mansion, 2011-2013; License MIT
-- Copyright (c) 2011-2013 Bertrand Mansion
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and... | apache-2.0 |
bgould/thrift | lib/lua/TFramedTransport.lua | 19 | 2952 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/twilekHats.lua | 1 | 2208 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/setMatchMakingPersonalId.lua | 1 | 2493 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Ref.lua | 1 | 2377 |
--------------------------------
-- @module Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Ref] setLuaDerivedRefId
-- @param self
-- @param #int refId
-- @return Ref#Ref self (return value: cc.Ref)
--------------------------------
--
-- @function [parent=#... | apache-2.0 |
shunwang/google-diff-match-patch | lua/diff_match_patch_test.lua | 264 | 39109 | --[[
* Test Harness for Diff Match and Patch
*
* Copyright 2006 Google Inc.
* http://code.google.com/p/google-diff-match-patch/
*
* Based on the JavaScript implementation by Neil Fraser
* Ported to Lua by Duncan Cross
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except... | apache-2.0 |
Andrettin/Wyrmsun | scripts/civilizations/dwarf/dialogues_a_home_in_the_fields_of_sand.lua | 1 | 3367 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/creatures/thune.lua | 1 | 4661 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/lua/gui/script.lua | 3 | 4056 | -- Support for scripted interaction sequences via coroutines.
local _ENV = mkmodule('gui.script')
local dlg = require('gui.dialogs')
--[[
Example:
start(function()
sleep(100, 'frames')
print(showYesNoPrompt('test', 'print true?'))
end)
]]
-- Table of running background scripts.
if not... | mit |
fischerling/lumail2 | sample.lua/collapseable_threads.lua | 4 | 2803 | --
-- This file demonstrates how the `index_view()` function could be overridden to
-- make threads in the index_view collapseable (based on Message-Id and
-- In-Reply-To headers).
--
-- For collapsing threads, "index.expand" must be set to zero.
-- If it is not set, the function behaves like the original `index_view()... | gpl-2.0 |
infernall/nevermind | 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 |
dani-sj/danyal01 | 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 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/MotionContext.lua | 1 | 1646 |
--------------------------------
-- @module MotionContext
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#MotionContext] setProperty
-- @param self
-- @param #char propName
-- @param #cc.Value v
-- @return MotionContext#MotionContext self (return value: cc.M... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/npcs/korga/korgaDarkShaman.lua | 1 | 4740 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/OptionsFrame.lua | 1 | 21017 | OPTIONS_FARCLIP_MIN = 177;
OPTIONS_FARCLIP_MAX = 777;
OptionsFrameCheckButtons = { };
OptionsFrameCheckButtons["DESKTOP_GAMMA"] = { index = 1, cvar = "desktopGamma", tooltipText = OPTION_TOOLTIP_USE_DESKTOP_GAMMA};
OptionsFrameCheckButtons["TERRAIN_HIGHLIGHTS"] = { index = 2, cvar = "specular", dependency = "ENAB... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/faction/gcwStatus.lua | 1 | 2439 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
danushkaf/contrib | ingress/controllers/nginx/lua/error_page.lua | 45 | 1661 | http = require "resty.http"
def_backend = "upstream-default-backend"
local concat = table.concat
local upstream = require "ngx.upstream"
local get_servers = upstream.get_servers
local get_upstreams = upstream.get_upstreams
local random = math.random
local us = get_upstreams()
function openURL(status)
local httpc ... | apache-2.0 |
mrshayan/iranpower_english | bot/utils.lua | 494 | 23873 | 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")()
JSON = (loadfile "./libs/... | gpl-2.0 |
sailzeng/luatie | src/luatie/lua/lua_test_03.lua | 2 | 1055 | -- ¶ÔÏó²âÊÔ
tb_ptr_2.b_array_[1] = 10000
tb_ptr_1.a_ = 1111
tb_ptr_2:set_a(2222)
tb_val:set_b1(1)
print("ta_ptr.a_ = "..ta_ptr.a_)
print("ta_ref.a_ = "..ta_ref.a_)
print("ta_val.a_ = "..ta_val.a_)
ta_ptr.a_ = 20000
ta_ref.a_ = 30000
ta_val.a_ = 40000
print("tb_ptr_1.b1_ = "..tb_ptr_1.b1_)
print("tb_ptr_1.b2_ = "... | apache-2.0 |
bartvm/Penlight | tests/test-tablex.lua | 8 | 4509 | local tablex = require 'pl.tablex'
local utils = require ('pl.utils')
local L = utils.string_lambda
local test = require('pl.test')
-- bring tablex funtions into global namespace
utils.import(tablex)
local asserteq = test.asserteq
local cmp = deepcompare
function asserteq_no_order (x,y)
if not compare_... | mit |
jfrazelle/kubernetes | test/images/echoserver/template.lua | 195 | 17200 | -- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua
-- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex.
--[[
Copyright (c) 2014 - 2017 Aapo Talvensaari
All rights reserved.
Redistribu... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/clothing/pants/pants22.lua | 1 | 2288 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
ajauhri/evol-ant-placement | luas/tc2_hc.lua | 1 | 5883 | load_platform("input/S6 - 4ft square plate w box and sides sloped front fixed.nec")
add_antenna("input/A1 - 75mono fixed.nec")
add_point( -0.508000, 0.508000, 0.000000)
add_point( -0.406400, 0.508000, 0.000000)
add_point( -0.304800, 0.508000, 0.000000)
add_point( -0.304800, 0.406400, 0.000000)
add... | bsd-3-clause |
REZATITAN/XY | plugins/banhammer.lua | 6 | 18135 | -- data saved to moderation.json
-- data saved to moderation.json
do
-- make sure to set with value that not higher than stats.lua
local NUM_MSG_MAX = 4 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 4
local function kick_user(user_id, chat_id)
-- check if user was kicked in the la... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIvComplexClothing/longVest.lua | 1 | 4346 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/corsec/corsecInvestigator.lua | 1 | 4556 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
Andrettin/Wyrmsun | scripts/civilizations/teuton/characters_austrian.lua | 1 | 11946 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/objvar.lua | 1 | 2421 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/talus/creatures/fynock.lua | 1 | 4662 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/ComAudio.lua | 1 | 6337 |
--------------------------------
-- @module ComAudio
-- @extend Component
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ComAudio] stopAllEffects
-- @param self
-- @return ComAudio#ComAudio self (return value: ccs.ComAudio)
--------------------------------
--
... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/bloodDrenchedMerekKing.lua | 1 | 4745 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/lok/npcs/canyonCorsair/canyonCorsairPirateWeak.lua | 1 | 4644 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_bonemesh/shared.lua | 1 | 1279 | SWEP.Base = "weapon_zs_zombie"
SWEP.MeleeReach = 48
SWEP.MeleeDelay = 0.55
SWEP.MeleeSize = 1.5
SWEP.MeleeDamage = 35
SWEP.MeleeDamageType = DMG_SLASH
SWEP.MeleeAnimationDelay = 0.05
SWEP.FrozenWhileSwinging = false
SWEP.Primary.Delay = 1.6
SWEP.ViewModel = Model("models/weapons/v_pza.mdl")
SWEP.WorldModel = "models... | gpl-2.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/Follow.lua | 1 | 1880 |
--------------------------------
-- @module Follow
-- @extend Action
-- @parent_module cc
--------------------------------
-- Alter behavior - turn on/off boundary. <br>
-- param value Turn on/off boundary.
-- @function [parent=#Follow] setBoundarySet
-- @param self
-- @param #bool value
-- @return Foll... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/corellia/creatures/razorCatAttacks.lua | 1 | 1840 | razorCatAttack1 = {
attackname = "razorCatAttack1",
animation = "creature_attack_light",
requiredWeaponType = NONE,
range = 7,
damageRatio = 1.2,
speedRatio = 4,
arearange = 7,
accuracyBonus = 0,
knockdo... | lgpl-3.0 |
Hammerspoon/hammerspoon | extensions/axuielement/axuielement.lua | 3 | 57914 | --- === hs.axuielement ===
---
--- This module allows you to access the accessibility objects of running applications, their windows, menus, and other user interface elements that support the OS X accessibility API.
---
--- This module works through the use of axuielementObjects, which is the Hammerspoon representation... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/mamienAncient.lua | 1 | 4699 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/overchargeShot.lua | 1 | 2584 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/dantooine/creatures/bolAttacks.lua | 1 | 7057 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Ghostofpq/PewPewPew | game/lib/ecusson/Rectangle.lua | 3 | 5834 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- Rectangle.lua
--
-- An abstract layer over the Corona rectangles, used to simplify how it is handled by
-- Corona.
-- It features:
-- The resizin... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/modules/admin_mod/sv_pmapmanager.lua | 1 | 37717 | --I think dis gonna b gud
MapCycle_cl = {}
MapProperties_cl = {}
MapTab = {}
PropTab = {}
MapSelected = nil
MapSelectedProp = nil
function OpenMapManager()
MapPanelW,MapPanelH = ScaleW(450), ScaleH(500)
MapPanel = vgui.Create("DFrame")
MapPanel:SetSize(MapPanelW,MapPanelH)
MapPanel:SetPos(w/2-MapPanelW/2,h... | gpl-2.0 |
mkwia/jc2atc | scripts/airportdoors/server/sAirportDoors.lua | 1 | 1675 | towers = {
maintower = {
pos = Vector3(-6757.519043, 337.996887, -3717.340576),
rad = 8.4},
r2tower = {
pos = Vector3(-6494.007569, 217.965866, -3148.610840),
rad = 5.761892},
r1tower1 = {
pos = Vector3(-6578.255371, 217.26535, -2937.3790285),
rad = 5.761892},
r1tower2 = {
pos = Vector3(-6933.5478515, 217.0299685, ... | mit |
m13790115/mahdi | plugins/Moderator_Gp.lua | 37 | 37415 | 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
-- Group configuration
data[tostring(msg.to.id)] = {
... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/anim.lua | 1 | 75440 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
B1GAPTEAM/B1GAPBOT | plugins/inrealm.lua | 8 | 27303 | -- 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) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_nam... | gpl-2.0 |
GeekWithALife/love-bone | lovebone/actor.lua | 1 | 9563 | --[[
Actor
This is what ties everything together.
Each actor has a reference to a skeleton, its own transformer/eventhandler, and a list of attachments.
--]]
local util = RequireLibPart("util");
local newVisual = RequireLibPart("visual");
local newAttachment = RequireLibPart("attachment");
local newTransformer = R... | mit |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/addAllowedPlayer.lua | 1 | 2506 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later version.
... | lgpl-3.0 |
technomancy/ss-calandria | mods/digilines/digilines/internal.lua | 3 | 2341 | function digiline:getspec(node)
if not minetest.registered_nodes[node.name] then return false end
return minetest.registered_nodes[node.name].digiline
end
function digiline:importrules(spec, node)
if type(spec) == 'function' then
return spec(node)
elseif spec then
return spec
else
return digiline.rules.defa... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIvPadded/kashyyykianBlackMountainRightBracer.lua | 1 | 5252 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_tosser.lua | 1 | 1131 | AddCSLuaFile()
if CLIENT then
SWEP.PrintName = "'Classic' SMG"
SWEP.Slot = 2
SWEP.SlotPos = 0
SWEP.HUD3DBone = "ValveBiped.base"
SWEP.HUD3DPos = Vector(1.5, 0.25, -2)
SWEP.HUD3DScale = 0.02
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 60
end
SWEP.Base = "weapon_zs_base"
SWEP.HoldType = "... | gpl-2.0 |
devilrap97/alirap97 | plugins/ar-supergroup.lua | 10 | 80767 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ Orders : الاوامر ▀▄ ▄▀
▀▄... | gpl-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/weapons/weapon_zs_spotlamp/init.lua | 1 | 1655 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
include("shared.lua")
function SWEP:Deploy()
gamemode.Call("WeaponDeployed", self.Owner, self)
self:SpawnGhost()
return true
end
function SWEP:OnRemove()
self:RemoveGhost()
end
function SWEP:Holster()
self:RemoveGhost()
return true
end
function SWEP:Sp... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/creatures/largeRockBeetle.lua | 1 | 4687 | --Copyright (C) 2008 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later versio... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/reptilian_flyer/objects.lua | 1 | 6123 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any later ve... | lgpl-3.0 |
pibi/plugin-windows_performance | modules/tools.lua | 2 | 4892 | --
-- Module.
--
local tools = {}
-- Requires.
local string = require('string')
local childProcess = require ('childprocess')
local os = require ('os')
local table = require ('table')
--
-- Limit a given number x between two boundaries.
-- Either min or max can be nil, to fence on one side only.
--
tools.fence = fun... | apache-2.0 |
Ulydev/push | examples/low-res/init.lua | 1 | 2115 | --[[ Low resolution ]]--
return function()
love.graphics.setDefaultFilter("nearest", "nearest") --disable blurry scaling
local gameWidth, gameHeight = 64, 64
local windowWidth, windowHeight = love.window.getDesktopDimensions()
windowWidth, windowHeight = windowWidth*.5, windowHeight*.5
push:setupScre... | mit |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/talus/fliteRaspLair.lua | 1 | 2518 | --Copyright (C) 2007 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIiiUbese/ubeseArmorBoots.lua | 1 | 5177 | --Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--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 of the License,
--or (at your option) any lat... | lgpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.