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 |
|---|---|---|---|---|---|
albag/Ultraxion-WoW | src/scripts/lua/LuaBridge/Stable Scripts/Azeroth/Karazhan/BOSS_Karazhan_Netherspite.lua | 30 | 1703 | function Netherspite_Portal_PhaseA(Unit, event, miscunit, misc)
print "Netherspite Portal PhaseA"
Unit:SendAreaTriggerMessage("PORTAL PHASE")
Unit:FullCastSpell(30400)
Unit:FullCastSpell(30401)
Unit:FullCastSpell(30402)
end
function Netherspite_Nether_Burn(Unit, event, miscunit, misc)
print "Netherspite Nether B... | agpl-3.0 |
douwekiela/nn | CosineDistance.lua | 26 | 2154 | local CosineDistance, parent = torch.class('nn.CosineDistance', 'nn.Module')
function CosineDistance:__init()
parent.__init(self)
self.gradInput = {torch.Tensor(), torch.Tensor()}
end
function CosineDistance:updateOutput(input)
local input1, input2 = input[1], input[2]
if input1:dim() == 1 then
i... | bsd-3-clause |
tinybearc/sdkbox-facebook-sample | lua/src/cocos/extension/DeprecatedExtensionFunc.lua | 61 | 1351 | if nil == cc.Control then
return
end
--tip
local function deprecatedTip(old_name,new_name)
print("\n********** \n"..old_name.." was deprecated please use ".. new_name .. " instead.\n**********")
end
--functions of CCControl will be deprecated end
local CCControlDeprecated = { }
function CCControlDeprecated.ad... | mit |
testprmagma/amirpga-test | plugins/inpm.lua | 243 | 3007 | do
local function pairsByKeys (t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local iter = function () -- iterator function
i = i + 1
if a[i] == nil then return nil
else return a[i], t[a[i]]
... | gpl-2.0 |
starius/lua-npge | spec/mosses_id65_len50_frame200_3.lua | 2 | 254644 | -- This file covers all sequences;
local not_sandbox = _G and not _G.setDescriptions if not_sandbox then local ShortForm = require 'npge.io.ShortForm' ShortForm.initRawLoading() end;
setDescriptions {["ANOAT&mit1&c"] = "ac=NC_021931.1 Anomodon attenuatus mitochondrion, complete genome",["ANORU&mit1&c"] = "ac=NC... | mit |
hohoCode/treelstm | models/ChildSumTreeLSTM.lua | 10 | 5023 | --[[
A Child-Sum Tree-LSTM with input at each node.
--]]
local ChildSumTreeLSTM, parent = torch.class('treelstm.ChildSumTreeLSTM', 'treelstm.TreeLSTM')
function ChildSumTreeLSTM:__init(config)
parent.__init(self, config)
self.gate_output = config.gate_output
if self.gate_output == nil then self.gate_output ... | gpl-2.0 |
wintersandroid/RF24Network | premake4.lua | 1 | 1289 | local GCC_ARM_CC_PATH = "/usr/bin/arm-linux-gnueabi-gcc"
local GCC_ARM_CPP_PATH = "/usr/bin/arm-linux-gnueabi-g++"
local GCC_ARM_AR_PATH = "/usr/bin/arm-linux-gnueabi-ar"
table.insert(premake.option.list["platform"].allowed, { "arm" })
premake.platforms.arm = {
cfgsuffix = "arm",
iscrosscompiler = true
}
table.ins... | gpl-2.0 |
Mackan90096/Factorio_Mod | prototypes/entity/pig.lua | 1 | 2643 | require("prototypes.entity.particle")
require("prototypes.entity.noise")
data:extend({
{
type = "autoplace-control",
name = "bacon-ore",
richness = true,
order = "b-f-g"
},
{
type = "resource",
name = "bacon-ore",
icon = "__Factorio_Mod__/graphics/icons/bacon-ore.png",
... | mit |
geldoronie/DuneRace | Scripts/AnimationManager.lua | 1 | 4776 | --[[
This script provides a programming interface to easily manage animation transitions.
Just call the SetAnimationSequence() function from any other script and the entity's animation
will be automatically blended from the previous sequence. It's okay to call this repeatedly with
the same sequence. A new sequence wi... | mit |
Abedzadeh5928/khodam3 | plugins/Help_en.lua | 3 | 3809 | do
function run(msg, matches)
return 'QuickTeam Command List'.. [[
________________________________
--------------------------------
_______In the name of Allah_______
--------------------------------
kick [آیدی،کد،ریپلای]
شخص مورد نظر از گروه اخراج ميشود.
ban [آیدی،کد،ریپلای]
شخص مورد نظر از گروه تحریم میشود
unban... | gpl-2.0 |
Enhex/Urho3D-CEF3 | Bin_Debug/Data/LuaScripts/Utilities/Touch.lua | 32 | 2209 | -- Mobile framework for Android/iOS
-- Gamepad from Ninja Snow War
-- Touches patterns:
-- - 1 finger touch = pick object through raycast
-- - 1 or 2 fingers drag = rotate camera
-- - 2 fingers sliding in opposite direction (up/down) = zoom in/out
-- Setup: Call the update function 'UpdateTouches()' from... | mit |
adde88/Probably | interface/interface.lua | 1 | 27063 | -- ProbablyEngine Rotations
-- Released under modified BSD, see attached LICENSE.
local L = ProbablyEngine.locale.get
ProbablyEngine.interface = {}
local DiesalTools = LibStub("DiesalTools-1.0")
local DiesalStyle = LibStub("DiesalStyle-1.0")
local DiesalGUI = LibStub("DiesalGUI-1.0")
local DiesalMenu = LibStub("Die... | bsd-3-clause |
jcrom/emp-doc | doc/info_center/ewp_demo/redis/lua/redis_cache/set_user_obj.lua | 2 | 2337 | -- KEYS只指定客户号
-- ARGV[]格式为:用户信息数据个数N,
-- 用户信息数据1键,用户信息数据1值,......,用户信息数据N键,用户信息数据N值,
-- 账户1,账户1信息数据个数M1,
-- 账户1信息数据1键,账户1信息数据1值,......,账户1信息数据M1键,账户1信息数据M1值,
-- 账户2,账户2信息数据个数M2,
-- 账户2信息数据1键,账户2信息数据1值,......,账户2信息数据M2键,账户2信息数据M2值,
... | mit |
mkjung/ivi-media-player | share/lua/meta/art/01_googleimage.lua | 74 | 1764 | --[[
Gets an artwork from images.google.com
$Id$
Copyright © 2007 the VideoLAN team
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 la... | gpl-3.0 |
ryanwmoore/fceux | output/luaScripts/FRKfunctions.lua | 9 | 20772 | _FRK_Fn= {}
_FRK_Fn.version= 1
--FatRatKnight
-- Various little functions for use.
-- Shortly, I will list out functions and keywords that the script provides
-- access to. But first, I feel a need to explain a few things...
-- Option keywords are simply global variables that this auxillary script looks
--... | gpl-2.0 |
MOSAVI17/Freebot | plugins/quotes.lua | 651 | 1630 | local quotes_file = './data/quotes.lua'
local quotes_table
function read_quotes_file()
local f = io.open(quotes_file, "r+")
if f == nil then
print ('Created a new quotes file on '..quotes_file)
serialize_to_file({}, quotes_file)
else
print ('Quotes loaded: '..quotes_file)
f... | gpl-2.0 |
Elkazan/darkstar | scripts/zones/Norg/npcs/Muzaffar.lua | 14 | 3298 | -----------------------------------
-- Area: Norg
-- NPC: Muzaffar
-- Standard Info NPC
-- Quests: Black Market
-- @zone 252
-- @pos 16.678, -2.044, -14.600
-----------------------------------
require("scripts/zones/Norg/TextIDs");
require("scripts/globals/titles");
require("scripts/globals/quests");
-----... | gpl-3.0 |
Vadavim/test | scripts/zones/PsoXja/npcs/HomePoint#1.lua | 12 | 1170 | -----------------------------------
-- Area: PsoXja
-- NPC: HomePoint#1
-- @pos -58 40 14 10
-----------------------------------
package.loaded["scripts/zones/FeiYin/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/FeiYin/TextIDs");
require("scripts/globals/homepoint");
-----------------... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Northern_San_dOria/npcs/Danngogg.lua | 36 | 1427 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Danngogg
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quests... | gpl-3.0 |
CommandPost/CommandPost | src/extensions/cp/apple/finalcutpro/timeline/VideoRole.lua | 2 | 2058 | --- === cp.apple.finalcutpro.timeline.VideoRole ==
---
--- *Extends [Role](cp.apple.finalcutpro.timeline.Role.md)*
---
--- A [Role](cp.apple.finalcutpro.timeline.Role.md) representing Video clips.
-- local log = require "hs.logger" .new "VideoRole"
local axutils = require "cp.ui.axutils"
l... | mit |
Elkazan/darkstar | scripts/zones/Bastok_Mines/npcs/Eulaphe.lua | 28 | 2055 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Eulaphe
-- Type: Chocobo Renter
-----------------------------------
require("scripts/globals/chocobo");
require("scripts/globals/keyitems");
require("scripts/globals/settings");
require("scripts/globals/status");
---------------------------... | gpl-3.0 |
davweb/hammerspoon-config | init.lua | 1 | 2444 | -- luacheck: globals hs
-- configure Hammerspoon console
hs.console.consoleFont("Source Code Pro")
require('config-watcher')
local windows = require('windows')
local text = require('text')
require('keyboard')
require('power')
require('network')
-- require('do-not-disturb')
windows.addCategory('terminals', {
'iTerm... | unlicense |
Elkazan/darkstar | scripts/globals/items/marron_glace.lua | 35 | 1337 | -----------------------------------------
-- ID: 4502
-- Item: Marron Glace
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Magic % 13
-- Magic Cap 85
-- Magic Regen While Healing 1
-----------------------------------------
require("scripts/globals/status");
----------------... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Attohwa_Chasm/mobs/Sekhmet.lua | 13 | 1828 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Sekhmet
-- ID: 16805962
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-------------... | gpl-3.0 |
Vadavim/test | scripts/zones/Attohwa_Chasm/mobs/Sekhmet.lua | 13 | 1828 | -----------------------------------
-- Area: Attohwa Chasm
-- NPC: Sekhmet
-- ID: 16805962
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onMobInitialize Action
-------------... | gpl-3.0 |
grimmsdottir/DSTmod-Orion_Castilio | scripts/prefabs/up_sanity.lua | 1 | 1024 | local assets=
{
Asset("ANIM", "anim/up_sanity.zip"),
Asset("IMAGE", "images/inventoryimages/up_sanity.tex"),
Asset("ATLAS", "images/inventoryimages/up_sanity.xml"),
}
local function fn(Sim)
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddAnimState()
inst.entity:AddSoundEmitter()
i... | agpl-3.0 |
ff94315/luci-1 | protocols/luci-proto-3g/luasrc/model/cbi/admin_network/proto_3g.lua | 52 | 4346 | -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local map, section, net = ...
local device, apn, service, pincode, username, password, dialnumber
local ipv6, maxwait, defaultroute, metric, peerdns, dns,
keepalive_failure, keepalive_interval, demand
d... | apache-2.0 |
Vadavim/test | scripts/zones/Xarcabard/npcs/Heavy_Bear_IM.lua | 30 | 3041 | -----------------------------------
-- Area: Xarcabard
-- NPC: Heavy Bear, I.M.
-- Type: Border Conquest Guards
-- @pos -133.678 -22.517 112.224 112
-----------------------------------
package.loaded["scripts/zones/Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
req... | gpl-3.0 |
hoku586/darkstar | scripts/globals/items/porcupine_pie.lua | 12 | 2061 | -----------------------------------------
-- ID: 5156
-- Item: porcupine_pie
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 55
-- Strength 6
-- Vitality 2
-- Intelligence -3
-- Mind 3
-- HP recovered while healing 2
-- MP recovered while healing 2
-- Accuracy 5
-- Attack % 18 (cap 95)
... | gpl-3.0 |
hoku586/darkstar | scripts/zones/Qufim_Island/npcs/Giant_Footprint.lua | 14 | 1059 | -----------------------------------
-- Area: Qufim Island
-- NPC: Giant Footprint
-- Involved in quest: Regaining Trust
-- @pos 501 -11 354 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Qufim_Island/TextID... | gpl-3.0 |
Elkazan/darkstar | scripts/zones/Temenos/mobs/Goblin_Slaughterman.lua | 16 | 1072 | -----------------------------------
-- Area: Temenos N T
-- NPC: Goblin_Slaughterman
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------... | gpl-3.0 |
linushsao/sky_islands_game-linus | mods/bitchange/shop.lua | 2 | 10922 | --Created by Krock for the BitChange mod
--Parts of codes, images and ideas from Dan Duncombe's exchange shop
-- https://forum.minetest.net/viewtopic.php?id=7002
--License: WTFPL
local exchange_shop = {}
local function has_exchange_shop_privilege(meta, player)
local player_name = player:get_player_name()
... | gpl-3.0 |
27629678/cinderella | huiguniang/scripts/app/views/BubbleButton.lua | 1 | 1675 |
local BubbleButton = {}
-- create bubble button
function BubbleButton.new(params)
local button -- pre-reference
--button = ui.newImageMenuItem(params)
button = display.newSprite(params.image, params.x, params.y)
button.bubble = function()
local function zoom1(offset, time, onCom... | apache-2.0 |
prineside/mtaw | resources/MTAW/server/account.lua | 1 | 16210 | --------------------------------------------------------------------------------
--<[ Общие события ]>-----------------------------------------------------------
--------------------------------------------------------------------------------
addEvent( "Account.onPlayerLogIn", false ) -- Игрок вошел в аккаунт ... | mit |
ctakemoto/Human-Controlled-Naos | Player/Motion/keyframes/km_Nao_KickForwardRight_old.lua | 19 | 5537 | local mot = {};
mot.servos = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22};
mot.keyframes = {
{
angles = {-0.052, 0.051, 0.911, 0.661, -0.512, -0.827, -0.232, -0.011, -0.387, 1.355, -0.779, 0.048, -0.232, -0.023, -0.357, 1.338, -0.792, 0.003, 1.226, -0.457, 1.300, 0.391, },
stiffness = {0.900, 0.... | gpl-3.0 |
mgooty/kong | spec/plugins/ratelimiting/access_spec.lua | 13 | 7363 | local spec_helper = require "spec.spec_helpers"
local http_client = require "kong.tools.http_client"
local cjson = require "cjson"
local STUB_GET_URL = spec_helper.STUB_GET_URL
local function wait()
-- Wait til the beginning of a new second before starting the test
-- to avoid ending up in an edge case when the s... | mit |
prineside/mtaw | resources/hedit/client/gui/guievents.lua | 2 | 13733 | local abs = math.abs
local scrollbarColor = tocolor(255, 255, 255, 50)
local SCROLLBAR_THRESHOLD = 10 -- in pixels
function onMove ( _, _, cX, cY )
if not (pressedButton and scrollbar and tobool(getUserConfig("dragmeterEnabled"))) then return end
if not scrollbar.thresholdReached then
if not( abs(scro... | mit |
moteus/xlsxwriter.lua | test/unit/sharedstrings/sharedstrings01.lua | 2 | 1771 | ----
-- Tests for the xlsxwriter.lua sharedstrings class.
--
-- Copyright 2014-2015, John McNamara, jmcnamara@cpan.org
--
require "Test.More"
require "Test.LongString"
plan(8)
----
-- Tests setup.
--
local expected
local got
local caption
local Sharedstrings = require "xlsxwriter.sharedstrings"
local sharedstrings
l... | mit |
newfies-dialer/newfies-dialer | lua/libs/uuid4.lua | 12 | 3046 | --[[
The MIT License (MIT)
Copyright (c) 2012 Toby Jennings
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, mer... | mpl-2.0 |
huahang/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- 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 ma... | apache-2.0 |
mtesseracttech/CustomEngine | lib/bullet/src/build3/bin2cpp.lua | 15 | 1309 | function convertFile(filenameIn, filenameOut, stringname)
print("\nfilenameOut = " .. filenameOut)
local f = assert(io.open(filenameIn, "rb"))
local fw = io.open(filenameOut,"w")
fw:write(string.format("char %s[]={", stringname))
local block = 10
while true do
local bytes = f:read(block)
i... | apache-2.0 |
dualface/easycocos-lua-framework | src/framework/string.lua | 3 | 2524 | --[[
Copyright (c) 2015 gameboxcloud.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... | mit |
ninnghazad/dronetest | dronetest/rom/apis/term.lua | 1 | 6300 | -- TERM API
-- APIs have minetest and so on available in scope
local term = {}
term.cursorPos = {1,1}
function term.clear()
dronetest.console_histories[dronetest.current_id] = ""
end
function term.write(msg)
dronetest.print(dronetest.current_id,msg,true)
return string.len(msg)
end
term.keyNames = {
"Left B... | mit |
furkiak/TBTKO | Map Guest Client Paketi/Quests/24424_beda.lua | 1 | 12963 | local Ret = 0;
local NPC = 24424;
if (EVENT == 190) then
QuestNum = SearchQuest(UID, NPC);
if (QuestNum == 0) then
SelectMsg(UID, 2, -1, 4513, NPC, 10, 193);
elseif (QuestNum > 1 and QuestNum < 100) then
NpcMsg(UID, 4514, NPC)
else
EVENT = QuestNum
end
end
if (EVENT == 193) then
Ret = 1;
end
if (EVENT =... | gpl-3.0 |
luarocks/luarocks | src/luarocks/upload/api.lua | 2 | 8032 |
local api = {}
local cfg = require("luarocks.core.cfg")
local fs = require("luarocks.fs")
local dir = require("luarocks.dir")
local util = require("luarocks.util")
local persist = require("luarocks.persist")
local multipart = require("luarocks.upload.multipart")
local Api = {}
local function upload_config_file()
... | mit |
jeremyosborne/lua | game_letters_in_space/example/lib/class.lua | 4 | 1726 | --[[
Simple class builder.
--]]
--- Class constructor.
-- @param [constructor] {function} Optional constructor. Passed instance
-- reference followed by any arguments.
-- @param [baseClass] {table} A parent class. Inheritance set
-- prototypically.
-- @return {table} A callable table will be returned, one that ca... | mit |
Gameover20/TeleSeed | plugins/admin.lua | 95 | 10643 | local function set_bot_photo(msg, success, result)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/bot.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
set_profile_photo(file, ok_cb, false)
send_large_msg(rec... | gpl-2.0 |
SolidWallOfCode/trafficserver | plugins/lua/example/sethost.lua | 17 | 1188 | -- 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 |
Temeez/eso-grouploot | GroupLoot/GroupLootHighscore.lua | 1 | 12719 | GroupLootHighscore = ZO_Object:Subclass()
local highscoreSettings = nil
local highscoreWindowIsHidden = true
function GroupLootHighscore:New()
local obj = ZO_Object.New(self)
obj:Initialize()
return obj
end
function GroupLootHighscore:Initialize()
highscoreSettings = ZO_SavedVars:New("GroupLootHighsco... | mit |
gentooliano/nodemcu-firmware | examples/fragment.lua | 55 | 19918 | pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50)
pwm.start(0) pwm.start(1) pwm.start(2)
function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end
wifi.sta.autoconnect(1)
a=0
tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end)
sv:on("receive", function(s,... | mit |
gentooliano/nodemcu-firmware | nodemcu_0.9.6-dev/nodemcu-firmware-0.9.6-dev_20150704/examples/fragment.lua | 55 | 19918 | pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50)
pwm.start(0) pwm.start(1) pwm.start(2)
function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end
wifi.sta.autoconnect(1)
a=0
tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end)
sv:on("receive", function(s,... | mit |
zerog2k/nodemcu-firmware | examples/fragment.lua | 55 | 19918 | pwm.setup(0,500,50) pwm.setup(1,500,50) pwm.setup(2,500,50)
pwm.start(0) pwm.start(1) pwm.start(2)
function led(r,g,b) pwm.setduty(0,g) pwm.setduty(1,b) pwm.setduty(2,r) end
wifi.sta.autoconnect(1)
a=0
tmr.alarm( 1000,1,function() if a==0 then a=1 led(50,50,50) else a=0 led(0,0,0) end end)
sv:on("receive", function(s,... | mit |
wzydhek/Automato-ATITD | scripts/wood.lua | 2 | 2791 | -- Updated by Manon for T8 beta
-- Updated by Huggz for T8 proper
--
dofile("screen_reader_common.inc");
dofile("ui_utils.inc");
delay_time = 3000;
total_delay_time = 300000;
carrot_delay_time = 10*60*1000;
function doit()
carrot_timer = lsGetTimer();
askForWindow("Pin 5-10 tree windows, will click them VERTICALLY... | mit |
yongkangchen/poker-client | Assets/Runtime/Lua/dismiss.lua | 1 | 1093 | --[[
https://github.com/yongkangchen/poker-server
Copyright (C) 2016 Yongkang Chen lx1988cyk#gmail.com
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but... | gpl-3.0 |
luarocks/luarocks | src/luarocks/manif.lua | 2 | 8239 | --- Module for handling manifest files and tables.
-- Manifest files describe the contents of a LuaRocks tree or server.
-- They are loaded into manifest tables, which are then used for
-- performing searches, matching dependencies, etc.
local manif = {}
local core = require("luarocks.core.manif")
local persist = requ... | mit |
ajaragoneses/GTI_VLC | share/lua/playlist/katsomo.lua | 97 | 2906 | --[[
Translate www.katsomo.fi video webpages URLs to the corresponding
movie URL
$Id$
Copyright © 2009 the VideoLAN team
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 o... | gpl-2.0 |
ramin1998/ramin22 | plugins/azan.lua | 2 | 3161 | --[[
#
# @GPMOD
# @Dragon_Born
#
]]
do
function run_bash(str)
local cmd = io.popen(str)
local result = cmd:read('*all')
return result
end
local api_key = nil
local base_api = "https://maps.googleapis.com/maps/api"
function get_latlong(area)
local api = base_api .. "/geocode/json?"
loc... | gpl-2.0 |
ctakemoto/Human-Controlled-Naos | Player/Motion/stance.lua | 4 | 3560 | module(..., package.seeall);
require('Body')
require('Kinematics')
require('walk')
require('vector')
active = true;
t0 = 0;
bodyHeight = Config.walk.bodyHeight;
footY = walk.footY;
supportX = walk.supportX;
qLArm = walk.qLArm;
qRArm = walk.qRArm;
bodyTilt=walk.bodyTilt;
--qLArm = math.pi/180*vector.new({105, 12, -85... | gpl-3.0 |
ctakemoto/Human-Controlled-Naos | Player/HeadFSM/NaoGoalie/headTrack.lua | 12 | 1552 | module(..., package.seeall);
require('Body')
require('Config')
require('vcm')
t0 = 0;
timeout = 30.0;
-- ball detection timeout
tLost = 2.0;
--forikinecam
camOffsetZ = Config.head.camOffsetZ;
pitchMin = Config.head.pitchMin;
pitchMax = Config.head.pitchMax;
yawMin = Config.head.yawMin;
yawMax = Config.head.yawMax;
... | gpl-3.0 |
vnavbha/game | code/src/tools/premake/contrib/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | mit |
osch/lmake | lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first posit... | gpl-2.0 |
kaustavha/lit | deps/readline.lua | 3 | 13693 | --[[
Copyright 2014-2015 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | apache-2.0 |
technomancy/bussard | ship/hud.lua | 1 | 4032 | local utils = require "utils"
local body = require "body"
local hud_text = "speed: %0.2f pos: %5.2f, %5.2f\n" ..
"target: %s distance: %0.2f\n" ..
"epoch: %s credits: %s"
local vector_size = 50
local w, h = love.graphics:getWidth(), love.graphics:getHeight()
return {
-- TODO: data-driven hud
... | gpl-3.0 |
prineside/mtaw | resources/MTAW/client/dimension.lua | 2 | 2938 | --------------------------------------------------------------------------------
--<[ Внутренние события ]>------------------------------------------------------
--------------------------------------------------------------------------------
addEvent( "Dimension.onServerRegistryResponse", true ) -- Начальная заг... | mit |
ctakemoto/Human-Controlled-Naos | Player/Test/test_vision.lua | 5 | 7290 | module(... or "", package.seeall)
require('unix')
webots = false;
darwin = false;
-- mv up to Player directory
unix.chdir('..');
local cwd = unix.getcwd();
-- the webots sim is run from the WebotsController dir (not Player)
if string.find(cwd, "WebotsController") then
webots = true;
cwd = cwd.."/Pla... | gpl-3.0 |
gabrielc63/nvim | after/plugin/lualine.rc.lua | 1 | 1217 | local status, lualine = pcall(require, 'lualine')
if (not status) then return end
lualine.setup {
options = {
icons_enabled = true,
theme = 'auto',
section_separators = { left = '', right = '' },
component_separators = { left = '', right = ''},
disabled_filetypes = {}
},
sections = {
... | mit |
Ayditor/HPW_Rewrite | lua/hpwrewrite/cvars.lua | 2 | 7760 | if not HpwRewrite then return end
HpwRewrite.CVars = HpwRewrite.CVars or { }
if SERVER then
function HpwRewrite:UseSaver(bool)
if bool then
hook.Add("PlayerSpawn", "hpwrewrite_saverfortables", function(ply)
if not ply.HpwRewrite then
ply.HpwRewrite = { }
HpwRewrite:LogDebug(ply:Name() .. " HpwRe... | mit |
amirkingred/nod | plugins/time.lua | 94 | 3004 | -- Implement a command !time [area] which uses
-- 2 Google APIs to get the desired result:
-- 1. Geocoding to get from area to a lat/long pair
-- 2. Timezone to get the local time in that lat/long location
-- Globals
-- If you have a google api key for the geocoding/timezone api
api_key = nil
base_api = "https://m... | gpl-2.0 |
Maxize/LuaPractice | practice/testfor13.1.lua | 1 | 1156 | Set = {};
local mt = {};
function Set.new (l)
local set = {};
setmetatable(set,mt);
for _, v in ipairs(l) do
set[v] = true;
end
return set;
end
function Set.union(a, b)
if getmetatable(a) ~= mt or getmetatable(b) ~= mt then
error(" attempt to 'add' a set with a non-set value ",2);
end
local res = Set.ne... | apache-2.0 |
Enignite/darkstar | scripts/globals/items/bowl_of_oceanfin_soup.lua | 36 | 1822 | -----------------------------------------
-- ID: 6070
-- Item: Bowl of Oceanfin Soup
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- Accuracy % 15 Cap 95
-- Ranged Accuracy % 15 Cap 95
-- Attack % 19 Cap 85
-- Ranged Attack % 19 Cap 85
-- Amorph Killer 6
-----------------------------------... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/heat_rod.lua | 41 | 1097 | -----------------------------------------
-- ID: 17071
-- Item: Heat Rod
-- Additional Effect: Lightning Damage
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------
-- onAdditionalEffect Action
------------------------------... | gpl-3.0 |
Rakoonic/Skybox | code/example2.lua | 1 | 2851 | --------------------------------------------------------------
-- SETUP -----------------------------------------------------
local __G = require( "libs.globals" )
local skyboxClass = require( "libs.skybox" )
local storyboard = require( "storyboard" )
local scene = storyboard.newScene()
local setUpSkyb... | mit |
troopizer/ot-server | data/npc/scripts/beer4.lua | 1 | 3219 | local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreature... | gpl-2.0 |
dwdm/snabbswitch | src/lib/lua/alt_getopt.lua | 17 | 4361 | -- Copyright (c) 2009 Aleksey Cheusov <vle@gmx.net>
--
-- 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,... | apache-2.0 |
ld-test/luaejdb | ejdb/inspect.lua | 5 | 6153 | -----------------------------------------------------------------------------------------------------------------------
-- inspect.lua - v1.2.1 (2013-01)
-- Enrique García Cota - enrique.garcia.cota [AT] gmail [DOT] com
-- human-readable representations of tables.
-- inspired by http://lua-users.org/wiki/TableSerializa... | lgpl-2.1 |
fcpxhacks/fcpxhacks | src/extensions/cp/adobe/aftereffects/init.lua | 2 | 11413 | --- === cp.adobe.aftereffects ===
---
--- Adobe After Effects Extension
local require = require
--local log = require "hs.logger".new "ae"
local osascript = require "hs.osascript"
local app = require "cp.adobe.aftereffects.app"
local shortcuts = require "cp.adobe.a... | mit |
Enignite/darkstar | scripts/globals/spells/thunderstorm.lua | 31 | 1165 | --------------------------------------
-- Spell: Thunderstorm
-- Changes the weather around target party member to "thundery."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------... | gpl-3.0 |
Enignite/darkstar | scripts/globals/mobskills/Dark_Wave.lua | 18 | 1178 | ---------------------------------------------
-- Dark Wave
--
-- Description: A wave of dark energy washes over targets in an area of effect. Additional effect: Bio
-- Type: Magical
-- Utsusemi/Blink absorb: Ignores shadows
-- Range: 10' radial
-- Notes: Severity of Bio effect varies by time of day, from 8... | gpl-3.0 |
BooM-amour/MOHAMAD | plugins/all.lua | 54 | 4746 | do
data = load_data(_config.moderation.data)
local function get_msgs_user_chat(user_id, chat_id)
local user_info = {}
local uhash = 'user:'..user_id
local user = redis:hgetall(uhash)
local um_hash = 'msgs:'..user_id..':'..chat_id
user_info.msgs = tonumber(redis:get(um_hash) or 0)
user_info.name = user_print... | gpl-2.0 |
florian-shellfire/luci | modules/luci-base/luasrc/tools/webadmin.lua | 59 | 2301 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.tools.webadmin", package.seeall)
local util = require "luci.util"
local uci = require "luci.model.uci"
local ip = require "luci.ip"
func... | apache-2.0 |
QUSpilPrgm/cuberite | Server/Plugins/APIDump/Hooks/OnKilling.lua | 36 | 1190 | return
{
HOOK_KILLING =
{
CalledWhen = "A player or a mob is dying.",
DefaultFnName = "OnKilling", -- also used as pagename
Desc = [[
This hook is called whenever a {{cPawn|pawn}}'s (a player's or a mob's) health reaches zero. This
means that the pawn is about to be killed, unless a plugin "revives" them... | apache-2.0 |
fcpxhacks/fcpxhacks | src/extensions/cp/apple/finalcutpro/export/GoToPrompt.lua | 2 | 5658 | --- === cp.apple.finalcutpro.export.GoToPrompt ===
---
--- Go To Prompt.
local require = require
local prop = require "cp.prop"
local axutils = require "cp.ui.axutils"
local just = require "cp.just"
local tools = require "cp.tools"
local ... | mit |
tks2103/angel-test | Code/Tools/BuildScripts/lua-lib/penlight-1.0.2/tests/test-text.lua | 7 | 3375 | local T = require 'pl.text'
local utils = require 'pl.utils'
local Template = T.Template
local asserteq = require 'pl.test'.asserteq
local OrderedMap = require 'pl.OrderedMap'
local t1 = Template [[
while true do
$contents
end
]]
assert(t1:substitute {contents = 'print "hello"'},[[
while true do
... | bsd-3-clause |
Enignite/darkstar | scripts/zones/Windurst_Woods/npcs/Millerovieunet.lua | 17 | 1535 | -----------------------------------
-- Area: Windurst_Woods
-- NPC: Millerovieunet
-- Only sells when Windurst controlls Qufim Region
-- Confirmed shop stock, August 2013
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
requ... | gpl-3.0 |
weinyzhou/ffmpegAutoBuild | ffmpegAutoBuild/main.lua | 1 | 4155 | --[[
描述: main 主执行模块
作者: weiny zhou
创建日期: 2012-04-30
修改日期: 2012-04-30
版权: 版权所有,未经授权不得擅自拷贝复制或传播本代码的部分或全部.违者必究!
]]--
PROJECT_TYPE=3;--项目类型
curPath="E:/WeinyDesign/WeinyCore/ffmpegAutoBuild/";
luaExt=".lua";
local ffmpegProjPath="C:/Users/Weiny/Desktop/ffmpeg/";
local unixDir=""$(WZLINUX_INC)"";
VCIncDir="&qu... | gpl-2.0 |
zendey/Flashcard_mobile_app | scripts/screens/events-confirm-exit.lua | 1 | 2039 | -----------------------------------------------------------------------------------------
--
-- events-confirm-exit.lua
-- Events for confirm exit.
--
-----------------------------------------------------------------------------------------
local eventsConfirmExit = {}
-- Include files.
local globalVariable = requir... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Upper_Jeuno/npcs/Mhao_Kehtsoruho.lua | 38 | 1041 | -----------------------------------
-- Area: Upper Jeuno
-- NPC: Mhao Kehtsoruho
-- Type: Past Event Watcher
-- @zone: 244
-- @pos -73.032 -1 146.919
--
-- Auto-Script: Requires Verification (Verfied by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Upper_Jeuno/TextIDs"] = nil;
--------... | gpl-3.0 |
thoaionline/vlc | share/lua/playlist/dailymotion.lua | 19 | 3036 | --[[
Translate Daily Motion video webpages URLs to the corresponding
FLV URL.
$Id$
Copyright © 2007-2011 the VideoLAN team
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 versio... | gpl-2.0 |
Enignite/darkstar | scripts/zones/Bastok_Markets_[S]/npcs/Karlotte.lua | 38 | 1069 | ----------------------------------
-- Area: Bastok Markets [S]
-- NPC: Karlotte
-- Type: Item Deliverer
-- @pos -191.646 -8 -36.349 87
-----------------------------------
package.loaded["scripts/zones/Bastok_Markets_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Bastok_Markets_[S]... | gpl-3.0 |
florian-shellfire/luci | modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/fstab/mount.lua | 29 | 3928 | -- Copyright 2010 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local fs = require "nixio.fs"
local util = require "nixio.util"
local has_fscheck = fs.access("/usr/sbin/e2fsck")
local block = io.popen("block info", "r")
local ln, dev, devices = nil, nil, {}
repeat
ln =... | apache-2.0 |
Enignite/darkstar | scripts/zones/Lower_Jeuno/npcs/Harnek.lua | 17 | 2370 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Harnek
-- Starts and Finishes Quest: The Tenshodo Showdown (finish)
-- @zone 245
-- @pos 44 0 -19
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
package.loaded["scripts/globals/settings"] = nil;
--... | gpl-3.0 |
Enignite/darkstar | scripts/globals/items/fum-long_salmon_sub.lua | 36 | 1452 | -----------------------------------------
-- ID: 4266
-- Item: Fum-Long Salmon Sub
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Agility 1
-- Vitality 1
-- Dexterity 2
-- Intelligence 2
-- Mind -2
-- Ranged Accuracy 3
-----------------------------------------
require("scripts/globals/st... | gpl-3.0 |
fcpxhacks/fcpxhacks | src/extensions/cp/spec/Scenario.lua | 2 | 7030 | --- === cp.spec.Scenario ===
---
--- A [Definition](cp.spec.Definition.md) which describes a specific scenario.
---
--- A `Scenario` is most typically created via the [it](cp.spec.md#it) function, like so:
---
--- ```lua
--- local spec = require "cp.spec"
--- local describe, it = spec.describe, spec.it
---
--... | mit |
apung/prosody-modules | mod_captcha_registration/util/dataforms.lua | 33 | 6601 | -- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
local setmetatable = setmetatable;
local pairs, ipairs = pairs, ipairs;
local tostring, type, next = tost... | mit |
Shayan123456/bot | bot/bot.lua | 2 | 6650 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
local f = assert(io.popen('/usr/bin/git describe --tags', 'r'))
VERSION = assert(f:read('*a'))
f:close()
-- This function is ... | gpl-2.0 |
Enignite/darkstar | scripts/globals/items/pear_crepe.lua | 36 | 1325 | -----------------------------------------
-- ID: 5777
-- Item: Pear Crepe
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- Intelligence +2
-- MP Healing +2
-- Magic Accuracy +5
-- Magic Defense +1
-----------------------------------------
require("scripts/globals/status");
--------------... | gpl-3.0 |
Enignite/darkstar | scripts/zones/Southern_San_dOria_[S]/npcs/AshmeaBGreinner1.lua | 36 | 1124 | -----------------------------------
-- Area: Southern SandOria [S]
-- NPC: Ashmea B Greinner
-- @zone 80
-- @pos 2 2 -81
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria_[S]/TextIDs"] = nil;
require("scripts/zones/Southern_San_dOria_[S]/TextIDs");
------------------------... | gpl-3.0 |
clevermm/clever-bot | plugins/translate.lua | 13 | 1365 | do
function translate(source_lang, target_lang, text)
local path = "http://translate.google.com/translate_a/single"
— URL query parameters
local params = {
client = "gtx",
ie = "UTF-8",
oe = "UTF-8",
hl = "en",
dt = "t",
tl = target_lang or "en",
sl = source_lang or "auto",
q = UR... | gpl-2.0 |
bgamari/pandoc | data/sample.lua | 22 | 8328 | -- This is a sample custom writer for pandoc. It produces output
-- that is very similar to that of pandoc's HTML writer.
-- There is one new feature: code blocks marked with class 'dot'
-- are piped through graphviz and images are included in the HTML
-- output using 'data:' URLs.
--
-- Invoke with: pandoc -t sample.... | gpl-2.0 |
apung/prosody-modules | mod_tcpproxy/mod_tcpproxy.lua | 31 | 3923 | local st = require "util.stanza";
local xmlns_ibb = "http://jabber.org/protocol/ibb";
local xmlns_tcp = "http://prosody.im/protocol/tcpproxy";
local host_attr, port_attr = xmlns_tcp.."\1host", xmlns_tcp.."\1port";
local base64 = require "util.encodings".base64;
local b64, unb64 = base64.encode, base64.decode;
local... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.