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
MaxG87/awesome
lib/awful/layout/suit/spiral.lua
14
2147
--------------------------------------------------------------------------- --- Dwindle and spiral layouts -- -- @author Uli Schlachter <psychon@znc.in> -- @copyright 2009 Uli Schlachter -- @copyright 2008 Julien Danjou -- @release @AWESOME_VERSION@ -- -- @module awful.layout.suit.spiral -------------------------...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/artisan/engineeringITinkering/aDroidBattery.lua
1
3761
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/npcs/valarian/valarianHenchman.lua
1
4564
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
BakaBBQ/siki.lua
flagLists.lua
1
3013
flagListFrame = 0 flagListFrame = loveframes.Create("frame") flagListFrame:SetName("Flag Lists") flagListFrame:SetSize(love.graphics.getWidth() / 4 * 3 / 2, love.graphics.getHeight() / 3) flagListFrame:SetPos(love.graphics.getWidth() / 4 + love.graphics.getWidth() / 4 * 3 / 2, love.graphics.getHeight() - love.graphics....
mit
gabrielPeart/keys
VSCOKeys.lrdevplugin/Info.lua
11
1580
--[[---------------------------------------------------------------------------- VSCO Keys for Adobe Lightroom Copyright (C) 2015 Visual Supply Company Licensed under GNU GPLv2 (or any later version). This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
gpl-2.0
Xeltor/ovale
dist/Health.lua
1
13564
local __exports = LibStub:NewLibrary("ovale/Health", 80300) if not __exports then return end local __class = LibStub:GetLibrary("tslib").newClass local aceEvent = LibStub:GetLibrary("AceEvent-3.0", true) local sub = string.sub local tonumber = tonumber local wipe = wipe local UnitHealth = UnitHealth local UnitHealthMax...
mit
TheAnswer/FirstTest
bin/scripts/slashcommands/generic/lfg.lua
1
2409
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/EventAssetsManagerEx.lua
1
1546
-------------------------------- -- @module EventAssetsManagerEx -- @extend EventCustom -- @parent_module cc -------------------------------- -- -- @function [parent=#EventAssetsManagerEx] getAssetsManagerEx -- @param self -- @return AssetsManagerEx#AssetsManagerEx ret (return value: cc.AssetsManagerEx) ...
apache-2.0
mazlixek/Elevators
enemy.lua
1
7902
local physics = require "physics" local player = require "player" local playerYtop = display.newText( "SCORE: ", 0+display.screenOriginX+10, 10+display.screenOriginY+30, native.systemFont, 16) local enemyY = display.newText( "SCORE: ", 0+display.screenOriginX+40, 10+display.screenOriginY+30, native.systemFont, 16)...
gpl-3.0
thkhxm/TGame
LuaEncoder/luajit/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 -------------------------------------------------------------------------...
apache-2.0
Racinettee/reef
source/LuaJIT-2.0.4/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 -------------------------------------------------------------------------...
mit
TheAnswer/FirstTest
bin/scripts/items/objects/clothing/bodysuits/main.lua
1
3003
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
nullifye/tg-bot-pi
tg_bot/plugins/webshot.lua
1
1461
return function(msg) cmd = "pi:webshot" if args[1]==cmd then if #args == 2 then if not http_code(args[2], "200 301 302") then send_msg (target, "("..cmd..") '"..args[2].."' is not available", ok_cb, false) return true end send_msg (target, "("..cmd..") processing... m...
apache-2.0
badboyam/redstorm
plugins/banhammer.lua
106
11894
local function pre_process(msg) -- SERVICE MESSAGE if msg.action and msg.action.type then local action = msg.action.type -- Check if banned user joins chat by link if action == 'chat_add_user_link' then local user_id = msg.from.id print('Checking invited user '..user_id) local banned ...
gpl-2.0
Andrettin/Wyrmsun
scripts/world_earth_tiles_germany.lua
1
2784
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
bgould/thrift
test/lua/test_basic_server.lua
30
3451
-- 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 may n...
apache-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/Repeat.lua
1
2113
-------------------------------- -- @module Repeat -- @extend ActionInterval -- @parent_module cc -------------------------------- -- Sets the inner action.<br> -- param action The inner action. -- @function [parent=#Repeat] setInnerAction -- @param self -- @param #cc.FiniteTimeAction action -- @return ...
apache-2.0
Xeltor/ovale
libs/AceAddon-3.0/AceAddon-3.0.lua
66
25788
--- **AceAddon-3.0** provides a template for creating addon objects. -- It'll provide you with a set of callback functions that allow you to simplify the loading -- process of your addon.\\ -- Callbacks provided are:\\ -- * **OnInitialize**, which is called directly after the addon is fully loaded. -- * **OnEnable** wh...
mit
TheAnswer/FirstTest
bin/scripts/items/bluefrog/wookieGarb.lua
1
2495
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
martin-damien/babel
locales/nl_NL.lua
1
1547
LOCALE = { formats = { currency = { symbol = "€", name = "Euro", short_name = "EUR", decimal_symbol = ",", thousand_separator = ".", fract_digits = 2, positive_symbol = "", negative_symbol = "-", p...
mit
PAPAGENO-devels/papageno
test/benchmarks/Lua/lua-regression-test/grim/dlg_eva.lua
1
11700
CheckFirstTime("dlg_eva.lua") ev1 = Dialog:create() ev1.focus = ha.eva_obj ev1.intro = function(arg1, arg2) -- line 7 ev1.node = "first_eva_node" ha:current_setup(ha_evaws) stop_script(ha.elevator_door_timer) stop_script(ha.elevator_open_too_long) manny:turn_toward_entity(ha.eva_obj.obj_x, ha.eva_ob...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/cyborgBurstRun.lua
1
2550
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_dual_p228/shared.lua
1
4435
--/*--------------------------------- --Created with buu342s Swep Creator ---------------------------------*/ --Duby: Created by Old Bill and payed for by Duby for Mr.Green ZS. --Duby: If you're going to take this weapon, then you need to give credit to myself and OldBill for our time and money. --Thanks, Duby...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/2H/cleaver.lua
1
2466
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_swissarmyknife.lua
1
2209
AddCSLuaFile() if CLIENT then SWEP.PrintName = "Knife" SWEP.Description = "Deals double damage to the back." SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 60 end SWEP.Base = "weapon_zs_basemelee" SWEP.HoldType = "knife" SWEP.ViewModel = "models/weapons/cstrike/c_knife_t.mdl" SWEP.WorldModel = "models/weapons/...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/items/objects/deed/installationdeeds/generators/main.lua
1
2313
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versi...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/weapon/melee/polearm/objects.lua
1
20439
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/lair/fambaa/objects.lua
1
4654
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
dani-sj/xy
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
moltafet35/seeck
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
m13790115/mahdi
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
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/pistols/srCombatPistol.lua
1
2465
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
Shayan123456/botttttt9
plugins/weather.lua
274
1531
do local BASE_URL = "http://api.openweathermap.org/data/2.5/weather" local function get_weather(location) print("Finding weather in ", location) location = string.gsub(location," ","+") local url = BASE_URL url = url..'?q='..location url = url..'&units=metric' url = url..'&appid=bd82977b86bf27fb59a04b61b6...
gpl-2.0
ArashFaceBook/Virus
libs/redis.lua
566
1214
local Redis = require 'redis' local FakeRedis = require 'fakeredis' local params = { host = os.getenv('REDIS_HOST') or '127.0.0.1', port = tonumber(os.getenv('REDIS_PORT') or 6379) } local database = os.getenv('REDIS_DB') local password = os.getenv('REDIS_PASSWORD') -- Overwrite HGETALL Redis.commands.hgetall = ...
gpl-2.0
Lunovox/minetest_nibirus_game
mods/base/flowers/mapgen.lua
8
3685
-- -- Mgv6 -- local function register_mgv6_flower(name) minetest.register_decoration({ deco_type = "simple", place_on = {"default:dirt_with_grass"}, sidelen = 16, noise_params = { offset = 0, scale = 0.006, spread = {x = 100, y = 100, z = 100}, seed = 436, octaves = 3, persist = 0.6 }, y...
agpl-3.0
shahabsaf1/test
plugins/plugins.lua
1
6075
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
Andrettin/Wyrmsun
scripts/civilizations/frankish/icons.lua
1
6178
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
mkwia/jc2atc
scripts/fuel/client/finite_fuel_vehicle.lua
1
1466
class "FiniteFuelVehicle" function FiniteFuelVehicle:__init(vehicle, fuel) self.vehicle = vehicle self.vehicleGasType = self:VehicleGasType() self.fuel = fuel self.tankSize = self:TankSize() local x = nil if self.fuel == nil then x = math.random(100) end if x ~= nil then if x >= 75 then self.fuel = math....
mit
m13790115/mahdi
plugins/google.lua
336
1323
do local function googlethat(query) local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&&rsz=5&' local parameters = 'q='..(URL.escape(query) or '') -- Do the request local res, code = https.request(url..parameters) if code ~=200 then return nil end loca...
gpl-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/PhysicsJointGear.lua
1
1786
-------------------------------- -- @module PhysicsJointGear -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- Set the ratio. -- @function [parent=#PhysicsJointGear] setRatio -- @param self -- @param #float ratchet -- @return PhysicsJointGear#PhysicsJointGear self (return v...
apache-2.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/EaseElasticIn.lua
1
1041
-------------------------------- -- @module EaseElasticIn -- @extend EaseElastic -- @parent_module cc -------------------------------- -- @overload self, cc.ActionInterval -- @overload self, cc.ActionInterval, float -- @function [parent=#EaseElasticIn] create -- @param self -- @param #cc....
apache-2.0
wincent/wincent
aspects/nvim/files/.config/nvim/lua/wincent/snippets/common/typescript.lua
1
1590
local luasnip = require('luasnip') local fmt = require('luasnip.extras.fmt').fmt local docblock = require('wincent.snippets.common.docblock') local d = luasnip.dynamic_node local i = luasnip.insert_node local s = luasnip.snippet local sn = luasnip.snippet_node -- Snippets common to JS and TS. local snippets = { -- ...
unlicense
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/entities/status_chemzombieambience/cl_init.lua
1
1620
include("shared.lua") ENT.RenderGroup = RENDERGROUP_TRANSLUCENT ENT.NextEmit = 0 function ENT:Initialize() self:DrawShadow(false) self:SetRenderBounds(Vector(-40, -40, -18), Vector(40, 40, 90)) self.AmbientSound = CreateSound(self, "npc/zombie_poison/pz_breathe_loop1.wav") self.AmbientSound:PlayEx(0....
gpl-2.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/tatooine/npcs/valarian/valarianThief.lua
1
4554
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/pistols/cdefPistol.lua
1
2409
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
xboot/xboot
examples/graphics/dragme/main.lua
2
2041
local function onMouseDown(self, e) if self:hitTestPoint(e.x, e.y) then self.touchid = -1 self.x0 = e.x self.y0 = e.y e.stop = true end end local function onMouseMove(self, e) if self.touchid == -1 then local x1, y1 = self:globalToLocal(self.x0, self.y0) local x2, y2 = self:globalToLocal(e.x...
mit
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/aim.lua
1
2510
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/draft_schematic/objects.lua
54
2058
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/loot/objects.lua
54
2058
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/dathomir/creatures/caveGapingSpiderQueen.lua
1
4771
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/Menu.lua
1
2751
-------------------------------- -- @module Menu -- @extend Layer -- @parent_module cc -------------------------------- -- Set whether the menu is visible.<br> -- The default value is true, a menu is default to visible.<br> -- param value true if menu is enable, false if menu is disable. -- @function [paren...
apache-2.0
Hammerspoon/hammerspoon
extensions/application/application.lua
2
24333
--- === hs.application === --- --- Manipulate running applications local application = require("hs.libapplication") application.watcher = require("hs.libapplicationwatcher") local timer = require "hs.timer" local settings = require "hs.settings" local USERDATA_TAG = "hs.application" local objectMT = hs.getObjectM...
mit
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIBasics/ithorianFrilledJacket.lua
1
4333
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/pubam/pubamScout.lua
1
4566
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
Konfess/gcode_4
Assets/Scripts/Events.lua
44
2298
--======================================================================== -- Events.lua : Defines event handler delegate functions for events -- -- Part of the GameCode4 Application -- -- GameCode4 is the sample application that encapsulates much of the source code -- discussed in "Game Coding Complete - 4th Edi...
lgpl-3.0
yav/language-lua
lua-5.3.1-tests/verybig.lua
7
3671
-- $Id: verybig.lua,v 1.24 2014/12/26 17:20:53 roberto Exp $ print "testing RK" -- testing opcodes with RK arguments larger than K limit local function foo () local dummy = { -- fill first 256 entries in table of constants 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/volleyFire.lua
1
2581
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/TransitionFadeTR.lua
1
1491
-------------------------------- -- @module TransitionFadeTR -- @extend TransitionScene,TransitionEaseScene -- @parent_module cc -------------------------------- -- -- @function [parent=#TransitionFadeTR] easeActionWithAction -- @param self -- @param #cc.ActionInterval action -- @return ActionInterval#Ac...
apache-2.0
TheAnswer/FirstTest
bin/scripts/object/tangible/ship/components/weapon/objects.lua
1
202993
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
RockySeven3161/Unknown
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
shahabsaf1/test
plugins/vote.lua
615
2128
do local _file_votes = './data/votes.lua' function read_file_votes () local f = io.open(_file_votes, "r+") if f == nil then print ('Created voting file '.._file_votes) serialize_to_file({}, _file_votes) else print ('Values loaded: '.._file_votes) f:close() end return loadfile (_file_votes)()...
gpl-2.0
BakaBBQ/siki.lua
love-frames/objects/menu.lua
15
7654
--[[------------------------------------------------ -- Love Frames - A GUI library for LOVE -- -- Copyright (c) 2012-2014 Kenny Shields -- --]]------------------------------------------------ -- get the current require path local path = string.sub(..., 1, string.len(...) - string.len(".objects.menu")) local lovefra...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/npcs/imperial/imperialCivilPatrolman.lua
1
4771
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
chrisdugne/ludum-dare-36
src/libs/Underscore.lua
1
1317
-------------------------------------------------------------------------------- --- -- Picked up Underscore tools from : -- https://github.com/mirven/underscore.lua/blob/master/lib/underscore.lua -- -- Applied some modifications for Uralys -- ----------------------------------------------------------------------------...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/creatures/objects/endor/npcs/gundula/gundulaCub.lua
1
4547
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
yav/language-lua
lua-5.3.1-tests/nextvar.lua
4
13790
-- $Id: nextvar.lua,v 1.77 2015/04/06 21:12:51 roberto Exp $ print('testing tables, next, and for') local a = {} -- make sure table has lots of space in hash part for i=1,100 do a[i.."+"] = true end for i=1,100 do a[i.."+"] = nil end -- fill hash part with numeric indices testing size operator for i=1,100 do a[i] ...
bsd-3-clause
TheAnswer/FirstTest
bin/scripts/items/objects/weapons/polearm/nightsisterLance.lua
1
2392
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versi...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/armorsmith/personalArmorIiiUbese/advancedPaddedArmorSegment.lua
1
4859
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/deed/turret_deed/objects.lua
1
5991
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/object/tangible/deed/faction_perk/turret/objects.lua
1
12297
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later ve...
lgpl-3.0
mabruckner/automation
projector_lights_off/main.lua
2
1454
high = gpio.HIGH low = gpio.LOW pins = {false,false,false,false,false} for i=0,table.getn(pins) do gpio.mode(i,gpio.OUTPUT); end srv = net.createServer(net.TCP, 30) thing = gpio.HIGH srv:listen(80,function(conn) conn:on('receive', function(conn,payload) print(payload) q = string.match(payload,"...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/dantooine/npcs/kunga/kungaHarvester.lua
1
4867
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/slashcommands/generic/setWaypointActiveStatus.lua
1
2489
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/modtools/reaction-trigger-transition.lua
2
4748
-- help transition from autoSyndrome -- author expwnent --[====[ modtools/reaction-trigger-transition ==================================== Prints useful things to the console and a file to help modders transition from ``autoSyndrome`` to `modtools/reaction-trigger`. This script is basically an apology for br...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/talus/npcs/fedDub/fedDubCommander.lua
1
4571
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
javierojan/copia
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
dani-sj/danyal01
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
praveenjha527/Algorithm-Implementations
Factorial/Lua/Yonaba/factorial_test.lua
27
1336
-- Tests for factorial.lua local fact = require 'factorial' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end loca...
mit
Andrettin/Wyrmsun
scripts/civilizations/magyar/factions.lua
1
1420
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/noviceTailor/ribbedShirt.lua
1
3789
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
Lunovox/minetest_nibirus_game
mods/add/modify_coal/init.lua
1
1539
local recipes = {"default:tree", "default:jungletree", "watershed:pinetree", "watershed:acaciatree"} --Materiais q deve ser queimados --Faz carvao queimando lenhas!!!! minetest.register_craftitem(":default:coal_lump", { description = "Pepita de Carvao", inventory_image = "default_coal_lump.png", liquids_pointable ...
agpl-3.0
TheAnswer/FirstTest
bin/scripts/crafting/objects/draftschematics/tailor/casualWearIvComplexClothing/shortSkirt.lua
1
4543
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
Andrettin/Wyrmsun
scripts/languages/slavic/czech.lua
1
2864
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
Andrettin/Wyrmsun
scripts/world_earth_tiles_scandinavia.lua
1
2976
-- _________ __ __ -- / _____// |_____________ _/ |______ ____ __ __ ______ -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//...
gpl-2.0
yobiya/tdd_game_sample
cross/cocos2d/external/lua/luajit/src/src/jit/bcsave.lua
78
18123
---------------------------------------------------------------------------- -- LuaJIT module to save/list bytecode. -- -- Copyright (C) 2005-2013 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h -------------------------------------------------------------------------...
mit
TheAnswer/FirstTest
bin/scripts/slashcommands/skills/healStates.lua
1
2560
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
lgpl-3.0
Xeltor/ovale
dist/spellhelpers/shaman_restoration_helper.lua
1
3839
local __exports = LibStub:GetLibrary("ovale/scripts/ovale_shaman") if not __exports then return end __exports.registerShamanRestorationHelper = function(OvaleScripts) do local name = "SHAWMUNRESTOhelp" local desc = "[Xel][7.x] Spellhelper: Restoration" local code = [[ AddIcon { # Remove a line when you have its col...
mit
TheAnswer/FirstTest
bin/scripts/sceneobjects/objects/lairs/endor/bordokLair.lua
1
2502
--Copyright (C) 2007 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any lat...
lgpl-3.0
TheAnswer/FirstTest
bin/scripts/creatures/objects/lok/creatures/vespHunter.lua
1
4748
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0
zain211/zain.aliraqe
en-azan.lua
5
3803
--[[ β–€β–„ β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€ β–€β–„ β–„β–€ β–€β–„ β–„β–€ β–€β–„ β–„β–€ BY jOker β–€β–„ β–„β–€ β–€β–„ β–„β–€ BY joker (@fuck_8_you) β–€β–„ β–„β–€ β–€β–„ β–„β–€ JUST WRITED BY joker β–€β–„ β–„β–€ β–€β–„ β–„β–€ broadcast : Ψ§Ω„Ψ§Ψ°Ψ§Ω† β–€β–„ β–„β–€ β–€β–„...
gpl-3.0
frioux/sysdig
userspace/sysdig/chisels/topprocs_file.lua
12
1746
--[[ Copyright (C) 2013-2014 Draios inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without e...
gpl-2.0
JarnoVgr/ZombieSurvival
gamemodes/zombiesurvival/entities/weapons/weapon_zs_sledgehammer.lua
1
1474
AddCSLuaFile() if CLIENT then SWEP.PrintName = "Sledgehammer" SWEP.ViewModelFOV = 75 SWEP.ShowViewModel = false SWEP.ShowWorldModel = true SWEP.VElements = { ["sledge"] = { type = "Model", model = "models/weapons/w_sledgehammer.mdl", bone = "ValveBiped.Bip01_R_Hand", rel = "", pos = Vector(3.144, 1.421, 8.6...
gpl-2.0
sweetbot0/sweetbot
plugin/blockword.lua
1
3066
--[[ β–€β–„ β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€β–„β–„β–€β–€ β–€β–„ β–„β–€ β–€β–„ β–„β–€ β–€β–„ β–„β–€ BY SAJJAD NOORI β–€β–„ β–„β–€ β–€β–„ β–„β–€ BY SAJAD NOORI (@SAJJADNOORI) β–€β–„ β–„β–€ β–€β–„ β–„β–€ JUST WRITED BY SAJJAD NOORI β–€β–„ β–„β–€ β–€β–„ β–„β–€ block word : Ω…Ω†ΨΉ ΩƒΩ„Ω…Ψ§Ψͺ β–€β–„ β–„β–€ β–€β–„β–€...
gpl-3.0
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/lua_cocos2dx_auto_api.lua
1
42539
-------------------------------- -- @module cc -------------------------------------------------------- -- the cc Ref -- @field [parent=#cc] Ref#Ref Ref preloaded module -------------------------------------------------------- -- the cc Console -- @field [parent=#cc] Console#Console Console preloaded modul...
apache-2.0
weiDDD/WSSParticleSystem
cocos2d/external/lua/luajit/src/src/jit/dump.lua
1
20208
---------------------------------------------------------------------------- -- LuaJIT compiler dump module. -- -- Copyright (C) 2005-2014 Mike Pall. All rights reserved. -- Released under the MIT license. See Copyright Notice in luajit.h ----------------------------------------------------------------------------...
apache-2.0
Modified-MW-DF/modified-MDF
MWDF Project/Dwarf Fortress/hack/scripts/masterwork/gui/detailed-unit.lua
2
21949
local gui = require 'gui' local dialog = require 'gui.dialogs' local widgets =require 'gui.widgets' local guiScript = require 'gui.script' local utils = require 'utils' local split = utils.split_string checkclass = true function center(str, length) local string1 = str local string2 = string.format("%"..t...
mit
weiDDD/WSSParticleSystem
cocos2d/cocos/scripting/lua-bindings/auto/api/ControlPotentiometer.lua
1
6670
-------------------------------- -- @module ControlPotentiometer -- @extend Control -- @parent_module cc -------------------------------- -- -- @function [parent=#ControlPotentiometer] setPreviousLocation -- @param self -- @param #vec2_table var -- @return ControlPotentiometer#ControlPotentiometer self (...
apache-2.0
vgire/nn
Dropout.lua
21
1406
local Dropout, Parent = torch.class('nn.Dropout', 'nn.Module') function Dropout:__init(p,v1,inplace) Parent.__init(self) self.p = p or 0.5 self.train = true self.inplace = inplace -- version 2 scales output during training instead of evaluation self.v2 = not v1 if self.p >= 1 or self.p < 0 then ...
bsd-3-clause
praveenjha527/Algorithm-Implementations
Burrows_Wheeler_Transform/Lua/Yonaba/bwt_test.lua
26
1111
-- Tests for bwt.lua local bwt = require 'bwt' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pass + 1 end local status = ok...
mit
TheAnswer/FirstTest
bin/scripts/creatures/objects/rori/creatures/mutantBarkMiteHatchling.lua
1
4723
--Copyright (C) 2008 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later versio...
lgpl-3.0