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 |
|---|---|---|---|---|---|
tehran980/tele_HSN | 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 |
mamaddeveloper/miri | 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 |
amamamamamam123098/BD | 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 |
BeamNG/luasocket | etc/check-links.lua | 43 | 3363 | -----------------------------------------------------------------------------
-- Little program that checks links in HTML files, using coroutines and
-- non-blocking I/O via the dispatcher module.
-- LuaSocket sample files
-- Author: Diego Nehab
--------------------------------------------------------------------------... | mit |
Nottinghster/OTServ_SVN-0.6.4 | src/data/talkactions/scripts/onlinelist.lua | 4 | 1035 | function onSay(cid, words, param)
local onlineList = getPlayersOnlineList()
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Players Online:")
local str = ""
local j = 1
local k = 0
for i, uid in ipairs(onlineList) do
--Player is not shown in list if he has SpecialVip flag
if getPlayerFlagValue(ui... | gpl-2.0 |
tehran980/tele_HSN | plugins/sudo.lua | 359 | 1878 | function run_sh(msg)
name = get_name(msg)
text = ''
-- if config.sh_enabled == false then
-- text = '!sh command is disabled'
-- else
-- if is_sudo(msg) then
-- bash = msg.text:sub(4,-1)
-- text = run_bash(bash)
-- else
-- text = name .. ' yo... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/node_enter_forest.lua | 6 | 1109 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
zolazhang/SimplifyReader | library_youku/src/main/res/raw/aes.lua | 130 | 3338 |
---------------------- bit utils
bit={data32={}}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit.d2b(arg)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end --bit:d2b
f... | apache-2.0 |
shaunstanislaus/SimplifyReader | library_youku/src/main/res/raw/aes.lua | 130 | 3338 |
---------------------- bit utils
bit={data32={}}
for i=1,32 do
bit.data32[i]=2^(32-i)
end
function bit.d2b(arg)
local tr={}
for i=1,32 do
if arg >= bit.data32[i] then
tr[i]=1
arg=arg-bit.data32[i]
else
tr[i]=0
end
end
return tr
end --bit:d2b
f... | apache-2.0 |
Billiam/wheeler | launcher/vendor/love-update.lua | 1 | 50233 | package.preload['love-update.vendor.luajit-request'] = (function (...)
--[[
LuaJIT-Request
Lucien Greathouse
Wrapper for LuaJIT-cURL for easy HTTP(S) requests.
Copyright (c) 2014 lucien Greathouse
This software is provided 'as-is', without any express
or implied warranty. In no event will the author... | mit |
zhaoxx063/luci | applications/luci-app-asterisk/luasrc/asterisk.lua | 68 | 17804 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.asterisk", package.seeall)
require("luci.asterisk.cc_idd")
local _io = require("io")
local uci = require("luci.model.uci").cursor()
local sys = require("luci.sys")
local util = require("luci.uti... | apache-2.0 |
Folcon/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 |
fiskio/lstm-char-cnn | evaluate.lua | 4 | 4496 | --[[
Evaluates a trained model
Much of the code is borrowed from the following implementations
https://github.com/karpathy/char-rnn
https://github.com/wojzaremba/lstm
]]--
require 'torch'
require 'nn'
require 'nngraph'
require 'optim'
require 'lfs'
require 'util.Squeeze'
require 'util.misc'
BatchLoader = require 'ut... | mit |
mirrexagon/rainbow-arena | lib/util.lua | 2 | 5134 | local util = {}
---
-- Prints a formatted string.
function util.printf(s, ...)
return print(string.format(s, ...))
end
-- Like printf, but throws an error with the formatted string
-- as the error message.
function util.errorf(s, ...)
return error(string.format(s, ...))
end
---
util.string = {}
function u... | cc0-1.0 |
TheDialord/boundary-plugin-lua-postgresql | modules/luvit-postgres/postgresLuvit.lua | 1 | 6214 | --------------------------------------------------------------------------
-- This module is a luvit binding for the postgresql api.
--
-- Copyright (C) 2012 Moritz Kühner, Germany.
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/_unused/node_eatompo.lua | 6 | 2974 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
Nottinghster/OTServ_SVN-0.6.4 | src/data/talkactions/scripts/cast.lua | 1 | 5511 | function onSay(cid, words, param)
local tmp = param:explode(" ")
if not(tmp[1]) then
return doPlayerSendCancel(cid, "Parameters needed")
end
-- Cast ON
if tmp[1] == "on" then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cast has started.")
doPlayerSetCastState(cid, true)
doSavePlayer(cid)
... | gpl-2.0 |
chewi/Aquaria | files/scripts/maps/node_title.lua | 6 | 2355 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
bestroidd/advan | plugins/inrealm.lua | 183 | 36473 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
cyrillePrigent/kmod-ng | umod/command/both/grenadewar.lua | 1 | 3774 | -- Grenadewar game mode management
-- From kmod script.
-- Require : game mode module
-- Enabled / disabled grenadewar game mode.
-- params is parameters passed from et_ClientCommand / et_ConsoleCommand function.
-- * params["arg1"] => new grenadewar value
function execute_command(params)
params.say = "chat"
... | gpl-2.0 |
tkdrob/Battle-Tag | Packages/KingoftheHill/Data/Script/Lua/UAKingoftheHill.Ui.RoundLoop.lua | 1 | 4515 |
--[[--------------------------------------------------------------------------
--
-- File: UAKingoftheHill.Ui.RoundLoop.lua
-- Copyright (c) Ubisoft Entertainment. All rights reserved.
--
-- Project: Ubitoys.Tag
-- Date: August 03, 2010
--
-----------------------... | mit |
hfjgjfg/ccc111 | plugins/plugins.lua | 134 | 6165 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
focusworld/bbb | 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 |
chewi/Aquaria | files/scripts/entities/krotiteontheway.lua | 6 | 2310 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
chewi/Aquaria | files/scripts/entities/camopus.lua | 5 | 5257 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
milos-korenciak/heroku-buildpack-tex | buildpack/texmf-dist/tex/generic/pgf/graphdrawing/lua/pgf/gd/circular/Tantau2012.lua | 1 | 4056 | -- Copyright 2012 by Till Tantau
--
-- This file may be distributed an/or modified
--
-- 1. under the LaTeX Project Public License and/or
-- 2. under the GNU Public License
--
-- See the file doc/generic/pgf/licenses/LICENSE for more information
-- @release $Header: /cvsroot/pgf/pgf/generic/pgf/graphdrawing/lua/pgf/gd... | mit |
chewi/Aquaria | game_scripts/_mods/aquariaeditortutorial/scripts/node_tileedit03.lua | 6 | 1948 | -- Copyright (C) 2007, 2010 - Bit-Blot
--
-- This file is part of Aquaria.
--
-- Aquaria is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License
-- as published by the Free Software Foundation; either version 2
-- of the License, or (at your option) any later vers... | gpl-2.0 |
zhaoxx063/luci | applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/mactodevinfo.lua | 61 | 1058 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
m = Map("mactodevinfo", luci.i18n.translate("MAC Device Info Overrides"), translate("Override the information returned by the MAC to Device Info Script (mac-to-devinfo) for a specified range of MAC Addresses"))
s = m:section(Ty... | apache-2.0 |
mehulsbhatt/ntopng | scripts/lua/iface_ports_list.lua | 7 | 2252 | --
-- (C) 2013-15 - ntop.org
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
sendHTTPHeader('text/html; charset=iso-8859-1')
interface.select(ifname)
host = _GET["host"]
client_ports = nil
server_ports = nil
function fill_ports_array(fi... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Inner_Horutoto_Ruins/npcs/Treasure_Chest.lua | 19 | 2590 | -----------------------------------
-- Area: Horutoto Ruins
-- NPC: Treasure Chest
-- @zone 192
-----------------------------------
package.loaded["scripts/zones/Inner_Horutoto_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/treasure");
require(... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Palborough_Mines/npcs/_3za.lua | 17 | 1506 | -----------------------------------
-- Area: Palborough Mines
-- NPC: Refiner Lid
-- Involved In Mission: Journey Abroad
-- @zone 143
-- @pos 180 -32 167
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
Shayan123456/bottttttt1 | plugins/chatbot.lua | 5 | 1828 | --shared by @blackhatchannel
local function run(msg)
if msg.text == "hi" then
return "Hello bb"
end
if msg.text == "Hi" then
return "Hello honey"
end
if msg.text == "Hello" then
return "Hi bb"
end
if msg.text == "hello" then
return "Hi honey"
end
if msg.text == "Salam" then
return "Salam aleykom"
end
if msg.text =... | gpl-2.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/unit_missilesilo.lua | 1 | 7390 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Missile Silo Controller",
desc = "Handles missile silos",
author = "KingRaptor (L.J. Lim)",
d... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Den_of_Rancor/npcs/_4g3.lua | 17 | 2118 | -----------------------------------
-- Area: Den of Rancor
-- NPC: Lantern (SW)
-- @pos -59 45 24 160
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Den_of_Rancor/... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Cavernous_Maw.lua | 29 | 1526 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Cavernous Maw
-- @pos 597 -32 279 119
-- Teleports Players to Meriphataud Mountains [S]
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/foe_requiem_v.lua | 18 | 1624 | -----------------------------------------
-- Spell: Foe Requiem V
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Palborough_Mines/Zone.lua | 27 | 1673 | -----------------------------------
--
-- Zone: Palborough_Mines (143)
--
-----------------------------------
package.loaded["scripts/zones/Palborough_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Palborough_Mines/TextIDs");
---------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Batallia_Downs/npcs/Luck_Rune.lua | 34 | 1079 | -----------------------------------
-- Area: Batallia Downs
-- NPC: Luck Rune
-- Involved in Quest: Mhaura Fortune
-- @pos -362.167 -12.199 157.158 105
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs/TextIDs"] = nil;
-------------------------------------
require("scripts/... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Selbina/npcs/Zaldon.lua | 24 | 71053 | -----------------------------------
-- Area: Selbina
-- NPC: Zaldon
-- Involved in Quests: Under the sea, A Boy's Dream
-- Starts and Finishes: Inside the Belly
-- @pos -13 -7 -5 248
-----------------------------------
package.loaded["scripts/zones/Selbina/TextIDs"] = nil;
-----------------------------------
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Al_Zahbi/npcs/Eumoa-Tajimoa.lua | 38 | 1026 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Eumoa-Tajimoa
-- Type: Standard NPC
-- @zone: 48
-- @pos 19.275 -1 55.182
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/weaponskills/steel_cyclone.lua | 30 | 1578 | -----------------------------------
-- Steel Cyclone
-- Great Axe weapon skill
-- Skill level: 240
-- Delivers a single-hit attack. Damage varies with TP.
-- In order to obtain Steel Cyclone, the quest The Weight of Your Limits must be completed.
-- Will stack with Sneak Attack.
-- Aligned with the Breeze Gorget... | gpl-3.0 |
Bl00DGuY/WoQ_ElunaScripts_WotLK | WoQ_AutoLearnSpell.lua | 1 | 3116 | --[[
- Developer(s): Whiroph
- Thanks to: Eluna Devs & µDev (for base)
- Complete: %100
- ScriptName: 'Player_LearnReferenceSpellsOnLevelUp'
]]
local ClassesSpellsReference = {
-- Warrior
[1] = {
-- All
["all"] = {200001,200002},
-- Alliance only
... | mit |
gsage/engine | resources/scripts/imgui/icons.lua | 1 | 1279 | local icons = {
error = "", -- 0xE000
error_outline = "", -- 0xE001
warning = "", -- 0xE002
add_alert = "", -- 0xE003
equalizer = "", -- 0xE01D
plus = "",
add_box = "",
pause = "", -- 0xE034
play_arrow = "", -- 0xE037
stop = "", ... | mit |
trms/nml | nml/init.lua | 1 | 4783 | --[[---
Nanomsg Binding for Lua
@module Debug
--]]
---[[ nml stuff
do
local unpack = unpack or table.unpack
local pretty = require'pl.pretty'
local write = pretty.write
local unpack = unpack or table.unpack
function ts( ... )
local ret = {}
for i = 1 , select("#", ...) do
local val = (select(i, ...))
r... | mit |
tysonliddell/OpenRA | mods/d2k/maps/ordos-02b/ordos02b.lua | 4 | 2647 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Spire_of_Mea/bcnms/ancient_flames_backon.lua | 17 | 3854 | -----------------------------------
-- Area: Spire_of_Mea
-- Name: ancient_flames_backon
-- KSNM30
-----------------------------------
package.loaded["scripts/zones/Spire_of_Mea/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/quests");
require("scripts/g... | gpl-3.0 |
AresTao/darkstar | scripts/globals/spells/foe_requiem_ii.lua | 18 | 1624 | -----------------------------------------
-- Spell: Foe Requiem II
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target... | gpl-3.0 |
DeinFreund/Zero-K | scripts/planescout.lua | 5 | 1312 | include 'constants.lua'
include "fixedwingTakeOff.lua"
--------------------------------------------------------------------
-- constants/vars
--------------------------------------------------------------------
local base, nozzle, thrust = piece("base", "nozzle", "thrust")
local smokePiece = {base}
local SIG_CLOAK = ... | gpl-2.0 |
resetnow/premake-core | tests/actions/vstudio/vc2010/test_extension_settings.lua | 7 | 1708 | --
-- tests/actions/vstudio/vc2010/test_extension_settings.lua
-- Check the import extension settings block of a VS 2010 project.
-- Copyright (c) 2014 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_extension_settings")
local vc2010 = premake.vstudio.vc2010
local project = premake.proje... | bsd-3-clause |
AresTao/darkstar | scripts/globals/items/grape_daifuku+1.lua | 35 | 1864 | -----------------------------------------
-- ID: 6344
-- Item: grape_daifuku+1
-- Food Effect: 60 Min, All Races
-----------------------------------------
-- HP + 30 (Pet & Master)
-- Vitality + 4 (Pet & Master)
-- Master MAB + 4 , Pet MAB + 15
-- Accuracy + 11% Cap: 70 (Pet & Master) Pet Cap: 81
----------------------... | gpl-3.0 |
davidechicco/mesothelioma-diagnosis-predictions | metrics/roc_thresholds.lua | 1 | 6605 | require 'torch'
-- rounds a real number num to the number having idp values after the dot
function round(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end
function getIndex(tensorChosen, element, size)
vectorBis = {}
for i = 1,size do
vectorBis[i] = tensorChosen[i];... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Apollyon/mobs/Metalloid_Amoeba.lua | 16 | 1277 | -----------------------------------
-- Area: Apollyon SE
-- NPC: Metalloid_Amoeba
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-------------------... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/fum-long_salmon_sub.lua | 36 | 1452 | -----------------------------------------
-- ID: 4266
-- Item: Fum-Long Salmon Sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality 1
-- Dexterity 2
-- Intelligence 2
-- Mind -2
-- Ranged Accuracy 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/toadal_recall.lua | 19 | 1479 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: toadal_recall BCNM30
-- @pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems"... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/elshimo_coconut.lua | 35 | 1217 | -----------------------------------------
-- ID: 5187
-- Item: elshimo_coconut
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -1
-- Intelligence -1
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
minetest-australopithecus/minetest-australopithecus-artisanry | mods/artisanry/artisanryutil.lua | 2 | 3452 | --[[
Copyright (c) 2015, Robert 'Bobby' Zenz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the fo... | bsd-2-clause |
small-Wood/FlappyBird | frameworks/runtime-src/proj.android/assets/DrawPrimitives.lua | 57 | 12038 | local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = CCApplication:getInstance():getTargetPlatform()
loca... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Rabao/npcs/Dancing_Wolf.lua | 19 | 1645 | -----------------------------------
-- Area: Rabao
-- NPC: Dancing Wolf
-- Type: Standard NPC
-- @zone: 247
-- @pos 7.619 7 81.209
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Rabao/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
prosody-modules/import | mod_couchdb/couchdb/mod_couchdb.lua | 32 | 2155 |
local http = require "socket.http";
local url = require "socket.url";
local couchapi = module:require("couchdb/couchapi");
local json = module:require("couchdb/json");
local couchdb_url = assert(module:get_option("couchdb_url"), "Option couchdb_url not specified");
local db = couchapi.db(couchdb_url);
local functio... | mit |
AresTao/darkstar | scripts/zones/Mhaura/npcs/Jikka-Abukka.lua | 17 | 1510 | -----------------------------------
-- Area: Mhaura
-- NPC: Jikka-Abukka
-- Involved in Quest: Riding on the Clouds
-- @pos -13 -15 58 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
requir... | gpl-3.0 |
DeinFreund/Zero-K | LuaRules/Gadgets/exp_no_air_nuke.lua | 17 | 1024 | -- $Id: exp_no_air_nuke.lua 3171 2008-11-06 09:06:29Z det $
function gadget:GetInfo()
return {
name = "NoAirNuke",
desc = "Disables the custom nuke effect, if the nuke is shoot in the air.",
author = "jK",
date = "Dec, 2007",
license = "GNU GPL, v2 or later",
layer = 0... | gpl-2.0 |
DeinFreund/Zero-K | scripts/spiderriot.lua | 16 | 4531 | include "spider_walking.lua"
include "constants.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local turret = piece 'turret'
local barrel = piece 'barrel'
local... | gpl-2.0 |
tysonliddell/OpenRA | mods/ra/maps/soviet-05/soviet05-reinforcements_teams.lua | 1 | 6388 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
AresTao/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/qm1.lua | 17 | 1641 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: ???
-- Involved in Quests: Acting in Good Faith
-- @zone 195
-- @pos -17 0 59 (I-10)
-- @pos
-- @pos
-- @pos
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
--------------... | gpl-3.0 |
prosody-modules/import | mod_register_json/register_json/mod_register_json.lua | 32 | 10044 | -- Expose a simple token based servlet to handle user registrations from web pages
-- through Base64 encoded JSON.
-- Copyright (C) 2010 - 2013, Marco Cirillo (LW.Org)
local datamanager = datamanager
local b64_decode = require "util.encodings".base64.decode
local b64_encode = require "util.encodings".base64.encode
lo... | mit |
AresTao/darkstar | scripts/zones/Rolanberry_Fields/npcs/qm1.lua | 25 | 1561 | -----------------------------------
-- Area: Rolanberry Fields
-- NPC: qm1 (???)
-- @pos -686.216 -31.556 -369.723 110
-- Notes: Spawns Chuglix Berrypaws for ACP mission "Gatherer of Light (I)"
-----------------------------------
package.loaded["scripts/zones/Rolanberry_Fields/TextIDs"] = nil;
----------------... | gpl-3.0 |
DCWfreestyle/kca_lua | ztaskVer2.lua | 2 | 1842 | --[[
men = 1 ------ 1¿ªÆôµ÷¶È£¬0²»Ê¹ÓÃ
number_of_tasks = 2 -------ÈÎÎñÊýÁ¿
task_id = 1 ------ÈÎÎñID 0 , ... , number_of_tasks-1
]]
require("\\Lua\\BaseFunc")
--================
powertaken=false --¼Ç¼ÊÇ·ñ±»Õ¼ÓÃ
--
--[[ Export:
½áÊøÕ¼ÓÃ() ¿ªÊ¼Õ¼ÓÃ() Release() ÐÝÃßex(sleeptime) /Ãë
]]
local function ¿ÕÏÐ״̬()
... | gpl-2.0 |
tysonliddell/OpenRA | mods/cnc/maps/nod01/nod01.lua | 4 | 2705 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Konschtat_Highlands/mobs/Ghillie_Dhu.lua | 15 | 2301 | -----------------------------------
-- Area: Konschtat Highlands
-- NM: Ghillie Dhu
-----------------------------------
require("scripts/globals/utils");
require("scripts/globals/status");
require("scripts/globals/fieldsofvalor");
-----------------------------------
-- onMobInitialize
-------------------... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Horlais_Peak/bcnms/shattering_stars.lua | 19 | 2368 | -----------------------------------
-- Area: Horlais Peak
-- Name: Shattering stars - Maat Fight
-- @pos -509 158 -211 139
-----------------------------------
package.loaded["scripts/zones/Horlais_Peak/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/ques... | gpl-3.0 |
Milkyway-at-home/milkywayathome_client | nbody/tests/orphan_models/model_LMC_bar.lua | 1 | 2686 |
arg = {...}
seed = argSeed
nbody = arg[1]
--assert(seed ~= nil, "Seed argument not set for test unit")
--assert(nbody ~= nil, "Number of bodies not set for test unit")
prng = DSFMT.create(seed)
dwarfMass = 16
dwarfRadius = 0.2
LMCMASS = 449865.888
LMCSCALE = 15.0
function makePotential()
return Potential.creat... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/plate_of_yahata-style_carp_sushi.lua | 35 | 1422 | -----------------------------------------
-- ID: 5186
-- Item: plate_of_yahata-style_carp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Dexterity 2
-- Accuracy % 11
-- HP Recovered While Healing 2
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Wajaom_Woodlands/TextIDs.lua | 7 | 1135 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6383; -- Obtained: <item>.
GIL_OBTAINED = 6384; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6386; -- Obtained... | gpl-3.0 |
alidess/oscarbots | plugins/help.lua | 1 | 1724 | do
function run(msg, matches)
return [[
ملاحظه : يمكنك استخدام / او ! في بداية الامر
طرد عضو عن طريق معرف او ايدي او بلرد↙️
/kick [username|id]
/kick
حظر عضو عن طريق معرف او ايدي او بلرد↙️
/ban [username|id]
/ban
فتح حظر عن طريق ايدي او بلرد↙️
/unban [id]
/unban
قفل اضافه،اسم،صورة..الخ↙️
/lock [name|member|a... | gpl-2.0 |
DeinFreund/Zero-K | effects/gundam_unitrupture.lua | 25 | 3297 | -- unitrupture
return {
["unitrupture"] = {
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/prime_beef_stewpot.lua | 36 | 1890 | -----------------------------------------
-- ID: 5548
-- Item: Prime Beef Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Strength +2
-- Agility +1
-- Mind +1
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Atta... | gpl-3.0 |
AresTao/darkstar | scripts/globals/items/kazham_pineapple.lua | 35 | 1203 | -----------------------------------------
-- ID: 4432
-- Item: kazham_pineapple
-- Food Effect: 5Min, All Races
-----------------------------------------
-- Agility -5
-- Intelligence 3
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Port_Bastok/npcs/Aishah.lua | 37 | 1043 | -----------------------------------
-- Area: Port Bastok
-- NPC: Aishah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Port_Bastok/TextIDs");
... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Port_Windurst/npcs/Taniko-Maniko.lua | 36 | 1836 | -----------------------------------
-- Area: Port Windurst
-- NPC: Taniko-Maniko
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Port_Windurst/TextIDs"] = nil;
require("scripts/zones/Port_Windurst/... | gpl-3.0 |
DCWfreestyle/kca_lua | Funcs/Battle.lua | 2 | 7221 | require("\\Lua\\BaseFunc")
-- Base.CallFunc("Base.AddKanChangeColor","[123,456,789]")
function ĸ¸Û2()
array = {}
local count = {}
array = {[0]=207,254,1870818}; count[0] = array;
return IsColorAll(count)
end
function ¼ì²éÊÇ·ñÔÚĸ¸Û()
array = {}
counts = {}
array = {[0]=204,247,2137083};counts[0] ... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/serving_of_medicinal_quus.lua | 35 | 1403 | -----------------------------------------
-- ID: 4294
-- Item: serving_of_medicinal_quus
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 1
-- Mind -1
-- Ranged ACC % 7
-- Ranged ACC Cap 15
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/gui_team_platter.lua | 12 | 12172 | -- see http://springrts.com/phpbb/viewtopic.php?f=23&t=21244&start=60 for opt
-- http://code.google.com/p/zero-k/source/browse/trunk/mods/zk/LuaUI/Widgets/unit_shapes.lua?spec=svn647&r=647
--------------------------------------------------------------------------------
-------------------------------------------------... | gpl-2.0 |
AresTao/darkstar | scripts/globals/items/bloody_bolt.lua | 11 | 1425 | -----------------------------------------
-- ID: 18151
-- Item: Bloody Bolt
-- Additional Effect: Drains HP
-----------------------------------------
require("scripts/globals/status");
-----------------------------------
-- onAdditionalEffect Action
-----------------------------------
function onAdditionalEf... | gpl-3.0 |
yinjun322/skynet | examples/client.lua | 67 | 2101 | package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local socket = require "clientsocket"
local proto = require "proto"
local sproto = require "sproto"
local host = sproto.new(proto.s2c):host "package"
local request = host:attach(sproto.n... | mit |
AresTao/darkstar | scripts/zones/Port_Bastok/npcs/Juroro.lua | 17 | 5440 | -----------------------------------
-- Area: Port Bastok
-- NPC: Juroro
-- Starts and Finishes Quest: Trial by Earth
-- @pos 32 7 -41 236
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
re... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Mount_Kamihr/Zone.lua | 34 | 1279 | -----------------------------------
--
-- Zone: Mount Kamihr
--
-----------------------------------
package.loaded["scripts/zones/Mount_Kamihr/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Mount_Kamihr/TextIDs");
---------------------------... | gpl-3.0 |
AdiAddons/AdiButtonAuras | rules/Demonhunter.lua | 1 | 1179 | --[[
AdiButtonAuras - Display auras on action buttons.
Copyright 2013-2022 Adirelle (adirelle@gmail.com)
All rights reserved.
This file is part of AdiButtonAuras.
AdiButtonAuras 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 Softwa... | gpl-3.0 |
DeinFreund/Zero-K | LuaUI/Widgets/gui_chili_endgraph.lua | 5 | 15891 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "EndGame Stats",
desc = "v0.913 Chili replacement for default end game statistics",
author = "Funken... | gpl-2.0 |
AresTao/darkstar | scripts/zones/Meriphataud_Mountains/npcs/Daruru_WW.lua | 30 | 3076 | -----------------------------------
-- Area: Meriphataud Mountains
-- NPC: Daruru, W.W.
-- Type: Border Conquest Guards
-- @pos -120.393 -25.822 -592.604 119
-----------------------------------
package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
antoniova/nes | output/luaScripts/FRKfunctions.lua | 9 | 20772 | _FRK_Fn= {}
_FRK_Fn.version= 1
--FatRatKnight
-- Various little functions for use.
-- Shortly, I will list out functions and keywords that the script provides
-- access to. But first, I feel a need to explain a few things...
-- Option keywords are simply global variables that this auxillary script looks
--... | gpl-2.0 |
patrikrm13/AVENGERS_ANTISPAMEER | plugins/fillter.lua | 32 | 4280 | do
TMP = {}
function First( msg )
local Xdata = load_data(_config.moderation.data);
if ( not Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] ) then
Xdata[tostring(msg.to.id)]["settings"]["Blocked_Words"] = TMP
save_data(_config.moderation.data, Xdata);
print("i couldn't find the table so i cre... | gpl-2.0 |
yinjun322/skynet | service/cmaster.lua | 78 | 3256 | local skynet = require "skynet"
local socket = require "socket"
--[[
master manage data :
1. all the slaves address : id -> ipaddr:port
2. all the global names : name -> address
master hold connections from slaves .
protocol slave->master :
package size 1 byte
type 1 byte :
'H' : HANDSHAKE, report slav... | mit |
tysonliddell/OpenRA | mods/ra/maps/allies-06a/allies06a.lua | 1 | 7685 | --[[
Copyright 2007-2020 The OpenRA Developers (see AUTHORS)
This file is part of OpenRA, which is free software. It is made
available to you under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later vers... | gpl-3.0 |
AresTao/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Lindgard_IM.lua | 30 | 3065 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Lindgard, I.M.
-- Outpost Conquest Guards
-- @pos -258.041 7.473 -254.527 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/globals... | gpl-3.0 |
u20024804/fbcunn | test/test_ClassHierarchicalNLLCriterion.lua | 8 | 14030 | -- Copyright 2004-present Facebook. All Rights Reserved.
-- Train simple 1 hidden layer neural net on MNIST using the hierarchical
-- softmax layer (with the option to test also the regular flat softmax as well)
require('fb.luaunit')
local torch = require('fbtorch')
require('nn')
require('fbcunn')
require('os')
torch.... | bsd-3-clause |
AresTao/darkstar | scripts/globals/items/chunk_of_goblin_chocolate.lua | 35 | 1343 | -----------------------------------------
-- ID: 4495
-- Item: chunk_of_goblin_chocolate
-- Food Effect: 3Min, All Races
-----------------------------------------
-- Charisma -5
-- Health Regen While Healing 5
-- Lizard Killer 5
-----------------------------------------
require("scripts/globals/status");
... | gpl-3.0 |
carbonsrv/cobalt | libs/irc.lua | 2 | 2092 | -- IRC Parser.
--[[
The MIT License (MIT)
Copyright (c) 2015 - 2016 Adrian Pistol
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... | mit |
AresTao/darkstar | scripts/globals/items/windurst_salad.lua | 35 | 1465 | -----------------------------------------
-- ID: 4555
-- Item: windurst_salad
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic 20
-- Agility 5
-- Vitality -1
-- Ranged ACC % 8
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/globals/status"... | gpl-3.0 |
resetnow/premake-core | contrib/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | bsd-3-clause |
Almightree/GuildInviteTool | Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 35 | 8804 | --[[ $Id: CallbackHandler-1.0.lua 1131 2015-06-04 07:29:24Z nevcairiel $ ]]
local MAJOR, MINOR = "CallbackHandler-1.0", 6
local CallbackHandler = LibStub:NewLibrary(MAJOR, MINOR)
if not CallbackHandler then return end -- No upgrade needed
local meta = {__index = function(tbl, key) tbl[key] = {} return tbl[key] end}
... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.