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 |
|---|---|---|---|---|---|
dageq/Dage-Aliraqi | 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 |
Samanj5/spam-is-alive | 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 |
shangjiyu/luci-with-extra | modules/luci-base/luasrc/ccache.lua | 81 | 1651 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local io = require "io"
local fs = require "nixio.fs"
local util = require "luci.util"
local nixio = require "nixio"
local debug = require "debug"
local string... | apache-2.0 |
thesabbir/luci | protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 27 | 1763 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local server, username, password
local ipv6, defaultroute, metric, peerdns, dns, mtu
server = section:taboption("general", Value, "server", translate("L2TP Server"))
server.datat... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/sweet_rice_cake.lua | 35 | 1710 | -----------------------------------------
-- ID: 4270
-- Item: sweet_rice_cake
-- Food Effect: 30Min, All Races
-----------------------------------------
-- MP 17
-- Vitality 2
-- Intelligence 3
-- Mind 1
-- HP Recovered While Healing 2
-- MP Recovered While Healing 2
-- Evasion 5
-- Resist Silence 5
-----... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/steamed_crab.lua | 35 | 1308 | -----------------------------------------
-- ID: 4342
-- Item: steamed_crab
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Vitality 3
-- Defense % 27
-- Defense Cap 55
-----------------------------------------
require("scripts/globals/status");
------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Cloister_of_Gales/npcs/Wind_Protocrystal.lua | 19 | 1802 | -----------------------------------
-- Area: Cloister of Gales
-- NPC: Wind Protocrystal
-- Involved in Quests: Trial by Wind, Trial Size Trial By Wind
-- @zone -361 1 -381 201
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Gales/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
haka-security/haka | src/haka/lua/policy.lua | 2 | 7310 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local class = require('class')
local check = require('check')
local log = haka.log_section("core")
local module = {... | mpl-2.0 |
nasomi/darkstar | scripts/zones/Kazham/npcs/Pahya_Lolohoiv.lua | 35 | 1341 | -----------------------------------
-- Area: Kazham
-- NPC: Pahya Lolohoiv
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTr... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/guillotine.lua | 18 | 1904 | -----------------------------------
-- Guillotine
-- Scythe weapon skill
-- Skill level: 200
-- Delivers a four-hit attack. Duration varies with TP.
-- Modifiers: STR:25% ; MND:25%
-- 100%TP 200%TP 300%TP
-- 0.875 0.875 0.875
-----------------------------------
require("scripts/globals/status");
require("sc... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Engelhart.lua | 31 | 3561 | -----------------------------------
-- Area: Bastok Markets (S)
-- NPC: Engelhart
-- Quest NPC
-- pos -79 -4 -125
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]/TextIDs");
require("scrip... | gpl-3.0 |
Denzeriko/exsto | lua/exsto/plugins/sv_clear.lua | 2 | 6670 | -- Clear plugin
local PLUGIN = exsto.CreatePlugin()
Shortcuts = {}
Shortcuts[1] = "props,prop_physics"
Shortcuts[2] = "wire,Any_wire_crap"
Shortcuts[3] = "e2,gmod_wire_expression2"
Shortcuts[4] = "ragdoll,prop_ragdoll"
Shortcuts[5] = "vehicle,prop_vehicle"
PLUGIN:... | gpl-3.0 |
nasomi/darkstar | scripts/zones/West_Ronfaure/npcs/qm4.lua | 17 | 1638 | -----------------------------------
-- Area: West Ronfaure
-- NPC: qm4 (???)
-- Involved in Quest: The Dismayed Customer
-- @pos -399 -10 -438 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/sett... | gpl-3.0 |
hanhailong/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 |
nasomi/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Famad.lua | 30 | 3494 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Famad
-- Type: Assault Mission Giver
-- @pos 134.098 0.161 -43.759 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyit... | gpl-3.0 |
nicholas-leonard/nn | ClassNLLCriterion.lua | 5 | 2460 | local THNN = require 'nn.THNN'
local ClassNLLCriterion, parent = torch.class('nn.ClassNLLCriterion', 'nn.Criterion')
function ClassNLLCriterion:__init(weights, sizeAverage)
parent.__init(self)
if sizeAverage ~= nil then
self.sizeAverage = sizeAverage
else
self.sizeAverage = true
end
i... | bsd-3-clause |
nasomi/darkstar | scripts/globals/weaponskills/infernal_scythe.lua | 18 | 1521 | -----------------------------------
-- Infernal Scythe
-- Scythe weapon skill
-- Skill Level: 300
-- Deals darkness elemental damage and lowers target's attack. Duration of effect varies with TP.
-- Attack Down effect is -25% attack.
-- Aligned with the Shadow Gorget & Aqua Gorget.
-- Aligned with the Shadow Bel... | gpl-3.0 |
thesabbir/luci | applications/luci-app-ddns/luasrc/model/cbi/ddns/hints.lua | 34 | 6352 | -- Copyright 2014 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed to the public under the Apache License 2.0.
local CTRL = require "luci.controller.ddns" -- this application's controller
local DISP = require "luci.dispatcher"
local SYS = require "luci.sys"
local DDNS = require "luci.too... | apache-2.0 |
nasomi/darkstar | scripts/globals/items/prized_crab_stewpot.lua | 36 | 1898 | -----------------------------------------
-- ID: 5546
-- Item: Prized Crab Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 100
-- MP +20
-- Vitality +2
-- Agility +2
-- Mind +4
-- HP Recovered while healing +9
-- MP Recovered while healing +3
-- De... | gpl-3.0 |
sjthespian/dotfiles | hammerspoon/modules/songs.lua | 2 | 5538 | -- module: songs - for ranking songs and manipulating players
--
-- The ranking relies partially on another program I've written called track,
-- that keeps a database of song information and rankings. Set
-- config.songs.trackBinary to nil to disable this.
local m = {}
local uapp = require('utils.app')
local ustr = r... | mit |
thesabbir/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab.lua | 39 | 5639 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
require("luci.tools.webadmin")
local fs = require "nixio.fs"
local util = require "nixio.util"
local tp = require "luci.template.parser"
local block = io.popen("block info", "r")
local ln, dev, devices = n... | apache-2.0 |
sjthespian/dotfiles | hammerspoon/bindings.lua | 1 | 4094 | --
-- Key bindings
--
local bindings = {}
local uapp = require('utils.app')
-- define some modifier key combinations
local mod = {
s = {'shift'},
a = {'alt'},
cc = {'cmd', 'ctrl'},
ca = {'cmd', 'alt'},
as = {'alt', 'shift'},
cas = {'cmd', 'alt', 'shift'},
hyper = {'cmd', 'alt',... | mit |
domino14/macondo | scripts/parse_cgps.lua | 1 | 2014 | -- this script was used for a Kaggle competition
-- https://www.kaggle.com/c/scrabble-point-value/leaderboard
-- we got 4th place!
local function split(str, sep)
local result = {}
local regex = ("([^%s]+)"):format(sep)
for each in str:gmatch(regex) do
table.insert(result, each)
end
return re... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Garlaige_Citadel/npcs/qm20.lua | 57 | 2134 | -----------------------------------
-- Area: Garlaige Citadel
-- NPC: qm20 (??? - Bomb Coal Fragments)
-- Involved in Quest: In Defiant Challenge
-- @pos -137.047 0 347.502 200
-----------------------------------
package.loaded["scripts/zones/Garlaige_Citadel/TextIDs"] = nil;
-----------------------------------
requi... | gpl-3.0 |
luanorlandi/SwiftSpaceBattle | src/ship/enemyType2.lua | 2 | 2167 | local deckSize = Vector:new(50 * window.scale, 50 * window.scale)
local deck = MOAIGfxQuad2D.new()
deck:setTexture("texture/ship/ship9.png")
deck:setRect(-deckSize.x, -deckSize.y, deckSize.x, deckSize.y)
local deckDmg = MOAIGfxQuad2D.new()
deckDmg:setTexture("texture/ship/ship9dmg.png")
deckDmg:setRect(-deckSize.x, -... | gpl-3.0 |
OptiPop/external_skia | tools/lua/bbh_filter.lua | 207 | 4407 | -- bbh_filter.lua
--
-- This script outputs info about 'interesting' skp files,
-- where the definition of 'interesting' changes but is roughly:
-- "Interesting for bounding box hierarchy benchmarks."
--
-- Currently, the approach is to output, in equal ammounts, the names of the files that
-- have most commands, and t... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Giddeus/npcs/Altar_of_Offerings.lua | 36 | 1696 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Alter Of Offering
-- Involved in Quest: A Crisis in the Making
-- Working 100%
-- @zone = 145
-- @pos = -137 17 177
-----------------------------------
package.loaded["scripts/zones/Giddeus/TextIDs"] = nil;
--------------------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Boizo-Naizo.lua | 19 | 1542 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Boizo-Naizo
-- Involved in Quest: Riding on the Clouds
-- @zone 241
-- @pos -9.581 -3.75 -26.062
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Lower_Delkfutts_Tower/Zone.lua | 17 | 3688 | -----------------------------------
--
-- Zone: Lower_Delkfutts_Tower (184)
--
-----------------------------------
package.loaded["scripts/zones/Lower_Delkfutts_Tower/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/gl... | gpl-3.0 |
nasomi/darkstar | scripts/globals/weaponskills/primal_rend.lua | 18 | 4516 | -----------------------------------
-- Primal Rend
-- Axe weapon skill
-- Skill Level: N/A
-- Deals light elemental damage. Damage varies with TP. Aymur: Aftermath effect varies with TP.
-- Available only after completing the Unlocking a Myth (Beastmaster) quest.
-- Aligned with the Shadow Gorget, Soil Gorget & A... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Nya_Labiccio.lua | 36 | 1548 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Nya Labiccio
-- Only sells when Windurst controlls Gustaberg Region
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/... | gpl-3.0 |
nasomi/darkstar | scripts/globals/items/pot-au-feu_+1.lua | 32 | 1707 | -----------------------------------------
-- ID: 5753
-- Item: Pot-au-feu
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Strength 4
-- Agility 4
-- Intelligence -3
-- Ranged Attk % 16 Cap 65
-- Ranged ACC % 11 Cap 55
-- Enmity -3
-----------------------------------------
require("scripts... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Beaucedine_Glacier/npcs/Leaufetie_RK.lua | 30 | 3066 | -----------------------------------
-- Area: Beaucedine Glacier
-- NPC: Leaufetie, R.K.
-- Type: Conquest Overseer
-- @pos -227.956 -81.475 260.442 111
-----------------------------------
package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/con... | gpl-3.0 |
Hello23-Ygopro/ygopro-ds | expansions/script/c27004209.lua | 1 | 1658 | --TB2-014 Dark Duo Dabura
local ds=require "expansions.utility_dbscg"
local scard,sid=ds.GetID()
function scard.initial_effect(c)
ds.EnableBattleAttribute(c)
ds.AddSetcode(c,CHARACTER_DABURA,SPECIAL_TRAIT_WORLD_TOURNAMENT)
ds.AddPlayProcedure(c,COLOR_RED,2,2)
--barrier
ds.EnableBarrier(c,scard.barcon)
--to warp
... | gpl-3.0 |
uleelx/dnsforwarder | dnsforwarder.lua | 1 | 3385 | local socket = require("socket")
if not task then dofile("task.lua") end
local task = task
local SERVERS = {
"119.29.29.29", "114.114.115.110", "223.5.5.5",
"8.8.8.8", "208.67.220.123"
}
local FAKE_IP = {
"0.0.0.0", "1.1.1.1", "113.11.194.190", "118.5.49.6", "12.87.133.0",
"122.218.101.190", "123.126.249.238... | mit |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Fomina.lua | 36 | 1701 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Fomina
-- Only sells when Windurst controlls Elshimo Lowlands
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zones/Windu... | gpl-3.0 |
nasomi/darkstar | scripts/zones/West_Sarutabaruta/npcs/Harvesting_Point.lua | 29 | 1125 | -----------------------------------
-- Area: West Sarutabaruta
-- NPC: Harvesting Point
-----------------------------------
package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/harvesting");
require("scripts/zones/West_Sarutabaruta/T... | gpl-3.0 |
EnjoyHacking/nn | L1Penalty.lua | 42 | 1129 | local L1Penalty, parent = torch.class('nn.L1Penalty','nn.Module')
--This module acts as an L1 latent state regularizer, adding the
--[gradOutput] to the gradient of the L1 loss. The [input] is copied to
--the [output].
function L1Penalty:__init(l1weight, sizeAverage, provideOutput)
parent.__init(self)
self... | bsd-3-clause |
nasomi/darkstar | scripts/zones/Davoi/npcs/_459.lua | 19 | 1117 | -----------------------------------
-- Area: Davoi
-- NPC: Wall of Dark Arts
-- Involved in Mission: Magicite
-- @pos -22 1 -66 149
-----------------------------------
package.loaded["scripts/zones/Davoi/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/D... | gpl-3.0 |
appaquet/torch-android | src/3rdparty/nn/MulConstant.lua | 32 | 1071 | local MulConstant, parent = torch.class('nn.MulConstant', 'nn.Module')
function MulConstant:__init(constant_scalar,ip)
parent.__init(self)
assert(type(constant_scalar) == 'number', 'input is not scalar!')
self.constant_scalar = constant_scalar
-- default for inplace is false
self.inplace = ip or false
... | bsd-3-clause |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/applications/luci-statistics/luasrc/model/cbi/luci_statistics/collectd.lua | 69 | 2332 | --[[
Luci configuration model for statistics - general collectd configuration
(c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | gpl-2.0 |
Denzeriko/exsto | lua/exsto/plugins/sv_setconvar.lua | 3 | 1157 | -- Console Variable changer plugin
local PLUGIN = exsto.CreatePlugin()
PLUGIN:SetInfo({
Name = "Set ConVar",
ID = "setconvar",
Desc = "Set's console variables.",
Owner = "Hobo",
} )
function PLUGIN:SetConVar( owner, var, value )
local variable = GetConVar( var )
if (string.Left(var,5) == "sbox_" || stri... | gpl-3.0 |
Denzeriko/exsto | lua/exsto/sh_data.lua | 2 | 26894 | --[[
Exsto
Copyright (C) 2010 Prefanatic
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed i... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Bastok_Markets/npcs/Michea.lua | 36 | 4108 | -----------------------------------
-- Area: Bastok Markets
-- NPC: Michea
-- Quest NPC
-- Starts: Father Figure (100%) | The Elvaan Goldsmith (100%)
-- Involed in: Fetichism | Where Two Paths Converge
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil;
------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_San_dOria/npcs/Parcarin.lua | 17 | 1698 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Parcarin
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -9 -13 -151 232
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
raburton/nodemcu-firmware | lua_examples/ucglib/GT_triangle.lua | 30 | 1112 | local M, module = {}, ...
_G[module] = M
function M.run()
-- make this a volatile module:
package.loaded[module] = nil
print("Running component triangle...")
local m
disp:setColor(0, 0, 80, 20)
disp:setColor(1, 60, 80, 20)
disp:setColor(2, 60, 120, 0)
disp:setColor(3, 0, 140, 30) ... | mit |
nasomi/darkstar | scripts/zones/Misareaux_Coast/npcs/Spatial_Displacement.lua | 19 | 1729 | -----------------------------------
-- Area: Misareaux Coast
-- NPC: Spacial Displacement
-- Entrance to Riverne Site #A01 and #B01
-----------------------------------
package.loaded["scripts/zones/Misareaux_Coast/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("sc... | gpl-3.0 |
thesabbir/luci | modules/luci-base/luasrc/model/firewall.lua | 67 | 10658 | -- Copyright 2009 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local type, pairs, ipairs, table, luci, math
= type, pairs, ipairs, table, luci, math
local tpl = require "luci.template.parser"
local utl = require "luci.util"
local uci = require "luci.model.uci"
module "lu... | apache-2.0 |
shangjiyu/luci-with-extra | applications/luci-app-commands/luasrc/controller/commands.lua | 17 | 6464 | -- Copyright 2012 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.commands", package.seeall)
function index()
entry({"admin", "system", "commands"}, firstchild(), _("Custom Commands"), 80)
entry({"admin", "system", "commands", "dashboard"}, template(... | apache-2.0 |
icplus/OP-SDK | package/ramips/ui/luci-mtk/src/modules/admin-full/luasrc/model/cbi/admin_system/backupfiles.lua | 85 | 2658 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Sacrificial_Chamber/bcnms/temple_of_uggalepih.lua | 17 | 2155 | -----------------------------------
-- Area: Sacrificial Chamber
-- Name: Zilart Mission 4
-----------------------------------
package.loaded["scripts/zones/Sacrificial_Chamber/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("script... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Riverne-Site_B01/npcs/Unstable_Displacement.lua | 35 | 1068 | -----------------------------------
-- Area: Riverne Site #B01
-- NPC: Unstable Displacement
-- ENM Battlefield
-----------------------------------
package.loaded["scripts/zones/Riverne-Site_B01/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/R... | gpl-3.0 |
amirik22/i4bot | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
nasomi/darkstar | scripts/zones/PsoXja/npcs/_i99.lua | 17 | 3438 | -----------------------------------
-- Area: Pso'Xja
-- NPC: Stone Gate
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/PsoXja/TextIDs");
require("scripts/globals/keyitems... | gpl-3.0 |
aimingoo/Valider | Valider.lua | 2 | 2167 | -----------------------------------------------------------------------------
-- Valider class v1.1.1
-- Author: aimingoo@wandoujia.com
-- Copyright (c) 2015.06
--
-- The promise module from NGX_4C architecture
-- 1) N4C is programming framework.
-- 2) N4C = a Controllable & Computable Communication Cluster architectur... | apache-2.0 |
ZuoGuocai/Atlas | examples/tutorial-rewrite.lua | 39 | 2740 | --[[ $%BEGINLICENSE%$
Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Gusgen_Mines/npcs/Clay.lua | 34 | 1250 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: Clay
-- Involved in Quest: A Potter's Preference
-- @pos 117 -21 432 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
re... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters_[S]/npcs/Kleh_Engyumoh.lua | 38 | 1051 | -----------------------------------
-- Area: Windurst Waters (S)
-- NPC: Kleh Engyumoh
-- Type: Standard NPC
-- @zone: 94
-- @pos -54.962 -4.5 57.701
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Port_Jeuno/npcs/Dohhel.lua | 38 | 1031 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Dohhel
-- Type: Event Scene Replayer
-- @zone: 246
-- @pos -156.031 -2 6.051
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
------------------... | gpl-3.0 |
nasomi/darkstar | scripts/zones/The_Garden_of_RuHmet/Zone.lua | 4 | 13583 | -----------------------------------
--
-- Zone: The_Garden_of_RuHmet (35)
--
-----------------------------------
package.loaded["scripts/zones/The_Garden_of_RuHmet/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/The_Garden_of_RuHmet/TextIDs");
... | gpl-3.0 |
nasomi/darkstar | scripts/zones/Windurst_Waters/npcs/Damami-Karumi.lua | 38 | 1039 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Damami-Karumi
-- Type: Standard NPC
-- @zone: 238
-- @pos -5.362 -2 18.059
--
-- Auto-Script: Requires Verification (Verfied By Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
----------... | gpl-3.0 |
Nathan22Miles/sile-0.9.1 | core/libtexpdf-output.lua | 1 | 1848 | local pdf = require("justenoughlibtexpdf");
if (not SILE.outputters) then SILE.outputters = {} end
local cursorX = 0
local cursorY = 0
local font = 0
local lastW = 0
SILE.outputters.libtexpdf = {
init = function()
pdf.init(SILE.outputFilename, SILE.documentState.paperSize[1],SILE.documentState.paperSize[2])
p... | mit |
nasomi/darkstar | scripts/zones/Sea_Serpent_Grotto/npcs/Treasure_Coffer.lua | 17 | 4320 | -----------------------------------
-- Area: Sea Serpent Grotto
-- NPC: Treasure Coffer
-- @zone 176
-- @pos 184 18 -107
-----------------------------------
package.loaded["scripts/zones/Sea_Serpent_Grotto/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
mbsg/openwrt-extra | luci/applications/luci-app-qos_gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua | 1 | 2859 |
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
require "luci.sys"
local qos_gargoyle_enabled=luci.sys.init.enabled("qos_gargoyle")
m = Map("qos_gargoyle", translate("Global"),translate("Global set"))
s = m:section(TypedSection, "global", translate("Global"), translate("<b><font color=\"#FF00... | gpl-2.0 |
nasomi/darkstar | scripts/zones/Windurst_Woods/npcs/Pattsu-Yabittsu.lua | 34 | 1137 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Pattsu-Yabittsu
-- Warps players to Windurst Waters
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Windurst_Woods/TextIDs");
-----... | gpl-3.0 |
fegimanam/zus | plugins/locksticker.lua | 17 | 2634 | -- data saved to data/moderation.json
do
local user = 'user#id'..msg.action.user.id
-- if sticker is sent
elseif msg.media and msg.media.caption == 'sticker.webp' and not is_sudo(msg.from.id) then
local user_id = msg.from.id
local chat_id = msg.to.id
local sticke... | gpl-2.0 |
akornatskyy/lucid | src/validation/rules/length.lua | 1 | 1870 | local succeed = require 'validation.rules.succeed'
local setmetatable = setmetatable
local len
do
local utf8 = require 'utf8'
len = utf8.len
end
local check_min = {__index = {
msg = 'Required to be a minimum of %d characters in length.',
validate = function(self, value, model, translations)
... | mit |
nasomi/darkstar | scripts/globals/weaponskills/arching_arrow.lua | 30 | 1377 | -----------------------------------
-- Arching Arrow
-- Archery weapon skill
-- Skill level: 225
-- Delivers a single-hit attack. Chance of params.critical varies with TP.
-- Aligned with the Flame Gorget & Light Gorget.
-- Aligned with the Flame Belt & Light Belt.
-- Element: None
-- Modifiers: STR:16% ; AGI:2... | gpl-3.0 |
TeamHypersomnia/Augmentations | hypersomnia/content/official/gfx/resistance_torso_knife_secd_2.meta.lua | 2 | 2783 | return {
extra_loadables = {
enabled_generate_neon_map = {
alpha_multiplier = 0.40000000596046448,
amplification = 100,
light_colors = {
"223 113 38 255"
},
radius = {
x = 80,
y = 80
},
standard_deviation = 6
},
generate_desaturation = fals... | agpl-3.0 |
amirik22/i4bot | plugins/torrent_search.lua | 411 | 1622 | --[[ NOT USED DUE TO SSL ERROR
-- See https://getstrike.net/api/
local function strike_search(query)
local strike_base = 'http://getstrike.net/api/v2/torrents/'
local url = strike_base..'search/?phrase='..URL.escape(query)
print(url)
local b,c = http.request(url)
print(b,c)
local search = json:decode(b)
v... | gpl-2.0 |
nasomi/darkstar | scripts/zones/AlTaieu/npcs/_0x2.lua | 17 | 1995 | -----------------------------------
-- Area: Al'Taieu
-- NPC: Rubious Crystal (West Tower)
-- @pos -683.709 -6.250 -222.142 33
-----------------------------------
package.loaded["scripts/zones/AlTaieu/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/AlTaieu/TextIDs");
require("... | gpl-3.0 |
antispamspider/AntiSpam_Spider | plugins/aazaan.lua | 1 | 3720 | --[[
################################
# #
# Aazaan #
# #
# #
# by @Dragon_Born "Arian" #
# #
# #
# Modified by GPMod Team #
# ... | gpl-2.0 |
KlonZK/Zero-K | units/hoverminer.lua | 4 | 4133 | unitDef = {
unitname = [[hoverminer]],
name = [[Dampener]],
description = [[Minelaying Hover]],
acceleration = 0.0435,
brakeRate = 0.205,
buildCostEnergy = 200,
buildCostMetal = 200,
builder = false,
buildPic = [[hoverm... | gpl-2.0 |
lmbarros/Diluculum | Lua/CommandLineParser.lua | 2 | 7930 | --
-- CommandLineParser.lua
-- A command-line parser for Lua, somewhat inspired by the one used
-- by GoboLinux's scripts.
-- Leandro Motta Barros
--
local P = { }
CommandLineParser = P
-- Import names and use a non-global environment
-- local assert = assert
local assert = assert
local io = io
local ipairs = ipairs... | mit |
aqasaeed/megazeus | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
hfjgjfg/mehdi7614 | plugins/chat.lua | 6 | 2112 | local function run(msg)
if msg.text == "hi" then
return "Hi Baby :)"
end
if msg.text == "Hi" then
return "Hello Honey :)"
end
if msg.text == "Hello" then
return "Hi :)"
end
if msg.text == "hello" then
return "Hi Honey"
end
if msg.text == "Salam" then
return "Salam Azizam"
end
if msg.text == "salam" then
return "S... | gpl-2.0 |
Kamshak/LibK | lua/libk/3rdparty/glib/lua/reflection/stacktrace.lua | 1 | 3379 | local self = {}
GLib.Lua.StackTrace = GLib.MakeConstructor (self)
function self:ctor (levelCount, frameOffset, stackCaptureOptions)
levelCount = levelCount or math.huge
frameOffset = frameOffset or 0
frameOffset = 4 + frameOffset
stackCaptureOptions = stackCaptureOptions or GLib.Lua.StackCaptureOptions.None
sel... | mit |
kikito/pulsar.lua | maps/squaregrid.lua | 1 | 2766 | local Cell = {}
local cellmt = {
__index = Cell,
__tostring = function(self)
return ("{%d,%d}"):format(self.x, self.y)
end
}
function Cell:new(x,y)
return setmetatable({x = x, y = y}, cellmt)
end
--------------------------------------------------------------------
local distance = {}
local abs = functi... | mit |
ids1024/naev | dat/ai/tpl/scout.lua | 5 | 2375 | include("dat/ai/include/basic.lua")
-- Variables
planet_dist = 1500 -- distance to keep from planets
enemy_dist = 800 -- distance to keep from enemies
-- Required control rate
control_rate = 2
-- Required "control" function
function control ()
task = ai.taskname()
if task == nil or task == "idle" then
... | gpl-3.0 |
MOSAVI17/XYZ | plugins/banhammer.lua | 214 | 11956 |
local function pre_process(msg)
-- 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('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
mbattersby/LiteMount | Tests/Mock/Spell.lua | 1 | 1875 | function GetSpellInfo(id)
local info
if type(id) == 'number' then
if data.GetSpellInfo[id] then return unpack(data.GetSpellInfo[id]) end
elseif type(id) == 'string' then
for _,info in pairs(data.GetSpellInfo) do
if info[1] == id then return unpack(info) end
end
end
... | gpl-2.0 |
KlonZK/Zero-K | units/chickenq.lua | 4 | 10006 | unitDef = {
unitname = [[chickenq]],
name = [[Chicken Queen]],
description = [[Clucking Hell!]],
acceleration = 1,
autoHeal = 0,
brakeRate = 1,
buildCostEnergy = 0,
buildCostMetal = 0,
builder ... | gpl-2.0 |
fridolin2/morethings | morethings_armor.lua | 1 | 7622 | --Define Armors
minetest.register_tool("morethings:red_helmet", {
description = "Red Helmet",
inventory_image = "morethings_red_helmet_inv.png",
groups = {armor_head=20, armor_heal=20, armor_use=400},
wear = 0,
})
minetest.register_tool("morethings:red_chestplate", {
description = "Red Chestplate",
inventory_imag... | gpl-3.0 |
KlonZK/Zero-K | LuaRules/Gadgets/unit_overkill_prevention.lua | 3 | 11786 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
------------------------... | gpl-2.0 |
pxmail/ejabberd-16.09 | deps/luerl/examples/benchmark/suites/arguments.lua | 5 | 7401 | local select, tostring, assert, type, error
= select, tostring, assert, type, error
--------------------------------------------------------------------------------
local run_plain_assert = function(a, b, c)
assert(type(a) == "number")
assert(type(b) == "boolean")
assert(type(c) == "string")
end
----------... | gpl-2.0 |
iamgreaser/seabase | pkg/base/main_client.lua | 1 | 11403 | --[[
Copyright (C) 2013 Ben "GreaseMonkey" Russell & contributors
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpo... | gpl-2.0 |
wordsforthewise/aqm-with-wifi | NodeMCU/recieveData.lua | 1 | 1726 | -- load EMA periods
dofile('EMAsetup.lua')
-- load regime settings
dofile('AQregimes.lua')
useRegime = 1
sendEvery = 3 -- number of data points to wait before logging online
sendCounter = 0
sendToTS = require('sendToTS')
sendToTS.setKey('YAUZS3HL8506DS6P')
uart.on("data", function(data)
_, _, particleSize, conce... | mit |
annulen/premake | tests/actions/vstudio/vc2010/test_filter_ids.lua | 5 | 2427 | --
-- tests/actions/vstudio/vc2010/test_filter_ids.lua
-- Validate generation of filter unique identifiers.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local suite = test.declare("vs2010_filter_ids")
local vc2010 = premake.vstudio.vc2010
--
-- Setup/teardown
--
local sln, prj
function s... | bsd-3-clause |
ds4ww/lurs | plugins/broadcast.lua | 12 | 1389 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ BY MOHAMMEDHISHAM (@TH3BOSS) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY MOHAMMED HISHAM ▀▄ ▄▀
▀▄ ▄▀ broadcast : اذاعه ▀▄ ▄▀
▀▄▀... | gpl-2.0 |
rockneurotiko/telegram-bot | plugins/img_google.lua | 6 | 3090 | do
local mime = require("mime")
local google_config = load_from_file('data/google.lua')
local cache = {}
--[[
local function send_request(url)
local t = {}
local options = {
url = url,
sink = ltn12.sink.table(t),
method = "GET"
}
local a, code, headers, status = http.request(options)
return tabl... | gpl-2.0 |
zzzaidddddd/zzaiddd | data/plugins/VIRSON.lua | 2 | 1306 | --[[
▀▄ ▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀▄▀▄▄▀▀▄▄▀▀▄▄▀▀▄▄▀▀
▀▄ ▄▀ ▀▄ ▄▀
▀▄ ▄▀ BY Memo Mushakil Aliraqi ▀▄ ▄▀
▀▄ ▄▀ BY Memo (@ii02ii) ▀▄ ▄▀
▀▄ ▄▀ JUST WRITED BY Memo Aliraqi ▀▄ ▄▀
▀▄ ▄▀ VIRSON : الاصدار ... | gpl-2.0 |
annulen/premake-dev-rgeary | src/host/luajit-2.0/src/jit/dis_ppc.lua | 15 | 20319 | ----------------------------------------------------------------------------
-- LuaJIT PPC disassembler module.
--
-- Copyright (C) 2005-2012 Mike Pall. All rights reserved.
-- Released under the MIT/X license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------... | bsd-3-clause |
caricatura/Healbot | HealBot/HealBot_Action.lua | 1 | 183209 | local HealBot_ActiveButtons={[0]=1}
local HealBot_RangeSpells={}
local HealBot_AlwaysEnabled={}
local HealBot_pcClass={[1]=false,[2]=false,[3]=false,[4]=false,[5]=false,[6]=false,[7]=false,[8]=false,[9]=false,[10]=false}
local LSM = HealBot_Libs_LSM() --LibStub("LibSharedMedia-3.0")
local HealBot_Action_rCalls={}
loca... | gpl-2.0 |
morynicz/pyroshark | epan/wslua/console.lua | 13 | 3492 | -- console
-- A console and a window to execute commands in lua
--
-- (c) 2006 Luis E. Garcia Ontanon <luis@ontanon.org>
--
-- $Id$
--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
--
-- This program is free software; you can redistribute it and/or
-- ... | gpl-2.0 |
lawnight/skynet | examples/login/client.lua | 67 | 3950 | package.cpath = "luaclib/?.so"
local socket = require "clientsocket"
local crypt = require "crypt"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local fd = assert(socket.connect("127.0.0.1", 8001))
local function writeline(fd, text)
socket.send(fd, text .. "\n")
end
local function unpack_line(text)
loca... | mit |
Kamshak/LibK | lua/libk/3rdparty/glib/lua/reflection/parameter.lua | 1 | 1201 | local self = {}
GLib.Lua.Parameter = GLib.MakeConstructor (self, GLib.Serialization.ISerializable)
function self:ctor (parameterList, name)
self.ParameterList = parameterList
self.Name = name
self.Variadic = false
self.FrameIndex = nil
end
-- ISerializable
function self:Serialize (outBuffer)
outBuffer:String... | mit |
Kamshak/LibK | lua/libk/3rdparty/glib/containers/list.lua | 1 | 2521 | local self = {}
GLib.Containers.List = GLib.MakeConstructor (self, GLib.Containers.ICollection)
function GLib.Containers.List.FromArray (array, list)
list = list or GLib.Containers.List ()
for i = 1, #array do
list:Add (array [i])
end
return list
end
function GLib.Containers.List.FromEnumerable (enumerable,... | mit |
gnzzz/Factorio-Logistics-Wagons | LogisticsWagons/control.lua | 1 | 4078 | -- Debug functions needs to be in global scope to be able to be called from the classes
function debugLog(message)
if false then -- set for debug
local string = math.floor(game.tick / 60) .. " : " .. message
game.player.print(string)
print(string)
end
end
--
module(..., package.seeall)
require "... | mit |
ids1024/naev | dat/scripts/pilot/empire.lua | 12 | 10256 | include("pilot/generic.lua")
include("dat/factions/equip/helper.lua")
include("dat/factions/equip/outfits.lua")
--[[
-- @brief Creates a mighty Empire warship.
--
-- @param empire_create If nil or true actually creates a Empire warship
-- with a random name and all, otherwise it'll give ship type and
-- ... | gpl-3.0 |
KlonZK/Zero-K | LuaUI/Widgets/unit_shield_guard.lua | 12 | 18168 | -- $Id$
--[[
local versionName = "v1.0b"
function widget:GetInfo()
return {
name = "Shield Guard",
desc = versionName .. " Units walking with Area Shield will move at same speed. Area Shield will slow down for slow unit and fast unit will slow down for Area Shield. Work with GUARD (Area Shield) co... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.