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 |
|---|---|---|---|---|---|
Attractive1/Attractive-Robot | plugins/auto_leave.lua | 125 | 1025 | --[[
Kicking ourself (bot) from unmanaged groups.
When someone invited this bot to a group, the bot then will chek if the group is in its moderations (moderation.json). If not, the bot will exit immediately by kicking itself out of that group.
No switch available. You need to turn it on or off using !plugins command.... | gpl-2.0 |
jmattsson/nodemcu-firmware | lua_modules/ds18b20/ds18b20-example.lua | 2 | 1098 | -- encoder module is needed only for debug output; lines can be removed if no
-- debug output is needed and/or encoder module is missing
t = require("ds18b20")
pin = 3 -- gpio0 = 3, gpio2 = 4
function readout(temp)
for addr, temp in pairs(temp) do
-- print(string.format("Sensor %s: %s 'C", addr, temp))
prin... | mit |
maxrio/luci981213 | applications/luci-app-qos_gargoyle/luasrc/model/cbi/qos_gargoyle/upload.lua | 6 | 4646 | --[[
]]--
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos_gargoyle", translate("upload"),translate("UpLoad set"))
s = m:section(TypedSection, "upload_class", translate("upload_class"))
s.addremove = true
s.template = "cbi/tblsection"
name = s:option(Value, "name", translate("nam... | apache-2.0 |
MalRD/darkstar | scripts/zones/Middle_Delkfutts_Tower/IDs.lua | 9 | 2892 | -----------------------------------
-- Area: Middle_Delkfutts_Tower
-----------------------------------
require("scripts/globals/zone")
-----------------------------------
zones = zones or {}
zones[dsp.zone.MIDDLE_DELKFUTTS_TOWER] =
{
text =
{
CONQUEST_BASE = 4, -- Tallying conquest resu... | gpl-3.0 |
Lsty/ygopro-scripts | c12079734.lua | 3 | 2490 | --デルタトライ
function c12079734.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12079734,0))
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_BATTLE_DESTROYING)
e1:SetCondition(aux.bdocon)
e1:SetTarget(c12... | gpl-2.0 |
MalRD/darkstar | scripts/globals/items/plate_of_fin_sushi_+1.lua | 11 | 1300 | -----------------------------------------
-- ID: 5666
-- Item: plate_of_fin_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Intelligence 6
-- Accuracy % 17 (cap 80)
-- Ranged Accuracy % 17 (cap 80)
-- Resist Sleep +2
-----------------------------------------
require("scripts/globa... | gpl-3.0 |
Wuzzy2/mobs_mc | zombiepig.lua | 1 | 3273 | --MCmobs v0.4
--maikerumine
--made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes
-- intllib
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--###################
--#########... | gpl-3.0 |
Lsty/ygopro-scripts | c36776089.lua | 3 | 1502 | --神騎セイントレア
function c36776089.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,nil,2,2)
c:EnableReviveLimit()
--indestructable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:Set... | gpl-2.0 |
kianooshnoori/teleexitbot | plugins/admin.lua | 381 | 7085 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
Lsty/ygopro-scripts | c12670770.lua | 3 | 5024 | --サイバー・ネットワーク
function c12670770.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x1e0)
e1:SetTarget(c12670770.target1)
e1:SetOperation(c12670770.operation)
c:RegisterEffect(e1)
--remove
local e2=Effect.CreateEffect(... | gpl-2.0 |
rigeirani/teshep | bot/utils.lua | 3 | 23516 | 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 |
MalRD/darkstar | scripts/globals/items/slice_of_coeurl_meat.lua | 11 | 1063 | -----------------------------------------
-- ID: 4377
-- Item: slice_of_coeurl_meat
-- Food Effect: 5Min, Galka only
-----------------------------------------
-- Strength 5
-- Intelligence -7
-----------------------------------------
require("scripts/globals/status")
require("scripts/globals/msg")
---------------------... | gpl-3.0 |
minimumcut/UnnamedEngine | UnnamedEngine/Vendor/bullet/examples/SharedMemory/premake4.lua | 2 | 9732 |
project "App_SharedMemoryPhysics"
if _OPTIONS["ios"] then
kind "WindowedApp"
else
kind "ConsoleApp"
end
includedirs {".","../../src", "../ThirdPartyLibs",}
links {
"Bullet3Common","BulletInverseDynamicsUtils", "BulletInverseDynamics", "BulletDynamics","BulletCollision", "LinearMath", "BussIK"
}
language "C++"
... | mit |
zhaozg/lit | deps/weblit-websocket.lua | 7 | 2914 | --[[lit-meta
name = "creationix/weblit-websocket"
version = "3.0.0"
dependencies = {
"creationix/websocket-codec@3.0.0",
"creationix/coro-websocket@3.0.0",
}
description = "The websocket middleware for Weblit enables handling websocket clients."
tags = {"weblit", "middleware", "websocket"}
license... | apache-2.0 |
Lsty/ygopro-scripts | c84747429.lua | 3 | 2214 | --エアジャチ
function c84747429.initial_effect(c)
--destroy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(84747429,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/equalizer.lua | 11 | 1208 | ---------------------------------------------------
-- Equalizer
-- AoE damage (~600-800),
--
---------------------------------------------------
require("scripts/globals/settings")
require("scripts/globals/status")
require("scripts/globals/monstertpmoves")
---------------------------------------------------
function... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Rabao/npcs/Edigey.lua | 9 | 2159 | -----------------------------------
-- Area: Rabao
-- NPC: Edigey
-- Starts and Ends Quest: Don't Forget the Antidote
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/settings");
require("scripts/globals/quests");
local ID = require("scripts/zones/Rabao/IDs");
-----------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Outer_Horutoto_Ruins/npcs/_5eb.lua | 9 | 1936 | -----------------------------------
-- Area: Outer Horutoto Ruins
-- NPC: Gate: Magical Gizmo
-- Involved In Mission: Full Moon Fountain
-- !pos -291 0 -659 194
-----------------------------------
local ID = require("scripts/zones/Outer_Horutoto_Ruins/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/... | gpl-3.0 |
mickelfeng/ABTestingGateway | admin/policy/check.lua | 22 | 2828 | local policyModule = require('abtesting.adapter.policy')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local utils = require('abtesting.utils.utils')
local ERRORINFO = require('ab... | mit |
gallenmu/MoonGen | libmoon/lua/lib/syscall/linux/mips/ffi.lua | 24 | 3007 | -- MIPS specific definitions
-- sigset_t size is set from _NSIG here
return {
nsig = [[
static const int _NSIG = 128;
]],
ucontext = [[
typedef struct sigaltstack {
void *ss_sp;
size_t ss_size;
int ss_flags;
} stack_t;
typedef struct {
unsigned __mc1[2];
unsigned long long __mc2[65];
unsigned __mc3[5]... | mit |
Lsty/ygopro-scripts | c92142169.lua | 5 | 1731 | --パクバグ
function c92142169.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCondition(c92142169.spcon)
e1:SetValue(1)
c:RegisterEffect(e1)
--atkchange
local ... | gpl-2.0 |
MalRD/darkstar | scripts/globals/mobskills/decussate.lua | 11 | 1079 | ---------------------------------------------
-- Decussate
--
-- Description: Performs a cross attack on nearby targets.
-- Type: Magical
-- Utsusemi/Blink absorb: 2-3 shadows?
-- Range: Less than or equal to 10.0
-- Notes: Only used by Gulool Ja Ja when below 35% health.
-----------------------------------------... | gpl-3.0 |
MalRD/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm3.lua | 9 | 1621 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm3 (???) (Tower 3)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- !pos 417.121 15.598 -137.466 120
-----------------------------------
local ID = require("scripts/zones/Sauromugue_Champaign/IDs")
require("scripts/globals/npc_util")
requ... | gpl-3.0 |
cyanskies/OpenRA | mods/d2k/maps/atreides-01b/atreides01b.lua | 6 | 4927 |
HarkonnenReinforcements = { }
HarkonnenReinforcements["easy"] =
{
{ "light_inf", "light_inf" }
}
HarkonnenReinforcements["normal"] =
{
{ "light_inf", "light_inf" },
{ "light_inf", "light_inf", "light_inf" },
{ "light_inf", "trike" },
}
HarkonnenReinforcements["hard"] =
{
{ "light_inf", "light_inf" },
{ "trike"... | gpl-3.0 |
cyberz-eu/octopus | extensions/shop/src/controller/checkout/CheckoutAddAddressController.lua | 1 | 1481 | local json = require "json"
local parse = require "parse"
local property = require "property"
local localization = require "localization"
local database = require "database"
local exit = require "exit"
local exception = require "exception"
local exceptionHandler = require "exceptionHandler"
local util = require... | bsd-2-clause |
FarGroup/FarManager | enc/tools/lua/lua/lxsh/lexers/bib.lua | 3 | 2442 | --[[
Lexer for BibTeX source code powered by LPeg.
Authors:
- Brendan O'Flaherty
- Peter Odding
Last Change: October 4, 2011
URL: http://peterodding.com/code/lua/lxsh/
TODO Comments?!
]]
local lxsh = require 'lxsh'
local lpeg = require 'lpeg'
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local D = R'09'
local I... | bsd-3-clause |
bystep15/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 |
lizh06/premake-core | src/base/os.lua | 5 | 13481 | --
-- os.lua
-- Additions to the OS namespace.
-- Copyright (c) 2002-2014 Jason Perkins and the Premake project
--
---
-- Extend Lua's built-in os.execute() with token expansion and
-- path normalization.
--
premake.override(os, "execute", function(base, cmd)
cmd = os.translateCommands(cmd)
return... | bsd-3-clause |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/scoreboard/dxscoreboard_http.lua | 12 | 2213 | -- Original file by jbeta
local httpColumns = {}
local httpRows = {}
local updateInterval = 1000
local lastUpdateTime = 0
function getScoreboardColumns()
-- Only update http data if someone is looking
if getTickCount() - lastUpdateTime > updateInterval then
lastUpdateTime = getTickCount()
refreshServerScoreboard... | mit |
moodlIMyIl/DEVTSHAKE | plugins/badword-ar.lua | 3 | 3607 | --[[
_____ _ _ _ _____ Dev @lIMyIl
|_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il
| |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a
| |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22
|_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI
CH > @lTSHAKEl_CH
--]]
l... | gpl-2.0 |
meirfaraj/tiproject | finance/src/ui/math/discrete/poisson/poisson.lua | 1 | 2428 |
--------------------------------------------------------------------------
-- Loi de --
--------------------------------------------------------------------------
require("ui/wscreen")
Poisson = Combinatoire(PERMUTATION_SANS_REP_TITLE_ID,PERMUTATION_SANS_REP_HEADER_ID)
... | apache-2.0 |
daurnimator/lua-http | examples/server_sent_events.lua | 3 | 3132 | #!/usr/bin/env lua
--[[
A server that responds with an infinite server-side-events format.
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format
Usage: lua examples/server_sent_events.lua [<port>]
]]
local port = arg[1] or 0 -- 0 means pick one at random
loc... | mit |
leanlyne/ShootColorX | cocos2d/external/lua/luajit/src/src/jit/bc.lua | 78 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
KSDaemon/wiola | lib/wiola/raw-handler.lua | 1 | 7282 | --
-- Project: wiola
-- User: Konstantin Burkalev
-- Date: 16.03.14
--
local WAMP_PAYLOAD_LENGTHS = {
[512] = 0,
[1024] = 1,
[2048] = 2,
[4096] = 3,
[8192] = 4,
[16384] = 5,
[32768] = 6,
[65536] = 7,
[131072] = 8,
[262144] = 9,
[524288] = 10,
[1048576] = 11,
[2097152]... | bsd-2-clause |
mahdib9/89 | plugins/stats.lua | 458 | 4098 | -- Saves the number of messages from a user
-- Can check the number of messages with !stats
do
local NUM_MSG_MAX = 5
local TIME_CHECK = 4 -- seconds
local function user_print_name(user)
if user.print_name then
return user.print_name
end
local text = ''
if user.first_name then
text = user.last_name.... | gpl-2.0 |
maxrio/packages981213 | utils/luci-app-lxc/files/controller/lxc.lua | 77 | 2909 | --[[
LuCI LXC module
Copyright (C) 2014, Cisco Systems, Inc.
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
Author: Petar Koretic <petar.koretic@sart... | gpl-2.0 |
HEYAHONG/nodemcu-firmware | lua_modules/lm92/lm92.lua | 7 | 5059 | -- ******************************************************
-- LM92 module for ESP8266 with nodeMCU
--
-- Written by Levente Tamas <levente.tamas@navicron.com>
--
-- modify by Garberoglio Leonardo <leogarberoglio@gmail.com>
--
-- GNU LGPL, see https://www.gnu.org/copyleft/lesser.html
-- **********************************... | mit |
lizh06/premake-core | tests/actions/vstudio/vc2010/test_project_refs.lua | 7 | 2378 | --
-- tests/actions/vstudio/vc2010/test_project_refs.lua
-- Validate project references in Visual Studio 2010 C/C++ projects.
-- Copyright (c) 2011-2012 Jason Perkins and the Premake project
--
local suite = test.declare("vstudio_vs2010_project_refs")
local vc2010 = premake.vstudio.vc2010
--
-- Setup
--
local wk... | bsd-3-clause |
opentechinstitute/luci | protocols/ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 59 | 1868 | --[[
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
]]--
local ma... | apache-2.0 |
lsaint/act | script/round.lua | 1 | 4659 |
require "guess"
RoundMgr = {}
function RoundMgr:new(room)
self.__index = self
local rt = {MODE_ACT = ROUND_TIME, MODE_FREE = ROUND_TIME_FREE}
local ins = setmetatable({}, self)
ins.room = room
ins.mode2start = {MODE_ACT = ins.startRoundAct, MODE_FREE = ins.startRoundFree}
ins.mode2abort = {M... | apache-2.0 |
lizh06/premake-core | src/tools/msc.lua | 3 | 6977 | ---
-- msc.lua
-- Interface for the MS C/C++ compiler.
-- Author Jason Perkins
-- Modified by Manu Evans
-- Copyright (c) 2009-2015 Jason Perkins and the Premake project
---
local p = premake
p.tools.msc = {}
local msc = p.tools.msc
local project = p.project
local config = p.config
--
-- Returns list of C pre... | bsd-3-clause |
cyanskies/OpenRA | lua/stacktraceplus.lua | 59 | 12006 | -- tables
local _G = _G
local string, io, debug, coroutine = string, io, debug, coroutine
-- functions
local tostring, print, require = tostring, print, require
local next, assert = next, assert
local pcall, type, pairs, ipairs = pcall, type, pairs, ipairs
local error = error
assert(debug, "debug table must be availa... | gpl-3.0 |
kyuu/dynrpg-rpgss | assets/Scripts/extensions/gameclock/GameClock.lua | 1 | 2824 | require "system"
GameClock = class {
__name = "GameClock",
font = Cache:font("Fonts/msmincho.png"),
windowskin = Cache:windowskin("WindowSkins/system4.png"),
playTime = 0, -- total play time in milliseconds
visible = true,
onNewGame = function(self)
self:reset()
... | mit |
Arashbrsh/a1wez- | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
UB12/y_r | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
ioiasff/khp | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
adib1380/antispam | plugins/face.lua | 641 | 3073 | local https = require("ssl.https")
local ltn12 = require "ltn12"
-- Edit data/mashape.lua with your Mashape API key
-- http://docs.mashape.com/api-keys
local mashape = load_from_file('data/mashape.lua', {
api_key = ''
})
local function request(imageUrl)
local api_key = mashape.api_key
if api_key:isempt... | gpl-2.0 |
PlayFab/LuaSdk | PlayFabSDK/PlayFab/IPlayFabHttps.lua | 3 | 2354 | -- IPlayFabHttps.lua
-- Defines the MakePlayFabApiCall function signature which is used by all PlayFab-HTTPS implementations
-- Also serves as a selector/redirect to the actual HTTPS implementation that should be used
-- (DEFAULT, no overrides - Suggested for LuaDist)
-- local PlayFabClientApi = require("PlayFab.P... | apache-2.0 |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/TransitionTurnOffTiles.lua | 11 | 1397 |
--------------------------------
-- @module TransitionTurnOffTiles
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionTurnOffTiles] easeActionWithAction
-- @param self
-- @param #cc.ActionInterval action
-- @return ActionInterval#A... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/tests/lua-tests/src/NewEventDispatcherTest/NewEventDispatcherTest.lua | 2 | 52591 | local itemTagBasic = 1000
local testArray =
{
TouchableSprite = 1,
FixedPriority = 2,
RemoveListenerWhenDispatching = 3,
CustomEvent = 4,
LabelKeyboardEvent = 5,
SpriteAccelerationEvent = 6,
RemoveAndRetainNode = 7,
RemoveListenerAfterAdding = 8,
GlobalZTouchTest = 9,
StopPropag... | mit |
opentechinstitute/luci | modules/base/luasrc/sys/zoneinfo/tzoffset.lua | 3 | 4228 | --[[
LuCI - Autogenerated Zoneinfo Module
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
]]--
module "luci.sys.zoneinfo.tzoffset"
OFFSET = {
gmt =... | apache-2.0 |
mrvigeo/NewTelegram | plugins/stats.lua | 236 | 3989 | do
-- Returns a table with `name` and `msgs`
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_prin... | gpl-2.0 |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EaseBackOut.lua | 9 | 1222 |
--------------------------------
-- @module EaseBackOut
-- @extend ActionEase
-- @parent_module cc
--------------------------------
-- brief Create the action with the inner action.<br>
-- param action The pointer of the inner action.<br>
-- return A pointer of EaseBackOut action. If creation failed, return nil.
-- @... | mit |
sumefsp/zile | lib/zile/term_minibuf.lua | 1 | 5889 | -- Minibuffer handling
--
-- Copyright (c) 2010-2014 Free Software Foundation, Inc.
--
-- This file is part of GNU Zile.
--
-- This program is free software; you can redistribute it and/or modify it
-- under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3, o... | gpl-3.0 |
ioiasff/khp | plugins/bugzilla.lua | 611 | 3983 | do
local BASE_URL = "https://bugzilla.mozilla.org/rest/"
local function bugzilla_login()
local url = BASE_URL.."login?login=" .. _config.bugzilla.username .. "&password=" .. _config.bugzilla.password
print("accessing " .. url)
local res,code = https.request( url )
local data = json:decode(res)
return data
... | gpl-2.0 |
ioiasff/khp | plugins/qr.lua | 637 | 1730 | --[[
* qr plugin uses:
* - http://goqr.me/api/doc/create-qr-code/
* psykomantis
]]
local function get_hex(str)
local colors = {
red = "f00",
blue = "00f",
green = "0f0",
yellow = "ff0",
purple = "f0f",
white = "fff",
black = "000",
gray = "ccc"
}
for color, value in pairs(colors)... | gpl-2.0 |
uonline/debut | src/day2/act3/lane.room.lua | 1 | 13668 | -- Переменные локации
-- Переходы
-- Локация
lane = room {
nam = 'Переулок';
dsc = [[
Ты стоишь в узком переулке. Между домов, на уровне вторых-третьих этажей,
развешано бельё на верёвках, из-за чего здесь не особо светло.
Воняет нечистотами и испражнениями.
Ты вспоминаешь, что твоё детство прошло примерно в ... | gpl-3.0 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[admin]/anti/camp_c.lua | 4 | 1818 | -- Global variable to check if a DD map is running --
local minDistance = 5
local interval = 1000
local maxCounter = 15
local warning = 8
local running = nil
local previousPosition = nil
local counter = 0
function mapRunning(isRunning)
if isRunning then
running = setTimer(campTimer, interval, 0)
-- outputDebugS... | mit |
LuaDist2/oil | lua/oil/corba/giop/Referrer.lua | 6 | 6098 | --------------------------------------------------------------------------------
------------------------------ ##### ## ------------------------------
------------------------------ ## ## # ## ------------------------------
------------------------------ ## ## ## ## ---------------------------... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/PhysicsShapeCircle.lua | 8 | 2327 |
--------------------------------
-- @module PhysicsShapeCircle
-- @extend PhysicsShape
-- @parent_module cc
--------------------------------
-- Get the circle's radius.<br>
-- return A float number.
-- @function [parent=#PhysicsShapeCircle] getRadius
-- @param self
-- @return float#float ret (return value: float)
... | mit |
mlnlover11/SharpLua | SharpLua/Decompiler/disassembler example.lua | 2 | 13464 | local InstructionTable = {
{Name = 'MOVE'; Opcode = 0; Format = 'ABC'; };
{Name = 'LOADK'; Opcode = 1; Format = 'ABx'; };
{Name = 'LOADBOOL'; Opcode = 2; Format = 'ABC'; };
{Name = 'LOADNIL'; Opcode = 3; Format = 'ABC'; };
{Name = 'GETUPVAL'; Opcode = 4; Format = 'ABC'; };
{Name = 'GETGLOBAL'; Opcode = 5; Format = 'ABx... | mit |
shadoalzupedy/shadow | data/config.lua | 1 | 8722 | do local _ = {
about_text = "Teleseed v4\nAn advanced administration bot based on TG-CLI written in Lua\n\nhttps://github.com/SEEDTEAM/TeleSeed\n\nAdmins\n@iwals [Founder]\n@imandaneshi [Developer]\n@POTUS [Developer]\n@seyedan25 [Manager]\n@aRandomStranger [Admin]\n\nSpecial thanks to\nawkward_potato\nSiyanew\ntopke... | gpl-2.0 |
FarGroup/FarManager | enc/tools/lua/lua/lxsh/docs/lua.lua | 3 | 55706 | --[[
Documentation links for the Lua syntax highlighter of the LXSH module.
Author: Peter Odding <peter@peterodding.com>
Last Change: December 03, 2011
URL: http://peterodding.com/code/lua/lxsh/
Generated by http://github.com/xolox/lua-lxsh/blob/master/etc/doclinks.lua.
]]
return {
_G="http://www.lua.org/manu... | bsd-3-clause |
JarnoVgr/Mr.Green-MTA-Resources | resources/[admin]/admin/client/gui/admin_main.lua | 3 | 72892 | --[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* gui\admin_main.lua
*
* Original File by lil_Toady
*
**************************************]]
aAdminForm = nil
aLastCheck = 0
aCurrentVehicle = 429
aCurrentWeapon = 30
aCurrentAmmo = 90
aCurrentSlap = 20
aPlayers = {}
aBans = {}
aLastSync = ... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/tests/lua-tests/src/ComponentTest/main.lua | 2 | 1823 | local function ComponentTestLayer()
local layer = cc.Layer:create()
-- set background color
local bgLayer = cc.LayerColor:create(cc.c4b(0, 128, 255, 255));
layer:addChild(bgLayer);
-- create game scene
local sceneLuaComponent = cc.ComponentLua:create("src/ComponentTest/scene.lua");
sceneL... | mit |
opentechinstitute/luci | applications/luci-vnstat/luasrc/model/cbi/vnstat.lua | 90 | 2019 | --[[
LuCI - Lua Configuration Interface
Copyright 2010-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
]]--
loc... | apache-2.0 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/speed-o-meter/script.lua | 3 | 6987 | function mph()
local target = getCameraTarget()
car = getPedOccupiedVehicle(getLocalPlayer())
if target and getElementType(target) == "vehicle" then
car = target
end
if car then
if (getVehicleType(car) == "Plane") or (getVehicleType(car) == "Boat") or (getVehicleType(car) == "Helicopter") then
xx,yy,zz = ge... | mit |
tinydanbo/Impoverished-Starfighter | game/hud.lua | 1 | 1322 | Class = require "lib.hump.class"
vector = require "lib.hump.vector"
Hud = Class {
init = function(self, state)
self.state = state
self.energyBarFront = love.graphics.newImage("data/img/hud/energy-front.png")
self.energyBar = love.graphics.newImage("data/img/hud/energy-bar.png")
self.energyBarBack = love.graph... | mit |
Arashbrsh/a1wez- | 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 |
AliKhodadad/zed-spam | 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 |
mobarski/sandbox | scite/old/wscite_zzz/lexers/notused/matlab.lua | 4 | 3940 | -- Copyright 2006-2017 Martin Morawetz. See LICENSE.
-- Matlab LPeg lexer.
-- Based off of lexer code by Mitchell.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local M = {_NAME = 'matlab'}
-- Whitespace.
local ws = token(l.WHITESPACE, l.space^1)
-... | mit |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/PositionFrame.lua | 18 | 1745 |
--------------------------------
-- @module PositionFrame
-- @extend Frame
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#PositionFrame] getX
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#PositionF... | mit |
snowplow/snowplow-lua-tracker | spec/unit/validate_spec.lua | 1 | 8192 | --- validate_spec.lua
--
-- Copyright (c) 2013 - 2022 Snowplow Analytics Ltd. All rights reserved.
--
-- This program is licensed to you under the Apache License Version 2.0,
-- and you may not use this file except in compliance with the Apache License Version 2.0.
-- You may obtain a copy of the Apache License Version... | apache-2.0 |
meirfaraj/tiproject | finance/src/finance/portfeuille/sansActifSansRisqueMinimisationRisque.lua | 1 | 2092 |
--------------------------------------------------------------------------
-- Obligation --
--------------------------------------------------------------------------
require("ui/wscreen")
require("finance/portfeuille/func/utilite")
require("finance/portfeuill... | apache-2.0 |
opentechinstitute/luci | applications/luci-coovachilli/luasrc/model/cbi/coovachilli_network.lua | 79 | 1639 | --[[
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 |
opentechinstitute/luci | applications/luci-commands/luasrc/controller/commands.lua | 76 | 5959 | --[[
LuCI - Lua Configuration Interface
Copyright 2012 Jo-Philipp Wich <jow@openwrt.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
]]--
module("... | apache-2.0 |
osa1/language-lua | lua-5.3.1-tests/locals.lua | 6 | 3221 | -- $Id: locals.lua,v 1.36 2015/03/04 13:09:38 roberto Exp $
print('testing local variables and environments')
local debug = require"debug"
-- bug in 5.1:
local function f(x) x = nil; return x end
assert(f(10) == nil)
local function f() local x; return x end
assert(f(10) == nil)
local function f(x) x = nil; local... | bsd-3-clause |
JarnoVgr/Mr.Green-MTA-Resources | resources/[web]/irc/scripts/runcode/server.lua | 4 | 1317 | local rootElement = getRootElement()
function runString (commandstring, outputTo, sourceName)
outputChatBoxR(sourceName.." executed command: "..commandstring, outputTo, true)
local notReturned
--First we test with return
local commandFunction,errorMsg = loadstring("return "..commandstring)
if errorMsg then
--It... | mit |
mobarski/sandbox | scite/old/wscite_zzz/lexers/notused/cuda.lua | 5 | 4318 | -- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE.
-- CUDA LPeg lexer.
local l = require('lexer')
local token, word_match = l.token, l.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local table = _G.table
local M = {_NAME = 'cuda'}
-- Whitespace
local ws = token(l.WHITESPACE, l.space^1)
-- Ke... | mit |
tinydanbo/Impoverished-Starfighter | lib/loveframes/objects/internal/multichoice/multichoicerow.lua | 6 | 4237 | --[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
-- multichoicerow class
local newobject = loveframes.NewObject("multichoicerow", "loveframes_object_multichoicerow", true)
... | mit |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/data/data_maps_s.lua | 1 | 5292 | local currentMap = nil
function resourceStart()
local xml
xml = xmlLoadFile("data_maps.xml")
if not xml then
outputDebugString("XML file not found, creating a new one.",0)
xml = xmlCreateFile("data_maps.xml", "maps")
local raceMaps = exports.mapmanager:getMapsCompatibleWithGamemode(getResourceFromName("rac... | mit |
opentechinstitute/luci | modules/admin-full/luasrc/model/cbi/admin_system/fstab/swap.lua | 84 | 1922 | --[[
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$
]]--
lo... | apache-2.0 |
mattico/planets | quickie/group.lua | 15 | 4523 | --[[
Copyright (c) 2012 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 |
darkdukey/sdkbox-facebook-sample-v2 | samples/Lua/TestLua/Resources/luaScript/TouchesTest/Ball.lua | 4 | 2846 |
require "extern"
require "luaScript/VisibleRect"
require "luaScript/TouchesTest/Paddle"
Ball = class("Ball", function(texture)
return CCSprite:createWithTexture(texture)
end)
Ball.__index = Ball
Ball.m_velocity = ccp(0,0)
local M_PI = 3.1415926
function Ball:radius()
local size = self:getTexture():getCon... | mit |
dan-f/Soundpipe | modules/data/progress.lua | 1 | 1293 | sptbl["progress"] = {
files = {
module = "progress.c",
header = "progress.h",
example = "ex_progress.c",
},
func = {
create = "sp_progress_create",
destroy = "sp_progress_destroy",
init = "sp_progress_init",
compute = "sp_progress_compute",
},
... | mit |
Winless/NPLRuntime | Client/trunk/externals/bullet3/Demos3/CpuDemos/premake4.lua | 6 | 1946 |
project ("App_Bullet3_CPU_Demos")
language "C++"
kind "ConsoleApp"
targetdir "../../bin"
initOpenGL()
initGlew()
includedirs {
"..",
"../../src",
"../../btgui"
}
links {
"gwen",
"Bullet2FileLoader",
"Bullet3Dynamics",
"Bullet3Collision",
"Bullet3Geometry",
"Bullet3Common",
}
files {
"**.cpp",
... | gpl-2.0 |
BlackSpirit96/CC_Server | API/log.lua | 1 | 1233 | -- Log module
-- Author: Black_Spirit
-- Version: 1.2
local LEVELS = {"[DEBUG]", "[INFO]", "[WARN]", "[ERROR]", "[FATAL]"}
local logger = {
path = "log.file",
logFile = function(self, level, message)
if type( self ) ~= "table" then
error( 'Incorrect notation, use ":" instead of "."', 2 )
end
local logFile ... | mit |
opentechinstitute/luci | applications/luci-minidlna/luasrc/controller/minidlna.lua | 73 | 1448 | --[[
LuCI - Lua Configuration Interface - miniDLNA support
Copyright 2012 Gabor Juhos <juhosg@openwrt.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... | apache-2.0 |
uncommoncode/SCRNNs | datatools.lua | 4 | 5728 | --
-- Copyright (c) 2015, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
-- Author: Sumi... | bsd-3-clause |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/-shaders-watershine/c_water.lua | 4 | 1807 | --
-- c_water.lua
--
myWaterShader = nil
local isSunEnabled = true
function startWaterShine()
if wsEffectEnabled then return end
-- Create shader
myWaterShader, tec = dxCreateShader ( "fx/water.fx",0,0,false )
if not myWaterShader then
outputChatBox( "Could not create shader. Please use debugscript 3" )
... | mit |
neghabdar/neghabdar | plugins/inpm.lua | 1114 | 3008 | do
local 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]]
... | agpl-3.0 |
hfjgjfg/seed355 | plugins/inpm.lua | 1114 | 3008 | do
local 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 |
minecraftgame-andrd/minecraftgame | plugins/inpm.lua | 1114 | 3008 | do
local 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 |
JarnoVgr/Mr.Green-MTA-Resources | resources/[gameplay]/snow/snow_gui.lua | 3 | 21149 | local current_selection = nil
local changing_wind_direction = false
local highlight = true
guiEnabled = false
snowToggle = false
local snow = {}
-- default settings
settings = {type = "real", density = 50, wind_direction = {0.01,0.01}, wind_speed = 1, snowflake_min_size = 1, snowflake_max_size = 3, fall_speed_min = 1, ... | mit |
opentechinstitute/luci | modules/admin-full/luasrc/controller/admin/uci.lua | 85 | 1975 | --[[
LuCI - Lua Configuration Interface
Copyright 2008 Steven Barth <steven@midlink.org>
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://w... | apache-2.0 |
Telecat-full/-Telecat-Full | plugins/botpic.lua | 1 | 1163 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(receiver, '... | gpl-2.0 |
HEYAHONG/nodemcu-firmware | app/lua53/host/tests/attrib.lua | 7 | 12047 | -- $Id: attrib.lua,v 1.65 2016/11/07 13:11:28 roberto Exp $
-- See Copyright Notice in file all.lua
print "testing require"
assert(require"string" == string)
assert(require"math" == math)
assert(require"table" == table)
assert(require"io" == io)
assert(require"os" == os)
assert(require"coroutine" == coroutine)
asser... | mit |
nutcase84/ben-eater-cpu-emulator | suit/imagebutton.lua | 8 | 1338 | -- This file is part of SUIT, copyright (c) 2016 Matthias Richter
local BASE = (...):match('(.-)[^%.]+$')
return function(core, normal, ...)
local opt, x,y = core.getOptionsAndSize(...)
opt.normal = normal or opt.normal or opt[1]
opt.hovered = opt.hovered or opt[2] or opt.normal
opt.active = opt.active or opt[3] ... | gpl-3.0 |
tianxiawuzhei/cocos-quick-cpp | publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/ArmatureData.lua | 19 | 1045 |
--------------------------------
-- @module ArmatureData
-- @extend Ref
-- @parent_module ccs
--------------------------------
--
-- @function [parent=#ArmatureData] addBoneData
-- @param self
-- @param #ccs.BoneData boneData
-- @return ArmatureData#ArmatureData self (return value: ccs.ArmatureData)
------... | mit |
basxto/mg-td | towerdefense/lua/cellTriggerEvent.lua | 1 | 2104 | function cellTriggerEvent()
function lastCheckpoint(player)
if TD.stillalive[player] then
giveResource("lives", player-1, -1);
if 0 >= resourceAmount("lives",player-1) then --player lost
TD.stillalive[player] = false;
local lastplayer = true;
for i = 1, TD.settings.humans do
if TD.stillalive[... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.