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 |
|---|---|---|---|---|---|
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/npcs/rebel/rebelTrooperAttacks.lua | 1 | 3595 | --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 |
miralireza2/xili_bot | plugins/youtube.lua | 644 | 1722 | do
local google_config = load_from_file('data/google.lua')
local function httpsRequest(url)
print(url)
local res,code = https.request(url)
if code ~= 200 then return nil end
return json:decode(res)
end
function get_yt_data (yt_code)
local url = 'https://www.googleapis.com/yo... | gpl-2.0 |
MaxG87/awesome | lib/wibox/widget/base.lua | 2 | 5327 | ---------------------------------------------------------------------------
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @release @AWESOME_VERSION@
-- @classmod wibox.widget.base
---------------------------------------------------------------------------
local debug = require("gears.debug")
local obj... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/tatooine/npcs/tusken/tuskenChief.lua | 1 | 4732 | --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/creatures/objects/yavin4/creatures/mawgaxYouth.lua | 1 | 4640 | --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/crafting/objects/draftschematics/armorsmith/personalArmorIvPadded/kashyyykianBlackMountainLeftBracer.lua | 1 | 5249 | --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/lok/creatures/crazedGurkDestroyer.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 |
Andrettin/Wyrmsun | scripts/languages/celtic/middle_welsh_loanwords.lua | 1 | 2340 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
gfax/vale | src/services/util.lua | 1 | 1066 | --- Util service
-- Miscellaneous, general-purpose helper functions
local copy
copy = function(orig)
-- Primitive types: number, string, boolean, etc
if type(orig) ~= 'table' then
return orig
end
local new_table = {}
for orig_key, orig_value in next, orig, nil do
new_table[copy(orig_key)] = copy(... | lgpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/jedi/darkJediSentinel.lua | 1 | 5033 | --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/crafting/objects/draftschematics/armorsmith/personalArmorIvPadded/advancedUbeseArmorSegment.lua | 1 | 4733 | --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 |
raffomania/MAVE | src/systems/pressedevent/mainKeySystem.lua | 1 | 1531 | MainKeySystem = class("MainKeySystem", System)
function MainKeySystem.fireEvent(self, event)
-- Playercutie Jump
if event.key == "p" or event.key == "escape" then
local canvas = love.graphics.newScreenshot()
local screenshot = love.graphics.newImage(canvas)
stack:push(PauseState(screens... | gpl-3.0 |
xboot/xboot | examples/graphics/analogclock2/AnalogClock.lua | 1 | 1501 | local M = Class(DisplayObject)
local os = os
function M:init()
self.super:init()
local face = assets:loadDisplay("clock-face.png")
local width, height = face:getSize()
local hour = assets:loadDisplay("clock-hour-hand.png")
hour:setPosition(width / 2, height /2)
:setAnchor(0.5, 0.5)
:setRotation... | mit |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/zs_miniturret/shared.lua | 1 | 11201 | AddCSLuaFile()
if SERVER then
util.AddNetworkString( "SendMiniTurret" )
end
ENT.Type = "anim"
ENT.RenderGroup = RENDERGROUP_BOTH
ENT.AutomaticFrameAdvance = true
ENT.MaxHealth = 100
ENT.MaxBullets = 250
ENT.RechargeDelay = 0.3
ENT.SpotDistance = 190
ENT.Damage = 14
local model = Model("models/Co... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/grand_strategy/christianity_events_old.lua | 1 | 23847 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/generic/holoEmote.lua | 1 | 2484 | --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 |
thkhxm/TGame | Assets/LuaFramework/ToLua/Lua/socket/ftp.lua | 42 | 10640 | -----------------------------------------------------------------------------
-- FTP support for the Lua language
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- D... | apache-2.0 |
ArashFaceBook/Virus | plugins/giphy.lua | 633 | 1796 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
loca... | gpl-2.0 |
shahabsaf1/test | plugins/giphy.lua | 633 | 1796 | -- Idea by https://github.com/asdofindia/telegram-bot/
-- See http://api.giphy.com/
do
local BASE_URL = 'http://api.giphy.com/v1'
local API_KEY = 'dc6zaTOxFJmzC' -- public beta key
local function get_image(response)
local images = json:decode(response).data
if #images == 0 then return nil end -- No images
loca... | gpl-2.0 |
GeekWithALife/love-bone | examples/basic/basic.lua | 1 | 2891 |
-- Include the library
local boner = require(LIBNAME);
local myActor;
function love.load()
-- Create the skeleton.
local mySkeleton = boner.newSkeleton();
-- Add bones to the skeleton
local NUM_SEGMENTS = 9;
local boneLength = 50;
local boneName = "bone";
for i = 1, NUM_SEGMENTS do
local name = boneName .. ... | mit |
praveenjha527/Algorithm-Implementations | Iterative_Deepening_Depth_First_Search/Lua/Yonaba/handlers/point_graph_handler.lua | 182 | 2492 | -- A point graph handler
-- This handler is devised for waypoints graphs.
-- Waypoints are locations represented via labelled nodes
-- and are connected with edges having a positive weight.
-- It assumes edges are symmetric, that is if an edge exists
-- between a and b, weight(a -> b) == weight(b -> a)
local PATH = ... | mit |
MaxG87/awesome | themes/xresources/theme.lua | 3 | 9726 | ---------------------------------------------
-- Awesome theme which follows xrdb config --
-- by Yauhen Kirylau --
---------------------------------------------
local xresources = require("beautiful").xresources
local xrdb = xresources.get_current_theme()
local dpi = xresources.apply_dpi
local t... | gpl-2.0 |
Andrettin/Wyrmsun | scripts/languages_slavic.lua | 1 | 2106 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
crosslife/OpenBird | cocos2d/cocos/scripting/lua/script/DeprecatedEnum.lua | 21 | 23253 | require "Cocos2dConstants.lua"
require "OpenglConstants.lua"
require "StudioConstants.lua"
--Enums will be deprecated,begin
_G.kCCTextAlignmentLeft = cc.TEXT_ALIGNMENT_LEFT
_G.kCCTextAlignmentRight = cc.TEXT_ALIGNMENT_RIGHT
_G.kCCTextAlignmentCenter = cc.TEXT_ALIGNMENT_CENTER
_G.kCCV... | mit |
TheAnswer/FirstTest | bin/scripts/items/bluefrog/bikinis.lua | 1 | 2188 | --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 |
fkaa/iceball | pkg/iceball/rugby/mdl_ball.lua | 4 | 1476 |
do
local settings = ...
local this = {}
this.tex = skin_load("png", "mdl_ball.png", "pkg/iceball/rugby")
do
local ucount = 16
local vcount = 10
local scale = 0.4
function uvmap(u, v)
local amp = math.sin(v)
amp = amp*0.4*scale
local rs = math.sin(u)
local rc = math.cos(u)
return rs*amp, ... | gpl-3.0 |
GeekWithALife/love-bone | examples/intermediate/intermediate.lua | 1 | 4698 |
-- Include the library
local boner = require(LIBNAME);
local myActor;
function love.load()
-- Create the skeleton.
local mySkeleton = boner.newSkeleton();
-- Add bones to the skeleton
local NUM_SEGMENTS = 9;
local boneLength = 50;
local boneName = "bone";
for i = 1, NUM_SEGMENTS do
local name = boneName .. ... | mit |
GeekWithALife/love-bone | lovebone/visual.lua | 2 | 4500 | --[[
Visual
Used by Attachments as a wrapper/abstraction object for anything that could be used to render as an attachment.
In most cases, the backing visual element will be some type of Drawable.
The backing visual element could be an image, a particle emitter, a canvas, etc.
We could even extend this to objects ... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/naboo/npcs/gungan/ankuraGungan.lua | 1 | 4542 | --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 |
perusio/lua-uri | uri/urn/issn.lua | 2 | 1840 | local M = { _NAME = "uri.urn.issn" }
local Util = require "uri._util"
local URN = require "uri.urn"
Util.subclass_of(M, URN)
local function _parse_issn (issn)
local _, _, nums1, nums2, checksum
= issn:find("^(%d%d%d%d)-?(%d%d%d)([%dxX])$")
if checksum == "x" then checksum = "X" end
return nums1, nu... | mit |
technomancy/ss-calandria | mods/mesecons/mesecons_detector/init.lua | 1 | 9383 | local GET_COMMAND = "GET"
-- Object detector
-- Detects players in a certain radius
-- The radius can be specified in mesecons/settings.lua
local object_detector_make_formspec = function (pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "size[9,2.5]" ..
"field[0.3, 0;9,2;scanname;Name of play... | gpl-3.0 |
Andrettin/Wyrmsun | scripts/civilizations/frankish/buttons.lua | 1 | 2886 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
devilrap97/alirap97 | plugins/en-broadcast.lua | 5 | 1378 | --[[
ββ βββββββββββββββββββββββββββββββββββββββββββββ
ββ ββ ββ ββ
ββ ββ BY SAJJAD NOORI ββ ββ
ββ ββ BY SAJAD NOORI (@SAJJADNOORI) ββ ββ
ββ ββ JUST WRITED BY SAJJAD NOORI ββ ββ
ββ ββ broadcast : Ψ§Ψ°Ψ§ΨΉΩ ββ ββ
βββ... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/loot/simple_kit/objects.lua | 1 | 42057 | --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/fishing/fish/base/objects.lua | 1 | 3322 | --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 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/entities/entities/status_revive_slump/cl_init.lua | 1 | 1152 | include("shared.lua")
function ENT:Initialize()
self:DrawShadow(false)
self:SetRenderBounds(Vector(-40, -40, -18), Vector(40, 40, 80))
local owner = self:GetOwner()
if owner:IsValid() then
owner.Revive = self
owner:CallWeaponFunction("KnockedDown", self, false)
owner:CallZombieFunction("KnockedD... | gpl-2.0 |
Bubbus/ACFGamemode | entities/entities/fite_flag.lua | 1 | 10542 | AddCSLuaFile()
ENT.PrintName = "Fite Flag"
ENT.Author = "Bubbus"
ENT.Information = "it wiggles"
ENT.Category = "Fite Nite"
ENT.WireDebugName = "Fite Flag"
ENT.Editable = true
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
ENT.Type = "point"
//*
if CLIENT then
... | apache-2.0 |
TheAnswer/FirstTest | bin/scripts/slashcommands/admin/killPlayer.lua | 1 | 2437 | --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 |
fkaa/iceball | pkg/base/citygen/buildings/basic_building.lua | 4 | 3480 | --[[
This file is part of Ice Lua Components.
Ice Lua Components 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 3 of the License, or
(at your option) any later version.
... | gpl-3.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/endor/creatures/crimsonBlurrg.lua | 1 | 4750 | --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 |
raffomania/MAVE | src/states/promptState.lua | 1 | 2310 | require("events/buyBoolEvent")
require("events/mouseReleased")
PromptState = class("PromptState", State)
function PromptState:initialize(func)
self.func = func
self.font = resources.fonts.fifty
self.menu = {
{function () stack:pop()
func() end, "Yes"},
{function () stack:pop() end,... | gpl-3.0 |
weiDDD/WSSParticleSystem | cocos2d/cocos/scripting/lua-bindings/auto/api/ControlSlider.lua | 1 | 5721 |
--------------------------------
-- @module ControlSlider
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlSlider] getMaximumAllowedValue
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- ... | apache-2.0 |
Mizugola/MeltingSagaEngine | engine/Lib/Extlibs/pl/types.lua | 5 | 4705 | ---- Dealing with Detailed Type Information
-- Dependencies `pl.utils`
-- @module pl.types
local utils = require 'Lib.Extlibs.pl.utils'
local types = {}
--- is the object either a function or a callable object?.
-- @param obj Object to check.
function types.is_callable (obj)
return type(obj) == 'function' or get... | mit |
Hammerspoon/hammerspoon | extensions/window/window_tiling.lua | 4 | 11394 | --- === hs.window.tiling ===
---
--- **WARNING**: EXPERIMENTAL MODULE. DO **NOT** USE IN PRODUCTION.
--- This module is *for testing purposes only*. It can undergo breaking API changes or *go away entirely* **at any point and without notice**.
--- (Should you encounter any issues, please feel free to report them on htt... | mit |
zhityer/zhityer1 | plugins/location.lua | 625 | 1564 | -- Implement a command !loc [area] which uses
-- the static map API to get a location image
-- Not sure if this is the proper way
-- Intent: get_latlong is in time.lua, we need it here
-- loadfile "time.lua"
-- Globals
-- If you have a google api key for the geocoding/timezone api
do
local api_key = nil
local base_... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/weapon/melee/baton/objects.lua | 1 | 6547 | --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 |
hamode-Aliraq/HAMODE_ALIRAQE | libs/url.lua | 567 | 9183 | --[[
Copyright 2004-2007 Diego Nehab.
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, distribute,... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/sceneobjects/objects/lairs/dathomir/rancorLair.lua | 1 | 2509 | --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/sceneobjects/objects/lairs/corellia/gubburLair.lua | 1 | 2507 | --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 |
praveenjha527/Algorithm-Implementations | Decimal_To_Fraction/Lua/Yonaba/dec2frac_test.lua | 27 | 1139 | -- Tests for dec2frac.lua
local dec2frac = require 'dec2frac'
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 matches(n, d, nf, df) return (n == nf and d == df) end
local function run(message, f)
total = tot... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/npcs/seniorSpecforce/seniorSpecforceWildernessTrooper.lua | 1 | 4881 | --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 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/bonewagon_thunder.lua | 1 | 1917 | bonewagon_thunder_no_shocks = 0
bonewagon_thunder_shocks = 1
bonewagon_thunder_stay_up = 2
bonewagon_thunder_turn_rt = 3
bonewagon_thunder_hold_rt = 4
bonewagon_thunder_rt_to_ctr = 5
bonewagon_thunder_hold_ctr = 6
bonewagon_thunder_turn_lft = 7
bonewagon_thunder_hold_lft = 8
bonewagon_thunder_lft_to_ctr = 9
bonewagon_t... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/wearables/apron/objects.lua | 1 | 7602 | --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/npcs/fsShadow/shadowOutlawNonaggro.lua | 1 | 4623 | --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 |
MegaBits/megabits_wiki | extensions/Scribunto/engines/LuaCommon/lualib/mw.uri.lua | 1 | 13192 | local uri = {}
local urifuncs = {}
local urimt = {}
local php
local util = require 'libraryUtil'
local checkType = util.checkType
local checkTypeForIndex = util.checkTypeForIndex
function uri.setupInterface( options )
-- Boilerplate
uri.setupInterface = nil
php = mw_interface
mw_interface = nil
-- Store options... | gpl-2.0 |
infernall/nevermind | plugins/invite.lua | 393 | 1225 | do
local function callbackres(extra, success, result) -- Callback for res_user in line 27
local user = 'user#id'..result.id
local chat = 'chat#id'..extra.chatid
if is_banned(result.id, extra.chatid) then -- Ignore bans
send_large_msg(chat, 'User is banned.')
elseif is_gbanned(result.id) then -- I... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dathomir/npcs/singingMountainClan/singingMtnClanHuntress.lua | 1 | 5186 | --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 |
JarnoVgr/ZombieSurvival | gamemodes/zombiesurvival/gamemode/vgui/dgamestate.lua | 1 | 6035 | local PANEL = {}
function PANEL:Init()
self.m_Text1 = vgui.Create("DLabel", self)
self.m_Text2 = vgui.Create("DLabel", self)
self.m_Text3 = vgui.Create("DLabel", self)
self:SetTextFont("ZSHUDFontTiny")
self.m_Text1.Paint = self.Text1Paint
self.m_Text2.Paint = self.Text2Paint
self.m_Text3.Paint... | gpl-2.0 |
RockySeven3161/Unknown | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
javierojan/copia | plugins/tweet.lua | 634 | 7120 | local OAuth = require "OAuth"
local consumer_key = ""
local consumer_secret = ""
local access_token = ""
local access_token_secret = ""
local twitter_url = "https://api.twitter.com/1.1/statuses/user_timeline.json"
local client = OAuth.new(consumer_key,
consumer_secret,
... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/tatooine/creatures/moundMiteAttacks.lua | 1 | 2801 | --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/crafting/objects/draftschematics/tailor/fieldWearIiReinforcedFibers/ithorianCargoPants.lua | 1 | 4506 | --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/slashcommands/skills/forceSpeed.lua | 1 | 2567 | --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/creatures/objects/rori/creatures/tatteredTorton.lua | 1 | 4719 | --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 |
vgire/nn | SpatialConvolutionMM.lua | 9 | 3125 | local SpatialConvolutionMM, parent = torch.class('nn.SpatialConvolutionMM', 'nn.Module')
function SpatialConvolutionMM:__init(nInputPlane, nOutputPlane, kW, kH, dW, dH, padW, padH)
parent.__init(self)
dW = dW or 1
dH = dH or 1
self.nInputPlane = nInputPlane
self.nOutputPlane = nOutputPlane
self.... | bsd-3-clause |
TheAnswer/FirstTest | bin/scripts/creatures/objects/yavin4/creatures/gackleBatMyrmidonLord.lua | 1 | 4786 | --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/creatures/objects/corellia/npcs/lordNyax/lordNyaxMinion.lua | 1 | 4688 | --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 |
Andrettin/Wyrmsun | scripts/settlements_italy.lua | 1 | 10129 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/tailor/casualWearIiSynthetics/beltedJacket.lua | 1 | 4350 | --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/mobs/mobs_npc/igor.lua | 1 | 2743 |
local S = mobs.intllib
-- Igor by TenPlus1
mobs.igor_drops = {
"vessels:glass_bottle", "mobs:meat_raw", "default:sword_steel",
"farming:bread", "bucket:bucket_water"
}
mobs:register_mob("mobs_npc:igor", {
type = "npc",
passive = false,
damage = 5,
attack_type = "dogfight",
owner_loyal = true,
pathfinding = ... | agpl-3.0 |
Andrettin/Wyrmsun | scripts/grand_strategy/generic_events.lua | 1 | 6017 | -- _________ __ __
-- / _____// |_____________ _/ |______ ____ __ __ ______
-- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
-- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
-- /_______ /|__| |__| (____ /__| (____ /\___ /|____//... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/object/tangible/mission_bag/objects.lua | 1 | 3318 | --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/items/objects/clothing/dresses/dress35.lua | 1 | 2281 | --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/skills/creatureSkills/tatooine/npcs/tuskenAttacks.lua | 1 | 10264 | --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 |
asmagill/hammerspoon | extensions/osascript/osascript.lua | 4 | 5177 | --- === hs.osascript ===
---
--- Execute Open Scripting Architecture (OSA) code - AppleScript and JavaScript
---
local module = require("hs.libosascript")
local fnutils = require("hs.fnutils")
-- private variables and methods -----------------------------------------
local processResults = function(ok, object, rawDe... | mit |
timriley/dotfiles | dot_hammerspoon/windows-bindings-default.lua | 3 | 2052 | -- Default keybindings for WindowLayout Mode
--
-- To customize the key bindings for WindowLayout Mode, create a copy of this
-- file, save it as `windows-bindings.lua`, and edit the table below to
-- configure your preferred shortcuts.
--------------------------------------------------------------------------------
-... | mit |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/SpellBookFrame.lua | 1 | 15442 | MAX_SPELLS = 1024;
MAX_SKILLLINE_TABS = 8;
SPELLS_PER_PAGE = 12;
MAX_SPELL_PAGES = ceil(MAX_SPELLS / SPELLS_PER_PAGE);
BOOKTYPE_SPELL = "spell";
BOOKTYPE_PET = "pet";
SPELLBOOK_PAGENUMBERS = {};
function ToggleSpellBook(bookType)
local doToggle = 1;
-- If has no pet spells and is trying to open the corresp... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/talus/npcs/liberation/liberationFanatic.lua | 1 | 4595 | --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/admin/broadcastArea.lua | 1 | 2449 | --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/entities/status_ghoultouch.lua | 1 | 2789 | AddCSLuaFile()
ENT.Type = "anim"
ENT.Base = "status__base"
ENT.RenderGroup = RENDERGROUP_TRANSLUCENT
ENT.DamageScale = 1.3
ENT.LifeTime = 10
ENT.Model = Model("models/gibs/HGIBS.mdl")
function ENT:Initialize()
self.BaseClass.Initialize(self)
self:SetModel(self.Model)
self:DrawShadow(false)
... | gpl-2.0 |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/grim/dlg_charlie.lua | 1 | 16954 | CheckFirstTime("dlg_charlie.lua")
manny.line_189 = function(arg1) -- line 9
manny:blend(mc_booth_idles_line189, mc_booth_idles_sit_pose, 800)
sleep_for(800)
end
manny.line246 = function(arg1) -- line 14
manny:blend(mc_booth_idles_line246, mc_booth_idles_sit_pose, 500)
sleep_for(500)
end
ch1 = Dialog:cre... | gpl-2.0 |
kyle-lu/fceux.js | output/luaScripts/CustomLagIndicator_RvT.lua | 7 | 2017 | ---------------------------------------------------------------------------
-- Custom Lag Indicator for "RoboCop Vs The Terminator (U) (Prototype).nes"
-- by AnS, 2012
---------------------------------------------------------------------------
-- Showcases following functions:
-- * emu.setlagflag()
--------------... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/skills/creatureSkills/corellia/npcs/ragTagAttacks.lua | 1 | 2956 | --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/npcs/rebel/rebelResistanceDissident.lua | 1 | 4781 | --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/creatures/objects/rori/npcs/narmle/narmleCommando.lua | 1 | 4538 | --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/creatures/objects/lok/npcs/bloodRazor/bloodRazorCutthroat.lua | 1 | 4615 | --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 |
crosslife/OpenBird | Resources/json.lua | 60 | 15380 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://json.luaforge.net/
-- Version: 0.9.40
-- This module is released under the MIT License (MIT).
-- Please see L... | mit |
TheAnswer/FirstTest | bin/scripts/crafting/objects/draftschematics/armorsmith/layersIBasicEnhancements/energyProtectionArmorLayer.lua | 1 | 4533 | --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 |
mkwia/jc2atc | scripts/atc/server/ATC.lua | 1 | 22427 | airports = {}
--Add admins by adding SteamId(<steamid in quotes>)
staffmembers = {}
local query = SQL:Query("SELECT * FROM acl_members")
local result = query:Execute()
if #result > 0 then
for _, member in ipairs(result) do
table.insert(staffmembers, member.steamID)
end
end
groups = {}
--INTERNATIONAL AIRPORT
ai... | mit |
PAPAGENO-devels/papageno | test/benchmarks/Lua/lua-regression-test/WoW/FadingFrame.lua | 1 | 1030 |
function FadingFrame_SetFadeInTime(this, time)
this.fadeInTime = time;
end
function FadingFrame_SetHoldTime(this, time)
this.holdTime = time;
end
function FadingFrame_SetFadeOutTime(this, time)
this.fadeOutTime = time;
end
function FadingFrame_OnLoad()
this.fadeInTime = 0;
this.holdTime = 0;
this.fa... | gpl-2.0 |
Lunovox/minetest_nibirus_game | mods/base/default/item_entity.lua | 31 | 2051 | -- mods/default/item_entity.lua
local builtin_item = minetest.registered_entities["__builtin:item"]
local item = {
set_item = function(self, itemstring)
builtin_item.set_item(self, itemstring)
local stack = ItemStack(itemstring)
local itemdef = minetest.registered_items[stack:get_name()]
if itemdef and item... | agpl-3.0 |
RockySeven3161/Unknown | plugins/twitter.lua | 632 | 2555 | local OAuth = require "OAuth"
-- EDIT data/twitter.lua with the API keys
local twitter_config = load_from_file('data/twitter.lua', {
-- DON'T EDIT HERE.
consumer_key = "", consumer_secret = "",
access_token = "", access_token_secret = ""
})
local client = OAuth.new(twitter_config.consumer_key, twitter_c... | gpl-2.0 |
yobiya/tdd_game_sample | cross/cocos2d/cocos/scripting/lua/script/Opengl.lua | 49 | 6870 | require "OpenglConstants"
gl = gl or {}
--Create functions
function gl.createTexture()
local retTable = {}
retTable.texture_id = gl._createTexture()
return retTable
end
function gl.createBuffer()
local retTable = {}
retTable.buffer_id = gl._createBuffer()
return retTable
end
function gl.cre... | mit |
Modified-MW-DF/modified-MDF | MWDF Project/Dwarf Fortress/hack/scripts/masterwork/item/quality-change.lua | 2 | 3081 | --item/quality-change.lua version 42.06a
local utils = require 'utils'
validArgs = validArgs or utils.invert({
'help',
'unit',
'item',
'type',
'equipment',
'quality',
'dur',
'upgrade',
'downgrade',
'track',
})
local args = utils.processArgs({...}, validArgs)
if args.help then -- Help decl... | mit |
Phoenix-TM/PhoenixSource | plugins/ingroup.lua | 1 | 44214 | do
-- Check Member
local function check_member_autorealm(cb_extra, success, result)
local receiver = cb_extra.receiver
local data = cb_extra.data
local msg = cb_extra.msg
for k,v in pairs(result.members) do
local member_id = v.id
if member_id ~= our_id then
-- Group configuration
data[tostr... | gpl-2.0 |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/kunga/kungaRockshaper.lua | 1 | 4879 | --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 |
devilrap97/alirap97 | plugins/ar-textphoto.lua | 7 | 1338 | --[[
ββ βββββββββββββββββββββββββββββββββββββββββββββ
ββ ββ ββ ββ
ββ ββ BY SAJJAD NOORI ββ ββ
ββ ββ BY SAJAD NOORI (@SAJJADNOORI) ββ ββ
ββ ββ JUST WRITED BY SAJJAD NOORI ββ ββ
ββ ββ text photo : ΨͺΨΩΩΩ ΩΨͺΨ§Ψ¨Ω Ψ΅ΩΨ±Ω ββ ββ
βββ... | gpl-2.0 |
mkwia/jc2atc | scripts/utilities/client/cWeatherRandom.lua | 1 | 1294 | enabled = true
Events:Subscribe("LocalPlayerChat", function(args)
if args.text == "/atis" then
enabled = not enabled
return false
end
end)
Network:Subscribe("WeatherUpdate", function(args)
Events:Fire("WeatherChange", args.new)
if not enabled then return end
local prev = args.prev
local new = args.... | mit |
TheAnswer/FirstTest | bin/scripts/creatures/objects/dantooine/npcs/warren/warrenInsaneCompSci.lua | 1 | 4623 | --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/creatures/objects/endor/creatures/boarWolfCub.lua | 1 | 4692 | --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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.