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
firebaugh/Digitowls
Player/BodyFSM/NaoDribble/bodyKick.lua
12
1226
module(..., package.seeall); require('Body') require('vector') require('Motion'); require('kick'); require('HeadFSM') require('Config') require('wcm') require('walk'); t0 = 0; timeout = 20.0; started = false; kickable = true; function entry() print(_NAME.." entry"); t0 = Body.get_time(); -- set kick depe...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player.old/BodyFSM/NaoDribble/bodyKick.lua
12
1226
module(..., package.seeall); require('Body') require('vector') require('Motion'); require('kick'); require('HeadFSM') require('Config') require('wcm') require('walk'); t0 = 0; timeout = 20.0; started = false; kickable = true; function entry() print(_NAME.." entry"); t0 = Body.get_time(); -- set kick depe...
gpl-3.0
firebaugh/Digitowls
Player/BodyFSM/NaoDemo/bodyKick.lua
12
1226
module(..., package.seeall); require('Body') require('vector') require('Motion'); require('kick'); require('HeadFSM') require('Config') require('wcm') require('walk'); t0 = 0; timeout = 20.0; started = false; kickable = true; function entry() print(_NAME.." entry"); t0 = Body.get_time(); -- set kick depe...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player/BodyFSM/NaoPlayer/bodyKick.lua
12
1226
module(..., package.seeall); require('Body') require('vector') require('Motion'); require('kick'); require('HeadFSM') require('Config') require('wcm') require('walk'); t0 = 0; timeout = 20.0; started = false; kickable = true; function entry() print(_NAME.." entry"); t0 = Body.get_time(); -- set kick depe...
gpl-3.0
squeek502/luvit
examples/broken/test-http-ugly.lua
15
3065
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. 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 Unless required by applicable law or agr...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/bluemagic/soporific.lua
27
1377
----------------------------------------- -- Spell: Soporific -- Puts all enemies within range to sleep -- Spell cost: 38 MP -- Monster Type: Plantoids -- Spell Type: Magical (Dark) -- Blue Magic Points: 4 -- Stat Bonus: HP-5, MP+5 -- Level: 24 -- Casting Time: 3 seconds -- Recast Time: 90 seconds -- Duration: 90 secon...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Northern_San_dOria/npcs/Beriphaule.lua
13
2215
----------------------------------- -- Area: Northern San d'Oria -- NPC: Beriphaule -- Type: Allegiance Changer NPC -- @pos -247.422 7.000 28.992 231 ----------------------------------- require("scripts/globals/conquest"); ----------------------------------- -- onTrade Action ----------------------------------- fun...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/spells/paralyze_ii.lua
13
2306
----------------------------------------- -- Spell: Paralyze II -- Spell accuracy is most highly affected by Enfeebling Magic Skill, Magic Accuracy, and MND. -- caster:getMerit() returns a value which is equal to the number of merit points TIMES the value of each point -- Paralyze II value per point is '1' This is a co...
gpl-3.0
mahdib9/kp
plugins/moderation.lua
336
9979
do 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 local username = v.username data[tostring(m...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Bastok_Markets/npcs/Zacc.lua
13
1607
----------------------------------- -- Area: Bastok Markets -- NPC: Zacc -- Type: Quest NPC -- @zone: 235 -- @pos -255.709 -13 -91.379 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; require("scripts/zones/Bastok_Markets/TextIDs"); require("scripts/globals/quests...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player.old/BodyFSM/NaoPlayer/bodyApproach.lua
3
1640
module(..., package.seeall); require('Body') require('walk') require('vector') require('util') require('Config') require('wcm') t0 = 0; timeout = 10.0; -- maximum walk velocity maxStep = 0.04; -- ball detection timeout tLost = 3.0; -- kick target threshold --xKick = 0.22; --xTarget = 0.16; xKick = 0.13; xTarget =...
gpl-3.0
firebaugh/Digitowls
Player/BodyFSM/NaoPlayer/bodyApproach.lua
3
1640
module(..., package.seeall); require('Body') require('walk') require('vector') require('util') require('Config') require('wcm') t0 = 0; timeout = 10.0; -- maximum walk velocity maxStep = 0.04; -- ball detection timeout tLost = 3.0; -- kick target threshold --xKick = 0.22; --xTarget = 0.16; xKick = 0.13; xTarget =...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player.old/Util/serialization.lua
4
1643
module(..., package.seeall); require('cutil') function serialize(o) local str = ""; if type(o) == "number" then str = tostring(o); elseif type(o) == "string" then str = string.format("%q",o); elseif type(o) == "table" then str = "{"; for k,v in pairs(o) do str = str..string.format("[%s]=...
gpl-3.0
hawkthorne/hawkthorne-client-lua
src/vendor/hardoncollider/polygon.lua
4
13127
--[[ Copyright (c) 2011 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, publish, distribu...
mit
Kosmos82/kosmosdarkstar
scripts/globals/items/serving_of_mont_blanc.lua
18
1468
----------------------------------------- -- ID: 5557 -- Item: Serving of Mont Blanc -- Food Effect: 3 Hrs, All Races ----------------------------------------- -- TODO: Group Effect -- HP +8 -- MP +10 -- Intelligence +1 -- HP Recoverd while healing 1 -- MP Recovered while healing 1 -------------------------------------...
gpl-3.0
mikroskeem/advanced-sandbox
entities/weapons/gmod_tool/stools/hydraulic.lua
4
7136
TOOL.Category = "Constraints" TOOL.Name = "#tool.hydraulic.name" TOOL.ClientConVar[ "group" ] = "37" TOOL.ClientConVar[ "width" ] = "3" TOOL.ClientConVar[ "addlength" ] = "100" TOOL.ClientConVar[ "fixed" ] = "1" TOOL.ClientConVar[ "speed" ] = "64" TOOL.ClientConVar[ "material" ] = "cable/rope" function TOOL:LeftClic...
mit
ld-test/luacheck
src/luacheck/init.lua
1
4207
local check = require "luacheck.check" local filter = require "luacheck.filter" local options = require "luacheck.options" local format = require "luacheck.format" local utils = require "luacheck.utils" local luacheck = { _VERSION = "0.13.0" } local function raw_validate_options(fname, opts) assert(opts == nil ...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Temenos/Zone.lua
35
4896
----------------------------------- -- -- Zone: Temenos (37) -- ----------------------------------- package.loaded["scripts/zones/Temenos/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Temenos/TextIDs"); require("scripts/globals/limbus"); -------------...
gpl-3.0
ld-test/luacheck
spec/check_spec.lua
1
13937
local check = require "luacheck.check" describe("check", function() it("does not find anything wrong in an empty block", function() assert.same({}, check("")) end) it("does not find anything wrong in used locals", function() assert.same({ {code = "113", name = "print", line = 5, column =...
mit
Kosmos82/kosmosdarkstar
scripts/globals/mobskills/Grim_Halo.lua
25
1090
--------------------------------------------------- -- Grim Halo -- Deals damage to a all targets. Additional effect: Knockback -- Only used by Fomors that wield a two-handed weapon (principally WAR, BLM, DRK, SAM, DRG, and SMN fomors). --------------------------------------------------- require("scripts/globals/sett...
gpl-3.0
martin-traverse/premake-core
tests/actions/vstudio/vc200x/test_compiler_block.lua
1
13287
-- -- tests/actions/vstudio/vc200x/test_compiler_block.lua -- Validate generation the VCCLCompiler element in Visual Studio 200x C/C++ projects. -- Copyright (c) 2011-2013 Jason Perkins and the Premake project -- local suite = test.declare("vs200x_compiler_block") local vc200x = premake.vstudio.vc200x --...
bsd-3-clause
justincormack/snabbswitch
src/dasm_x86.lua
11
74171
------------------------------------------------------------------------------ -- DynASM x86/x64 module. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- See dynasm.lua for full copyright notice. ------------------------------------------------------------------------------ local x64 = rawget(_G, "x64"...
apache-2.0
ZDragonKNight/ZZZZ
plugins/location.lua
93
1704
-- Implement a command !loc [area] which uses -- the static map API to get a location image -- Not sure if this is the proper way -- Intent: get_latlong is in time.lua, we need it here -- loadfile "time.lua" -- Globals -- If you have a google api key for the geocoding/timezone api do local api_key = nil local base_...
gpl-2.0
sumory/orange
orange/plugins/stat/stat.lua
1
3369
local tonumber = tonumber local STAT_LOCK = "STAT_LOCK" local KEY_START_TIME = "START_TIME" local KEY_TOTAL_COUNT = "TOTAL_REQUEST_COUNT" local KEY_TOTAL_SUCCESS_COUNT = "TOTAL_SUCCESS_REQUEST_COUNT" local KEY_TRAFFIC_READ = "TRAFFIC_READ" local KEY_TRAFFIC_WRITE = "TRAFFIC_WRITE" local KEY_TOTAL_REQUEST_TIME = "TOTAL...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Abyssea-Grauberg/npcs/Dominion_Tactician.lua
61
4431
----------------------------------- -- Area: Abyssea - Grauberg -- NPC: Dominion Tactician -- ----------------------------------- package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/abyssea"); require("script...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Valkurm_Dunes/npcs/Stone_Monument.lua
13
1273
----------------------------------- -- Area: Valkurm Dunes -- NPC: Stone Monument -- Involved in quest "An Explorer's Footsteps" -- @pos -311.299 -4.420 -138.878 103 ----------------------------------- package.loaded["scripts/zones/Valkurm_Dunes/TextIDs"] = nil; ----------------------------------- require("scri...
gpl-3.0
vim-scripts/rogue.vim
autoload/rogue/message.lua
1
4574
local g = Rogue -- alias g.msg_cleared = true g.hunger_str = "" local msg_line = "" local function save_screen() local file, err = io.open(g.game_dir .. "rogue_vim.screen", "w") if not file then g.sound_bell() return end for i = 0, g.DROWS-1 do file:write(g.iconv_to_utf8(g.screen[i]) .. "\n") end file:cl...
mit
april-org/nnlm-dataset
profile_build_scripts/build_release.lua
1
1845
dofile("luapkg/formiga.lua") local postprocess = dofile("luapkg/postprocess.lua") formiga.build_dir = "build_release" local packages = dofile "profile_build_scripts/package_list.lua" -- table.insert(packages, "rlcompleter") -- AUTOCOMPLETION => needs READLINE luapkg{ program_name = "nnlmutils", verbosity_level = ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Bastok_Markets/npcs/Rothais.lua
13
1040
----------------------------------- -- Area: Bastok Markets -- NPC: Rothais -- Involved in Quest: Gourmet ----------------------------------- ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,trade) end; ----------------------------------- -- onTr...
gpl-3.0
vizewang/skynet
lualib/redis.lua
47
4975
local skynet = require "skynet" local socket = require "socket" local socketchannel = require "socketchannel" local table = table local string = string local redis = {} local command = {} local meta = { __index = command, -- DO NOT close channel in __gc } ---------- redis response local redcmd = {} redcmd[36] = f...
mit
Igalia/snabb
src/apps/test/match.lua
12
2823
module(...,package.seeall) local ffi = require("ffi") local C = ffi.C local lib = require("core.lib") local function dump (p) return lib.hexdump(ffi.string(p.data, p.length)) end Match = { config = { fuzzy = {}, modest = {} } } function Match:new (conf) return setmetatable({ fuzzy = conf.fuzzy, ...
apache-2.0
april-org/april-ann
packages/imaging/image_cleaning/lua_src/image_cleaning.lua
3
10697
image = image or {} image.image_cleaning = image.image_cleaning or {} -- Apply neural filter to an image function image.image_cleaning.apply_filter_std(img, neighbors, clean_net) -- Generate the dataset local mImg = img:matrix() local tDim = mImg:dim() local side = neighbors*2 + 1 local dsParams = { p...
gpl-3.0
harveyhu2012/luci
applications/luci-pbx/luasrc/model/cbi/pbx-advanced.lua
99
14473
--[[ 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
RobberPhex/thrift
lib/lua/TBinaryProtocol.lua
90
6141
-- -- 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
Kosmos82/kosmosdarkstar
scripts/zones/Mount_Zhayolm/TextIDs.lua
9
1063
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item> come back again after sorting your inventory ITEM_OBTAINED = 6384; -- Obtained: <item> GIL_OBTAINED = 6385; -- Obtained <number> gil KEYITEM_OBTAINED = 6387; -- Obtain...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Giddeus/npcs/Quu_Bokye.lua
13
2020
----------------------------------- -- Area: Giddeus -- NPC: Quu Bokye -- Involved in Quest: Dark Legacy -- @pos -159 16 181 145 ----------------------------------- package.loaded["scripts/zones/Giddeus/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Giddeus/TextIDs"); -------------------...
gpl-3.0
xboybigcampishere/V2MIRROR
plugins/quran.lua
1
1327
do umbrella = "http://umbrella.shayan-soft.ir/quran/" -- database -- get sound of sura local function read_sura(chat_id, target) local readq = http.request(umbrella.."Sura"..target..".mp3") local url = umbrella.."Sura"..target..".mp3" local file = download_to_file(url) local cb_extra = {file_path=file} return sen...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/globals/items/loaf_of_hobgoblin_bread.lua
18
1363
----------------------------------------- -- ID: 4328 -- Item: loaf_of_hobgoblin_bread -- Food Effect: 60Min, All Races ----------------------------------------- -- Health 10 -- Vitality 3 -- Charisma -7 -- Health Regen While Healing 2 ----------------------------------------- require("scripts/globals/status"); -----...
gpl-3.0
april-org/april-ann
packages/basics/aprilio/package.lua
2
1236
package{ name = "aprilio", version = "1.0", depends = { "util" }, keywords = { "aprilio" }, description = "modifys io.open behavior", -- targets como en ant target{ name = "init", mkdir{ dir = "build" }, mkdir{ dir = "include" }, }, target{ name = "clean", delete{ dir = "bui...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Dynamis-Tavnazia/npcs/qm1.lua
13
2478
----------------------------------- -- Area: Dynamis-Tavnazia -- NPC: ??? -- @pos ----------------------------------- package.loaded["scripts/zones/Dynamis-Tavnazia/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/globals/dynamis"); require("scripts/zones/Dynamis-Tavnazia/TextIDs"); ---------...
gpl-3.0
martin-traverse/premake-core
tests/base/test_filename.lua
32
1690
-- -- tests/base/test_filename.lua -- Verify generation of project/workspace/rule filenames. -- Copyright (c) 2008-2014 Jason Perkins and the Premake project -- local suite = test.declare("project_filename") local p = premake -- -- Setup -- local wks function suite.setup() wks = test.createWorkspace() end...
bsd-3-clause
Kosmos82/kosmosdarkstar
scripts/zones/Pashhow_Marshlands/npcs/Field_Manual.lua
29
1056
----------------------------------- -- Area: Pashhow Marshlands -- NPC: Field Manual ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/fieldsofvalor"); ----------------------------------- -- onTrigger Action ---------------------...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/The_Boyahda_Tree/npcs/HomePoint#1.lua
27
1273
----------------------------------- -- Area: The Boyahda Tree -- NPC: HomePoint#1 -- @pos 88 -15 -217 153 ----------------------------------- package.loaded["scripts/zones/The_Boyahda_Tree/TextIDs"] = nil; require("scripts/globals/settings"); require("scripts/zones/The_Boyahda_Tree/TextIDs"); require("scripts/global...
gpl-3.0
april-org/april-ann
tools/april_utilities/create_package.lua
3
3208
local PACKAGE_NAME = arg[1] local GNU_LICENSE = [[ /* * This file is part of APRIL-ANN toolkit (A * Pattern Recognizer In Lua with Artificial Neural Networks). * * Copyright 2013, Salvador España-Boquera, Francisco * Zamora-Martinez, Joan Pastor-Pellicer * * The APRIL-ANN toolkit is free software; you can redis...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/woozyshroom.lua
18
1170
----------------------------------------- -- ID: 4373 -- Item: woozyshroom -- Food Effect: 5Min, All Races ----------------------------------------- -- Strength -4 -- Mind 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck ----------...
gpl-3.0
King098/LuaFramework-ToLua-FairyGUI
Assets/LuaFramework/ToLua/Lua/tolua.lua
1
1649
-------------------------------------------------------------------------------- -- Copyright (c) 2015 - 2016 , 蒙占志(topameng) topameng@gmail.com -- All rights reserved. -- Use, modification and distribution are subject to the "MIT License" -----------------------------------------------------------------...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Talacca_Cove/Zone.lua
20
1261
----------------------------------- -- -- Zone: Talacca_Cove (57) -- ----------------------------------- package.loaded["scripts/zones/Talacca_Cove/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/zones/Talacca_Cove/TextIDs"); ---------------------------------...
gpl-3.0
Luanluan/skynet_test
lualib/sproto.lua
19
5654
local core = require "sproto.core" local assert = assert local sproto = {} local host = {} local weak_mt = { __mode = "kv" } local sproto_mt = { __index = sproto } local sproto_nogc = { __index = sproto } local host_mt = { __index = host } function sproto_mt:__gc() core.deleteproto(self.__cobj) end function sproto...
mit
ahmed-jasim/alobaidy
plugins/groupcontrol.lua
8
41886
do -- make sure to set with value that not higher than stats.lua local NUM_MSG_MAX = 4 local TIME_CHECK = 4 -- seconds local function generate_link(cb_extra, success, result) local receiver = cb_extra.receiver local data = cb_extra.data local user_id = cb_extra.user_id local chat_id = string.gsub(rece...
gpl-3.0
dtsund/dtsund-crawl-mod
source/dat/clua/test.lua
2
3003
-- Support code used primarily for tests. This is loaded only when running -- tests, not during normal Crawl execution. util.namespace('test') test.FAILMAP = 'level-fail.map' function test.eq(actual_value, expected_value, extra) if extra then assert(actual_value == expected_value, "Expected '" .. ex...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Al_Zahbi/npcs/Yudi_Yolhbi.lua
53
2326
----------------------------------- -- Area: Al Zahbi -- NPC: Yudi Yolhbi -- Type: Woodworking Normal/Adv. Image Support -- @pos -71.584 -7 -56.018 48 ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/status"); requ...
gpl-3.0
squeek502/luvit
tests/test-fs-stat.lua
14
1933
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. 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 Unless required by applicable law or agre...
apache-2.0
AmirPGA/AmirPGA
plugins/twitter_send.lua
627
1555
do local OAuth = require "OAuth" local consumer_key = "" local consumer_secret = "" local access_token = "" local access_token_secret = "" local client = OAuth.new(consumer_key, consumer_secret, { RequestToken = "https://api.twitter.com/oauth/request_token", AuthorizeUser = {"https://api.twitter.com/oauth/autho...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Ordelles_Caves/npcs/Grounds_Tome.lua
30
1098
----------------------------------- -- Area: Ordelle's Caves -- NPC: Grounds Tome ----------------------------------- require("scripts/globals/settings"); require("scripts/globals/groundsofvalor"); ----------------------------------- -- onTrade Action ----------------------------------- function onTrade(player,npc,...
gpl-3.0
ld-test/lua-websockets
spec/frame_spec.lua
2
7328
package.path = package.path..'../src' local frame = require'websocket.frame' local bytes = string.char -- from rfc doc local hello_unmasked = bytes(0x81,0x05,0x48,0x65,0x6c,0x6c,0x6f) local hello_masked = bytes(0x81,0x85,0x37,0xfa,0x21,0x3d,0x7f,0x9f,0x4d,0x51,0x58) local hel = bytes(0x01,0x03,0x48,0x65,0x6c) local ...
mit
Kosmos82/kosmosdarkstar
scripts/zones/North_Gustaberg/npcs/Cavernous_Maw.lua
29
1442
----------------------------------- -- Area: North Gustaberg -- NPC: Cavernous Maw -- @pos 466 0 479 106 -- Teleports Players to North Gustaberg [S] ----------------------------------- package.loaded["scripts/zones/North_Gustaberg/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/faerie_apple.lua
18
1190
----------------------------------------- -- ID: 4363 -- Item: faerie_apple -- Food Effect: 5Min, All Races ----------------------------------------- -- Agility -4 -- Intelligence 2 ----------------------------------------- require("scripts/globals/status"); ----------------------------------------- -- OnItemCheck --...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Bastok_Markets/npcs/Visala.lua
13
1195
----------------------------------- -- Area: Bastok Markets -- NPC: Visala -- Guild Merchant NPC: Goldsmithing Guild -- @pos -202.000 -7.814 -56.823 235 ----------------------------------- package.loaded["scripts/zones/Bastok_Markets/TextIDs"] = nil; ----------------------------------- require("scripts/globals/se...
gpl-3.0
justincormack/snabbswitch
lib/ljsyscall/syscall/openbsd/fcntl.lua
24
1202
-- OpenBSD fcntl -- TODO incomplete, lots missing local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local funct...
apache-2.0
3pehrdev/spammer-bot
plugins/inrealm.lua
1
36447
do local function create_group(msg) -- superuser and admins only (because sudo are always has privilege) if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then local group_creator = msg.from.print_name create_group_chat (group_creator, group_name, ok_cb, false) return '💀Group [ '..string.gsub(group_n...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Mount_Zhayolm/mobs/Brass_Borer.lua
29
1544
----------------------------------- -- Area: Mount Zhayolm -- MOB: Brass Borer ----------------------------------- require("scripts/globals/status"); -- TODO: Damage resistances in streched and curled stances. Halting movement during stance change. ----------------------------------- -- OnMobSpawn Action -----------...
gpl-3.0
aStonedPenguin/fprp
entities/entities/printer_mover/shared.lua
1
1065
ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName= "Printer Mover" ENT.Author= "Dannelor" ENT.Purpose = "Allows for the movement of printer objects" ENT.Instructions = "Touch printers to the object to attach them" ENT.Classname = "printer_mover" ENT.Spawnable = false ENT.AdminSpawnable = true fprp.hookSt...
mit
april-org/april-ann
tools/HMM_ANN/recognition/opt.lua
3
10065
return cmdOpt{ program_name = string.basename(arg[0]), argument_description = "", main_description = "HMM/ANN recognition with April toolkit", { index_name="defopt", description="Load configuration file (a lua tabla)", short="f", argument="yes", }, { index_name="server", description=...
gpl-3.0
gulafaran/awesome
src/lib/vicious/widgets/mboxc.lua
14
1841
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> --------------------------------------------------- -- {{{ Grab environment local io = { open = io.open } local setmetatable = setmetatable local string = { find = stri...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Port_Windurst/TextIDs.lua
8
6323
-- Variable TextID Description text -- General Texts ITEM_CANNOT_BE_OBTAINED = 10962; -- Come back after sorting your inventory. FULL_INVENTORY_AFTER_TRADE = 10966; -- Try trading again after sorting your inventory. ITEM_OBTAINED = 10967; -- Obtained: ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Kazham/npcs/Nenepp.lua
27
4251
----------------------------------- -- Area: Kazham -- NPC: Nenepp -- Standard Info NPC ----------------------------------- package.loaded["scripts/zones/Kazham/TextIDs"] = nil; require("scripts/zones/Kazham/TextIDs"); require("scripts/globals/pathfind"); local path = { 29.014000, -11.00000, -183.884000, 31.023000, -...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Davoi/npcs/_45j.lua
13
2259
----------------------------------- -- Area: Davoi -- NPC: Screaming Pond -- Used In Quest: Whence Blows the Wind -- @pos -219 0.1 -101 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts...
gpl-3.0
Igalia/snabb
lib/ljsyscall/syscall/netbsd/types.lua
24
22649
-- NetBSD types local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(types) local abi = requi...
apache-2.0
aStonedPenguin/fprp
gamemode/modules/fadmin/fadmin/logging/sv_init.lua
1
7310
FAdmin.StartHooks["Logging"] = function() FAdmin.Access.AddPrivilege("Logging", 3); FAdmin.Commands.AddCommand("Logging", function(ply, cmd, args) if not FAdmin.Access.PlayerHasPrivilege(ply, "Logging") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end if not tonumber(args[1]) then return en...
mit
Igalia/snabb
lib/luajit/testsuite/test/lib/ffi/jit_array.lua
6
3274
local ffi = require("ffi") do --- smoke local types = { "int8_t", "uint8_t", "int16_t", "uint16_t", "int32_t", "uint32_t", "int64_t", "uint64_t", "float", "double", } for j,tp in ipairs(types) do local t = ffi.new(tp.."[?]", 301) for i=1,300 do t[i] = 1 end for i=1,300 do assert(t...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Silver_Sea_Remnants/Zone.lua
17
1080
----------------------------------- -- -- Zone: Silver_Sea_Remnants -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Silver_Sea_Remnants/TextIDs"] = nil; require("scripts/zones/Silver_Sea_Remnants/TextIDs"); ----------------------------------- -- onInitializ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Port_Jeuno/npcs/Horst.lua
29
3441
----------------------------------- -- Area: Port Jeuno -- NPC: Horst -- Type: Abyssea Warp NPC -- @pos -54.379 0.001 -10.061 246 ----------------------------------- package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil; ----------------------------------- require("scripts/zones/Port_Jeuno/TextIDs"); ------------...
gpl-3.0
tinymins/MY
MY_TargetMon/src/MY_TargetMonView.lua
1
16434
-------------------------------------------------------- -- 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/zones/Everbloom_Hollow/Zone.lua
17
1071
----------------------------------- -- -- Zone: Everbloom_Hollow -- ----------------------------------- require("scripts/globals/settings"); package.loaded["scripts/zones/Everbloom_Hollow/TextIDs"] = nil; require("scripts/zones/Everbloom_Hollow/TextIDs"); ----------------------------------- -- onInitialize -------...
gpl-3.0
ychoucha/minetest-game-mineclone
mods/redstone/mesecons_button/init.lua
4
4190
-- WALL BUTTON -- A button that when pressed emits power for 1 second -- and then turns off again mesecon.button_turnoff = function (pos) local node = minetest.env:get_node(pos) if node.name=="mesecons_button:button_stone_on" then --has not been dug mesecon:swap_node(pos, "mesecons_button:button_stone_off") mine...
lgpl-2.1
firebaugh/Digitowls
Lib/Platform/OP/Body/vector.lua
5
1863
module(..., package.seeall); local mt = {}; function new(t) t = t or {}; return setmetatable(t, mt); end function ones(n) n = n or 1; local t = {}; for i = 1, n do t[i] = 1; end return setmetatable(t, mt); end function zeros(n) n = n or 1; local t = {}; for i = 1, n do t[i] = 0; end ...
gpl-3.0
pascallanger/DIY-Multiprotocol-TX-Module
Lua_scripts/MultiLOLI.lua
2
6369
local toolName = "TNS|Multi LOLI RX config|TNE" ---- ######################################################################### ---- # # ---- # Copyright (C) OpenTX # -----# ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Al_Zahbi/npcs/Gaweesh.lua
13
1044
----------------------------------- -- Area: Al Zahbi -- NPC: Gaweesh -- Type: Najelith's Attendant -- @zone: 48 -- @pos -64.537 -8 37.928 -- -- Auto-Script: Requires Verification (Verified by Brawndo) ----------------------------------- package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil; --------------------...
gpl-3.0
permag-ir/permag.ir
libs/JSON.lua
28
34978
-- -*- 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
Kosmos82/kosmosdarkstar
scripts/globals/weaponskills/asuran_fists.lua
11
1670
----------------------------------- -- Asuran Fists -- Hand-to-Hand weapon skill -- Skill Level: 250 -- Delivers an eightfold attack. params.accuracy varies with TP. -- In order to obtain Asuran Fists, the quest The Walls of Your Mind must be completed. -- Due to the 95% params.accuracy cap there is only a 66% chance o...
gpl-3.0
shahabsaf1/MEGA-SATAN
plugins/danbooru.lua
616
1750
do local URL = "http://danbooru.donmai.us" local URL_NEW = "/posts.json" local URL_POP = "/explore/posts/popular.json" local scale_day = "?scale=day" local scale_week = "?scale=week" local scale_month = "?scale=month" local function get_post(url) local b, c, h = http.request(url) if c ~= 200 then return nil end ...
gpl-2.0
april-org/april-ann
packages/basics/iterator/test/test-iterator.lua
3
1869
local check = utest.check local T = utest.test -- reduce T("ReduceTest", function() check.eq(iterator(ipairs({4,2,1,10})):reduce(math.min, math.huge), 1) check.eq(iterator(string.gmatch("01101",".")):reduce(function(acc,v)return acc*2+v end, 0), 13) end) -- map T("MapTest", function() check.eq(iterator(ipai...
gpl-3.0
Igalia/snabb
lib/ljsyscall/syscall/openbsd/types.lua
24
9707
-- OpenBSD types local require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string = require, error, assert, tonumber, tostring, setmetatable, pairs, ipairs, unpack, rawget, rawset, pcall, type, table, string local function init(types) local abi = requ...
apache-2.0
Luanluan/skynet_test
lualib/mongo.lua
10
16372
local bson = require "bson" local socket = require "socket" local socketchannel = require "socketchannel" local skynet = require "skynet" local driver = require "mongo.driver" local md5 = require "md5" local crypt = require "crypt" local rawget = rawget local assert = assert local table = table local bson_encode = bso...
mit
mikroskeem/advanced-sandbox
entities/effects/propspawn.lua
4
3791
local cl_drawspawneffect = CreateConVar( "cl_drawspawneffect", "1", { FCVAR_ARCHIVE } ) local matRefract = Material( "models/spawn_effect" ) local matLight = Material( "models/spawn_effect2" ) --[[--------------------------------------------------------- Initializes the effect. The data is a table of data w...
mit
Kosmos82/kosmosdarkstar
scripts/zones/Bastok_Mines/npcs/Odoba.lua
27
1169
----------------------------------- -- Area: Bastok Mines -- NPC: Odoba -- Guild Merchant NPC: Alchemy Guild -- @pos 108.473 5.017 1.089 234 ----------------------------------- package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require(...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Yhoator_Jungle/npcs/Logging_Point.lua
13
1068
----------------------------------- -- Area: Yhoator Jungle -- NPC: Logging Point ----------------------------------- package.loaded["scripts/zones/Yhoator_Jungle/TextIDs"] = nil; ------------------------------------- require("scripts/globals/logging"); require("scripts/zones/Yhoator_Jungle/TextIDs"); ------------...
gpl-3.0
wingo/snabbswitch
lib/ljsyscall/examples/epoll.lua
23
3206
-- simple epoll-based socket example. Serves up http responses, but is of course not a proper server -- you can test performance with ab -n 100000 -c 100 http://localhost:8000/ although ab may be the limiting factor local S if arg[1] == "rump" then S = require "syscall.rump.init".init{"net", "net.net", "net.local", ...
apache-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Northern_San_dOria/npcs/Giaunne.lua
13
1727
----------------------------------- -- Area: Northern San d'Oria -- NPC: Giaunne -- Involved in Quest: Lure of the Wildcat (San d'Oria) -- @pos -13 0 36 231 ----------------------------------- package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil; ----------------------------------- require("scripts/global...
gpl-3.0
firebaugh/Digitowls
WebotsController/Player/Util/Broadcast.lua
4
3456
--Ashleigh --This code is used to broadcast each robot's information over network --Sent string is in lua format (for monitoring) module(..., package.seeall); require('MonitorComm') require('vcm') require('gcm') require('wcm') require('Team') require('World') require('Body') require('Config') require('serialization'...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/Davoi/npcs/_45h.lua
13
2264
----------------------------------- -- Area: Davoi -- NPC: Howling Pond -- Used In Quest: Whence Blows the Wind -- @pos 21 0.1 -258 149 ----------------------------------- package.loaded["scripts/zones/Davoi/TextIDs"] = nil; ----------------------------------- require("scripts/globals/settings"); require("scripts/glo...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/zones/PsoXja/npcs/_094.lua
13
2835
----------------------------------- -- Area: Pso'Xja -- NPC: _094 (Stone Gate) -- Notes: Spawns Gargoyle when triggered -- @pos 310.000 -1.925 -101.600 9 ----------------------------------- package.loaded["scripts/zones/PsoXja/TextIDs"] = nil; ----------------------------------- require("scripts/zones/PsoXja/TextID...
gpl-3.0
OrderOfThePorcupine/ProjectPorcupine
Assets/StreamingAssets/LUA/Overlay.lua
8
1991
-- Example of overlay function -- Input: tile, the current tile for which the -- overlay wants to display the data -- Input: world, world class -- Return: an integer (by default should be scaled between 0 and 255) function oxygenValueAt(tile) if tile == nil then return 0 end room = tile.room if ...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/chocobiscuit.lua
18
1476
----------------------------------------- -- ID: 5934 -- Item: Chocobiscuit -- Food Effect: 3Min, All Races ----------------------------------------- -- Magic Regen While Healing 3 -- Charisma 3 -- Evasion 2 -- Aquan Killer 10 -- Silence Resist 10 ----------------------------------------- require("scripts/globals/stat...
gpl-3.0
Kosmos82/kosmosdarkstar
scripts/globals/items/sis_kebabi.lua
18
1650
----------------------------------------- -- ID: 5598 -- Item: sis_kebabi -- Food Effect: 30Min, All Races ----------------------------------------- -- Strength 6 -- Vitality -2 -- Intelligence -2 -- Attack % 20 -- Attack Cap 70 -- Ranged ATT % 20 -- Ranged ATT Cap 70 ----------------------------------------- require(...
gpl-3.0
gulafaran/awesome
src/lib/vicious/helpers.lua
7
3592
--------------------------------------------------- -- Licensed under the GNU General Public License v2 -- * (c) 2010, Adrian C. <anrxc@sysphere.org> -- * (c) 2009, Rémy C. <shikamaru@mandriva.org> -- * (c) 2009, Benedikt Sauer <filmor@gmail.com> -- * (c) 2009, Henning Glawe <glaweh@debian.org> -- * (c) 2009, Luca...
gpl-2.0
8jsr/n7r
plugins/DENS1.lua
1
1289
do local function run(msg, matches) local reply_id = msg['id'] if is_sudo(msg) and matches[1]== "اوكار2" then local S = [[ � عمل جميع الاوامر بدون وضع / او ! 🏌🏌🏌🏌🏌🏌🏌🏌🏌 🕰 ترقيه سوبر : لترقيه المجموعه سوبر 🕰 تفعيل : لتفعيل البوت ب المجموعه 🕰 تعطيل : لتعطيل البوت ب المجموعه 🕰 رفع المدير : لرفع مد...
gpl-2.0
Kosmos82/kosmosdarkstar
scripts/zones/Tavnazian_Safehold/npcs/Mazuro-Oozuro.lua
13
1256
----------------------------------- -- Area: Tavnazian Safehold -- NPC: Mazuro-Oozuro -- Standard Merchant NPC ----------------------------------- require("scripts/globals/shop"); package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil; require("scripts/zones/Tavnazian_Safehold/TextIDs"); -------------------...
gpl-3.0
vizewang/skynet
lualib/skynet/manager.lua
72
1923
local skynet = require "skynet" local c = require "skynet.core" function skynet.launch(...) local addr = c.command("LAUNCH", table.concat({...}," ")) if addr then return tonumber("0x" .. string.sub(addr , 2)) end end function skynet.kill(name) if type(name) == "number" then skynet.send(".launcher","lua","REMO...
mit
Kosmos82/kosmosdarkstar
scripts/globals/items/serving_of_salmon_eggs.lua
18
1325
----------------------------------------- -- ID: 5217 -- Item: serving_of_salmon_eggs -- Food Effect: 5Min, All Races ----------------------------------------- -- Health 6 -- Magic 6 -- Dexterity 2 -- Mind -3 ----------------------------------------- require("scripts/globals/status"); --------------------------------...
gpl-3.0