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 |
|---|---|---|---|---|---|
rpetit3/darkstar | scripts/zones/Jugner_Forest/npcs/Chaplion_RK.lua | 13 | 3310 | -----------------------------------
-- Area: Jugner Forest
-- NPC: Chaplion, R.K.
-- Outpost Conquest Guards
-- @pos 54 0 -11 104
-------------------------------------
package.loaded["scripts/zones/Jugner_Forest/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/conquest");
require("scrip... | gpl-3.0 |
horizonrz/bteam | libs/JSON.lua | 3765 | 34843 | -- -*- coding: utf-8 -*-
--
-- Simple JSON encoding and decoding in pure Lua.
--
-- Copyright 2010-2014 Jeffrey Friedl
-- http://regex.info/blog/
--
-- Latest version: http://regex.info/blog/lua/json
--
-- This code is released under a Creative Commons CC-BY "Attribution" License:
-- http://creativecommons.org/licenses... | gpl-2.0 |
luizfeliperj/nodemcu-firmware | lua_examples/webap_toggle_pin.lua | 20 | 1180 | wifi.setmode(wifi.SOFTAP)
wifi.ap.config({ssid="test",pwd="12345678"})
gpio.mode(1, gpio.OUTPUT)
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
conn:on("receive", function(client,request)
local buf = ""
local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP")
... | mit |
vlapsley/outback | mods/walls/init.lua | 1 | 1464 | walls = {}
walls.register = function(wall_name, wall_desc, wall_texture, wall_mat, wall_sounds)
-- inventory node, and pole-type wall start item
minetest.register_node(wall_name, {
description = wall_desc,
drawtype = "nodebox",
node_box = {
type = "connected",
fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}},... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Temenos/mobs/Enhanced_Beetle.lua | 23 | 1035 | -----------------------------------
-- Area: Temenos W T
-- NPC: Enhanced_Beetle
-----------------------------------
package.loaded["scripts/zones/Temenos/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Temenos/TextIDs");
-----------------------------... | gpl-3.0 |
tvandijck/premake-core | modules/android/vsandroid_vcxproj.lua | 5 | 14784 | --
-- android/vsandroid_vcxproj.lua
-- vs-android integration for vstudio.
-- Copyright (c) 2012-2015 Manu Evans and the Premake project
--
local p = premake
p.modules.vsandroid = { }
local android = p.modules.android
local vsandroid = p.modules.vsandroid
local vc2010 = p.vstudio.vc2010
local vstudio = p.vstud... | bsd-3-clause |
chrizel/Yzis | tests/scripts/test_luaunit.lua | 2 | 1658 | --[[
test_luaunit.lua
Description: Tests for the luaunit testing framework
Author: Philippe Fremy <phil@freehackers.org>
Version: 1.1
License: LGPL
]]--
-- This is a bit tricky since the test uses the features that it tests.
require('luaunit')
TestLuaUnit = {} --class
function TestLuaUnit:test_assertErro... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Phomiuna_Aqueducts/npcs/_0rp.lua | 13 | 1640 | -----------------------------------
-- Area: Phomiuna_Aqueducts
-- NPC: Oil lamp
-- @pos -60 -23 60 27
-----------------------------------
package.loaded["scripts/zones/Phomiuna_Aqueducts/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Phomiuna_Aqueduct... | gpl-3.0 |
root4r08/RoOt3r08 | plugins/inrealm.lua | 183 | 36473 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if is_sudo(msg) or is_realm(msg) and is_admin1(msg) then
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_na... | gpl-2.0 |
dkogan/notion | contrib/styles/look_cleansteel_trans.lua | 3 | 4758 | -- Authors: Steve Pomeroy <steve@staticfree.info>
-- License: Unknown
-- Last Changed: Unknown
--
-- look-cleansteel_trans.lua drawing engine configuration file for Ion.
-- Based on the default cleansteel look, but with added transparency
-- and a few other things that I like. -Steve Pomeroy <steve@staticfree.info>
i... | lgpl-2.1 |
mrbangi/yagop | plugins/plugiins.lua | 134 | 6165 | do
-- Returns the key (index) in the config.enabled_plugins table
local function plugin_enabled( name )
for k,v in pairs(_config.enabled_plugins) do
if name == v then
return k
end
end
-- If not found
return false
end
-- Returns true if file exists in plugins folder
local function plugin_exists( ... | gpl-2.0 |
lukego/snabbswitch | src/lib/pmu.lua | 7 | 10818 | -- pmu.lua: Lua interface to the CPU Performance Monitoring Unit
module(..., package.seeall)
-- This module counts and reports on CPU events such as cache misses,
-- branch mispredictions, utilization of internal CPU resources such
-- as execution units, and so on.
--
-- Hundreds of low-level counters are available. ... | apache-2.0 |
dani-sj/komil01 | bot/utils.lua | 494 | 23873 | URL = require "socket.url"
http = require "socket.http"
https = require "ssl.https"
ltn12 = require "ltn12"
serpent = require "serpent"
feedparser = require "feedparser"
json = (loadfile "./libs/JSON.lua")()
mimetype = (loadfile "./libs/mimetype.lua")()
redis = (loadfile "./libs/redis.lua")()
JSON = (loadfile "./libs/... | gpl-2.0 |
horizonrz/bteam | lang/persian_lang.lua | 28 | 27938 | --------------------------------------------------
-- ____ ____ _____ --
-- | \| _ )_ _|___ ____ __ __ --
-- | |_ ) _ \ | |/ ·__| _ \_| \/ | --
-- |____/|____/ |_|\____/\_____|_/\/\_| --
-- --
--------------... | gpl-2.0 |
rpetit3/darkstar | scripts/globals/weaponskills/leg_sweep.lua | 18 | 1572 | -----------------------------------
-- Leg Sweep
-- Polearm weapon skill
-- Skill Level: 100
-- Stuns enemy. Chance of stunning varies with TP.
-- Will stack with Sneak Attack.
-- Aligned with the Thunder Gorget.
-- Aligned with the Thunder Belt.
-- Element: None
-- Modifiers: STR:30%
-- 100%TP 200%TP 300%TP
-- 1... | gpl-3.0 |
kcsoft/tinyhub | tinyhub/json.lua | 2 | 16890 | -----------------------------------------------------------------------------
-- JSON4Lua: JSON encoding / decoding support for the Lua language.
-- json Module.
-- Author: Craig Mason-Jones
-- Homepage: http://github.com/craigmj/json4lua/
-- Version: 1.0.0
-- This module is released under the MIT License (MIT).
-- Ple... | mit |
nokizorque/ucd | UCDtrucker/gui.lua | 1 | 1205 | --[[
GUI = {}
GUI.window = guiCreateWindow(535, 202, 302, 392, "UCD | Trucker - Destinations", false)
GUI.window.sizable = false
GUI.window.visible = false
GUI.window.alpha = 1
exports.UCDutil:centerWindow(GUI.window)
GUI.gridlist = guiCreateGridList(9, 54, 284, 292, false, GUI.window)
guiGridListAddColumn(GUI.gridli... | mit |
sik3/selfbot | plugins/webshot.lua | 20 | 1473 | local helpers = require "OAuth.helpers"
local base = 'https://screenshotmachine.com/'
local url = base .. 'processor.php'
local function get_webshot_url(param)
local response_body = {}
local request_constructor = {
url = url,
method = "GET",
sink = ltn12.sink.table(response_body),
header... | gpl-2.0 |
vlapsley/outback | mods/technic/concrete/init.lua | 1 | 4631 | --Minetest 0.4.7 mod: concrete
--(c) 2013 by RealBadAngel <mk@realbadangel.pl>
local technic = rawget(_G, "technic") or {}
technic.concrete_posts = {}
-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
for i = 0, ... | lgpl-2.1 |
aradml/- | bot/seedbot.lua | 1 | 10265 | package.path = package.path .. ';.luarocks/share/lua/5.2/?.lua'
..';.luarocks/share/lua/5.2/?/init.lua'
package.cpath = package.cpath .. ';.luarocks/lib/lua/5.2/?.so'
require("./bot/utils")
VERSION = '2'
-- This function is called when tg receive a msg
function on_msg_receive (msg)
if not started then
return... | gpl-2.0 |
tommo/gii | template/game/lib/character/Character.lua | 2 | 6961 | module 'character'
--------------------------------------------------------------------
CLASS: Character ( mock.Behaviour )
:MODEL{
Field 'config' :asset('character') :getset( 'Config' );
Field 'mirrorX' :boolean() :set( 'setMirrorX' );
Field 'mirrorY' :boolean() :set( 'setMirrorY' );
Field 'default' :strin... | mit |
spacebuild/spacebuild | lua/caf/addons/server/spacebuild.lua | 4 | 41036 | --[[ Serverside Custom Addon file Base ]]--
--require("sb_space")
player_manager.AddValidModel( "MedicMarine", "models/player/samzanemesis/MarineMedic.mdl" )
player_manager.AddValidModel( "SpecialMarine", "models/player/samzanemesis/MarineSpecial.mdl" )
player_manager.AddValidModel( "OfficerMarine", "models/player/sam... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Cloister_of_Storms/npcs/Lightning_Protocrystal.lua | 27 | 1967 | -----------------------------------
-- Area: Cloister of Storms
-- NPC: Lightning Protocrystal
-- Involved in Quests: Trial by Lightning
-- @pos 534.5 -13 492 202
-----------------------------------
package.loaded["scripts/zones/Cloister_of_Storms/TextIDs"] = nil;
-------------------------------------
require("script... | gpl-3.0 |
MinetestForFun/server-minetestforfun-creative | mods/columnia/init.lua | 1 | 20743 | -- Minetest 0.4 mod: columnia by Glunggi(former Stairs Copyright by(C) 2011-2012 Kahrl <kahrl@gmx.net> Copyright (C) 2011-2012 celeron55, Perttu Ahola)
-- See README.txt for licensing and other information.
columnia = {}
-- The Blueprint
minetest.register_craftitem("columnia:blueprint", {
description = "Column Bluep... | unlicense |
ddouglascarr/rooset | lffrontend/env/model/has_rendered_content.lua | 1 | 2653 | function model.has_rendered_content(class, rendered_class, content_field_name)
local content_field_name = content_field_name or 'content'
-- render content to html, save it as rendered_class and return it
function class.object:render_content(force_rendering)
-- local draft for update
local selector =... | mit |
rpetit3/darkstar | scripts/zones/Norg/npcs/Jirokichi.lua | 13 | 1308 | -----------------------------------
-- Area: Norg
-- NPC: Jirokichi
-- Type: Tenshodo Merchant
-- @pos -1.463 0.000 18.846 252
-----------------------------------
package.loaded["scripts/zones/Norg/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/s... | gpl-3.0 |
dkogan/notion | contrib/styles/look_atme.lua | 3 | 3877 | -- Authors: Sadrul Habib Chowdhury <imadil@gmail.com>
-- License: Public domain
-- Last Changed: Unknown
--
-- look_atme.lua drawing engine configuration file for Ion.
--
-- Author: Sadrul Habib Chowdhury (Adil)
-- imadil |at| gmail |dot| com
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", ... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/The_Eldieme_Necropolis/npcs/_5fg.lua | 13 | 1077 | -----------------------------------
-- Area: The Eldieme Necropolis
-- NPC: Titan's Gate
-- @pos 100 -34 -71 195
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/The_Eldieme_Necropolis/TextIDs");
-----... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/spells/bewitching_etude.lua | 27 | 1616 | -----------------------------------------
-- Spell: Bewitching Etude
-- Static CHR Boost, BRD 62
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function o... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/bowl_of_pebble_soup.lua | 18 | 1130 | -----------------------------------------
-- ID: 4455
-- Item: Bowl of Pebble Soup
-- Food Effect: 3 Hr, All Races
-----------------------------------------
-- MP Recovered while healing 2
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemC... | gpl-3.0 |
Laikalike/tracter.love | states/maingame/world_physics/physics.lua | 1 | 2315 | local floor = math.floor
require "states/maingame/tools/camera"
require "states/maingame/tools/physics_helper"
local rect = require "states/maingame/objects/eRect"
function physics_init(obj,gravity)
obj.on_ground = false
obj.gravity = gravity or 500
end
function physics_gravity(obj,dt)
obj.vel.y = obj.vel.y +... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Chyuk-Kochak.lua | 13 | 1063 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Chyuk-Kochak
-- Type: Standard NPC
-- @zone: 238
-- @pos -252.162 -6.319 -307.011
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Diorama_Abdhaljs-Ghelsba/Zone.lua | 19 | 1095 | -----------------------------------
--
-- Zone: Diorama_Abdhaljs-Ghelsba
--
-----------------------------------
require("scripts/globals/settings");
package.loaded["scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs"] = nil;
require("scripts/zones/Diorama_Abdhaljs-Ghelsba/TextIDs");
-----------------------------------
... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Ghelsba_Outpost/bcnms/save_the_children.lua | 27 | 2062 | -----------------------------------
-- Area: Ghelsba Outpost
-- Name: San d'Oria Mission 1-3 Save the children
-- @pos -162 -11 78 140
-----------------------------------
package.loaded["scripts/zones/Ghelsba_Outpost/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scri... | gpl-3.0 |
PurgePJ/LuaPaste.ee | package.lua | 1 | 1410 | --[[The MIT License (MIT)
Copyright (c) 2016 PurgePJ
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, publis... | mit |
rpetit3/darkstar | scripts/globals/items/bowl_of_sopa_de_pez_blanco.lua | 18 | 1540 | -----------------------------------------
-- ID: 4601
-- Item: Bowl of Sopa de Pez Blanco
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Health 12
-- Dexterity 6
-- Mind -4
-- Accuracy 3
-- Ranged ACC % 7
-- Ranged ACC Cap 10
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
lukego/snabbswitch | src/lib/pmu_cpu.lua | 9 | 475359 | -- AUTOMATICALLY GENERATED FILE
-- Date: Fri Aug 14 14:34:23 CEST 2015
-- Cmd: scripts/generate-pmu.sh
return
{
{"GenuineIntel-6-2E", "V1", "core",
{
-- source: NHM-EX/NehalemEX_core_V1.tsv
["arith.cycles_div_busy"] = 0x0114,
["arith.div"] = 0x0114,
["arith.mul"] = 0x0214,
["baclear.bad_tar... | apache-2.0 |
dwmw2/luci | libs/luci-lib-nixio/docsrc/README.lua | 62 | 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 |
streetturtle/awesome-wm-widgets | run-shell/run-shell.lua | 1 | 5537 | -------------------------------------------------
-- Run Shell for Awesome Window Manager
-- More details could be found here:
-- https://github.com/streetturtle/awesome-wm-widgets/tree/master/run-shell
-- @author Pavel Makhov
-- @copyright 2019 Pavel Makhov
-------------------------------------------------
local awf... | mit |
rpetit3/darkstar | scripts/globals/mobskills/PW_Calcifying_Deluge.lua | 34 | 1153 | ---------------------------------------------
-- Calcifying Deluge
--
-- Description: Delivers a threefold ranged attack to targets in an area of effect. Additional effect: Petrification
-- Type: Physical
-- Utsusemi/Blink absorb: 2-3 shadows
-- Range: Unknown
-- Notes: Used only by Medusa.
----------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Mount_Zhayolm/mobs/Claret.lua | 20 | 1452 | -----------------------------------
-- Area: Mount Zhayolm
-- MOB: Claret
-- @pos 501 -9 53
-- Spawned with Pectin: @additem 2591
-- Wiki: http://ffxiclopedia.wikia.com/wiki/Claret
-----------------------------------
require("scripts/globals/magic");
require("scripts/globals/status");
-------------------------------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Statue_Prototype.lua | 23 | 1254 | -----------------------------------
-- Area: Dynamis Xarcabard
-- MOB: Statue Prototype
-----------------------------------
package.loaded["scripts/zones/Dynamis-Xarcabard/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/dynamis");
require("scripts/zones... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Alzadaal_Undersea_Ruins/npcs/_20m.lua | 18 | 3593 | -----------------------------------
-- Area: Alzadaal Undersea Ruins
-- Door: Runic Seal
-- @pos 125 -2 20 72
-----------------------------------
package.loaded["scripts/zones/Alzadaal_Undersea_Ruins/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/globals/mis... | gpl-3.0 |
wissam23/alahvaz.bot | plugins/wilec.lua | 1 | 2532 | do
local function axis(msg,matches)
if matches[1] == "chat_add_user" then
local text = 'اهلا 😊👋 بك عزيزي في المجموعة 👥🔕'..'\n'..'\n'
..'المعلومات 📋 الخاصة بك 🔷'..'\n'
..'📌 اسمك : '..msg.action.user.print_name..'\n'
..'📌 معرفك : @'..(msg.action.user.username or "لا يوجد")..'\n'
... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Dynamis-San_dOria/bcnms/dynamis_sandoria.lua | 22 | 1331 | -----------------------------------
-- Area: Dynamis San d'Oria
-- Name: Dynamis San d'Oria
-----------------------------------
-- After registering the BCNM via bcnmRegister(bcnmid)
function onBcnmRegister(player,instance)
SetServerVariable("[DynaSandoria]UniqueID",player:getDynamisUniqueID(1281));
SetSe... | gpl-3.0 |
rpetit3/darkstar | scripts/globals/items/heart_chocolate.lua | 18 | 1124 | -----------------------------------------
-- ID: 4497
-- Item: heart_chocolate
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Magic Regen While Healing 4
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnItemCheck... | gpl-3.0 |
AMIRUJK/yapop | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
sevenbot/etehadseven | plugins/isup.lua | 741 | 3095 | do
local socket = require("socket")
local cronned = load_from_file('data/isup.lua')
local function save_cron(msg, url, delete)
local origin = get_receiver(msg)
if not cronned[origin] then
cronned[origin] = {}
end
if not delete then
table.insert(cronned[origin], url)
else
for k,v in pairs(cronned[... | gpl-2.0 |
vlapsley/outback | mods/technic/technic/machines/HV/nuclear_reactor.lua | 1 | 16023 | --[[
The enriched uranium rod driven EU generator.
A very large and advanced machine providing vast amounts of power.
Very efficient but also expensive to run as it needs uranium.
Provides 10000 HV EUs for one week (only counted when loaded).
The nuclear reactor core requires a casing of water and a protective
shield... | lgpl-2.1 |
rpetit3/darkstar | scripts/zones/Qufim_Island/npcs/Numumu_WW.lua | 13 | 3323 | -----------------------------------
-- Area: Qufim Island
-- NPC: Numumu, W.W.
-- Type: Border Conquest Guards
-- @pos 179.093 -21.575 -15.282 126
-----------------------------------
package.loaded["scripts/zones/Qufim_Island/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
re... | gpl-3.0 |
tvandijck/premake-core | modules/vstudio/vs200x_vcproj.lua | 8 | 34023 | --
-- vs200x_vcproj.lua
-- Generate a Visual Studio 2005-2008 C/C++ project.
-- Copyright (c) Jason Perkins and the Premake project
--
local p = premake
p.vstudio.vc200x = {}
local m = p.vstudio.vc200x
local vstudio = p.vstudio
local context = p.context
local project = p.project
local config = p.config
local ... | bsd-3-clause |
rpetit3/darkstar | scripts/globals/items/fum-long_salmon_sub.lua | 18 | 1503 | -----------------------------------------
-- 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 |
rpetit3/darkstar | scripts/zones/Port_San_dOria/npcs/Phersula.lua | 13 | 1358 | -----------------------------------
-- Area: Port San d'Oria
-- NPC: Phersula
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Port_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/zones/Port_San_dOria/TextIDs");
-... | gpl-3.0 |
d4rkboy/.... | plugins/service_entergroup.lua | 355 | 3585 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
disslove7777/Mj.Dl-Bot | plugins/service_entergroup.lua | 355 | 3585 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
c... | gpl-2.0 |
spacebuild/spacebuild | lua/entities/generator_recycler_nitrogen/init.lua | 5 | 6231 | AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
util.PrecacheSound("apc_engine_start")
util.PrecacheSound("apc_engine_stop")
include('shared.lua')
local Energy_Increment = 100
local Water_Increment = 80
local Steam_Increment = 35
function ENT:Initialize()
self.BaseClass.Initialize(self)
self.Active = 0... | apache-2.0 |
rpetit3/darkstar | scripts/globals/mobskills/Hydro_Canon.lua | 33 | 1323 | ---------------------------------------------------
-- Hydro_Canon
-- Description:
-- Type: Magical
-- additional effect : 40hp/tick Poison
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
-------... | gpl-3.0 |
tvandijck/premake-core | src/base/config.lua | 2 | 16383 | --
-- config.lua
-- Premake configuration object API
-- Copyright (c) 2011-2015 Jason Perkins and the Premake project
--
local p = premake
p.config = {}
local project = p.project
local config = p.config
---
-- Helper function for getlinkinfo() and gettargetinfo(); builds the
-- name parts for a configuration, ... | bsd-3-clause |
rpetit3/darkstar | scripts/zones/Apollyon/mobs/Dark_Elemental.lua | 2 | 2606 | -----------------------------------
-- Area: Apollyon SW
-- NPC: elemental
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/limbus");
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
... | gpl-3.0 |
victorbriz/omim | 3party/libtess2/premake4.lua | 53 | 1103 |
local action = _ACTION or ""
solution "libtess2"
location ( "Build" )
configurations { "Debug", "Release" }
platforms {"native", "x64", "x32"}
configuration "Debug"
defines { "DEBUG" }
flags { "Symbols", "ExtraWarnings"}
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize", "ExtraWarnings"}
... | apache-2.0 |
karpathy/nn | SpatialZeroPadding.lua | 44 | 5655 | local SpatialZeroPadding, parent = torch.class('nn.SpatialZeroPadding', 'nn.Module')
function SpatialZeroPadding:__init(pad_l, pad_r, pad_t, pad_b)
parent.__init(self)
self.pad_l = pad_l
self.pad_r = pad_r or self.pad_l
self.pad_t = pad_t or self.pad_l
self.pad_b = pad_b or self.pad_l
end
function Spat... | bsd-3-clause |
nokizorque/ucd | UCDdx/money.lua | 2 | 1683 | local data = {}
local disappearTime = 10000
function foo()
if (not Resource.getFromName("UCDaccounts") or not exports.UCDaccounts or not exports.UCDaccounts:isPlayerLoggedIn(localPlayer)) then
return false
end
playerMoney = getPlayerMoney(localPlayer)
-- Only want one change at a time
if (#data > 1) then
... | mit |
crazym/lsyncd | examples/lgforce.lua | 9 | 2278 | -----
-- User configuration file for lsyncd.
--
-- This example refers to one common challenge in multiuser unix systems.
--
-- You have a shared directory for a set of users and you want
-- to ensure all users have read and write permissions on all
-- files in there. Unfortunally sometimes users mess with their
-- uma... | gpl-2.0 |
rrthomas/luarocks | src/luarocks/unpack.lua | 18 | 6140 |
--- Module implementing the LuaRocks "unpack" command.
-- Unpack the contents of a rock.
--module("luarocks.unpack", package.seeall)
local unpack = {}
package.loaded["luarocks.unpack"] = unpack
local fetch = require("luarocks.fetch")
local fs = require("luarocks.fs")
local util = require("luarocks.util")
local build ... | mit |
rpetit3/darkstar | scripts/globals/spells/armys_paeon_iv.lua | 27 | 1360 | -----------------------------------------
-- Spell: Army's Paeon IV
-- Gradually restores target's HP.
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,ta... | gpl-3.0 |
ManStache/PokeBotBad | BizHawk-1.11.6/Lua/SNES/Megaman X3.lua | 7 | 3000 | --Author Pasky13
-- Some bogus boxes may appear
-- because background objects are
-- sometimes used where enemy structures
-- are present in memory.
---------------
----GLOBALS----
---------------
local pbase = 0x9D8
local px = pbase +0x5
local py = pbase +0x8
local cx = 0x1E5D
local cy = 0x1E60
local xm
local ym
--... | mit |
martinrotter/textilosaurus | src/libtextosaurus/3rd-party/scintilla-lt/lexlua/faust.lua | 2 | 1593 | -- Copyright 2015-2019 David B. Lamkins <david@lamkins.net>. See License.txt.
-- Faust LPeg lexer, see http://faust.grame.fr/
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, R, S = lpeg.P, lpeg.R, lpeg.S
local lex = lexer.new('faust')
-- Whitespace.
lex:add_rule('white... | gpl-3.0 |
Aminkavari/xXD4RKXxBot | plugins/bot_on_off.lua | 292 | 1641 | -- Checks if bot was disabled on specific chat
local function is_channel_disabled( receiver )
if not _config.disabled_channels then
return false
end
if _config.disabled_channels[receiver] == nil then
return false
end
return _config.disabled_channels[receiver]
end
local function enable_channel(receiver)
if... | gpl-2.0 |
kidaa/luacheck | src/luacheck/utils.lua | 5 | 5859 | local utils = {}
utils.dir_sep = package.config:sub(1,1)
utils.is_windows = utils.dir_sep == "\\"
local bom = "\239\187\191"
-- Returns all contents of file (path or file handler) or nil.
function utils.read_file(file)
local handler
if type(file) == "string" then
handler = io.open(file, "rb")
if... | mit |
dwmw2/luci | modules/luci-mod-admin-full/luasrc/controller/admin/network.lua | 36 | 11355 | -- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.admin.network", package.seeall)
function index()
local uci = require("luci.model.uci").cursor()
local page
page = node("admin", "n... | apache-2.0 |
opentechinstitute/luci-commotion-linux | libs/nixio/docsrc/nixio.Socket.lua | 157 | 6508 | --- Socket Object.
-- Supports IPv4, IPv6 and UNIX (POSIX only) families.
-- @cstyle instance
module "nixio.Socket"
--- Get the local address of a socket.
-- @class function
-- @name Socket.getsockname
-- @return IP-Address
-- @return Port
--- Get the peer address of a socket.
-- @class function
-- @name Socket.getpe... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Aht_Urhgan_Whitegate/npcs/Koyol-Futenol.lua | 27 | 4011 | -----------------------------------
-- Area: Aht Urhgan Whitegate
-- NPC: Koyol-Futenol
-- Title Change NPC
-- @pos -129 2 -20 50
-----------------------------------
require("scripts/globals/titles");
local title2 = { DARK_RESISTANT , BEARER_OF_THE_MARK_OF_ZAHAK , SEAGULL_PHRATRIE_CREW_MEMBER , PROUD_AUTOMATON_OWNER... | gpl-3.0 |
brendonjustin/vlc | share/lua/playlist/lelombrik.lua | 108 | 1985 | --[[
French humor site: http://lelombrik.net
$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 ... | gpl-2.0 |
chris-wood/SCoNet | ns-3-dev/src/ccnSIM/model/wire/icnx/pugixml-1.4/scripts/premake4.lua | 15 | 2468 | -- Reset RNG seed to get consistent results across runs (i.e. XCode)
math.randomseed(12345)
local static = _ARGS[1] == 'static'
local action = premake.action.current()
if string.startswith(_ACTION, "vs") then
if action then
-- Disable solution generation
function action.onsolution(sln)
sln.vstudio_c... | gpl-2.0 |
askore/LootSecretary | src/lua/Libs/AceGUI-3.0/widgets/AceGUIContainer-TreeGroup.lua | 3 | 20760 | --[[-----------------------------------------------------------------------------
TreeGroup Container
Container that uses a tree control to switch between groups.
-------------------------------------------------------------------------------]]
local Type, Version = "TreeGroup", 40
local AceGUI = LibStub and LibSt... | apache-2.0 |
rpetit3/darkstar | scripts/zones/PsoXja/npcs/_09b.lua | 13 | 2831 | -----------------------------------
-- Area: Pso'Xja
-- NPC: _09b (Stone Gate)
-- Notes: Spawns Gargoyle when triggered
-- @pos 278.399 -1.925 -50.000 9
-----------------------------------
package.loaded["scripts/zones/PsoXja/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/PsoXja/TextIDs... | gpl-3.0 |
kobrabyte/ardupilot | Tools/CHDK-Scripts/Cannon SX260/3DR_EAI_SX260.lua | 182 | 29665 |
--[[
KAP UAV Exposure Control Script v3.1
-- Released under GPL by waterwingz and wayback/peabody
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script
3DR EAI 1.0 is a fork of KAP 3.1 with settings specific to Canon cameras triggered off the Pixhawk autopilot.
Changelog:
-Modified Tv, Av, and... | gpl-3.0 |
lazy404/wrk | deps/luajit/src/jit/bc.lua | 74 | 5606 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2014 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | apache-2.0 |
rafrombrc/push_derived | hindsight/io_modules/derived_stream/redshift/psv.lua | 5 | 2208 | -- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
local M = {}
local ipairs = ipairs
local read_message = read_message
local tostring = tostring
local type = type
loc... | mpl-2.0 |
rpetit3/darkstar | scripts/zones/Balgas_Dais/Zone.lua | 30 | 1783 | -----------------------------------
--
-- Zone: Balgas_Dais (146)
--
-----------------------------------
package.loaded["scripts/zones/Balgas_Dais/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Balgas_Dais/TextIDs");
-----------------------------------... | gpl-3.0 |
vfedoroff/prosody-modules | mod_storage_ldap/mod_storage_ldap.lua | 32 | 4728 | -- vim:sts=4 sw=4
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain
-- Copyright (C) 2012 Rob Hoelz
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
----------------------------------------
-- Constants a... | mit |
dmccuskey/dmc-objects | examples/DMC-ufo/dmc_corona/lib/dmc_lua/lua_class.lua | 34 | 14185 | --====================================================================--
-- dmc_lua/lua_class.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2015 David McCuskey
Permission is hereby granted, fr... | mit |
rpetit3/darkstar | scripts/zones/Davoi/TextIDs.lua | 15 | 1657 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6379; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6384; -- Obtained: <item>.
GIL_OBTAINED = 6385; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6387; -- Obtained... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Windurst_Waters/npcs/Ensasa.lua | 13 | 1810 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Ensasa
-- Standard Merchant NPC
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/events/harvest_festivals")
require("scripts/globals/shop");
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = n... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Port_Jeuno/npcs/HomePoint#1.lua | 27 | 1262 | -----------------------------------
-- Area: Port Jeuno
-- NPC: HomePoint#1
-- @pos 37.076 0.001 8.831 246
-----------------------------------
package.loaded["scripts/zones/Port_Jeuno/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Port_Jeuno/TextIDs");
require("scripts/globals/homepoint... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Sauromugue_Champaign/npcs/qm5.lua | 10 | 2479 | -----------------------------------
-- Area: Sauromugue Champaign
-- NPC: qm5 (???) (Tower 5)
-- Involved in Quest: THF AF "As Thick As Thieves"
-- @pos -117.713 15.237 45.929 120
-----------------------------------
package.loaded["scripts/zones/Sauromugue_Champaign/TextIDs"] = nil;
-------------------------------... | gpl-3.0 |
jbluepolarbear/jengine | resources/scripts/vec2.lua | 1 | 1580 | --- vec2
---
--- simple 2d vector class
--- Author - Jeremy Anderson
Vec2 = class()
function Vec2:init( x, y )
if x == nil then
self.x = 0.0
else
self.x = x
end
if y == nil then
self.y = 0.0
else
self.y = y
end
end
function Vec2:__add(rhs)
return Vec2( s... | mit |
rpetit3/darkstar | scripts/globals/items/queens_crown.lua | 34 | 1570 | -----------------------------------------
-- ID: 6064
-- Item: queens_crown
-- Food Effect: 240 Min, All Races
-----------------------------------------
-- MP+6% (Upper limit 55)
-- INT+4
-- MND+3
-- CHR+2
-- STR-2
-- MAB+7
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
sevenbot/etehadseven | plugins/pokedex.lua | 626 | 1668 | do
local images_enabled = true;
local function get_sprite(path)
local url = "http://pokeapi.co/"..path
print(url)
local b,c = http.request(url)
local data = json:decode(b)
local image = data.image
return image
end
local function callback(extra)
send_msg(extra.receiver, extra.text, ok_cb, false)
end
lo... | gpl-2.0 |
ddouglascarr/rooset | lffrontend/locale/translations.nl.lua | 1 | 54055 | #!/usr/bin/env lua
return {
["#{closed_ago} ago"] = false;
["#{count} Neutral"] = false;
["#{count} No"] = false;
["#{count} Yes, alternative choice"] = false;
["#{count} Yes, first choice"] = false;
["#{count} canceled"] = false;
["#{count} finished"] = "#{count} geëindigd";
["#{count} in discussion"] = "#{count} in d... | mit |
rpetit3/darkstar | scripts/globals/items/goblin_mushpot.lua | 18 | 1282 | -----------------------------------------
-- ID: 4543
-- Item: goblin_mushpot
-- Food Effect: 180Min, All Races
-----------------------------------------
-- Mind 10
-- Charisma -5
-- Dark Resist 10
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------
-... | gpl-3.0 |
schidler/ionic-luci | applications/luci-app-diag-devinfo/luasrc/controller/luci_diag/smap_common.lua | 61 | 3184 | -- Copyright 2009 Daniel Dickinson
-- Licensed to the public under the Apache License 2.0.
module("luci.controller.luci_diag.smap_common", package.seeall)
require("luci.i18n")
require("luci.util")
require("luci.sys")
require("luci.cbi")
require("luci.model.uci")
local translate = luci.i18n.translate
local DummyValue... | apache-2.0 |
rpetit3/darkstar | scripts/zones/Apollyon/mobs/Apollyon_Scavenger.lua | 2 | 1399 | -----------------------------------
-- Area: Apollyon NW
-- NPC: Kaiser Behemoth
-----------------------------------
package.loaded["scripts/zones/Apollyon/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Apollyon/TextIDs");
-----------------------------------
-- onMobSpawn Action
-------... | gpl-3.0 |
rpetit3/darkstar | scripts/zones/Kazham/npcs/Toeh_Leddenbah.lua | 15 | 1054 | -----------------------------------
-- Area: Kazham
-- NPC: Toeh Leddenbah
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
... | gpl-3.0 |
tommo/gii | template/game/lib/mock/gui/GUIButtonBase.lua | 1 | 1220 | module 'mock'
registerSignals{
'ui.button.press',
'ui.button.release',
'ui.button.click',
}
CLASS: GUIButtonBase ( GUIWidget )
:MODEL{
'----';
Field 'msg' :string();
Field 'data' :string();
'----';
Field 'eventTag' :string();
'----';
}
function GUIButtonBase:__init()
self.eventTag = false
end
fu... | mit |
rpetit3/darkstar | scripts/globals/items/senroh_skewer.lua | 18 | 1449 | -----------------------------------------
-- ID: 5982
-- Item: Senroh Skewer
-- Food Effect: 30 Mins, All Races
-----------------------------------------
-- Dexterity 2
-- Vitality 3
-- Mind -1
-- Defense % 25 Cap 150
-----------------------------------------
require("scripts/globals/status");
-----------------------... | gpl-3.0 |
tenvick/hugula | Client/build/luajit-2.1.0b3/src/jit/bc.lua | 48 | 5620 | ----------------------------------------------------------------------------
-- LuaJIT bytecode listing module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-... | mit |
rpetit3/darkstar | scripts/zones/Abyssea-Grauberg/npcs/Cruor_Prospector.lua | 29 | 1305 | -----------------------------------
-- Area: Abyssea - Grauberg
-- NPC: Cruor Prospector
-- Type: Cruor NPC
-- @pos ? ? ? 254 (missing from DSP database)
-----------------------------------
package.loaded["scripts/zones/Abyssea-Grauberg/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Abysse... | gpl-3.0 |
root4r08/RoOt3r08 | plugins/tag_english.lua | 2 | 1767 | --[[
#
#ـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#:((
# For More Information ....!
# Developer : REZA < @YAGOP >
# our channel: @ntflight
# Version: 1.1
#:))
#ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــ
#
]]
local func... | gpl-2.0 |
rpetit3/darkstar | scripts/zones/Metalworks/npcs/Fariel.lua | 13 | 2130 | -----------------------------------
-- Area: Metalworks
-- NPC: Fariel
-- Type: Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/pathfind");
local p... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.