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
backburn/Probably
interface/buttons/core.lua
1
1408
-- ProbablyEngine Rotations - https://probablyengine.com/ -- Released under modified BSD, see attached LICENSE. local AceGUI = LibStub("AceGUI-3.0") ProbablyEngine.buttons.create('MasterToggle', nil, function(self, button) if button == "LeftButton" then self.checked = not self.checked self:SetChecked(self.c...
bsd-3-clause
Ninjistix/darkstar
scripts/zones/Windurst_Woods/npcs/Millerovieunet.lua
5
1188
----------------------------------- -- Area: Windurst_Woods -- NPC: Millerovieunet -- Only sells when Windurst controlls Qufim Region -- Confirmed shop stock, August 2013 ----------------------------------- package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil; ----------------------------------- require("scrip...
gpl-3.0
teran/deduplicator
deduplicator.lrdevplugin/GithubCheckUpdates.lua
1
1634
--[[---------------------------------------------------------------------------- This file is a part of Deduplicator Lightroom Classic CC plugin Licenced under GPLv2 terms GIT Repository with the code: https://github.com/teran/deduplicator ----------------------------------------------------------------------------...
gpl-2.0
davidbuzz/ardupilot
libraries/AP_Scripting/examples/ahrs-source-gps-wheelencoders.lua
19
7934
-- This script helps vehicles move between GPS and Non-GPS environments using GPS and Wheel Encoders -- -- setup RCx_OPTION = 90 (EKF Pos Source) to select the source (low=primary, middle=secondary, high=tertiary) -- setup RCx_OPTION = 300 (Scripting1). When this switch is pulled high, the source will be automatically...
gpl-3.0
Ninjistix/darkstar
scripts/zones/Beaucedine_Glacier/mobs/Calcabrina.lua
5
1719
----------------------------------- -- Area: Beaucedine Glacier -- NM: Calcabrina ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onMobInitialize(mob) mob:setMobMod(MOBMOD_ADD_EFF...
gpl-3.0
Ninjistix/darkstar
scripts/globals/items/bowl_of_stamina_soup.lua
3
1294
----------------------------------------- -- ID: 4337 -- Item: bowl_of_stamina_soup -- Food Effect: 4Hrs, All Races ----------------------------------------- -- HP +12% (cap 200) -- Dexterity 4 -- Vitality 6 -- Mind -3 -- HP Recovered While Healing 10 ----------------------------------------- require("scripts/globals/s...
gpl-3.0
DGA-MI-SSI/YaCo
deps/swig-3.0.7/Examples/test-suite/lua/li_std_vector_runme.lua
6
1123
require("import") -- the import fn import("li_std_vector") -- import code for k,v in pairs(li_std_vector) do _G[k]=v end -- move to global iv = IntVector(4) for i=0,3 do iv[i] = i end for i=0,3 do assert(iv[i]==i) end x = average(iv) function near(x,y) return math.abs(x-y)<0.001 end assert(near(x,1.5)) rv = ...
gpl-3.0
TEAMvirus/ViRuS
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
pooya7013/anti-spam
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
ccyphers/kong
spec/01-unit/04-utils_spec.lua
1
20937
local utils = require "kong.tools.utils" describe("Utils", function() describe("get_hostname()", function() it("should retrieve the hostname", function() assert.is_string(utils.get_hostname()) end) end) describe("get_system_infos()", function() it("retrieves various host infos", function() ...
apache-2.0
Ninjistix/darkstar
scripts/globals/items/dish_of_spaghetti_pescatora_+1.lua
3
1305
----------------------------------------- -- ID: 5200 -- Item: dish_of_spaghetti_pescatora_+1 -- Food Effect: 60Min, All Races ----------------------------------------- -- Health % 15 -- Health Cap 160 -- Vitality 3 -- Mind -1 -- Defense % 22 -- Defense Cap 70 -- Store TP 6 ----------------------------------------- req...
gpl-3.0
aqasaeed/hesambot
plugins/banhammer.lua
1085
11557
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
fegimanam/LPT
plugins/banhammer.lua
1085
11557
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
Ninjistix/darkstar
scripts/globals/items/divine_sword_+1.lua
7
1045
----------------------------------------- -- ID: 16826 -- Item: Divine Sword +1 -- Additional Effect: Light Damage ----------------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); require("scripts/globals/msg"); ----------------------------------- function onAdditionalEffe...
gpl-3.0
yuryleb/osrm-backend
profiles/lib/relations.lua
13
6783
-- Profile functions dealing with various aspects of relation parsing -- -- You can run a selection you find useful in your profile, -- or do you own processing if/when required. Utils = require('lib/utils') Relations = {} function is_direction(role) return (role == 'north' or role == 'south' or role == 'west' or ...
bsd-2-clause
LuaDist2/llui
src/drm.lua
3
7835
local ffi = require("ffi") local bit = require("bit") local band, bor = bit.band, bit.bor local lshift, rshift = bit.lshift, bit.rshift local Lib_drm = require("drm_ffi") local libc = require("libc") local DRM_IOCTL_BASE = 'd' local function DRM_IO(nr) return libc._IO(DRM_IOCTL_BASE,nr) end local function DRM_IOR(nr...
mit
bmddota/ContainersPlayground
game/dota_addons/containersplayground/scripts/vscripts/libraries/abilities/containers_lua_targeting.lua
1
4913
containers_lua_targeting = class({}) -------------------------------------------------------------------------------- function containers_lua_targeting:GetBehavior() local result = CustomNetTables:GetTableValue("containers_lua", tostring(self:entindex())) if result then if bit.band(result.behavior, DOTA_ABIL...
apache-2.0
garlick/flux-sched
conf/cab-io.lua
5
17269
uses "Node" Hierarchy "default" { Resource{ "filesystem", name="pfs", tags = { max_bw = 48000 }, children = { Resource {"gateway", name = "gateway_node_pool", tags = { max_bw = 48000 }, children = { Resource {"core_switch", name = "core_switch_pool", tags = { max_bw = 64000 }, children = { ...
gpl-2.0
hamrah12/hamrah_shoma
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
eugenesan/openwrt-luci
contrib/luasrcdiet/lua/LuaSrcDiet.lua
122
23773
#!/usr/bin/env lua --[[-------------------------------------------------------------------- LuaSrcDiet Compresses Lua source code by removing unnecessary characters. For Lua 5.1.x source code. Copyright (c) 2008 Kein-Hong Man <khman@users.sf.net> The COPYRIGHT file describes the conditions under which thi...
apache-2.0
Ninjistix/darkstar
scripts/zones/Yuhtunga_Jungle/npcs/Uphra-Kophra_WW.lua
3
2976
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Uphra-Kophra, W.W. -- Outpost Conquest Guards -- !pos -242.487 -1 -402.772 123 ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest");...
gpl-3.0
makanishere/CycloneTG
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
dmccuskey/dmc-websockets
examples/dmc-websockets-autobahntestsuite/dmc_corona/lib/dmc_lua/lua_events_mix.lua
32
8316
--====================================================================-- -- dmc_lua/lua_events_mix.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (C) 2014-2015 David McCuskey. All Rights Reserved. ...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-openvpn/luasrc/model/cbi/openvpn-basic.lua
71
3274
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- requ...
gpl-2.0
sundream/gamesrv
script/card/wood/card225007.lua
1
2258
--<<card 导表开始>> local super = require "script.card.wood.card125007" ccard225007 = class("ccard225007",super,{ sid = 225007, race = 2, name = "谦逊", type = 101, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 0, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magi...
gpl-2.0
wez2020/bow
plugins/banhammer.lua
1085
11557
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
Midiman/Concrete
lib/hump/camera.lua
1
3505
--[[ Copyright (c) 2010-2013 Matthias Richter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
mit
sundream/gamesrv
script/card/neutral/card163023.lua
1
2472
--<<card 导表开始>> local super = require "script.card.init" ccard163023 = class("ccard163023",super,{ sid = 163023, race = 6, name = "帝王眼镜蛇", type = 201, magic_immune = 0, assault = 0, sneer = 0, atkcnt = 1, shield = 0, warcry = 0, dieeffect = 0, sneak = 0, magic_hurt_a...
gpl-2.0
libremesh/lime-packages
packages/check-internet/tests/test_check_internet_rpcd.lua
1
1302
local utils = require "lime.utils" local test_utils = require "tests.utils" local config = require 'lime.config' local test_file_name = "packages/check-internet/files/usr/libexec/rpcd/check-internet" local check_internet = test_utils.load_lua_file_as_function(test_file_name) local rpcd_call = test_utils.rpcd_call loc...
agpl-3.0
nginxsuper/gin
spec/db/migrations_spec.lua
1
10015
require 'spec.spec_helper' local create_schema_migrations_sql = [[ CREATE TABLE schema_migrations ( version varchar(14) NOT NULL, PRIMARY KEY (version) ); ]] describe("Migrations", function() before_each(function() helper_common = require 'gin.helpers.common' helper_common.module_names_...
mit
rastin45/waqer12
plugins/steam.lua
645
2117
-- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI do local BASE_URL = 'http://store.steampowered.com/api/appdetails/' local DESC_LENTH = 200 local function unescape(str) str = string.gsub( str, '&lt;', '<' ) str = string.gsub( str, '&gt;', '>' ) str = string.gsub( str, '&quot;', '"' ) str...
gpl-2.0
tomm/pioneer
scripts/wiki_commons.lua
1
1063
-- Copyright © 2008-2016 Pioneer Developers. See AUTHORS.txt for details -- Licensed under the terms of CC-BY-SA 3.0. See licenses/CC-BY-SA-3.0.txt round = function(number, significand) last_number = number * 10^(significand+1) last_number = math.floor(last_number) length = string.len(last_number) last_number = st...
gpl-3.0
jdourlens/Driver-Arduino-IDE
LoveFrames/objects/internal/closebutton.lua
6
3492
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2013 Kenny Shields -- --]]------------------------------------------------ -- closebutton class local newobject = loveframes.NewObject("closebutton", "loveframes_object_closebutton", true) --[[----------...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface6.lua
38
6159
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- l...
gpl-2.0
FizzerWL/ExampleMods
SwapTerritoriesMod/Utilities.lua
3
1934
function NewIdentity() local data = Mod.PublicGameData; local ret = data.Identity or 1; data.Identity = ret + 1; Mod.PublicGameData = data; return ret; end function Dump(obj) if obj.proxyType ~= nil then DumpProxy(obj); elseif type(obj) == 'table' then DumpTable(obj); else print('Dump ' .. type(obj)); e...
mit
Choumiko/Factorio-Stdlib
spec/color/color_spec.lua
1
3992
describe('Color', function () local say = require("say") setup(function() _G.defines = {} require 'stdlib/color/color' end ) local function is_near(_, arguments) if #arguments~=3 then return false end local epsilon = arguments[1] local given = ...
isc
weera00/nodemcu-firmware
lua_modules/si7021/si7021.lua
83
2184
-- *************************************************************************** -- SI7021 module for ESP8266 with nodeMCU -- Si7021 compatible tested 2015-1-22 -- -- Written by VIP6 -- -- MIT license, http://opensource.org/licenses/MIT -- *************************************************************************** local...
mit
mahdikord/mahdi5
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
movb/Algorithm-Implementations
Josephus_Problem/Lua/Yonaba/josephus_test.lua
26
1233
-- Tests for josephus.lua local j = require 'josephus' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local sta...
mit
gsingh93/ipscanner
app/src/main/assets/nmap/share/nmap/nselib/ncp.lua
2
36979
--- A tiny implementation of the Netware Core Protocol (NCP). -- While NCP was originally a Netware only protocol it's now present on -- both Linux and Windows platforms running Novell eDirectory. -- -- The library implements a small amount of NCP functions based on various -- packet dumps generated by Novell software,...
mit
dojoteef/loltorch
processmatches.lua
1
11651
local cjson = require('cjson') local dataset = require('dataset') local file = require('pl.file') local path = require('pl.path') local tds = require('tds') local threads = require('threads') local torch = require('torch') local utils = require('utils') require('tds') local cmd = torch.CmdLine() cmd:text() cmd:text('G...
mit
dmccuskey/dmc-websockets
examples/dmc-websockets-pusher/main.lua
1
1916
--====================================================================-- -- DMC WebSockets Pusher -- -- Communicate with Pusher.com server -- -- Sample code is MIT licensed, the same license which covers Lua itself -- http://en.wikipedia.org/wiki/MIT_License -- Copyright (C) 2014-2015 David McCuskey. All Rights Reserve...
mit
dylanwh/moonshine
runtime/moonshine/object.lua
2
1742
--[[ vim: set ft=lua sw=4 ts=4 expandtab: - Moonshine - a Lua-based chat client - - Copyright (C) 2010 Dylan William Hardison - - This file is part of Moonshine. - - Moonshine is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the...
gpl-3.0
mogh77/merseed
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
hfjgjfg/spam1111
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
alireza1998/mega
plugins/help.lua
44
5047
do function pairsByKeys(t, f) local a = {} for n in pairs(t) do table.insert(a, n) end table.sort(a, f) local i = 0 -- iterator variable local iter = function () -- iterator function i = i + 1 if a[i] == nil then return nil else return a[i], t[a[i]] ...
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/protocols/ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
63
1662
--[[ LuCI - Lua Configuration Interface Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Copyright 2013 Steven Barth <steven@midlink.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
digitalloggers/nodemcu-firmware
lua_examples/u8glib/u8g_rotation.lua
43
2088
-- setup I2c and connect display function init_i2c_display() -- SDA and SCL can be assigned freely to available GPIOs local sda = 5 -- GPIO14 local scl = 6 -- GPIO12 local sla = 0x3c i2c.setup(0, sda, scl, i2c.SLOW) disp = u8g.ssd1306_128x64_i2c(sla) end -- setup SPI and connect display ...
mit
siggame/Joueur.lua
games/saloon/tile.lua
1
4649
-- Tile: A Tile in the game that makes up the 2D map grid. -- DO NOT MODIFY THIS FILE -- Never try to directly create an instance of this class, or modify its member variables. -- Instead, you should only be reading its variables and calling its functions. local class = require("joueur.utilities.class") local GameObj...
mit
sami2448/set
plugins/rae.lua
15
1313
do function getDulcinea( text ) -- Powered by https://github.com/javierhonduco/dulcinea local api = "http://dulcinea.herokuapp.com/api/?query=" local query_url = api..text local b, code = http.request(query_url) if code ~= 200 then return "Error: HTTP Connection" end dulcinea = json:decode(b) ...
gpl-2.0
HubertRonald/FoulJob
Library/easing.lua
1
4735
--[[ Author of this easing functions for Lua is Josh Tynjala https://github.com/joshtynjala/gtween.lua Licensed under the MIT license. Easing functions adapted from Robert Penner's AS3 tweening equations. ]] --------------------------- -- math functions --------------------------- local sin = math.sin loc...
mit
EvPowerTeam/EV_OP
feeds/luci/applications/luci-firewall/luasrc/model/cbi/firewall/forward-details.lua
65
3931
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- lo...
gpl-2.0
dylanwh/moonshine
runtime/moonshine/parseopt.lua
1
2084
local core = require "moonshine.parseopt.core" local types = require "moonshine.parseopt.types" local spec_parser = require "moonshine.parseopt.spec_parser" local NOARG, EATARG, STOP = core.NOARG, core.EATARG, core.STOP function prefix_match(str, prefix) return #prefix <= #str and str:sub(1, #prefix) ==...
gpl-3.0
Android-AOSP/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
sev-/scummvm
devtools/create_ultima/files/ultima6/scripts/u6/init.lua
18
13035
local lua_file = nil --load common functions lua_file = nuvie_load("common/common.lua"); lua_file(); SFX_BLOCKED = 0 SFX_HIT = 1 SFX_FOUNTAIN = 2 SFX_DEATH = 3 SFX_RUBBER_DUCK = 4 SFX_BROKEN_GLASS = 5 SFX_BELL = 6 SFX_FIRE = 7 SFX_CLOCK = 8 SFX_PROTECTION_FIELD = 9 SFX_WATER_WHEEL = 10 SFX_MISSLE = 11 SFX_EXPLOSION ...
gpl-3.0
alireasuzuki/LIZARD
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
ctozlm/Dato-Core
src/unity/python/graphlab/lua/pl/array2d.lua
26
13368
--- Operations on two-dimensional arrays. -- See @{02-arrays.md.Operations_on_two_dimensional_tables|The Guide} -- -- Dependencies: `pl.utils`, `pl.tablex`, `pl.types` -- @module pl.array2d local type,tonumber,assert,tostring,io,ipairs,string,table = _G.type,_G.tonumber,_G.assert,_G.tostring,_G.io,_G.ipairs,_G.str...
agpl-3.0
ryangmor/bsoeted
plugins/ingroup.lua
11
27638
do local name_log = user_print_name(msg.from) local function check_member(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local msg = cb_extra.msg for k,v in pairs(result.members) do local member_id = v.id if member_id ~= our_id then -- Group configuration ...
gpl-2.0
movb/Algorithm-Implementations
Rabin_Karp/Lua/Yonaba/rabin_karp_test.lua
26
1214
-- Tests for rabin_karp.lua local rabin_karp = require 'rabin_karp' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 en...
mit
magnum357i/Magnum-s-Aegisub-Scripts
automation/autoload/mag.create_lines.lua
1
9865
function lang_switch_keys(lang) local in_lang = {} local langs = { [1] = {lang_key = "tr", lang_name = "Türkçe", script_name = "Satır Oluştur", sub_menu = "Satır/Oluştur"}, [2] = {lang_key = "en", lang_name = "English", script_name = "Create Lines", sub_menu = "Lines/Create"} } local lang_list = {} ...
mit
projexsys/hua-client-demos
ios/cortex/theme_ios.lua
2
10288
----------------------------------------------------------------------------------------- -- -- theme_ios.lua -- ----------------------------------------------------------------------------------------- local modname = ... local themeTable = {} package.loaded[modname] = themeTable local assetDir = "widget_ios" local im...
mit
EvPowerTeam/EV_OP
feeds/luci/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
erfan1292/sezar3
bot/utils.lua
36
16426
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = require "serpent" feedparser = require "feedparser" json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.lua")() http.TIMEOUT = 10 funct...
gpl-2.0
DmitryUlyanov/texture_nets
train.lua
1
7798
require 'torch' require 'nn' require 'image' require 'optim' require 'cudnn' require 'src/utils' require 'src/descriptor_net' require 'src/preprocess_criterion' local DataLoader = require 'dataloader' use_display, display = pcall(require, 'display') if not use_display then print('torch.display not found. unable t...
apache-2.0
sundream/gamesrv
script/mail/mailmgr.lua
1
1664
mailmgr = mailmgr or {} function mailmgr.init() mailmgr.mailboxs = {} end function mailmgr.onlogin(player) local pid = player.pid mailmgr.getmailbox(pid) -- preload mailbox end function mailmgr.onlogoff(player) local pid = player.pid mailmgr.unloadmailbox(pid) end function mailmgr.loadmailbox(pid) require "s...
gpl-2.0
ctozlm/Dato-Core
src/unity/python/graphlab/lua/pl/utils.lua
14
14912
--- Generally useful routines. -- See @{01-introduction.md.Generally_useful_functions|the Guide}. -- @module pl.utils local format,gsub,byte = string.format,string.gsub,string.byte local compat = require 'pl.compat' local clock = os.clock local stdout = io.stdout local append = table.insert local unpack = rawget(_G,'u...
agpl-3.0
sami2448/set
plugins/wikipn.lua
14
4516
-- http://git.io/vUA4M local socket = require "socket" local JSON = require "cjson" local wikiusage = { "!wiki [text]: Read extract from default Wikipedia (EN)", "!wiki(lang) [text]: Read extract from 'lang' Wikipedia. Example: !wikies hola", "!wiki search [text]: Search articles on default Wikipedia (EN)", "!...
gpl-2.0
CodingKitsune/Riritools
riritools/lua/base64.lua
1
1436
-- Lua 5.1+ base64 X v1.0 forked from base64 v3.0 (c) 2009 by Alex Kloss <alexthkloss@web.de> -- modified by Coding Kitsune for Riritools -- licensed under the terms of the LGPL2 local table_utils = require("riritools.lua.table_utils") -- character table string local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijkl...
mit
pprindeville/packages
lang/luaexpat/files/compat-5.1r5/compat-5.1.lua
251
6391
-- -- Compat-5.1 -- Copyright Kepler Project 2004-2006 (http://www.keplerproject.org/compat) -- According to Lua 5.1 -- $Id: compat-5.1.lua,v 1.22 2006/02/20 21:12:47 carregal Exp $ -- _COMPAT51 = "Compat-5.1 R5" local LUA_DIRSEP = '/' local LUA_OFSEP = '_' local OLD_LUA_OFSEP = '' local POF = 'luaopen_' local LUA_PA...
gpl-2.0
Maxsteam/MMMNNN
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
APCVSRepo/sdl_core
tools/intergen/third_party/pugixml/scripts/premake4.lua
128
2376
-- Reset RNG seed to get consistent results across runs (i.e. XCode) math.randomseed(12345) local static = _ARGS[1] == 'static' local action = premake.action.current() if string.startswith(_ACTION, "vs") then if action then -- Disable solution generation function action.onsolution(sln) sln.vstudio_configs = p...
bsd-3-clause
dloeng/guetzli
premake5.lua
3
1475
workspace "guetzli" configurations { "Release", "Debug" } language "C++" flags { "C++11" } includedirs { ".", "third_party/butteraugli" } filter "action:vs*" platforms { "x86_64", "x86" } filter "platforms:x86" architecture "x86" filter "platforms:x86_64" architecture "x86_64" -- workarou...
apache-2.0
viticm/pf_win
applications/bin/public/data/script/functions/timer.lua
2
2072
--[[ - PAP Engine ( https://github.com/viticm/plainframework1 ) - $Id timer.lua - @link https://github.com/viticm/plainframework1 for the canonical source repository - @copyright Copyright (c) 2014- viticm( viticm@126.com/viticm.ti@gmail.com ) - @license - @user viticm<viticm@126.com/viticm.ti@gmail.com> - @date...
mit
codemon66/Urho3D
bin/Data/LuaScripts/47_Typography.lua
8
6616
-- Text rendering example. -- Displays text at various sizes, with checkboxes to change the rendering parameters. require "LuaScripts/Utilities/Sample" -- Tag used to find all Text elements local TEXT_TAG = "Typography_text_tag" -- Top-level container for this sample's UI local uielement = nil function S...
mit
sBaildon/sInterface
embeds/rActionBar/blizzard.lua
1
1837
-- rActionBar: blizzard -- zork, 2016 ----------------------------- -- Config ----------------------------- local cfg = {} ----------------------------- -- Variables ----------------------------- local A, L = ... local hiddenFrame = CreateFrame("Frame") hiddenFrame:Hide() local scripts = { "OnShow", "OnHide", ...
mit
erfan1292/sezar3
plugins/welcome.lua
27
5188
------------------------------------------ -- DBTeam DBTeam DBTeam DBTeam DBTeam --- -- Welcome by @xxdamage --- -- multilanguage and fix by@Jarriz --- ------------------------------------------ function chat_new_user(msg) local name = msg.action.user.first_name:gsub('_', ' ') local id = msg....
gpl-2.0
EvPowerTeam/EV_OP
feeds/luci/applications/luci-statistics/luasrc/model/cbi/luci_statistics/unixsock.lua
80
1455
--[[ Luci configuration model for statistics - collectd unixsock plugin configuration (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the Lice...
gpl-2.0
facebokiii/facebookplug
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
ominux/skia
resources/slides.lua
68
9898
gShowBounds = false gUseBlurInTransitions = false gPath = "/skia/trunk/resources/" function load_file(file) local prev_path = package.path package.path = package.path .. ";" .. gPath .. file .. ".lua" require(file) package.path = prev_path end load_file("slides_utils") gSlides = parse_file(io.open("...
apache-2.0
ashfinal/awesome-hammerspoon
Spoons/HSearch.spoon/hs_datamuse.lua
4
3260
local obj={} obj.__index = obj obj.name = "thesaurusDM" obj.version = "1.0" obj.author = "ashfinal <ashfinal@gmail.com>" -- Internal function used to find our location, so we know where to load files from local function script_path() local str = debug.getinfo(2, "S").source:sub(2) return str:match("(.*/)") en...
mit
dmccuskey/dmc-websockets
examples/dmc-websockets-pusher/dmc_corona/lib/dmc_lua/lua_class.lua
34
14185
--====================================================================-- -- dmc_lua/lua_class.lua -- -- Documentation: http://docs.davidmccuskey.com/ --====================================================================-- --[[ The MIT License (MIT) Copyright (c) 2015 David McCuskey Permission is hereby granted, fr...
mit
sami2448/set
plugins/vote.lua
83
2129
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
sigurdfdragon/wesnoth-fork
data/ai/micro_ais/micro_ai_self_data.lua
15
3878
-- This set of functions provides a consistent way of storing Micro AI variables -- in the AI's persistent data variable. These need to be stored inside -- a [micro_ai] tag, so that they are bundled together for a given Micro AI -- together with an ai_id= key. Their existence can then be checked when setting -- up anot...
gpl-2.0
dvr333/Zero-K
scripts/striderdetriment.lua
6
16843
include 'constants.lua' local AngleAverageShortest = Spring.Utilities.Vector.AngleAverageShortest local AngleSubtractShortest = Spring.Utilities.Vector.AngleSubtractShortest -------------------------------------------------------------------------------- --------------------------------------------------------------...
gpl-2.0
m241dan/darkstar
scripts/zones/Rabao/npcs/Porter_Moogle.lua
41
1509
----------------------------------- -- Area: Rabao -- NPC: Porter Moogle -- Type: Storage Moogle -- @zone 247 -- @pos TODO ----------------------------------- package.loaded["scripts/zones/Rabao/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Rabao/TextIDs"); require("scripts/gl...
gpl-3.0
santssoft/darkstar
scripts/zones/Lower_Jeuno/npcs/Hasim.lua
6
3566
----------------------------------- -- Area: Lower Jeuno -- NPC: Hasim -- Standard Merchant NPC ----------------------------------- local ID = require("scripts/zones/Lower_Jeuno/IDs") require("scripts/globals/shop") function onTrade(player,npc,trade) end function onTrigger(player,npc) local stock = { ...
gpl-3.0
atitus5/FastLID-DNN
posteriors.lua
1
3694
require "torch" require "nn" local lre03DatasetReader = require "lre03DatasetReader" -- Parse command-line options local opt = lapp[[ -n,--network (string) reload pretrained network -g,--gpu evaluate on GPU -t,--threads (default 4) number of ...
mit
m241dan/darkstar
scripts/zones/Meriphataud_Mountains/npcs/Mushosho.lua
13
1915
----------------------------------- -- Area: Meriphataud Mountains -- NPC: Mushosho -- Type: Outpost Vendor -- @pos -290 16 415 119 ----------------------------------- package.loaded["scripts/zones/Meriphataud_Mountains/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scr...
gpl-3.0
santssoft/darkstar
scripts/zones/La_Theine_Plateau/npcs/Galaihaurat.lua
9
2205
----------------------------------- -- Area: La Theine Plateau -- NPC: Galaihaurat -- Involved in Mission: The Rescue Drill -- !pos -482 -7 222 102 ----------------------------------- require("scripts/globals/missions"); local ID = require("scripts/zones/La_Theine_Plateau/IDs"); ----------------------------------- fu...
gpl-3.0
videolan/vlc
share/lua/playlist/dailymotion.lua
1
4285
--[[ Translate Dailymotion video webpages URLs to corresponding video stream URLs. Copyright © 2007-2020 the VideoLAN team 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 ...
gpl-2.0
PGower/google-diff-match-patch
lua/diff_match_patch.lua
265
73869
--[[ * 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 in compliance ...
apache-2.0
TeamDSN/TaxiCall
xml.lua
2
3667
module(..., package.seeall) --------------------------------------------------------------------------------- --------------------------------------------------------------------------------- -- -- xml.lua - XML parser for use with the Corona SDK. -- -- version: 1.1 -- -- CHANGELOG: -- -- 1.1 - Fixed base directory is...
gpl-2.0
dvr333/Zero-K
scripts/dynrecon.lua
4
18554
include "constants.lua" include "JumpRetreat.lua" local dyncomm = include('dynamicCommander.lua') _G.dyncomm = dyncomm -------------------------------------------------------------------------------- -- pieces -------------------------------------------------------------------------------- local base = piece 'base' l...
gpl-2.0
m241dan/darkstar
scripts/zones/RuAun_Gardens/npcs/HomePoint#3.lua
27
1266
----------------------------------- -- Area: RuAun_Gardens -- NPC: HomePoint#3 -- @pos -312 -42 -422 130 ----------------------------------- package.loaded["scripts/zones/RuAun_Gardens/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/RuAun_Gardens/TextIDs"); require("scripts/globals/homep...
gpl-3.0
m241dan/darkstar
scripts/zones/Bastok_Mines/npcs/Explorer_Moogle.lua
13
1711
----------------------------------- -- Area: Bastok Mines -- NPC: Explorer Moogle -- ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/teleports"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,t...
gpl-3.0
rekotc/game-engine-experimental-3
Source/GCC4/3rdParty/luaplus51-all/Src/Modules/wxLua/bindings/wxluasocket/wxluasocket_rules.lua
3
7859
-- ---------------------------------------------------------------------------- -- Rules to build wxWidgets' wxStyledTextCtrl binding for wxLua -- load using : $lua -e"rulesFilename=\"rules.lua\"" genwxbind.lua -- ---------------------------------------------------------------------------- -- ------------------------...
lgpl-3.0
hylthink/Sample_Lua
frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/ClippingRectangleNode.lua
10
1311
-------------------------------- -- @module ClippingRectangleNode -- @extend Node -- @parent_module cc -------------------------------- -- -- @function [parent=#ClippingRectangleNode] isClippingEnabled -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @fun...
mit
santssoft/darkstar
scripts/zones/Sacrificial_Chamber/bcnms/temple_of_uggalepih.lua
9
1885
----------------------------------- -- Temple of Uggalepih -- Balga's Dais Mission Battlefield ----------------------------------- local ID = require("scripts/zones/Sacrificial_Chamber/IDs") require("scripts/globals/battlefield") require("scripts/globals/keyitems") require("scripts/globals/missions") require("scripts/g...
gpl-3.0
palmettos/test
applications/luci-ahcp/luasrc/model/cbi/ahcp.lua
36
3895
--[[ LuCI - Lua Configuration Interface 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://www.apache.org/licenses/LICENSE-2.0 $Id: init.lua...
apache-2.0
m241dan/darkstar
scripts/zones/Open_sea_route_to_Al_Zahbi/Zone.lua
13
1615
----------------------------------- -- -- Zone: Open_sea_route_to_Al_Zahbi (46) -- ----------------------------------- package.loaded["scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Open_sea_route_to_Al_Zahbi/TextIDs"); --------------------------...
gpl-3.0