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 |
|---|---|---|---|---|---|
xdemolish/darkstar | scripts/zones/Port_San_dOria/npcs/Teilsa.lua | 34 | 1795 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Teilsa
-- Adventurer's Assistant
-- Only recieving Adv.Coupon and simple talk event are scrited
-- This NPC participates in Quests and Missions
-------------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
... | gpl-3.0 |
mohammad12344/DEFENDER | plugins/info.lua | 2 | 8935 | do
local Arian = 144616352 --put your id here(BOT OWNER ID)
local function setrank(msg, name, value) -- setrank function
local hash = nil
if msg.to.type == 'chat' then
hash = 'rank:'..msg.to.id..':variables'
end
if hash then
redis:hset(hash, name, value)
return send_msg('chat#id'..msg.to.id, 'مقام کار... | gpl-2.0 |
lukego/snabb | lib/luajit/src/jit/bc.lua | 78 | 5620 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
luafan/luafan | modules/fan/stream/bit.lua | 1 | 4858 | local table = table
local assert = assert
local string = string
local bnot = bit.bnot
local band, bor, bxor = bit.band, bit.bor, bit.bxor
local lshift, rshift, rol = bit.lshift, bit.rshift, bit.rol
local stream_mt = {}
stream_mt.__index = stream_mt
function stream_mt:available()
return #(self.data) - self.offset +... | mit |
xdemolish/darkstar | scripts/zones/Tavnazian_Safehold/npcs/Caiphimonride.lua | 37 | 1316 | -----------------------------------
-- Area: Tavnazian Safehold
-- NPC: Caiphimonride
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Tavnazian_Safehold/TextIDs"] = nil;
require("scripts/zones/Tavnazian_Safehold/TextIDs");
---------... | gpl-3.0 |
mrbangi/mrbangi | plugins/spammer.lua | 14 | 75190 | local function run(msg)
if msg.text == "[!/]spam" and is_sudo(msg) then
return "".. [[
... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/kaplumbaga.lua | 18 | 1258 | -----------------------------------------
-- ID: 5464
-- Item: Kaplumbaga
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 3
-- Mind -5
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
--------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/curaga_iv.lua | 13 | 1218 | -----------------------------------------
-- Spell: Curaga IV
-- Restores HP of all party members within area of effect.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/abilities/pets/aero_iv.lua | 5 | 1159 | ---------------------------------------------------
-- Aero 4
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
require("/scripts/globals/magic");
------------------------------------------... | gpl-3.0 |
black123456789/api | plugins/rules.lua | 1 | 2673 |
local triggers = {
'^/(setrules)$',
'^/(setrules) (.*)',
'^/(rules)$',
'^/(rules)@GroupButler_bot',
'^/(addrules)$',
'^/(addrules) (.*)'
}
local action = function(msg, blocks, ln)
--ignore if via pm
if msg.chat.type == 'private' then
api.sendMessage(msg.from.id, lang[ln].pv)
return nil
e... | gpl-2.0 |
nimaftf/tabchi | serpent.lua | 656 | 7877 | local n, v = "serpent", 0.28 -- (C) 2012-15 Paul Kulchenko; MIT License
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'}
local badtype = {thread = true, userdata = true, cdata = true}
lo... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Newton_Movalpolos/Zone.lua | 30 | 1704 | -----------------------------------
--
-- Zone: Newton_Movalpolos (12)
--
-----------------------------------
package.loaded["scripts/zones/Newton_Movalpolos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Newton_Movalpolos/TextIDs");
-------... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/Component.lua | 8 | 1979 |
--------------------------------
-- @module Component
-- @extend Ref
-- @parent_module cc
--------------------------------
--
-- @function [parent=#Component] setEnabled
-- @param self
-- @param #bool enabled
-- @return Component#Component self (return value: cc.Component)
--------------------------------
... | apache-2.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/FadeTo.lua | 11 | 1678 |
--------------------------------
-- @module FadeTo
-- @extend ActionInterval
-- @parent_module cc
--------------------------------
-- initializes the action with duration and opacity <br>
-- param duration in seconds
-- @function [parent=#FadeTo] initWithDuration
-- @param self
-- @param #float duration
-- @param #u... | apache-2.0 |
cfanzp008/skynet-note | 3rd/lua-cjson/tests/test.lua | 32 | 17977 | #!/usr/bin/env lua
-- Lua CJSON tests
--
-- Mark Pulford <mark@kyne.com.au>
--
-- Note: The output of this script is easier to read with "less -S"
local json = require "cjson"
local json_safe = require "cjson.safe"
local util = require "cjson.util"
local function gen_raw_octets()
local chars = {}
for i = 0, ... | mit |
hfjgjfg/mohammad | plugins/rss.lua | 700 | 5434 | local function get_base_redis(id, option, extra)
local ex = ''
if option ~= nil then
ex = ex .. ':' .. option
if extra ~= nil then
ex = ex .. ':' .. extra
end
end
return 'rss:' .. id .. ex
end
local function prot_url(url)
local url, h = string.gsub(url, "http://", "")
local... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/margherita_pizza.lua | 35 | 1220 | -----------------------------------------
-- ID: 5695
-- Item: margherita_pizza
-- Food Effect: 3hours, All Races
-----------------------------------------
-- Attack 10
-- Health Points 30
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
blockplanet/blockplanet | games/blockplanet/mods/wool/init.lua | 5 | 1815 | -- minetest/wool/init.lua
-- Backwards compatibility with jordach's 16-color wool mod
minetest.register_alias("wool:dark_blue", "wool:blue")
minetest.register_alias("wool:gold", "wool:yellow")
local wool = {}
-- This uses a trick: you can first define the recipes using all of the base
-- colors, and then some recipes... | gpl-3.0 |
nazrhyn/epgp-tep | libs/AceGUI-3.0/AceGUI-3.0.lua | 47 | 23674 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/Port_San_dOria/npcs/Thierride.lua | 10 | 2572 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Thierride
-- Type: Quest Giver
-- @zone: 232
-- @pos -67 -5 -28
--
-- Starts and Finishes Quest: A Taste For Meat
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
------------------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Gusgen_Mines/npcs/_5g4.lua | 34 | 1102 | -----------------------------------
-- Area: Gusgen Mines
-- NPC: _5g4 (Door E)
-- @pos 19.998 -22.4 174.506 196
-----------------------------------
package.loaded["scripts/zones/Gusgen_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Gusgen_Mines/TextIDs");
---------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Yahsra.lua | 30 | 3592 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Yahsra
-- Type: Assault Mission Giver
-- @pos 120.967 0.161 -44.002 50
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyi... | gpl-3.0 |
lighter-cd/premake4-mobile | tests/actions/vstudio/cs2002/test_files.lua | 57 | 2430 | --
-- tests/actions/vstudio/cs2002/test_files.lua
-- Validate generation of <Files/> block in Visual Studio 2002 .csproj
-- Copyright (c) 2009-2012 Jason Perkins and the Premake project
--
T.vstudio_cs2002_files = { }
local suite = T.vstudio_cs2002_files
local cs2002 = premake.vstudio.cs2002
--
-- Setup
--
loc... | mit |
czfshine/UpAndAway | code/prefabs/cotton_candy.lua | 2 | 3770 | BindGlobal()
local CFG = TheMod:GetConfig()
local assets =
{
Asset("ANIM", "anim/cotton_candy.zip"),
Asset("ANIM", "anim/swap_cotton_candy.zip"),
Asset( "ATLAS", inventoryimage_atlas("cotton_candy") ),
Asset( "IMAGE", inventoryimage_texture("cotton_candy") ),
}
local function onattackfn(inst, o... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/QuBia_Arena/mobs/Death_Clan_Destroyer.lua | 8 | 2529 | -----------------------------------
-- Area: QuBia_Arena
-- Mission 9-2 SANDO
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/missions");
require("scripts/zones/QuBia_Arena/TextIDs");
-----------------------------------
-- onMobSpawn A... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/VideoPlayerTest/VideoPlayerTest.lua | 6 | 6001 | local visibleRect = cc.Director:getInstance():getOpenGLView():getVisibleRect()
local centerPos = cc.p(visibleRect.x + visibleRect.width / 2,visibleRect.y + visibleRect.height /2)
local function VideoPlayerTest()
local layer = cc.Layer:create() --createTestLayer("VideoPlayerTest", "")
titleLabel = cc.Label:cr... | apache-2.0 |
simonswine/chdkptp | lua/multicam.lua | 1 | 13943 | --[[
Copyright (C) 2010-2012 <reyalp (at) gmail dot com>
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 WITHO... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Tateeya.lua | 34 | 2468 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Tateeya
-- Automaton Attachment Unlocks
-----------------------------------
package.loaded["scripts/zones/Aht_Urhgan_Whitegate/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Aht_Urhgan_Whitegate/TextIDs");
... | gpl-3.0 |
nosyndicate/TurnTaking | src/drq/train.lua | 1 | 1039 | if not dqn then
require 'initenv'
end
local cmd = torch.CmdLine();
cmd:text();
cmd:text('Option:');
cmd:option('-episodes', 10^3, 'number of training episodes to perform');
cmd:Option('-game', 'simplebattle', 'which game to play');
cmd:text();
local opt = cmd:parse(arg);
local completeEpisodes = 0;
local agen... | gpl-2.0 |
lytedev/quick-td | src/states/game.lua | 1 | 2718 | --[[
File: game.lua
Author: Daniel "lytedev" Flanagan
Website: http://dmf.me
The gamestate in charge of managinplayer... well... the game.
]]--
local Game = Gamestate.new()
local pairs = pairs
function Game:init()
self.pixelFont = love.graphics.newFont("assets/fonts/pf_tempesta_seven_condensed.ttf", 8)
worl... | apache-2.0 |
xdemolish/darkstar | scripts/globals/items/plate_of_ic_pilav.lua | 35 | 1942 | -----------------------------------------
-- ID: 5584
-- Item: plate_of_ic_pilav
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health % 14
-- Health Cap 65
-- Strength 4
-- Vitality -1
-- Intelligence -1
-- Health Regen While Healing 1
-- Attack % 22
-- Attack Cap 65
-- Ran... | gpl-3.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Sprite.lua | 10 | 11854 |
--------------------------------
-- @module Sprite
-- @extend Node,TextureProtocol
-- @parent_module cc
--------------------------------
-- @overload self, cc.SpriteFrame
-- @overload self, string
-- @function [parent=#Sprite] setSpriteFrame
-- @param self
-- @param #string spriteFrameName
--------... | mit |
xdemolish/darkstar | scripts/zones/Windurst_Woods/npcs/Miiri-Wohri.lua | 38 | 1037 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Miiri-Wohri
-- Type: Standard NPC
-- @zone: 241
-- @pos 106.766 -6 -30.492
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Port_Jeuno/npcs/Karl.lua | 17 | 2498 | -----------------------------------
-- Area: Port Jeuno
-- NPC: Karl
-- Starts and Finishes Quest: Child's Play
-- @pos -60 0.1 -8 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
---------------------------------... | gpl-3.0 |
Javaxio/BadRotations | Rotations/Mage/Frost/FrostCuteOne.lua | 1 | 38243 | local rotationName = "CuteOne"
---------------
--- Toggles ---
---------------
local function createToggles()
-- Rotation Button
RotationModes = {
[1] = { mode = "Auto", value = 1 , overlay = "Automatic Rotation", tip = "Swaps between Single and Multiple based on number of targets in range.", highlight = 1... | gpl-3.0 |
lukego/snabb | src/lib/hardware/register.lua | 7 | 7137 | -- register.lua -- Hardware device register abstraction
module(...,package.seeall)
local ffi = require("ffi")
local lib = require("core.lib")
--- ### Register object
--- There are three types of register objects, set by the mode when created:
--- * `RO` - read only.
--- * `RW` - read-write.
--- * `RC` - read-only an... | apache-2.0 |
samael65535/quick-ng | quick/samples/tests/src/scenes/MainScene.lua | 8 | 1471 |
local MainScene = class("MainScene", function()
return display.newScene("MainScene")
end)
function MainScene:ctor()
local items = {
"framework.helper",
"framework.native",
"framework.display",
"framework.crypto",
"framework.network",
"framework.luabinding",
... | mit |
xdemolish/darkstar | scripts/zones/Ilrusi_Atoll/npcs/Treasure_Coffer.lua | 1 | 1892 | -----------------------------------
-- Area:
-- NPC: Treasure Coffer
-- @zone illrusi atoll
-- @pos
-----------------------------------
package.loaded["scripts/zones/Ilrusi_Atoll/TextIDs"] = nil;
package.loaded["scripts/globals/bcnm"] = nil;
-------------------------------------
require("scripts/globals/bc... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/mobskills/Mijin_Gakure.lua | 6 | 1161 | ---------------------------------------------------
-- Ranged Attack
-- Deals a ranged attack to a single target.
---------------------------------------------------
require("/scripts/globals/settings");
require("/scripts/globals/status");
require("/scripts/globals/monstertpmoves");
----------------------------------... | gpl-3.0 |
vmamidi/trafficserver | example/plugins/lua-api/modsecurity/ats-luajit-modsecurity.lua | 5 | 7081 | -- 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"); y... | apache-2.0 |
cmotc/awesome | lib/wibox/layout/flex.lua | 1 | 5352 | ---------------------------------------------------------------------------
--
--@DOC_wibox_layout_defaults_flex_EXAMPLE@
-- @author Uli Schlachter
-- @copyright 2010 Uli Schlachter
-- @classmod wibox.layout.flex
---------------------------------------------------------------------------
local base = require("wibox.wi... | gpl-2.0 |
czfshine/UpAndAway | code/prefabs/cloud_wall.lua | 2 | 8642 | BindGlobal()
local CFG = TheMod:GetConfig()
require "prefabutil"
local assets =
{
Asset("ANIM", "anim/cloud_wall.zip"),
Asset( "ATLAS", inventoryimage_atlas("cloud_wall_item") ),
Asset( "IMAGE", inventoryimage_texture("cloud_wall_item") ),
}
local prefabs = CFG.CLOUD_WALL.PREFABS
SetSharedLootTable( "... | gpl-2.0 |
czfshine/UpAndAway | tools/modanalyzer/asset_normalizer.lua | 2 | 2166 | local assert = assert
local tostring = tostring
local string = string
local table = table
---
local lpeg = require "lpeg"
local Mat = pkgrequire "matching"
---
local captures = Mat.NewCaptureSet()
local patts = Mat.NewPatternSet()
append_map(patts, {
inv_img_path = Mat { "images/inventoryimages/", lpeg.C(lpeg.P(1... | gpl-2.0 |
chris5560/openwrt-luci | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 36 | 2367 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Licensed to the public under the Apache License 2.0.
local wa = require "luci.tools.webadmin"
local fs = require "nixio.fs"
m = Map("qos", translate("Quality of Service"),
translate("With <abbr title=\"Quality of Service\">QoS</abbr> you " ..
"can prioritize n... | apache-2.0 |
xdemolish/darkstar | scripts/globals/weaponskills/cyclone.lua | 1 | 1383 | -----------------------------------
-- Cyclone
-- Dagger weapon skill
-- Skill level: 125
-- Delivers an area attack that deals wind elemental damage. Damage varies with TP.
-- This weapon skill is ranged and can be used from a distance (Up to 15').
-- Directly affected by Magic Attack Bonus.
-- Aligned w... | gpl-3.0 |
gutenye/tagen.lua | lib/tagen/app.lua | 1 | 5299 | --- Application support functions.
-- See @{01-introduction.md.Application_Support|the Guide}
--
-- Dependencies: `tagen.core`, `tagen.path`, `lfs`
-- @module tagen.app
local io,package,require = _G.io, _G.package, _G.require
local tagen = require 'tagen.core'
local path = require 'tagen.path'
local lfs = require 'lfs... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/plate_of_shrimp_sushi.lua | 35 | 1552 | -----------------------------------------
-- ID: 5691
-- Item: plate_of_shrimp_sushi
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Vitality 1
-- Defense 5
-- Accuracy % 11
-- Store TP 2
-- Triple Attack 1
-----------------------------------------
require("scripts/globals/sta... | gpl-3.0 |
ForgedAddons/HunterAnnouncer | libs/AceGUI-3.0/AceGUI-3.0.lua | 11 | 23422 | --- **AceGUI-3.0** provides access to numerous widgets which can be used to create GUIs.
-- AceGUI is used by AceConfigDialog to create the option GUIs, but you can use it by itself
-- to create any custom GUI. There are more extensive examples in the test suite in the Ace3
-- stand-alone distribution.
--
-- **Note**:... | apache-2.0 |
xdemolish/darkstar | scripts/zones/The_Eldieme_Necropolis/TextIDs.lua | 1 | 2089 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item> come back again after sorting your inventory
ITEM_OBTAINED = 6541; -- Obtained: <item>
GIL_OBTAINED = 6542; -- Obtained <number> gil
KEYITEM_OBTAINED = 6544; -- Obtain... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Lower_Jeuno/npcs/Yoskolo.lua | 37 | 1688 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Yoskolo
-- Standard Merchant NPC
-----------------------------------
require("scripts/globals/shop");
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
require("scripts/zones/Lower_Jeuno/TextIDs");
-----------------------------------
... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/La_Theine_Plateau/npcs/Shattered_Telepoint.lua | 9 | 1770 | -----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- @pos 334 19 -60 102
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zone... | gpl-3.0 |
Andreas-Kreuz/ak-lua-skripte-fuer-eep | lua/LUA/ak/demo-anlagen/tutorial-ampel/code-video-tutorial-1.lua | 1 | 1276 | local Crossing = require("ak.road.Crossing")
local Lane = require("ak.road.Lane")
local TrafficLight = require("ak.road.TrafficLight")
local TrafficLightModel = require("ak.road.TrafficLightModel")
-- Einfache Kreuzung mit zwei Fahrspuren und drei Ampeln
local K1 = TrafficLight:new("K1", 13, TrafficLightModel.JS2_3er_... | mit |
xdemolish/darkstar | scripts/zones/Buburimu_Peninsula/npcs/Signpost.lua | 13 | 1351 | -----------------------------------
-- Area: Buburimu Peninsula
-- NPC: Signpost
-----------------------------------
package.loaded["scripts/zones/Buburimu_Peninsula/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Buburimu_Peninsula/TextIDs");
-----------------------------------
-- onTrad... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/bluemagic/blood_saber.lua | 3 | 1214 | -----------------------------------------
-- Spell: Blood Saber
-----------------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
require("scripts/globals/settings");
require("scripts/globals/bluemagic");
-----------------------------------------
-- OnSpellCast
... | gpl-3.0 |
hfjgjfg/mohammad | plugins/search_youtube.lua | 674 | 1270 | 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
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
omidtarh/o_m_i_dbot | plugins/search_youtube.lua | 674 | 1270 | 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
local function searchYoutubeVideos(text)
local url = 'https://www.googleapis.com/youtube/v3/search?'
u... | gpl-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/external/lua/luajit/src/src/jit/dis_x86.lua | 99 | 29330 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2013 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
--------------------------------------------------------------------------... | mit |
xdemolish/darkstar | scripts/zones/Chateau_dOraguille/npcs/Perfaumand.lua | 19 | 1642 | -----------------------------------
-- Area: Chateau d'Oraguille
-- NPC: Perfaumand
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- @pos -39 -3 69 233
-----------------------------------
package.loaded["scripts/zones/Chateau_dOraguille/TextIDs"] = nil;
-----------------------------------
require("scripts/gl... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Caedarva_Mire/npcs/qm2.lua | 15 | 1175 | -----------------------------------
-- Area: Caedarva Mire
-- NPC: ??? (Spawn Experimental Lamia(ZNM T3))
-- @pos -773 -11 322 79
-----------------------------------
package.loaded["scripts/zones/Caedarva_Mire/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Caedarva_Mire/TextIDs");
------... | gpl-3.0 |
bitdewy/cegui | datafiles/lua_scripts/Echo/Listener.lua | 1 | 1096 | Listener = {}
Listener.__index = Listener
local elements = {}
function Listener.onScrollPositionChanged(args)
print("Listener.onScrollPositionChanged")
local window = CEGUI.toWindowEventArgs(args).window
if elements[window] then
local value = window:getProperty("ScrollPosition")
local unpack = unpack or table... | mit |
clifff/flynn | cli/Tupfile.lua | 4 | 1702 | tup.export("GOPATH")
tup.export("GIT_COMMIT")
tup.export("GIT_BRANCH")
tup.export("GIT_TAG")
tup.export("GIT_DIRTY")
tup.rule({"../util/assetbuilder/*", "../util/cedarish/<docker>"},
"^ docker build installer-builder^ cat ../log/docker-cedarish.log > /dev/null && ../util/assetbuilder/build.sh image installer... | bsd-3-clause |
xdemolish/darkstar | scripts/zones/Southern_San_dOria/npcs/Coderiant.lua | 36 | 1471 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Coderiant
-- General Info NPC
-- @zone 230
-- @pos -111 -2 33
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settin... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Xarcabard/npcs/qm6.lua | 17 | 1677 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm6 (???)
-- Involved in Quests: RNG AF3 - Unbridled Passion
-- @pos -254.883 -17.003 -150.818 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Northern_San_dOria/npcs/Mevaloud.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Mevaloud
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/spells/dia_ii.lua | 8 | 2061 | -----------------------------------------
-- Spell: Dia II
-- Lowers an enemy's defense and gradually deals light elemental damage.
-----------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------... | gpl-3.0 |
czfshine/UpAndAway | code/prefabs/gnome_plot.lua | 2 | 6160 | BindGlobal()
local assets =
{
Asset("ANIM", "anim/gnome_plot.zip"),
}
local crops = {
"colored_corn",
"pineapple_bush",
}
local prefabs =
{
"colored_corn",
"pineapple_bush",
"gnome_wilson",
"gnome_farmrock",
"gnome_farmrocktall",
"gnome_farmrockflat",
"gnome_stick",
... | gpl-2.0 |
githubmereza/rooobooot | plugins/owners.lua | 284 | 12473 |
local function lock_group_namemod(msg, data, target)
local group_name_set = data[tostring(target)]['settings']['set_name']
local group_name_lock = data[tostring(target)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(target)]['setting... | gpl-2.0 |
peymankhanas84877/Horror_Avatar_bot | plugins/boobs.lua | 731 | 1601 | do
-- Recursive function
local function getRandomButts(attempt)
attempt = attempt or 0
attempt = attempt + 1
local res,status = http.request("http://api.obutts.ru/noise/1")
if status ~= 200 then return nil end
local data = json:decode(res)[1]
-- The OpenBoobs API sometimes returns an empty array
if no... | gpl-2.0 |
reizencroft/euler_project_solutions | lua/pb_003.lua | 1 | 1079 |
-- local kTargetNumber = 600851475143
local kTargetNumber = 600851475143
local primes = { 1 }
local nonPrimes = { }
local function testIfPrime ( pTestee )
end
-- get all prime numbers from 0 to pMaxNumber using the Sieve of Eratosthenes
local function getAllPrimes ( pMaxNumber)
print("Get all primes for "..... | unlicense |
xdemolish/darkstar | scripts/globals/items/pumpkin_cake.lua | 36 | 1213 | -----------------------------------------
-- ID: 5631
-- Item: Pumpkin Cake
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP Recovered while healing +2
-- MP Recovered while healing +4
-----------------------------------------
require("scripts/globals/status");
--... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/cocos/scripting/lua-bindings/auto/api/TransitionShrinkGrow.lua | 11 | 1057 |
--------------------------------
-- @module TransitionShrinkGrow
-- @extend TransitionScene,TransitionEaseScene
-- @parent_module cc
--------------------------------
--
-- @function [parent=#TransitionShrinkGrow] easeActionWithAction
-- @param self
-- @param #cc.ActionInterval action
-- @return ActionInterval#Actio... | apache-2.0 |
simonswine/chdkptp | lua/dngcli.lua | 1 | 15661 | --[[
Copyright (C) 2010-2011 <reyalp (at) gmail dot com>
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 WITH... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5f6.lua | 34 | 1105 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Odin's Gate
-- @pos 260 -34 110 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/Northern_San_dOria/npcs/Ailbeche.lua | 7 | 6977 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Ailbeche
-- Starts and Finishes Quest: Father and Son, Sharpening the Sword, A Boy's Dream (start)
-- @zone 231
-- @pos 4 -1 24
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
--------... | gpl-3.0 |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/EaseQuadraticActionOut.lua | 7 | 1243 |
--------------------------------
-- @module EaseQuadraticActionOut
-- @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 EaseQuadraticActionOut action. If creation fa... | mit |
samael65535/quick-ng | cocos/scripting/lua-bindings/auto/api/ControlColourPicker.lua | 7 | 3144 |
--------------------------------
-- @module ControlColourPicker
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlColourPicker] hueSliderValueChanged
-- @param self
-- @param #cc.Ref sender
-- @param #int controlEvent
-- @return ControlColourPicker#ControlColou... | mit |
xdemolish/darkstar | scripts/globals/items/plate_of_salmon_sushi_+1.lua | 35 | 1480 | -----------------------------------------
-- ID: 5664
-- Item: plate_of_salmon_sushi_+1
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Strength 2
-- Accuracy % 15
-- Ranged ACC % 15
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/West_Sarutabaruta/Zone.lua | 2 | 2683 | -----------------------------------
--
-- Zone: West_Sarutabaruta (115)
--
-----------------------------------
package.loaded[ "scripts/zones/West_Sarutabaruta/TextIDs"] = nil;
-----------------------------------
require( "scripts/zones/West_Sarutabaruta/TextIDs");
require( "scripts/globals/icanheararainbow")... | gpl-3.0 |
xdemolish/darkstar | scripts/zones/The_Shrine_of_RuAvitau/npcs/qm2.lua | 5 | 1640 | -----------------------------------
-- Area: The Shrine of Ru'Avitau
-- NPC: ??? (Spawn Kirin)
-- @pos -81 32 2 178
-----------------------------------
package.loaded["scripts/zones/The_Shrine_of_RuAvitau/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Shrine_of_RuAvitau/TextID... | gpl-3.0 |
chris5560/openwrt-luci | libs/luci-lib-nixio/docsrc/README.lua | 6 | 4758 | --- General Information.
module "nixio.README"
--- General error handling information.
-- <ul>
-- <li> Most of the functions available in this library may fail. If any error
-- occurs the function returns <strong>nil or false</strong>, an error code
-- (usually errno) and an additional error message text (if avaialabl... | apache-2.0 |
xdemolish/darkstar | scripts/zones/Xarcabard/npcs/qm1.lua | 9 | 1407 | -----------------------------------
-- Area: Xarcabard
-- NPC: qm1 (???)
-- Involved in Quests: The Three Magi (for Boreal Hound)
-- @pos -331 -29 -49 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/... | gpl-3.0 |
hsiaoyi/Melo | cocos2d/tests/lua-tests/src/AccelerometerTest/AccelerometerTest.lua | 15 | 2344 | local function AccelerometerMainLayer()
local function title()
return "AccelerometerTest"
end
local layer = cc.Layer:create()
local function onEnter()
layer:setAccelerometerEnabled(true)
local label = cc.Label:createWithTTF(title(), "fonts/arial.ttf", 32)
layer:addChild(l... | apache-2.0 |
vmamidi/trafficserver | plugins/lua/example/test_post.lua | 17 | 1483 | -- 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"); y... | apache-2.0 |
yylangchen/Sample_Lua | frameworks/cocos2d-x/external/lua/luasocket/script/socket/headers.lua | 31 | 3706 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket.socket")
socket.headers = {}
local _M = socket.he... | mit |
hsiaoyi/Melo | cocos2d/external/lua/luasocket/script/socket/headers.lua | 31 | 3706 | -----------------------------------------------------------------------------
-- Canonic header field capitalization
-- LuaSocket toolkit.
-- Author: Diego Nehab
-----------------------------------------------------------------------------
local socket = require("socket.socket")
socket.headers = {}
local _M = socket.he... | apache-2.0 |
blacknewn/bl | tg/tdcli.lua | 102 | 88571 | --[[
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be use... | gpl-3.0 |
samael65535/quick-ng | quick/samples/drag/src/app/Utility.lua | 8 | 5183 |
---获取大小宽高,或者宽高的一半
--常用代码段,用于返回不需要处理的node , #if not node then return nil end#
--获取大小的方法对于gui也适用。
SIZE = function(node)
if not node then return nil end
local size = node:getContentSize()
if size.width == 0 and size.height == 0 then
local w,h = node:getLayoutSize()
return cc.size(w,h)
else
return size
end
... | mit |
Paulsmalakite/sipml5 | asterisk/etc/extensions.lua | 317 | 5827 |
CONSOLE = "Console/dsp" -- Console interface for demo
--CONSOLE = "DAHDI/1"
--CONSOLE = "Phone/phone0"
IAXINFO = "guest" -- IAXtel username/password
--IAXINFO = "myuser:mypass"
TRUNK = "DAHDI/G2"
TRUNKMSD = 1
-- TRUNK = "IAX2/user:pass@provider"
--
-- Extensions are expected to be defined in a global table ... | bsd-3-clause |
xdemolish/darkstar | scripts/globals/spells/horde_lullaby.lua | 2 | 1281 | -----------------------------------------
-- Spell: Horde Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caste... | gpl-3.0 |
nosyndicate/TurnTaking | src/rl/Wolf.lua | 1 | 3116 | require 'torch'
local Wolf, parent = torch.class('rl.Wolf','rl.Learner');
-- interesting thing, WOLF assumes same number of actions in each state I think.
-- assume torch.seed() has been called.
function Wolf:__init(model, numStates, numActions)
parent.__init(self, model);
self.deltaWin = .3;
self.deltaLoose = .5... | gpl-2.0 |
xdemolish/darkstar | scripts/globals/items/quus.lua | 17 | 1313 | -----------------------------------------
-- ID: 5793
-- Item: quus
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity 2
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck
-... | gpl-3.0 |
TGiFallen/Luabox | lua/luabox/libraries/color.lua | 2 | 1945 | --Copyright 2014 Nathan Beals
ColorProxy = luabox.Class()
local container , ply , env = ...
local ColorLookup = luabox.WeakTable( "k" )
env.ColorLookup = ColorLookup
local netc = container:GetNetworker()
local G_Color = Color
function ColorProxy:Initialize( col )
ColorLookup[ self ] = col
end
function ColorProx... | gpl-3.0 |
BlackMesaRP/NS-Black-Mesa | plugins/notes/sh_plugin.lua | 1 | 6608 | PLUGIN.name = "Writing Notes"
PLUGIN.author = "Black Tea"
PLUGIN.desc = "Go write something"
nut.util.Include("sh_lang.lua")
local playerMeta = FindMetaTable("Player")
if SERVER then
netstream.Hook( "Nut_SubmitNote", function( client, data )
local text = data[1]
local ent = data[2]
local note = ents.GetByInd... | gpl-3.0 |
czfshine/UpAndAway | code/lib/addstrings.lua | 2 | 6405 | ---
-- Utility functions for filling STRINGS.
--
local is_character_with_unbelievably_silly_implementation = {
WATHGRITHR = true,
WEBBER = true,
}
---
-- Table returned by the module. All its functions are case insensitive in respect to prefab and character names.
--
-- @class table
-- @name Add
--
local Ad... | gpl-2.0 |
xdemolish/darkstar | scripts/zones/Mhaura/npcs/Graine.lua | 34 | 1595 | -----------------------------------
-- Area: Mhaura
-- NPC: Graine
-- Standard Merchant NPC
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Mhaura/TextIDs");
require("scripts/globals/shop");
---------------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/items/serving_of_emperor_roe.lua | 35 | 1354 | -----------------------------------------
-- ID: 4275
-- Item: serving_of_emperor_roe
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Health 8
-- Magic 8
-- Dexterity 4
-- Mind -4
-----------------------------------------
require("scripts/globals/status");
------------------... | gpl-3.0 |
samael65535/quick-ng | quick/samples/armature/src/layers/ArmatureTestLayer.lua | 8 | 5165 | --
-- Author: SunLightJuly
-- Date: 2014-07-29 10:31:17
--
local ArmatureTestLayer = class("ArmatureTestLayer", function()
return display.newLayer()
end)
local resPathes =
{
s_pPathB1 = "Images/b1.png",
s_pPathB2 = "Images/b2.png",
s_pPathR1 = "Images/r1.png",
s_pPathR2 ... | mit |
xdemolish/darkstar | scripts/zones/Castle_Zvahl_Keep/Zone.lua | 2 | 3716 | -----------------------------------
--
-- Zone: Castle_Zvahl_Keep (162)
--
-----------------------------------
package.loaded["scripts/zones/Castle_Zvahl_Keep/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Castle_Zvahl_Keep/TextIDs");
-----------------------------------
-- onI... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/effects/warcry.lua | 35 | 1071 | -----------------------------------
--
-- EFFECT_WARCRY
--
-- Notes:
-- Savagery TP bonus not cut in half like ffxclopedia says.
-- ffxiclopedia is wrong, bg wiki right. See link where testing was done.
-- http://www.bluegartr.com/threads/108199-Random-Facts-Thread-Other?p=5367464&viewfull=1#post5367464
------... | gpl-3.0 |
xdemolish/darkstar | scripts/globals/abilities/blade_bash.lua | 3 | 1409 | -----------------------------------
-- Ability: Blade Bash
-- @author Katrinka (SinisterSkies)
-- @version 131207
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
-----------------------------------
-- onUseAbility
---------------------------------... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.