repo_name
stringlengths
6
69
path
stringlengths
6
178
copies
stringclasses
278 values
size
stringlengths
4
7
content
stringlengths
671
917k
license
stringclasses
15 values
FFXIOrgins/FFXIOrgins
scripts/zones/Metalworks/npcs/Pius.lua
23
1832
----------------------------------- -- Area: Metalworks -- NPC: Pius -- Involved In Mission: Journey Abroad -- @pos 99 -21 -12 237 ----------------------------------- package.loaded["scripts/zones/Metalworks/TextIDs"] = nil; ----------------------------------- require("scripts/globals/missions"); require("scripts/zon...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/abilities/dark_shot.lua
4
2320
----------------------------------- -- Ability: Dark Shot ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- -- OnUseAbility ----------------------------------- function OnAbilit...
gpl-3.0
Laendasill/waifu2x
cleanup_model.lua
34
1775
require './lib/portable' require './lib/LeakyReLU' torch.setdefaulttensortype("torch.FloatTensor") -- ref: https://github.com/torch/nn/issues/112#issuecomment-64427049 local function zeroDataSize(data) if type(data) == 'table' then for i = 1, #data do data[i] = zeroDataSize(data[i]) end elseif typ...
mit
mahdikord/mahdibaryaji
bot/utils.lua
239
13499
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
KnightTeam/Knight
bot/utils.lua
26
31633
URL = require "socket.url" http = require "socket.http" https = require "ssl.https" ltn12 = require "ltn12" serpent = (loadfile "./libs/serpent.lua")() feedparser = (loadfile "./libs/feedparser.lua")() json = (loadfile "./libs/JSON.lua")() mimetype = (loadfile "./libs/mimetype.lua")() redis = (loadfile "./libs/redis.l...
agpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Konschtat_Highlands/TextIDs.lua
3
1253
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6378; -- You cannot obtain the item <item>. Come back after sorting your inventory. ITEM_OBTAINED = 6381; -- Obtained: <item>. GIL_OBTAINED = 6382; -- Obtained <number> gil. KEYITEM_OBTAINED = 6384; -- Obtained...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Aht_Urhgan_Whitegate/npcs/Teteroon.lua
34
1033
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Teteroon -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs"); ---------...
gpl-3.0
krmarien/Proxmark
client/lualibs/html_dumplib.lua
8
2995
bin = require('bin') ------------------------------- -- Some utilities ------------------------------- --- -- A debug printout-function local function dbg(args) if DEBUG then print("###", args) end end --- -- This is only meant to be used when errors occur local function oops(err) print("ERROR: ",err) retu...
gpl-2.0
cwojtak/LoveUtils
utils/timer_helper.lua
1
1540
--timer_helper.lua --v1.12.0 --Author: Connor Wojtak --Purpose: A utility to allow for pausing of the application, while still rendering the application. --Imports local UTILS = require("utils/utils") --Classes Timer = {} --Global Variables GLOBAL_TIMER_LIST = {} --Creates a new timer. Returns: Timer function Time...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/red_terrapin.lua
17
1321
----------------------------------------- -- ID: 4402 -- Item: red_terrapin -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 3 -- Mind -5 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
m2mselect/owrt
feeds/luci/protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua
2
5027
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local device, apn, service, pincode, username, password, dialnumber local ipv6, maxwait, defaultroute, metric, peerdns, dns, keepalive_failure, keepalive_interval, demand d...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Windurst_Waters_[S]/npcs/Tohs_Jhannih.lua
38
1050
----------------------------------- -- Area: Windurst Waters (S) -- NPC: Tohs Jhannih -- Type: Standard NPC -- @zone: 94 -- @pos -46.492 -4.5 70.828 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Windurst_Waters_[S]/TextIDs"] = nil;...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Cloister_of_Tides/npcs/Water_Protocrystal.lua
4
1504
----------------------------------- -- Area: Cloister of Tides -- NPC: Water Protocrystal -- Involved in Quests: Trial by Water, Trial Size Trial by Water -- @pos 560 36 560 211 ----------------------------------- package.loaded["scripts/zones/Cloister_of_Tides/TextIDs"] = nil; ---------------------------------...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/spells/knights_minne_v.lua
4
1519
----------------------------------------- -- Spell: Knight's Minne V -- Grants Defense bonus to all allies. ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnSpellCast ----------------------------------------- function OnMagicCastin...
gpl-3.0
peval/Atlas
lib/active-queries.lua
40
3780
--[[ $%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
navtej/papercrop
script/(portrait) vertical reflow.lua
15
1275
width=device_width height=device_height right_max_margin=0.1 figure_min_height=100 max_vspace_reflow=6 -- pixels -- outdir: output directory -- pageNo: current page -- numRects: # of crop rectangles. function processPage(outdir, pageNo, numRects) -- create merged image imageM local imageM=CImage() pro...
gpl-2.0
hacker44-h44/1104
vir/GroupManager.lua
39
11325
-- 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 not is_admin(msg) then return "This service is private for SUDO (@shayansoft)" end local group_creator = msg.from.print_name ...
gpl-2.0
ArchiveTeam/instacast-grab
table_show.lua
58
3226
--[[ Author: Julio Manuel Fernandez-Diaz Date: January 12, 2007 (For Lua 5.1) Modified slightly by RiciLake to avoid the unnecessary table traversal in tablecount() Formats tables with cycles recursively to any depth. The output is returned as a string. References to other tables are shown as values....
unlicense
moteus/ZipWriter
lua/ZipWriter/win/cp.lua
3
10306
local function prequire(m) local ok, err = pcall(require, m) if not ok then return nil, err end if err == true then err = _G[m] or err end return err end local DEFAULT_CP = 1251 local LOCAL_CP if not LOCAL_CP then -- ffi local ffi = prequire "ffi" if ffi then ffi.cdef"uint32_t __stdcall...
mit
LoneWolfHT/lavastuff
items/nodecore.lua
1
3277
return function(cooldown, S) local function finish(self) local pos = self.object:get_pos() if pos then minetest.after(0.1, function() if minetest.get_node(pos).name == "air" then minetest.set_node(pos, {name = "nc_optics:glass_hot_source"}) end end) end self.object:remove() end minetest.register_en...
mit
sjznxd/lc-20130127
applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua
69
2769
--[[ Luci statistics - interface plugin diagram definition (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 http://www....
apache-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/vgui/bStorage_block_item.lua
1
3132
local PANEL = {}; function PANEL:Init ( ) self:SetVisible(true) self.ModelPanel = vgui.Create("DModelPanel", self); function self.ModelPanel:LayoutEntity ( ) end function self.ModelPanel.OnMousePressed ( _, mc ) self:OnMousePressed(mc) end function self.ModelPanel.OnMouseReleased ( _, mc ) self:OnMouseReleas...
mit
FFXIOrgins/FFXIOrgins
scripts/globals/items/reishi_mushroom.lua
35
1195
----------------------------------------- -- ID: 4449 -- Item: reishi_mushroom -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -6 -- Mind 4 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItem...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/shop.lua
16
2301
----------------------------------- -- Author: Dia -- -- Functions for Shop system ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/conquest"); ----------------------------------- -- Nations ----------------------------------- SANDORIA = 0; BASTOK = 1;...
gpl-3.0
Xinerki/Story
missions/marker_display.lua
1
6686
missions = {} function missions.renderMissionMarkers() for i,v in ipairs(getElementsByType('marker')) do if getElementData(v,"story.isMissionMarker") then local x,y,z=getElementPosition(v) local isUsed=getElementData(v,"story.isMissionMarkerUsed") local usedBy=getElementData(v,"story.missionMarkerUsedBy") if getDist...
mit
fartoverflow/naev
dat/factions/spawn/soromid.lua
6
3017
include("dat/factions/spawn/common.lua") include("dat/factions/spawn/mercenary_helper.lua") -- @brief Spawns a small patrol fleet. function spawn_patrol () local pilots = {} local r = rnd.rnd() if r < pbm then pilots = spawnLtMerc("Soromid") elseif r < 0.5 then scom.addPilot( pilots, "Soromid...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Tavnazian_Safehold/npcs/Chemioue.lua
38
1044
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Chemioue -- Type: NPC Quest -- @zone: 26 -- @pos 82.041 -34.964 67.636 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; -----...
gpl-3.0
OpenPrograms/samis-Programs
nidus/core.lua
1
4291
local class = require('oop-system').class local NiDuS = class('NiDuS') local serializer = require("serialization") function NiDuS:init(file) self.cfgfile = file self.version = 1.0 self.protocol_string = "DNS 1 A" self.hosts = {} self.currentfeatures = {} self:reloadConfig() self:readHosts() self:loadData...
mit
shahabsaf1/DaLTon-bot-test2
plugins/plugins.lua
325
6164
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
FFXIOrgins/FFXIOrgins
scripts/globals/spells/bluemagic/magic_fruit.lua
4
1405
----------------------------------------- -- Spell: Magic Fruit -- Restores target's HP. -- Shamelessly stolen from http://members.shaw.ca/pizza_steve/cure/Cure_Calculator.html ----------------------------------------- require("scripts/globals/settings"); require("scripts/globals/status"); require("scripts/glo...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Aht_Urhgan_Whitegate/npcs/Ugrihd.lua
5
10497
----------------------------------- -- Area: Aht Urhgan Whitegate -- NPC: Ugrihd -- Coin Exchange Vendor -- @pos -63.079 -6 -28.571 50 ----------------------------------- package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status");...
gpl-3.0
luzexi/slua-3rd-lib
build/luajit-2.0.4/src/jit/v.lua
88
5614
---------------------------------------------------------------------------- -- Verbose mode of the LuaJIT compiler. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
gitfancode/skynet
examples/agent.lua
65
2082
local skynet = require "skynet" local netpack = require "netpack" local socket = require "socket" local sproto = require "sproto" local sprotoloader = require "sprotoloader" local WATCHDOG local host local send_request local CMD = {} local REQUEST = {} local client_fd function REQUEST:get() print("get", self.what) ...
mit
FFXIOrgins/FFXIOrgins
scripts/zones/Southern_San_dOria/npcs/Atelloune.lua
17
2580
----------------------------------- -- Area: Southern San d'Oria -- NPC: Atelloune -- Starts and Finishes Quest: Atelloune's Lament -- @zone 230 -- @pos 122 0 82 ------------------------------------- package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil; ----------------------------------- require...
gpl-3.0
daofeng2015/luci
protocols/luci-proto-relay/luasrc/model/cbi/admin_network/proto_relay.lua
70
1945
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. local map, section, net = ... local ipaddr, network local forward_bcast, forward_dhcp, gateway, expiry, retry, table ipaddr = section:taboption("general", Value, "ipaddr", translate("Local IPv4 address"), t...
apache-2.0
tullamods/OmniCC
OmniCC/main.lua
1
3249
-- code to drive the addon local ADDON, Addon = ... local CONFIG_ADDON = ADDON .. '_Config' local L = LibStub('AceLocale-3.0'):GetLocale(ADDON) function Addon:OnLoad() -- create and setup options frame and event loader local frame = self:CreateHiddenFrame('Frame') -- setup an event handler frame:SetSc...
mit
cyph84/mpv
TOOLS/lua/zones.lua
11
2749
-- zones.lua: mpv script for handling commands depending on where the mouse pointer is at, -- mostly for mouse wheel handling, by configuring it via input.conf, e.g.: -- -- Ported from avih's ( https://github.com/avih ) zones.js -- -- Vertical positions can be top, middle, bottom or "*" to represent the ...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Dynamis-Buburimu/mobs/Apocalyptic_Beast.lua
17
1492
----------------------------------- -- Area: Dynamis Buburimu -- NPC: Apocalyptic_Beast ----------------------------------- package.loaded["scripts/zones/Dynamis-Buburimu/TextIDs"] = nil; ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Buburimu/TextIDs"...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/West_Sarutabaruta/npcs/Slow_Axe_IM.lua
8
2954
----------------------------------- -- Area: West Sarutabaruta -- NPC: Slow Axe, I.M. -- Type: Border Conquest Guards -- @pos 399.450 -25.858 727.545 115 ----------------------------------- package.loaded["scripts/zones/West_Sarutabaruta/TextIDs"] = nil; ----------------------------------- require("scripts/globals/co...
gpl-3.0
JulianVolodia/awesome
lib/awful/layout/suit/spiral.lua
14
2147
--------------------------------------------------------------------------- --- Dwindle and spiral layouts -- -- @author Uli Schlachter &lt;psychon@znc.in&gt; -- @copyright 2009 Uli Schlachter -- @copyright 2008 Julien Danjou -- @release @AWESOME_VERSION@ -- -- @module awful.layout.suit.spiral -------------------------...
gpl-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Upper_Jeuno/npcs/Migliorozz.lua
38
1033
----------------------------------- -- Area: Upper Jeuno -- NPC: Migliorozz -- Type: Standard NPC -- @zone: 244 -- @pos -37.760 -2.499 12.924 -- -- Auto-Script: Requires Verification (Verfied by Brawndo) ----------------------------------- package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil; ----------------...
gpl-3.0
subzrk/BadRotations
Rotations/Shaman/Restoration/RestorationSvs.lua
1
39719
local rotationName = "Svs" --------------- --- Toggles --- --------------- local function createToggles() -- Rotation Button RotationModes = { [1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1, i...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/warm_egg.lua
35
1186
----------------------------------------- -- ID: 4602 -- Item: warm_egg -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 18 -- Magic 18 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/homedecor_modpack/homedecor/kitchen_appliances.lua
10
7100
-- This file supplies refrigerators local S = homedecor.gettext -- steel-textured fridge homedecor.register("refrigerator_steel", { mesh = "homedecor_refrigerator.obj", tiles = { "homedecor_refrigerator_steel.png" }, inventory_image = "homedecor_refrigerator_steel_inv.png", description = S("Refrigerator (stainles...
unlicense
TRIEXTEAM/TaylortTG
plugins/plugins.lua
1
6408
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
aosee1h1/AOSEE_2H2
libs/fakeredis.lua
650
40405
local unpack = table.unpack or unpack --- Bit operations local ok,bit if _VERSION == "Lua 5.3" then bit = (load [[ return { band = function(x, y) return x & y end, bor = function(x, y) return x | y end, bxor = function(x, y) return x ~ y end, bnot = function(x) return ~x end, rshift = function(x...
gpl-2.0
subzrk/BadRotations
System/Libs/LibRangeCheck-2.0/LibStub-1.0/tests/test.lua
86
2013
debugstack = debug.traceback strmatch = string.match loadfile("../LibStub.lua")() local lib, oldMinor = LibStub:NewLibrary("Pants", 1) -- make a new thingy assert(lib) -- should return the library table assert(not oldMinor) -- should not return the old minor, since it didn't exist -- the following is to create data ...
gpl-3.0
sadegh1996/sword_antispam
plugins/save.lua
13
2829
local function save_value(msg, name, value) if (not name or not value) then return "Usage: !set var_name value" end local hash = nil if msg.to.type == 'chat' then hash = 'chat:'..msg.to.id..':variables' end if hash then redis:hset(hash, name, value) return "ذخیره شد "..name end end local ...
gpl-2.0
msburgess3200/PERP
gamemodes/perp/gamemode/mixtures/pot.lua
1
1515
POT_GROW_TIME = 60 * 15; MAX_POT = 5; local MIXTURE = {} MIXTURE.ID = 2; MIXTURE.Results = "drug_pot"; MIXTURE.Ingredients = {"drug_pot_seeds", "item_pot"}; MIXTURE.Requires = { {GENE_INTELLIGENCE, 1}, {GENE_DEXTERITY, 1}, }; MIXTURE.Free = true; MIXTURE.RequiresHeatSource = false; MIXTUR...
mit
Arashbrsh/copyuz
plugins/wiki.lua
735
4364
-- 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
sjznxd/lc-20130127
applications/luci-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
apache-2.0
daofeng2015/luci
applications/luci-app-diag-devinfo/luasrc/model/cbi/luci_diag/netdiscover_devinfo_mini.lua
141
1054
--[[ netdiscover_devinfo - SIP Device Information (c) 2009 Daniel Dickinson 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$ ]]-- require("luci.i1...
apache-2.0
TW1STaL1CKY/pac3
lua/pac3/core/client/parts.lua
1
3727
local pac = pac local class = pac.class local part_count = 0 -- unique id thing local pairs = pairs local function merge_storable(tbl, base) if not base then return end if base.StorableVars then for k,v in pairs(base.StorableVars) do tbl.StorableVars[k] = v end merge_storable(tbl, base.BaseClass) end end ...
gpl-3.0
suchipi/pac3
lua/pac3/editor/client/translations/japanese.lua
1
3140
return { ["sprite path"] = "sprite path", ["right upperarm"] = "右 上腕", ["neck"] = "首", ["size y"] = "Y軸のサイズ", ["draw shadow"] = "影を表示", ["copy"] = "コピー", ["start size"] = "開始 サイズ", ["clip"] = "クリップ", ["size"] = "サイズ", ["reset view"] = "カメラをリセット", ["right calf"] = "右 ふくらはぎ", ["effect"] = "エフェクト", ["max"] = "最大", ["angle...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/_misc/sapling_crafts.lua
7
2317
-- Crafts for saplings -- From Skyblock by Cornernote -- -- sapling from leaves and sticks minetest.register_craft({ output = 'default:sapling', recipe = { {'default:leaves', 'default:leaves', 'default:leaves'}, {'default:leaves', 'default:leaves', 'default:leaves'}, {'', 'default:stick', ''}, } }) -- jungle...
unlicense
FFXIOrgins/FFXIOrgins
scripts/globals/items/black_curry_bun_+1.lua
35
1350
----------------------------------------- -- ID: 5764 -- Item: black_curry_bun+1 -- Food Effect: 60 minutes, All Races ----------------------------------------- -- Intelligence +1 -- Vitality +4 -- Dexterity +2 -- Defense +~16% require("scripts/globals/status"); ----------------------------------------- ...
gpl-3.0
Gael-de-Sailly/minetest-minetestforfun-server
mods/chesttools/init.lua
8
17095
-- 05.10.14 Fixed bug in protection/access chesttools = {} chesttools.chest_add = {}; chesttools.chest_add.tiles = { "chesttools_blue_chest_top.png", "chesttools_blue_chest_top.png", "chesttools_blue_chest_side.png", "chesttools_blue_chest_side.png", "chesttools_blue_chest_side.png", "chesttools_blue_chest_lock....
unlicense
zaeem998/vtbot
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-3.0
geektophe/blingbling
clock.lua
6
4234
--@author cedlemo local os = os local string = string local awful = require("awful") local textbox = require("wibox.widget.textbox") local text_box = require("blingbling.text_box") local days_of_week_in_kanji={ "日曜日", "月曜日","火曜日","水曜日","木曜日","金曜日","土曜日" } local days_of_week_in_kana={ "にちようび","げつようび","かようび","すいようび","もく...
gpl-2.0
punisherbot/test
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
peval/Atlas
lib/admin-sql.lua
40
8858
--[[ $%BEGINLICENSE%$ Copyright (c) 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 distribut...
gpl-2.0
hacker44-h44/1104
plugins/groupmanager.lua
136
11323
-- 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 not is_admin(msg) then return "You're not admin!" end local group_creator = msg.from.print_name create_group_chat (group_cr...
gpl-2.0
nehz/busted
spec/execution_order_sync_spec.lua
12
1154
local egg = '' describe('before_each after_each egg test', function() setup(function() egg = egg..'S' end) teardown(function() egg = egg..'T' end) before_each(function() egg = egg..'b' end) after_each(function() egg = egg..'a' end) describe('asd', function() before_each(functi...
mit
sjznxd/lc-20130127
applications/luci-pbx/luasrc/model/cbi/pbx-users.lua
146
5623
--[[ Copyright 2011 Iordan Iordanov <iiordanov (AT) gmail.com> This file is part of luci-pbx. luci-pbx 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 ...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/globals/items/bowl_of_adoulin_soup.lua
36
1504
----------------------------------------- -- ID: 5998 -- Item: Bowl of Adoulin Soup -- Food Effect: 180 Min, All Races ----------------------------------------- -- HP % 3 Cap 40 -- Vitality 3 -- Defense % 15 Cap 70 -- HP Healing 6 ----------------------------------------- require("scripts/globals/status"); ----------...
gpl-3.0
sjznxd/luci-0.11-aa
modules/rpc/luasrc/jsonrpc.lua
12
2238
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008 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 h...
apache-2.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Mines/npcs/Home_Point.lua
8
1190
----------------------------------- -- Area: Bastok Mines -- NPC: Home Point ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; require("scripts/zones/Bastok_Mines/TextIDs"); ----------------------------------- -- onTrade Acti...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Dynamis-Xarcabard/mobs/King_Zagan.lua
19
1251
----------------------------------- -- Area: Dynamis Xarcabard -- NPC: King Zagan ----------------------------------- require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Xarcabard/TextIDs"); ----------------------------------- -- onMobEngaged ----------------------------------- function o...
gpl-3.0
FFXIOrgins/FFXIOrgins
scripts/zones/Bastok_Markets/npcs/HomePoint#3.lua
3
1712
----------------------------------- -- Area: Bastok Markets -- NPC: HomePoint#3 -- @pos -189 -8 26 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Bastok_Marke...
gpl-3.0
sjznxd/lc-20130127
libs/px5g/lua/px5g/util.lua
170
1148
--[[ * px5g - Embedded x509 key and certificate generator based on PolarSSL * * Copyright (C) 2009 Steven Barth <steven@midlink.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License, version 2.1 as published by the Free ...
apache-2.0
daofeng2015/luci
modules/luci-base/luasrc/http/protocol.lua
16
16196
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org> -- Licensed to the public under the Apache License 2.0. -- This class contains several functions useful for http message- and content -- decoding and to retrive form data from raw http messages. module("luci.http.protocol", package.seeall) local l...
apache-2.0
sjznxd/luci-0.11-aa
applications/luci-tinyproxy/luasrc/model/cbi/tinyproxy.lua
80
7364
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2008-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 htt...
apache-2.0
Igalia/snabb
src/lib/lpm/lpm4_dxr.lua
9
5195
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lpm4_trie = require("lib.lpm.lpm4_trie").LPM4_trie local lpm4 = require("lib.lpm.lpm4") local ip4 = require("lib.lpm.ip4") LPM4_dxr = setmetatable({ alloc_storable = { "dxr_smints", "dxr_keys", "dxr_bottoms", "dxr_tops" } }, { __index = lpm4_...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Xarcabard/npcs/Tememe_WW.lua
13
3314
----------------------------------- -- Area: Xarcabard -- NPC: Tememe, W.W. -- Type: Border Conquest Guards -- @pos -133.678 -22.517 112.224 112 ----------------------------------- package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil; ----------------------------------- require("scripts/globals/conquest"); require...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Cape_Teriggan/mobs/Tegmine.lua
7
1875
---------------------------------- -- Area: Cape Teriggan -- NM: Tegmine ----------------------------------- require("scripts/globals/status"); require("scripts/globals/magic"); ----------------------------------- ----------------------------------- -- onMobInitialize ----------------------------------- function o...
gpl-3.0
tinymins/MY
MY_Toolbox/src/MY_InfoTip.lua
1
18745
-------------------------------------------------------- -- This file is part of the JX3 Mingyi Plugin. -- @link : https://jx3.derzh.com/ -- @desc : ÐÅÏ¢ÌõÏÔʾ -- @author : ÜøÒÁ @Ë«ÃÎÕò @×··çõæÓ° -- @modifier : Emil Zhai (root@derzh.com) -- @copyright: Copyright (c) 2013 EMZ Kingsoft Co., Ltd. ---------------...
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/globals/items/mercanbaligi.lua
18
1313
----------------------------------------- -- ID: 5454 -- Item: Mercanbaligi -- Food Effect: 5Min, Mithra only ----------------------------------------- -- Dexterity 4 -- Mind -6 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck -----...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Yuhtunga_Jungle/npcs/Robino-Mobino.lua
13
1885
----------------------------------- -- Area: Yuhtunga Jungle -- NPC: Robino-Mobino -- @pos -244 0 -401 123 ----------------------------------- package.loaded["scripts/zones/Yuhtunga_Jungle/TextIDs"] = nil; ----------------------------------- require("scripts/globals/shop"); require("scripts/globals/conquest"); requir...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Kazham/npcs/Roropp.lua
13
8473
----------------------------------- -- Area: Kazham -- NPC: Roropp -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); require("scripts/globals/pathfind"); local path = { 16.031977, -8.000000, -106.132980, 16.257568, -...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Windurst_Waters/npcs/Fuepepe.lua
12
3846
----------------------------------- -- Area: Windurst Waters -- NPC: Fuepepe -- Starts and Finishes Quest: Teacher's Pet -- Involved in Quest: Making the grade, Class Reunion -- @zone = 238 -- @pos = 161 -2 161 ----------------------------------- package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil; -------...
gpl-3.0
aStonedPenguin/fprp
entities/entities/microwave/init.lua
1
4104
AddCSLuaFile("cl_init.lua"); AddCSLuaFile("shared.lua"); include("shared.lua"); function ENT:Initialize() self:SetModel("models/props/cs_office/microwave.mdl"); self:PhysicsInit(SOLID_VPHYSICS); self:SetMoveType(MOVETYPE_VPHYSICS); self:SetSolid(SOLID_VPHYSICS); self:SetUseType(SIMPLE_USE); local phys = self:Ge...
mit
Kosmos82/kosmosdarkstar
scripts/globals/items/slice_of_hare_meat.lua
18
1334
----------------------------------------- -- ID: 4358 -- Hare Meat -- 5 Minutes, food effect, Galka Only ----------------------------------------- -- Strength +1 -- Intelligence -3 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Bastok_Markets/npcs/Arawn.lua
25
2553
----------------------------------- -- Area: Bastok Markets -- NPC: Arawn -- Starts & Finishes Quest: Stamp Hunt -- @pos -121.492 -4.000 -123.923 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings")...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/bowl_of_puls.lua
18
1290
----------------------------------------- -- ID: 4492 -- Item: bowl_of_puls -- Food Effect: 3Hrs, All Races ----------------------------------------- -- Vitality 2 -- Dexterity -1 -- HP Recovered While Healing 3 ----------------------------------------- require("scripts/globals/status"); -----------------------------...
gpl-3.0
wingo/snabbswitch
lib/ljsyscall/include/luaunit/luaunit.lua
24
19044
--[[ luaunit.lua Description: A unit testing framework Homepage: http://phil.freehackers.org/luaunit/ Initial author: Ryu, Gwang (http://www.gpgstudy.com/gpgiki/LuaUnit) Lot of improvements by Philippe Fremy <phil@freehackers.org> More improvements by Ryan P. <rjpcomputing@gmail.com> Version: 2.0 License: X11 Licen...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Altar_Room/npcs/Magicite.lua
13
1666
----------------------------------- -- Area: Altar Room -- NPC: Magicite -- Involved in Mission: Magicite -- @zone 152 -- @pos -344 25 43 ----------------------------------- package.loaded["scripts/zones/Altar_Room/TextIDs"] = nil; ----------------------------------- require("scripts/globals/keyitems"); require("scri...
gpl-3.0
Kazuki-Nakamae/Lua_DLfromScratch
14.二層ニューラルネット/common/init.lua
1
4188
--Copyright (C) 2017 Kazuki Nakamae --Released under MIT License --license available in LICENSE file require './function.lua' require './gradient.lua' require './exTorch.lua' local common = {} local help = { softmax = [[softmax(x) -- Normalize input Tencor]], sigmoid = [[sigmoid(x) -- the sigmoid of input Tencor]],...
mit
satanevil/hellbot
plugins/inrealm.lua
850
25085
-- 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_admin(msg) then local group_creator = msg.from.print_name create_g...
gpl-2.0
RobberPhex/thrift
lib/lua/Thrift.lua
4
6744
-- -- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you ma...
apache-2.0
TannerRogalsky/haex
enemies/free_chase.lua
1
2028
local FreeChase = class('FreeChase', Enemy):include(Stateful) local MAX_ROT_PER_SECOND = math.pi / 3 local SPEED = 35 local function setCollider(collider, x, y, w, h) collider:moveTo(x, y) end local function getViewport(quad, texture) local w, h = texture:getDimensions() local qx, qy, qw, qh = quad:getViewport(...
mit
april-org/april-ann
packages/bayesian/lua_src/bayesian.lua
3
1977
get_table_from_dotted_string("bayesian", true) -- modifies model weights to be the MAP model for a given eval function function bayesian.get_MAP_weights(eval, samples) assert(samples, "Needs a table with samples as 2nd argument") assert(#samples > 0, "samples table is empty") local best,argbest = table.pack(eval...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/Glacier_Splitter.lua
33
1074
--------------------------------------------- -- Glacier Splitter -- -- Description: Cleaves into targets in a fan-shaped area. Additional effect: Paralyze -- Type: Physical -- Utsusemi/Blink absorb: 1-3 shadows -- Range: Unknown cone -- Notes: Only used the Aern wielding a sword (RDM, DRK, and PLD). ------------...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Apollyon/npcs/Armoury_Crate.lua
14
4349
----------------------------------- -- Area: Apollyon -- NPC: Armoury Crate ----------------------------------- package.loaded["scripts/zones/Apollyon/TextIDs"] = nil; ------------------------------------- require("scripts/globals/titles"); require("scripts/globals/quests"); require("scripts/zones/Apollyon/TextIDs");...
gpl-3.0
april-org/april-ann
packages/basics/ee5_base64/package.lua
2
1309
package{ name = "ee5_base64", version = "1.0", depends = { "aprilio" }, keywords = { "base64" }, description = "base64 encoder/decoder", -- targets como en ant target{ name = "init", mkdir{ dir = "build" }, mkdir{ dir = "include" }, }, target{ name = "clean", delete{ dir = "...
gpl-3.0
gulafaran/awesome
src/lib/vicious/widgets/uptime.lua
15
1191
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Lucas de Vries <lucas@glacicle.com> --------------------------------------------------- -- {{{ Grab environment local setmetatable = setmetatable local ...
gpl-2.0
AmirPGA/AmirPGA
plugins/media.lua
376
1679
do local function run(msg, matches) local receiver = get_receiver(msg) local url = matches[1] local ext = matches[2] local file = download_to_file(url) local cb_extra = {file_path=file} local mime_type = mimetype.get_content_type_no_sub(ext) if ext == 'gif' then print('send_file') send_docum...
gpl-2.0
justincormack/snabbswitch
src/lib/protocol/ipv4.lua
7
5967
module(..., package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local header = require("lib.protocol.header") local ipsum = require("lib.checksum").ipsum local htons, ntohs, htonl, ntohl = lib.htons, lib.ntohs, lib.htonl, lib.ntohl -- TODO: generalize local AF_INET = 2 local I...
apache-2.0
mrTag/GreatGreenArkleseizure
gga.lua
1
3886
solution "gga" configurations {"Release", "Debug" } location (_OPTIONS["to"]) ------------------------------------- -- glfw static lib ------------------------------------- project "glfw_proj" language "C" kind "StaticLib" defines { "_CRT_SECURE_NO_WARNINGS" } includedirs { "...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Beaucedine_Glacier/npcs/Rattling_Rain_IM.lua
13
3344
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Rattling Rain, I.M. -- Type: Border Conquest Guards -- @pos -227.956 -81.475 260.442 111 ----------------------------------- package.loaded["scripts/zones/Beaucedine_Glacier/TextIDs"] = nil; ----------------------------------- require("scripts/gl...
gpl-3.0
streetturtle/AwesomeWM
cpu-widget/cpu-widget.lua
1
2180
------------------------------------------------- -- CPU Widget for Awesome Window Manager -- Shows the current CPU utilization -- More details could be found here: -- https://github.com/streetturtle/awesome-wm-widgets/tree/master/cpu-widget -- @author Pavel Makhov -- @copyright 2019 Pavel Makhov ---------------------...
mit