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
cooljeanius/CEGUI
projects/premake/ScriptingModules/PythonScriptModule/PyCEGUINullRenderer/premake.lua
1
1059
-- -- Python extension module(s) premake script -- cegui_dynamic("PyCEGUINullRenderer") package.targetextension = "pyd" -- Extension modules are always built as dlls (but linked statically) if WANT_STATIC_BUILD then package.config.Debug_Static.kind = "dll" package.config.Release_Static.kind = "dll" define("BOOST_...
gpl-3.0
lizh06/premake-core
tests/api/test_register.lua
7
1704
-- -- tests/api/test_register.lua -- Tests the new API registration function. -- Copyright (c) 2012 Jason Perkins and the Premake project -- local suite = test.declare("api_register") local api = premake.api -- -- Setup and teardown -- function suite.teardown() testapi = nil end -- -- Verify that the funct...
bsd-3-clause
JarnoVgr/Mr.Green-MTA-Resources
resources/[admin]/admin/server/admin_screenshot.lua
7
3910
--[[********************************** * * Multi Theft Auto - Admin Panel * * admin_screenshot.lua * * Original File by MCvarial * **************************************]] local con = dbConnect("sqlite", ":/registry.db") dbExec(con, "CREATE TABLE IF NOT EXISTS `admin_screenshots` (`id` INTEGER, `player` TEXT, `serial...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/TintBy.lua
11
1793
-------------------------------- -- @module TintBy -- @extend ActionInterval -- @parent_module cc -------------------------------- -- initializes the action with duration and color -- @function [parent=#TintBy] initWithDuration -- @param self -- @param #float duration -- @param #short deltaRed -- @param #short del...
mit
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/items/burn/burn_s.lua
4
8707
----------------- -- Items stuff -- ----------------- local ID, IDextra, IDextra2 = 6, 7, 8 local g_PlayersBurn = {} local g_PlayersBurnExtra = {} local g_PlayersBurnTransfer = {} function loadGCBurn ( player, bool, settings ) if bool then g_PlayersBurn[player] = true else g_PlayersBurn[player] = nil end end ...
mit
mahdib9/89
plugins/google.lua
722
1037
local function googlethat(query) local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&" local parameters = "q=".. (URL.escape(query) or "") -- Do the request local res, code = https.request(api..parameters) if code ~=200 then return nil end local data = json:decode(res) local r...
gpl-2.0
PlayFab/LuaSdk
PlayFabSDK/PlayFab/PlayFabSettings.lua
3
1683
-- Holds the basic settings for PlayFab -- PlayFabSettings.settings is public and contains the following: -- titleId -- You must set this before making any PlayFab API calls -- It may optionally include: -- devSecretKey -- Server/Admin only, required for any non-client call local PlayFabSettings = { ...
apache-2.0
Arashbrsh/a1wez-
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
JarnoVgr/Mr.Green-MTA-Resources
resources/[race]/race_ghost/record_client.lua
1
12502
GhostRecord = {} GhostRecord.__index = GhostRecord enableRecording = true addEvent"onClientMapStarting" addEvent"onClientPlayerOutOfTime" addEvent( "onClientPlayerPickUpRacePickup", true ) addEvent( "onClientPlayerRaceWasted", true ) addEvent( "onClientPlayerFinished", true ) local recordEnabled = true addCommandHan...
mit
Mahdi2001bk/TELEHACK
plugins/spammer.lua
12
15608
do function run(msg, matches) local tex = matches[1] local sps = matches[2] local sp = '' for i=1, tex, 1 do sp = '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n...
gpl-2.0
tinydanbo/Impoverished-Starfighter
game/enemies/kamikazeDrone.lua
1
1028
Class = require "lib.hump.class" Enemy = require "entities.enemy" vector = require "lib.hump.vector" EnemyBullet = require "entities.enemyBullet" EntityTypes = require "entities.types" KamikazeDrone = Class{__includes = Enemy, init = function(self, x, y, state) Enemy.init(self, x, y, state) self.health = 10 sel...
mit
opentechinstitute/luci
libs/json/luasrc/json.lua
50
13333
--[[ 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 ht...
apache-2.0
uonline/debut
tools/gendeps.lua
1
1069
require "lfs" -- Function by David Kastrup -- Source: http://lua-users.org/wiki/DirTreeIterator function dirtree(dir) assert(dir and dir ~= "", "directory parameter is missing or empty") if string.sub(dir, -1) == "/" then dir=string.sub(dir, 1, -2) end local function yieldtree(dir) for entry in lfs.dir(dir) d...
gpl-3.0
Winless/NPLRuntime
Server/trunk/LuaJIT/src/jit/bcsave.lua
87
18141
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2015 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
gpl-2.0
moodlIMyIl/DEVTSHAKE
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
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/ArmatureAnimation.lua
16
5581
-------------------------------- -- @module ArmatureAnimation -- @extend ProcessBase -- @parent_module ccs -------------------------------- -- -- @function [parent=#ArmatureAnimation] getSpeedScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Play anim...
mit
AliKhodadad/zed-spam
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
UB12/y_r
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
Frenzie/koreader-base
ffi/harfbuzz_coverage.lua
1
91450
-- Generated by https://github.com/ezdiy/unimap/blob/master/gen.lua -- Each row is a sequence of {delta,count} pairs, where -- * `delta` denotes start of next range since the end of the previous one -- * `count` is number of glyphs in range -- For instance set of ranges: -- 0041..005A, 0061..007A, 00AA, 00BA ... --...
agpl-3.0
LuaDist2/oil
lua/loop/debug/Inspector.lua
11
12926
-------------------------------------------------------------------------------- ---------------------- ## ##### ##### ###### ----------------------- ---------------------- ## ## ## ## ## ## ## ----------------------- ---------------------- ## ## ## ## ## ###### --------------------...
mit
IrisStudio/IrisEngine
premake/premake5.lua
1
4606
-- premake5.lua workspace "IrisEditor" configurations { "Debug_Render_Calls", "Debug", "Release", "Final" } platforms { "x32", "x64" } location "../EditorDevEnv" language "C++" filter "configurations:Debug_Render_Calls" defines { "DEBUG", "DEBUG_RENDER_CALLS" , "LUA_REAL_FLOAT"} flags { ...
mit
tinydanbo/Impoverished-Starfighter
entities/player.lua
1
6698
Class = require "lib.hump.class" vector = require "lib.hump.vector" Entity = require "entity" PlayerBullet = require "entities.playerBullet" EntityTypes = require "entities.types" VulcanCannon = require "game.weapons.vulcanCannon" PlasmaCannon = require "game.weapons.plasmaCannon" MissileLauncher = require "game.weapon...
mit
caicloud/ingress
rootfs/etc/nginx/lua/test/util/resolv_conf_test.lua
4
1792
local original_io_open = io.open describe("resolv_conf", function() before_each(function() package.loaded["util.resolv_conf"] = nil io.open = original_io_open end) it("errors when file can not be opened", function() io.open = function(...) return nil, "file does not exist" end assert....
apache-2.0
rhinton/libmarpa-bindings
lua/lexer.lua
2
4498
-- return iterator local _, rex = pcall (require, "rex_pcre") lexer = { } --[[ options tokens token specification table input input string todo: patterns lua pcre matching ft first token lt longest token fat first acceptable token lat longest acceptable token default am...
gpl-3.0
uonline/debut
src/day2/act1/your_cell.room.lua
1
23190
-- Переменные _wants_cocaine = false _wants_answers = true _rat_talk_about_mission = true -- Разговор о делах мага в городе _rat_talk_about_fail = false -- Разговор о поимке мага _rat_talk_about_you = false -- Разговор о тебе _rat_talk_about_tower = false -- Разговор о башне _rat_talk_about_dust = false -- Раз...
gpl-3.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[admin]/admin/client/colorpicker/colorpicker.lua
7
9602
sw, sh = guiGetScreenSize() pickerTable = {} colorPicker = {} colorPicker.__index = colorPicker function openPicker(id, start, title) if id and not pickerTable[id] then pickerTable[id] = colorPicker.create(id, start, title) pickerTable[id]:updateColor() return true end return false end function c...
mit
sartura/packages
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/bmx6.lua
78
1115
#!/usr/bin/lua local json = require "cjson" local function interpret_suffix(rate) local value = string.sub(rate, 1, -2) local suffix = string.sub(rate, -1) if suffix == "K" then return tonumber(value) * 10^3 end if suffix == "M" then return tonumber(value) * 10^6 end if suffix == "G" then return tonumber(va...
gpl-2.0
LuaDist2/oil
lua/oil/corba/giop/Requester.lua
6
16973
-------------------------------------------------------------------------------- ------------------------------ ##### ## ------------------------------ ------------------------------ ## ## # ## ------------------------------ ------------------------------ ## ## ## ## ---------------------------...
mit
ZeroNoFun/Gmod-Aperture-science-laboratories
lua/entities/ent_laser_relay.lua
2
2985
AddCSLuaFile( ) ENT.Base = "gasl_base_ent" ENT.RenderGroup = RENDERGROUP_BOTH ENT.AutomaticFrameAdvance = true function ENT:SpawnFunction( ply, trace, ClassName ) if ( !APERTURESCIENCE.ALLOWING.laser_catcher && !ply:IsSuperAdmin() ) then ply:PrintMessage( HUD_PRINTTALK, "This entity is blocked" ) return end if ( ...
mit
moodlIMyIl/DEVTSHAKE
plugins/helpall.lua
1
8371
--[[ _____ _ _ _ _____ Dev @lIMyIl |_ _|__| |__ / \ | | _| ____| Dev @li_XxX_il | |/ __| '_ \ / _ \ | |/ / _| Dev @h_k_a | |\__ \ | | |/ ___ \| <| |___ Dev @Aram_omar22 |_||___/_| |_/_/ \_\_|\_\_____| Dev @IXX_I_XXI CH > @lTSHAKEl_CH --]] d...
gpl-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/script/framework/extends/UICheckBox.lua
57
1436
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, di...
mit
shadoalzupedy/shadow
plugins/azan.lua
5
3699
--[[ # #ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ #:(( # For More Information ....! # Developer : Aziz < @TH3_GHOST > # our channel: @DevPointTeam # Version: 1.1 #:)) #ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ # ]] do...
gpl-2.0
MonaSolutions/MonaServer
FunctionalTests/www/FunctionalTests/utilTests.lua
7
1222
function printTable(t,...) local args = table.pack(...) table.remove(args,1) io.write(table.unpack(args)) print("{") for k,v in pairs(t) do if type(v) == "table" then if type(k) == "string" then io.write(...) print(k,"=") end printTable(v," ",...) else io.write(...) if type(k) == "...
gpl-3.0
jithumon/Kochu
plugins/help.lua
4
23654
local config = require 'config' local u = require 'utilities' local api = require 'methods' local plugin = {} local function get_helped_string(key) if key == 'start' then return _([[ Hello %s 👋🏼, nice to meet you! I'm Group Butler, the first administration bot using the official Bot API. *I can do a lot of cool...
gpl-2.0
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/batch.lua
5
2073
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- Batch 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 M = {_NAME = 'batch'} -- Whitespace. local ws = token(l.WHITESPACE, l.space^1) -- Comments. local rem = ...
mit
TeleDALAD/m
plugins/stats.lua
81
4126
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
hfjgjfg/amir2
bot/utils.lua
356
14963
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
HEYAHONG/nodemcu-firmware
app/lua53/host/tests/db.lua
7
21900
-- $Id: db.lua,v 1.79 2016/11/07 13:02:34 roberto Exp $ -- See Copyright Notice in file all.lua -- testing debug library local debug = require "debug" local function dostring(s) return assert(load(s))() end print"testing debug library and debug information" do local a=1 end assert(not debug.gethook()) local test...
mit
merlokk/proxmark3
client/scripts/emul2html.lua
27
1676
-- The getopt-functionality is loaded from pm3/getopt.lua -- Have a look there for further details getopt = require('getopt') bin = require('bin') dumplib = require('html_dumplib') example = "script run emul2html -o dumpdata.eml " author = "Martin Holst Swende" usage = "script run htmldump [-i <file>] [-o <file>]" des...
gpl-2.0
Zefiros-Software/ZPM
src/premake-system.lua
1
2491
local function _updateRepo(destination, url, name, branch) local current = os.getcwd() if os.isdir(destination) then printf(" - Updating '%s'", name) os.chdir(destination) if branch then os.executef("git checkout %s", branch) else os.execute("gi...
mit
mana/manaserv
example/scripts/attributes.lua
3
4890
--[[ This file demonstrates how attributes are getting calculated and how they can be linked to each other. See http://doc.manasource.org/attributes.xml for more info. --]] local function recalculate_base_attribute(being, attribute_name) local old_base = being:base_attribute(attribute_name) local new_bas...
gpl-2.0
ncarlson/eiga
examples/immediate_triangle/config.lua
1
1321
-- Copyright (C) 2012 Nicholas Carlson -- -- 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, publi...
mit
opentechinstitute/luci
applications/luci-olsr/luasrc/model/cbi/olsr/olsrdiface.lua
49
6797
--[[ LuCI - Lua Configuration Interface Copyright 2010 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- l...
apache-2.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/colorpicker/colorpicker.lua
4
23644
function table.copy(theTable) local t = {} for k, v in pairs(theTable) do if type(v) == "table" then t[k] = table.copy(theTable) else t[k] = v end end return t end colorPicker = { default = { x = 0, y = 0, width = 200, height = 20, buttonWidth = .38, testWidth = .6, testHeight = 1, rel...
mit
caicloud/ingress
rootfs/etc/nginx/lua/test/certificate_test.lua
4
6268
local certificate = require("certificate") local ssl = require("ngx.ssl") local function read_file(path) local file = assert(io.open(path, "rb")) local content = file:read("*a") file:close() return content end local EXAMPLE_CERT = read_file("rootfs/etc/nginx/lua/test/fixtures/example-com-cert.pem") local DEFA...
apache-2.0
neghabdar/neghabdar
bot/seedbot.lua
1
10265
package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua' ..';.luarocks/share/lua/5.2/?/init.lua' package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so' require("./bot/utils") VERSION = '2' -- This function is called when tg receive a msg function on_msg_receive (msg) if not started then return...
agpl-3.0
DEKHTIARJonathan/BilletterieUTC
badgingServer/Install/swigwin-3.0.7/Examples/lua/owner/runme.lua
2
3263
-- Operator overloading example ---- importing ---- if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example') assert(lib)() else -- lua 5.1 does require('example') end print "ok, let's test Lua's ...
apache-2.0
luigiScarso/luatexjit
source/texk/web2c/luatexdir/luasocket/src/mime.lua
118
2433
----------------------------------------------------------------------------- -- MIME support for the Lua language. -- Author: Diego Nehab -- Conforming to RFCs 2045-2049 -- RCS ID: $Id: mime.lua,v 1.29 2007/06/11 23:44:54 diego Exp $ ----------------------------------------------------------------------------- ------...
gpl-2.0
adamflott/wargus
campaigns/human-tales/level05h_ai.lua
1
9838
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|_...
gpl-2.0
uonline/debut
src/day2/act2/guard_docs.obj.lua
1
2117
guard_docs = obj { nam = 'Документы рекрута'; inv = [[ Ты внимательно рассматриваешь один из листов документа. Имя "Реджинальд Кирсон". Описание внешности местами совпадает с твоей. К счастью для тебя, портретов на документах солдат не делают -- вчитываться в строки текста просто так мало кто будет. ^ В д...
gpl-3.0
ashkanpj/fire
plugins/lyrics.lua
695
2113
do local BASE_LNM_URL = 'http://api.lyricsnmusic.com/songs' local LNM_APIKEY = '1f5ea5cf652d9b2ba5a5118a11dba5' local BASE_LYRICS_URL = 'http://api.chartlyrics.com/apiv1.asmx/SearchLyricDirect' local function getInfo(query) print('Getting info of ' .. query) local url = BASE_LNM_URL..'?api_key='..LNM_APIKEY ...
gpl-2.0
uonline/debut
src/day1/act3/wet_cave/wet_cave_pit.room.lua
1
8786
-- События on_event('totems solved', function() wet_cave_to_afterparty:enable(); objs('wet_cave_pit_room'):del('totem1'); objs('wet_cave_pit_room'):del('totem2'); objs('wet_cave_pit_room'):del('totem3'); objs('wet_cave_pit_room'):del('totem4'); totems:enable(); end) -- Переменные _totem_seq = {}; _totem_done = f...
gpl-3.0
opentechinstitute/luci
modules/admin-full/luasrc/model/cbi/admin_system/admin.lua
79
3356
--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth <steven@midlink.org> Copyright 2011 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
apache-2.0
ncarlson/eiga
runtime/modules/graphics/arraybuffer.lua
1
3935
local ArrayBuffer = {} ArrayBuffer.__index = ArrayBuffer local ffi = require 'ffi' local gl = eiga.alias.gl() local BUFFER_LENGTH = 1024 -- 256 vertices, 4-component vectors local EFFECT_ATTRIBUTE_STRING = { v = "Position", n = "Normal", c = "Color", t = "TexCoord" } local BUFFER_DATA_TYPE = { i = gl.INT...
mit
sumefsp/zile
lib/zz/callbacks.lua
1
2369
-- Callbacks required by Zile. -- -- 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 vers...
gpl-3.0
durandtibo/wsl.resnet.torch
models/resnet101-weldon.lua
1
2654
local nn = require 'nn' require 'spatial-pooling' local paths = require 'paths' local function createModel(opt) if opt.backend == 'cudnn' then require 'cunn' require 'cudnn' end -- load model if opt.netInit == '' then local filename = 'data/pretrained_models/resnet-101.t7' ...
mit
adib1380/antispam
plugins/anti-spam9.lua
17
2433
local NUM_MSG_MAX = 9 -- Max number of messages per TIME_CHECK seconds local TIME_CHECK = 9 local function kick_user(user_id, chat_id) local chat = 'chat#id'..chat_id local user = 'user#id'..user_id chat_del_user(chat, user, function (data, success, result) if success ~= 1 then local text = 'I can\'t k...
gpl-2.0
dan-f/Soundpipe
modules/data/random.lua
4
1048
sptbl["random"] = { files = { module = "random.c", header = "random.h", example = "ex_random.c", }, func = { create = "sp_random_create", destroy = "sp_random_destroy", init = "sp_random_init", compute = "sp_random_compute", }, params = { ...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/ActionEase.lua
9
1607
-------------------------------- -- @module ActionEase -- @extend ActionInterval -- @parent_module cc -------------------------------- -- brief Initializes the action.<br> -- return Return true when the initialization success, otherwise return false. -- @function [parent=#ActionEase] initWithAction -- @param self --...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/tests/lua-tests/src/controller.lua
1
8035
-- avoid memory leak collectgarbage("setpause", 100) collectgarbage("setstepmul", 5000) ---------------- -- run cc.FileUtils:getInstance():addSearchPath("src") CC_USE_DEPRECATED_API = true require "cocos.init" local director = cc.Director:getInstance() local glView = director:getOpenGLView() if nil == glView then...
mit
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/script/framework/transition.lua
57
7512
--[[ Copyright (c) 2011-2014 chukong-inc.com 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, dis...
mit
opentechinstitute/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua
80
3813
--[[ LuCI - Lua Configuration Interface Copyright 2008 Jo-Philipp Wich <xm@subsignal.org> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- l...
apache-2.0
DEKHTIARJonathan/BilletterieUTC
badgingServer/Install/swigwin-3.0.7/Examples/lua/import/runme.lua
4
2026
# Test various properties of classes defined in separate modules print("Testing the %import directive") if string.sub(_VERSION,1,7)=='Lua 5.0' then -- lua5.0 doesnt have a nice way to do this function loadit(a) lib=loadlib(a..'.dll','luaopen_'..a) or loadlib(a..'.so','luaopen_'..a) assert(lib)() end loadit('b...
apache-2.0
cyanskies/OpenRA
mods/cnc/maps/nod07b/nod07b-AI.lua
5
5839
AttackPaths = { { AttackPath1 }, { AttackPath2 } } GDIBase = { GDICYard, GDIPyle, GDIWeap, GDIHQ, GDIProc, GDINuke1, GDINuke2, GDINuke3, GDIBuilding1, GDIBuilding2, GDIBuilding3, GDIBuilding4, GDIBuilding5, GDIBuilding6, GDIBuilding7, GDIBuilding8, GDIBuilding9 } InfantryAttackGroup = { } InfantryGroupSize = 4 Infantry...
gpl-3.0
lizh06/premake-core
tests/base/test_path.lua
5
15353
-- -- tests/base/test_path.lua -- Automated test suite for the action list. -- Copyright (c) 2008-2013 Jason Perkins and the Premake project -- local suite = test.declare("path") -- -- path.getabsolute() tests -- function suite.getabsolute_worksWithMissingSubdirs() local expected = os.getcwd() .. "/a/b/c" tes...
bsd-3-clause
FreeScienceCommunity/PLPlot
examples/lua/x05.lua
1
1491
--[[ Histogram demo. Copyright (C) 2008 Werner Smekal This file is part of PLplot. PLplot is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation either version 2 of the License, or (at your option)...
lgpl-2.1
Winless/NPLRuntime
Client/trunk/externals/bullet3/Demos/SerializeDemo/AMD/premake4.lua
19
1075
hasCL = findOpenCL_AMD() if (hasCL) then project "AppOpenCLClothDemo_AMD" defines { "USE_AMD_OPENCL","CL_PLATFORM_AMD"} initOpenCL_AMD() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "BulletCollision", "BulletDynamics", ...
gpl-2.0
mangostaniko/cg15
external/bullet/bullet-2.82-r2704/Demos/SerializeDemo/AMD/premake4.lua
19
1075
hasCL = findOpenCL_AMD() if (hasCL) then project "AppOpenCLClothDemo_AMD" defines { "USE_AMD_OPENCL","CL_PLATFORM_AMD"} initOpenCL_AMD() language "C++" kind "ConsoleApp" targetdir "../../.." libdirs {"../../../Glut"} links { "LinearMath", "BulletCollision", "BulletDynamics", ...
apache-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/EaseCubicActionInOut.lua
9
1432
-------------------------------- -- @module EaseCubicActionInOut -- @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 EaseCubicActionInOut action. If creation failed...
mit
mobarski/sandbox
scite/old/wscite_zzz/lexers/notused/html.lua
2
6943
-- Copyright 2006-2017 Mitchell mitchell.att.foicica.com. See LICENSE. -- HTML LPeg lexer. local l = require('lexer') local token, word_match = l.token, l.word_match local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V local M = {_NAME = 'html'} case_insensitive_tags = true -- Whitespace. local ws = token(l.WHITESPACE...
mit
weizhenwei/wireshark
test/lua/verify_globals.lua
36
3492
-- verify_globals.lua -- ignore things that change on different machines or every release -- the following items still have to exist, but their values don't have to match local filter = { -- differences by machine "DATA_DIR", "USER_DIR", "package.cpath", "package.path", "package.loaded", "r...
gpl-2.0
tianxiawuzhei/cocos-quick-cpp
publibs/cocos2dx/cocos/scripting/lua-bindings/auto/api/Application.lua
4
1903
-------------------------------- -- @module Application -- @parent_module cc -------------------------------- -- brief Get target platform -- @function [parent=#Application] getTargetPlatform -- @param self -- @return int#int ret (return value: int) -------------------------------- -- brief Get current lang...
mit
ludamad/hashkat
src/dependencies/lua-repl/repl/plugins/autoreturn.lua
2
1364
-- Copyright (c) 2011-2013 Rob Hoelz <rob@hoelz.ro> -- -- 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,...
gpl-3.0
meirfaraj/tiproject
finance/src/finance/oblig/func/obligation.lua
1
1748
require("math/math") Obligation={} function Obligation.FluxInFine(self,T,r,Ve,Vn ) if tiNspire.toNumber(T)~=nil then local res="[0,-"..tostring(Ve)..",-"..tostring(Ve); for i = 1,T do local calc = tostring(r).."*"..tostring(Vn) if i==tiNspire.toNumber(T) then res = ...
apache-2.0
rderimay/Focus-Points
focuspoints.lrdevplugin/ExifUtils.lua
2
4158
--[[ Copyright 2016 Whizzbang 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 Unless required by applicable law or agreed to in writin...
apache-2.0
HEYAHONG/nodemcu-firmware
lua_examples/lfs/lfs_fragments.lua
7
2656
-- First time image boot to discover the confuration -- -- If you want to use absolute address LFS load or SPIFFS imaging, then boot the -- image for the first time bare, that is without either LFS or SPIFFS preloaded -- then enter the following commands interactively through the UART: -- do local sa, ma, fa = node.f...
mit
opentechinstitute/luci
applications/luci-asterisk/luasrc/model/cbi/asterisk-mod-pbx.lua
80
2136
--[[ 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
DEKHTIARJonathan/BilletterieUTC
badgingServer/Install/swigwin-3.0.7/Examples/test-suite/lua/global_namespace_runme.lua
6
1464
require("import") -- the import fn import("global_namespace") -- import lib into global gn=global_namespace --alias -- catching undefined variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2) end}) ...
apache-2.0
Mahdi2001bk/TELEHACK
plugins/inrealm.lua
18
24954
-- 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_...
gpl-2.0
mrmhxx82/JokerBot
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ioiasff/khp
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
dani-sj/DANYALBOT
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
aqasaeed/spartacus
libs/mimetype.lua
3662
2922
-- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types do local mimetype = {} -- TODO: Add more? local types = { ["text/html"] = "html", ["text/css"] = "css", ["text/xml"] = "xml", ["image/gif"] = "gif", ["image/jpeg"] = "jpg", ["application/x-javascript"] = "js", ["application/atom...
gpl-2.0
ctfuckme/asasasas
bot/utils.lua
12
15072
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
LuaDist2/tuple
specs/tests.lua
2
5206
require 'luacov' local tuple = require 'tuple' context('Creating tuples', function() test('Instantiates new tuples with () call', function() local a = tuple(1,2) assert_equal(#a, 2) assert_equal(a[1],1) assert_equal(a[2],2) end) test('Empty parens returns 0-tuples', function() local a =...
mit
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gus/admin.lua
3
10264
function adsay(player, c, ...) -- Admin chat if not (hasObjectPermissionTo(player, "function.banPlayer", false)) then return end local message = table.concat({...}, ' ') for k, v in ipairs (getElementsByType("player")) do if hasObjectPermissionTo ( v, "general.adminpanel", false ) then outputChatBox ...
mit
satanevil/copy-creed
libs/JSON.lua
3765
34843
-- -*- coding: utf-8 -*- -- -- Simple JSON encoding and decoding in pure Lua. -- -- Copyright 2010-2014 Jeffrey Friedl -- http://regex.info/blog/ -- -- Latest version: http://regex.info/blog/lua/json -- -- This code is released under a Creative Commons CC-BY "Attribution" License: -- http://creativecommons.org/licenses...
gpl-2.0
MHBauer/kubernetes
test/images/echoserver/template.lua
195
17200
-- vendored from https://raw.githubusercontent.com/bungle/lua-resty-template/1f9a5c24fc7572dbf5be0b9f8168cc3984b03d24/lib/resty/template.lua -- only modification: remove / from HTML_ENTITIES to not escape it, and fix the appropriate regex. --[[ Copyright (c) 2014 - 2017 Aapo Talvensaari All rights reserved. Redistribu...
apache-2.0
meirfaraj/tiproject
finance/src/ui/math/combinatoire/partitionsnord.lua
1
3033
-------------------------------------------------------------------------- -- Partition non ordonnée -- -------------------------------------------------------------------------- PartitionNonOrd = Combinatoire(PARTITION_NON_ORD_TITLE_ID,PARTITION_NON_ORD_HEADER_ID) ...
apache-2.0
MmxBoy/newbot
plugins/id.lua
1
5732
--[[ Print user identification/informations by replying their post or by providing their username or print_name. !id <text> is the least reliable because it will scan trough all of members and print all member with <text> in their print_name. chat_info can be displayed on group, send it into PM, or save as file then...
gpl-2.0
FreeScienceCommunity/PLPlot
examples/lua/x19.lua
1
8542
--[[ Illustrates backdrop plotting of world, US maps. Contributed by Wesley Ebisuzaki. Copyright (C) 2008 Werner Smekal This file is part of PLplot. PLplot is free software you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Softwar...
lgpl-2.1
cyanskies/OpenRA
mods/cnc/maps/nod09/nod09.lua
6
10270
if Map.LobbyOption("difficulty") == "easy" then Rambo = "rmbo.easy" elseif Map.LobbyOption("difficulty") == "hard" then Rambo = "rmbo.hard" else Rambo = "rmbo" end WaypointGroup1 = { waypoint0, waypoint3, waypoint2, waypoint4, waypoint5, waypoint7 } WaypointGroup2 = { waypoint0, waypoint3, waypoint2, waypoint4, way...
gpl-3.0
opentechinstitute/luci
applications/luci-ltqtapi/luasrc/controller/ltqtapi.lua
76
1274
--[[ LuCI - Lua Configuration Interface Copyright 2019 John Crispin <blogic@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
uonline/debut
src/day2/act5/stage5/adviser.room.lua
1
12477
-- Локация tower_stage5_adviser_room = room { nam = 'Комната советника'; dsc = [[ После пары вращений ключом в замке тебе удаётся совладать с дверью. Осторожно приоткрыв её, ты протискиваешься внутрь. ^ Эта комната заметно уступает в убранстве предыдущей, но выглядит не менее приятно. Здесь так же есть кров...
gpl-3.0
opentechinstitute/luci
modules/base/luasrc/tools/status.lua
49
5227
--[[ 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 ]]-- module(...
apache-2.0
JarnoVgr/Mr.Green-MTA-Resources
resources/[gameplay]/gcshop/items/paintjob/paintjob_s.lua
3
7778
----------------- -- Items stuff -- ----------------- local ID = 4 local g_CustomPlayers = {} function loadGCCustomPaintjob ( player, bool, settings ) if bool then g_CustomPlayers[player] = player sendPaintjobs ( {player}, root ) else g_CustomPlayers[player] = nil end end ---------------------------------...
mit
wartman4404/everybody-draw
src/test/unibrushes/fail-unibrush/neko.lua
3
7204
local kStop = 0 -- Jare is cleaning. local kJare = 1 local kKaki = 2 -- Kaki is scratching the ear. local kAkubi = 3 -- Akubi is yawning. local kSleep = 4 local kAwake = 5 local kMoveUp = 6 local kMoveDown = 7 local kMoveLeft = 8 local kMoveRight = 9 local kMoveUpLeft = 10 local kMoveUpRight = 11 local kMoveDownLeft = ...
apache-2.0
cyberz-eu/octopus
extensions/core/src/utf8data.lua
1
33548
local utf8_lc_uc = { ["a"] = "A", ["b"] = "B", ["c"] = "C", ["d"] = "D", ["e"] = "E", ["f"] = "F", ["g"] = "G", ["h"] = "H", ["i"] = "I", ["j"] = "J", ["k"] = "K", ["l"] = "L", ["m"] = "M", ["n"] = "N", ["o"] = "O", ["p"] = "P", ["q"] = "Q", ["r"] = "R", ["s"] = "S", ["t"] = "T",...
bsd-2-clause
Winless/NPLRuntime
Server/trunk/LuaJIT/src/host/genminilua.lua
127
11962
---------------------------------------------------------------------------- -- Lua script to generate a customized, minified version of Lua. -- The resulting 'minilua' is used for the build process of LuaJIT. ---------------------------------------------------------------------------- -- Copyright (C) 2005-2015 Mike P...
gpl-2.0
Arashbrsh/a1wez-
plugins/isup.lua
741
3095
do local socket = require("socket") local cronned = load_from_file('data/isup.lua') local function save_cron(msg, url, delete) local origin = get_receiver(msg) if not cronned[origin] then cronned[origin] = {} end if not delete then table.insert(cronned[origin], url) else for k,v in pairs(cronned[...
gpl-2.0