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 |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/stintarilProwler.lua | 1 | 4764 | --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/endor/creatures/barkMiteBurrower.lua | 1 | 4764 | --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 |
wangfakang/ABTestingGateway | lib/abtesting/error/errcode.lua | 22 | 1583 | local modulename = 'abtestingErrorInfo'
local _M = {}
_M._VERSION = '0.0.1'
_M.info = {
-- index code desc
-- SUCCESS
["SUCCESS"] = { 200, 'success '},
-- System Level ERROR
['REDIS_ERROR'] = { 40101, 'redis error for '},
['POLICY_DB_ERROR'] = { 40102, 'policy in db error '... | mit |
Andrettin/Wyrmsun | scripts/dialogues.lua | 1 | 2721 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
alejandrogallo/dotfiles | link_config/luakit/rc.lua | 9 | 5039 | -----------------------------------------------------------------------
-- luakit configuration file, more information at http://luakit.org/ --
-----------------------------------------------------------------------
require "lfs"
if unique then
unique.new("org.luakit")
-- Check for a running luakit instance
... | unlicense |
frioux/awesome-vicious | contrib/nvsmi.lua | 10 | 1207 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2014, Adrian C. <anrxc@sysphere.org>
---------------------------------------------------
-- {{{ Grab environment
local tonumber = tonumber
local io = { popen = io.popen }
local setmetatable = setmetatable
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/lair/quenker/objects.lua | 1 | 4669 | --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 |
javierojan/copia | plugins/twitter_send.lua | 627 | 1555 | do
local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local client = OAuth.new(consumer_key, consumer_secret, {
RequestToken = "https://api.twitter.com/oauth/request_token",
AuthorizeUser = {"https://api.twitter.com/oauth/autho... | gpl-2.0 |
sandfox/skyd | deps/LuaJIT-2.0.1/src/host/genminilua.lua | 73 | 11943 | ----------------------------------------------------------------------------
-- Lua script to generate a customized, minified version of Lua.
-- The resulting 'minilua' is used for the build process of LuaJIT.
----------------------------------------------------------------------------
-- Copyright (C) 2005-2013 Mike P... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/ranger/noviceRanger/highQualityCampKit.lua | 1 | 3761 | --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/items/objects/clothing/bandolier/bandolier4.lua | 1 | 2262 | --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/structure/destroystructure.lua | 1 | 2461 | --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/npcs/missionNpcs/questCrowdPleaserTheaterManager.lua | 1 | 4801 | --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 |
Ghostofpq/PewPewPew | game/lib/ecusson/PerformanceWidget.lua | 3 | 4914 | -----------------------------------------------------------------------------------------
--
-- Author: Aurélien Defossez
-- (c) 2014 Tabemasu Games (www.tabemasu.com)
--
-- PerformanceWidget.lua
--
-- A box showing the performance of the application
--
------------------------------------------------------------------... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/yavin4/creatures/geonosianEnhancedKwiAttacks.lua | 1 | 5082 | --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 |
yejr/MyDBAtools | bench-tools/sysbench/sysbench/tests/db/select_random_points.lua | 10 | 3964 | -- This test is designed for testing MariaDB's key_cache_segments for MyISAM,
-- and should work with other storage engines as well.
--
-- For details about key_cache_segments please refer to:
-- http://kb.askmonty.org/v/segmented-key-cache
--
function prepare()
local query
local i
set_vars()
db_connect()... | bsd-3-clause |
hamode-Aliraq/HAMODE_ALIRAQE | plugins/time.lua | 22 | 2918 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/rori/creatures/confusedWoodMiteHatchling.lua | 1 | 4655 | --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 |
thkhxm/TGame | Assets/StreamingAssets/lua/UnityEngine/Quaternion.lua | 7 | 13664 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
------------------------------------------------------------------------... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/hair/human/base/objects.lua | 1 | 5909 | --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 |
MaxG87/awesome | lib/awful/util.lua | 1 | 16325 | ---------------------------------------------------------------------------
--- Utility module for awful
--
-- @author Julien Danjou <julien@danjou.info>
-- @copyright 2008 Julien Danjou
-- @release @AWESOME_VERSION@
-- @module awful.util
---------------------------------------------------------------------------... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/items/objects/deed/vehicledeeds/landspeederX34VehicleDeed.lua | 1 | 2420 | --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 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/tusken/tuskenWanderer.lua | 1 | 4788 | --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/forageable/medicalforage/food.lua | 1 | 9961 | --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 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/vgui/dexroundedpanel.lua | 1 | 1168 | surface.CreateFont("dexfont_med", {font = "impact", size = 19, weight = 0, antialias = false, shadow = false, outline = true})
local PANEL = {}
AccessorFunc(PANEL, "m_iBorderRadius", "BorderRadius", FORCE_NUMBER)
AccessorFunc(PANEL, "m_bCurveTopLeft", "CurveTopLeft", FORCE_BOOL)
AccessorFunc(PANEL, "m_bCurveTop... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/npcs/singingMountainClan/singingMtnClanCouncilwoman.lua | 1 | 5224 | --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 |
asmagill/hammerspoon | extensions/wifi/wifi.lua | 4 | 1075 | --- === hs.wifi ===
---
--- Inspect WiFi networks
local USERDATA_TAG = "hs.wifi"
local module = require("hs.libwifi")
module.watcher = require("hs.libwifiwatcher")
local watcherMT = hs.getObjectMetatable(USERDATA_TAG..".watcher")
-- private variables and methods -----------------------------------------
-... | mit |
Hammerspoon/hammerspoon | extensions/wifi/wifi.lua | 4 | 1075 | --- === hs.wifi ===
---
--- Inspect WiFi networks
local USERDATA_TAG = "hs.wifi"
local module = require("hs.libwifi")
module.watcher = require("hs.libwifiwatcher")
local watcherMT = hs.getObjectMetatable(USERDATA_TAG..".watcher")
-- private variables and methods -----------------------------------------
-... | mit |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/os.lua | 1 | 7992 | CheckFirstTime("os.lua")
os = Set:create("os.set", "office steps", { os_stpha = 0, os_top = 1 })
os.camera_adjusts = { 330 }
os.enter = function(arg1) -- line 19
start_sfx("traffic1.imu")
set_vol("traffic1.imu", 40)
manny.footsteps = footsteps.concrete
NewObjectState(os_stpha, 3, "os_door_to_lo_comp.bm"... | gpl-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/wc.lua | 1 | 9440 | CheckFirstTime("wc.lua")
dofile("wc_door.lua")
KevTest = function() -- line 11
de.forklift_actor:update_object()
wc.lever:use()
end
wc = Set:create("wc.set", "wine cellar", { wc_frkha = 0, wc_ovrhd = 1 })
prop_forklift.wc_pt = { x = 1.55391, y = 0.952362, z = 0 }
prop_forklift.default_wc = function(arg1) -- lin... | gpl-2.0 |
MaxG87/awesome | lib/gears/wallpaper.lua | 11 | 6199 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2012 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @module gears.wallpaper
---------------------------------------------------------------------------
local cairo = require("lgi").cairo
local color = r... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/draft_schematic/structure/objects.lua | 1 | 57189 | --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 |
miralireza2/xili_bot | plugins/banhammer.lua | 294 | 10470 | local function is_user_whitelisted(id)
local hash = 'whitelist:user#id'..id
local white = redis:get(hash) or false
return white
end
local function is_chat_whitelisted(id)
local hash = 'whitelist:chat#id'..id
local white = redis:get(hash) or false
return white
end
local function kick_user(user_id, chat_id)... | gpl-2.0 |
Xeltor/ovale | dist/scripts/ovale_deathknight_spells.lua | 1 | 56149 | local __exports = LibStub:NewLibrary("ovale/scripts/ovale_deathknight_spells", 80300)
if not __exports then return end
__exports.registerDeathKnightSpells = function(OvaleScripts)
local name = "ovale_deathknight_spells"
local desc = "[8.2] Ovale: Death Knight spells"
local code = [[
Define(apocalypse 275699... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/rori/npcs/narmle/narmleGuard.lua | 1 | 4514 | --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 |
devilrap97/alirap97 | plugins/all.lua | 41 | 4395 | do
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print_name(user)..' ['..user_id..']'
return u... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/entertainer/ventriloquism.lua | 1 | 2677 | --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/ProtectedNode.lua | 1 | 5713 |
--------------------------------
-- @module ProtectedNode
-- @extend Node
-- @parent_module cc
--------------------------------
-- @overload self, cc.Node, int
-- @overload self, cc.Node
-- @overload self, cc.Node, int, int
-- @function [parent=#ProtectedNode] addProtectedChild
-... | apache-2.0 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/modules/leveling/vloms/core/sv_init.lua | 1 | 1319 | include('modules/leveling/vloms/config.lua')
function Vinclude(file)
--Fancy way of including so it prints to console
print(file)
include(file)
end
function VLog(msg)
if !(Vloms.Logging) then return end
print('VLOMS LOG: ' .. msg)
end
print('\n\n----------------------------------------')
print('---------Vl... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/languages/italic/late_latin.lua | 1 | 2249 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
draidarr/BolScripts | ViktorMechanics.lua | 19 | 24132 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \___... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/artisan/noviceArtisan/gasPocketSurveyDevice.lua | 1 | 3860 | --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 |
devilrap97/alirap97 | plugins/ar-ASD_KARBALA1.lua | 2 | 5122 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@AILXXZ) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ help1 : مساعدة ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
Wiladams/LJITPEReader | testy/print_utils.lua | 1 | 1612 |
-- print each line as:
-- offset, Hex-16 digits, ASCII
local function isprintable(c)
return c >= 0x20 and c < 0x7f
end
local function printHex(ms, buffer, offsetbits, iterations)
offsetbits = offsetbits or 32
--iterations = iterations or 1
if offsetbits == 32 then
print("Offset (h) 00 01... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/talus/npcs/poacherTalus.lua | 1 | 4408 | --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/crafting/objects/draftschematics/tailor/formalWearIvHighFashion/statelyNecklace.lua | 1 | 3991 | --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 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/BattlefieldFrame.lua | 1 | 12437 | BATTLEFIELD_ZONES_DISPLAYED = 12;
BATTLEFIELD_ZONES_HEIGHT = 20;
BATTLEFIELD_SHUTDOWN_TIMER = 0;
BATTLEFIELD_TIMER_THRESHOLDS = {600, 300, 60, 15};
BATTLEFIELD_TIMER_THRESHOLD_INDEX = 1;
PREVIOUS_BATTLEFIELD_MOD = 0;
BATTLEFIELD_TIMER_DELAY = 3;
BATTLEFIELD_MAP_WIDTH = 320;
BATTLEFIELD_MAP_HEIGHT = 213;
MAX_BA... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/skills/forceCurePoison.lua | 1 | 2580 | --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 |
frioux/awesome-vicious | helpers.lua | 3 | 3893 | ---------------------------------------------------
-- Licensed under the GNU General Public License v2
-- * (c) 2010, Adrian C. <anrxc@sysphere.org>
-- * (c) 2009, Rémy C. <shikamaru@mandriva.org>
-- * (c) 2009, Benedikt Sauer <filmor@gmail.com>
-- * (c) 2009, Henning Glawe <glaweh@debian.org>
-- * (c) 2009, Luca... | gpl-2.0 |
GeekWithALife/love-bone | lovebone/transformer.lua | 2 | 14747 | --[[
Transformer
This is what makes the actor move.
To make the actor do anything, you must register transformations with its transformer.
The transformer is also used as an interface to the bone orientations of an actor.
--]]
local util = RequireLibPart("util");
local SKELETON_ROOT_NAME = util.SKELETON_ROOT_NAME;... | mit |
technomancy/ss-calandria | mods/mesecons/mesecons_doors/init.lua | 2 | 2423 | -- Modified, from minetest_game/mods/doors/init.lua
local function on_rightclick(pos, dir, check_name, replace, replace_dir, params)
pos.y = pos.y + dir
if not minetest.get_node(pos).name == check_name then
return
end
local p2 = minetest.get_node(pos).param2
p2 = params[p2 + 1]
minetest.swap_node(pos, {name = ... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/bomarrMonk/bomarrMonkBodyguard.lua | 1 | 4546 | --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/entertainer/startDance.lua | 1 | 2667 | --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/npcs/rebel/rebelResistanceSeparatist.lua | 1 | 4787 | --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 |
vseledkin/Paper12-PlosOne-DeepProteinMultitaskTagging | modelShare/hashdict.lua | 2 | 3171 | require "posix"
local hashDict={};
function hashDict.create()
local self={};
local meta={}; setmetatable(self,meta);
local function client_index(table,field)
return hashDict[field];
end
meta.__index = client_index;
self.data={};
self.data._size_=0;
self.field='orig'
return self;
end
function ... | gpl-2.0 |
kensipe/dcos | packages/adminrouter/extra/src/lib/resty/jwt.lua | 6 | 27161 | local cjson = require "cjson.safe"
local aes = require "resty.aes"
local evp = require "resty.evp"
local hmac = require "resty.hmac"
local resty_random = require "resty.random"
local _M = {_VERSION="0.2.0"}
local mt = {__index=_M}
local string_match= string.match
local string_rep = string.rep
local string_format = s... | apache-2.0 |
thkhxm/TGame | Assets/LuaFramework/ToLua/Lua/tolua.lua | 6 | 1350 | --------------------------------------------------------------------------------
-- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com
-- All rights reserved.
-- Use, modification and distribution are subject to the "MIT License"
-----------------------------------------------------------------... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/endor/npcs/dwbSBDAttacks.lua | 1 | 16730 | --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/creatures/objects/npcs/imperial/imperialStaffSergeant.lua | 1 | 4552 | --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_sg552.lua | 1 | 2151 | -- © Limetric Studios ( www.limetricstudios.com ) -- All rights reserved.
-- See LICENSE.txt for license information
if CLIENT then
SWEP.PrintName = "SG552"
SWEP.Author = "ClavusElite"
SWEP.Slot = 0
SWEP.SlotPos = 16
SWEP.IconLetter = "A"
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 60
end
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/space/corellianCorvette/imperialCorellianCorvette.lua | 1 | 9543 | --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/external/lua/luasocket/script/socket/ftp.lua | 1 | 9536 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
----------------------------------------------------------------------------... | apache-2.0 |
martin-damien/babel | locales/no_NO.lua | 1 | 1488 | LOCALE = {
formats = {
currency = {
symbol = "kr",
name = "Norwegian Kroner",
short_name = "NOK",
decimal_symbol = ",",
thousand_separator = ".",
fract_digits = 2,
positive_symbol = "",
negative_symbol = "-",
... | mit |
Andrettin/Wyrmsun | scripts/civilizations/latin/factions.lua | 1 | 4200 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/kliknikSwarming.lua | 1 | 4746 | --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/spawns/dathomir/sarlaacPit.lua | 1 | 2266 | --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/sceneobjects/objects/lairs/talusLairs.lua | 1 | 2449 | --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 |
Wargus/stargus | scripts/menus/options.lua | 1 | 8442 | function AddSoundOptions(menu, offx, offy, centerx, bottom)
local b
b = menu:addLabel("Sound Options", 264/2, 8)
b = Label("Effects Volume")
b:setFont(CFont:Get("game"))
b:adjustSize();
menu:add(b, offx + 16, offy + 36 * 1)
-- FIXME: disable if effects turned off
local soundslider = Slider(0, 255)
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/kaiTokScavenger.lua | 1 | 4760 | --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/dathomir/creatures/mutantRancor.lua | 1 | 4773 | --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/crafting/objects/draftschematics/artisan/engineeringIvComplexSystems/deedForPersonalChemicalExtractor.lua | 1 | 4404 | --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 |
devilrap97/alirap97 | plugins/en-plugins.lua | 6 | 6817 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ BY SAJAD NOORI (@SAJJADNOORI) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY SAJJAD NOORI ▀▄ ▄▀
▀▄ ▄▀ plugins : تفعيل الملفات ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/spawns/yavin4/dungeons/blueleafTemple.lua | 1 | 5039 | --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 version.
... | lgpl-3.0 |
frioux/sysdig | userspace/sysdig/chisels/v_files.lua | 8 | 3132 | --[[
Copyright (C) 2013-2015 Draios inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/static/structure/corellia/objects.lua | 1 | 54458 | --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 |
zain211/zain.aliraqe | ar-weather.lua | 1 | 2759 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY jOker ▀▄ ▄▀
▀▄ ▄▀ BY joker (@fuck_8_you) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY joker ▀▄ ▄▀
▀▄ ▄▀ broadcast : الطقس ▀▄ ▄▀
▀▄▀▀... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/structure/harvesterMakeCrate.lua | 1 | 2478 | --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/dathomir/creatures/kinadBazNitch.lua | 1 | 4692 | --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 |
zhityer/zhityer1 | 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 |
ChenJunor/hue | tools/wrk-scripts/lib/equal-5bb8dbf.lua | 22 | 1818 | -- The MIT License (MIT)
--
-- Copyright (c) 2014, Cyril David <cyx@cyx.is>
--
-- 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 right... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/weequay/weequayThug.lua | 1 | 4497 | --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 |
fischerling/lumail2 | t/test.gpg.lua | 4 | 2663 | --
-- 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
--
require "gpg"
--
-- Mocked function.
--
function string.path (binary)
-- print("XXXX:string.path... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/creatures/bullRancor.lua | 1 | 4780 | --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/playerSkills/combat/commando.lua | 1 | 23077 | --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/src/game/Ship.lua | 1 | 3129 | -----------------------------------------------------------------------------------------
--
-- Author: Gop
-- (bisous à) 2014 Tabemasu Games (www.tabemasu.com)
--
-- Ship.lua
--
-- The main Ship
--
-----------------------------------------------------------------------------------------
local Class = {}
local utils =... | lgpl-3.0 |
mazlixek/Elevators | elevator.lua | 1 | 3936 | local physics = require "physics"
local elevator = {}
local allElevators = {}
function elevator:getAllElevators()
return allElevators
end
function elevator:new(x,y,speed,topFloor,bottomFloor)
local bgColor = 0.1
local bottomColor = 0.3
local elevatorGroup = display.newGroup()
local elevatorSpeed = ... | gpl-3.0 |
MarcoQin/QBilibili | src/lua/libs/luasocket/libluasocket/url.lua | 13 | 11105 | -----------------------------------------------------------------------------
-- URI parsing, composition and relative URL resolution
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
--------------------------------------------------------------... | mit |
qwook/dpsht | assets/maps/map2.lua | 2 | 227423 | return {
version = "1.1",
luaversion = "5.1",
orientation = "orthogonal",
width = 100,
height = 100,
tilewidth = 32,
tileheight = 32,
properties = {},
tilesets = {
{
name = "tilemap2",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
... | mit |
natuan241/Algorithm-Implementations | Breadth_First_Search/Lua/Yonaba/bfs.lua | 26 | 3153 | -- Generic Breadth-First search algorithm implementation
-- See : http://en.wikipedia.org/wiki/Breadth-first_search
-- Notes : this is a generic implementation of Breadth-First search algorithm.
-- It is devised to be used on any type of graph (point-graph, tile-graph,
-- or whatever. It expects to be initialized with... | mit |
HeavensSword/darkstar | scripts/globals/mobskills/vorpal_wheel.lua | 37 | 1063 | ---------------------------------------------
-- Vorpal Wheel
--
-- Description: Throws a slicing wheel at a single target.
-- Type: Physical
-- Utsusemi/Blink absorb: No
-- Range: Unknown
-- Notes: Only used by Gulool Ja Ja, and will use it as a counterattack to any spells cast on him. Damage increases as his he... | gpl-3.0 |
dlannan/webdruino | deps/turbo-1.0.0/examples/httpserver.lua | 1 | 1546 | --- Turbo.lua Hello world using HTTPServer
--
-- Using the HTTPServer offers more control for the user, but less convenience.
-- In almost all cases you want to use turbo.web.RequestHandler.
--
-- Copyright 2013 John Abrahamsen
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... | mit |
HeavensSword/darkstar | scripts/zones/Horlais_Peak/bcnms/contaminated_colosseum.lua | 5 | 1811 | -----------------------------------
-- Area: Horlias peak
-- Name: contaminated_colosseum
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/... | gpl-3.0 |
HeavensSword/darkstar | scripts/globals/effects/warcry.lua | 34 | 1037 | -----------------------------------
--
-- EFFECT_WARCRY
--
-- Notes:
-- Savagery TP bonus not cut in half like ffxclopedia says.
-- ffxiclopedia is wrong, bg wiki right. See link where testing was done.
-- http://www.bluegartr.com/threads/108199-Random-Facts-Thread-Other?p=5367464&viewfull=1#post5367464
-----------... | gpl-3.0 |
dlannan/webdruino | deps/turbo-1.0.0/turbo/3rdparty/middleclass/spec/instanceOf_spec.lua | 3 | 2490 | require 'middleclass'
context('instanceOf', function()
context('nils, integers, strings, tables, and functions', function()
local o = Object:new()
local primitives = {nil, 1, 'hello', {}, function() end}
for _,primitive in pairs(primitives) do
local theType = type(primitive)
context('A ... | mit |
HeavensSword/darkstar | scripts/zones/Port_Bastok/npcs/Ensetsu.lua | 5 | 2965 | -----------------------------------
-- Area: Port Bastok
-- NPC: Ensetsu
-- Finish Quest: Ayame and Kaede
-- Involved in Quest: 20 in Pirate Years, I'll Take the Big Box
-- !pos 33 -6 67 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
HeavensSword/darkstar | scripts/zones/Metalworks/npcs/Naji.lua | 5 | 4810 | -----------------------------------
-- Area: Metalworks
-- NPC: Naji
-- Involved in Quests: The doorman (finish), Riding on the Clouds
-- Involved in Mission: Bastok 6-2
-- !pos 64 -14 -4 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
---------------------------------... | gpl-3.0 |
Wedmer/luci | applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/olsrd.lua | 30 | 1473 | -- 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 |
HeavensSword/darkstar | scripts/globals/abilities/naturalists_roll.lua | 1 | 2874 | -----------------------------------
-- Ability: Naturalists's Roll
-- Increases the duration of enhancing magic effects received for party members within area of effect.
-- Optimal Job: Geomancer
-- Lucky Number: 3
-- Unlucky Number: 7
-- Level: 67
-- Phantom Roll +1 Value: 1
--
-- Die Roll | Duration %
-- ------... | gpl-3.0 |
alexazhou/VeryNginx | verynginx/lua_script/resty/dns/resolver.lua | 2 | 20760 | -- Copyright (C) Yichun Zhang (agentzh)
-- local socket = require "socket"
local bit = require "bit"
local udp = ngx.socket.udp
local rand = math.random
local char = string.char
local byte = string.byte
local find = string.find
local gsub = string.gsub
local sub = string.sub
local rep = string.rep
local format = stri... | lgpl-3.0 |
HeavensSword/darkstar | scripts/zones/Lower_Jeuno/npcs/Alrauverat.lua | 5 | 1868 | -----------------------------------
-- Area: Lower Jeuno
-- NPC:Alrauverat
-- !pos -101 0 -182 245
-------------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("script... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.