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 |
|---|---|---|---|---|---|
allwenandashi/ASHI | 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 |
dmccuskey/lua-bytearray | dmc_lua/lua_bytearray.lua | 40 | 9054 | --====================================================================--
-- dmc_lua/bytearray.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (c) 2014- 2015 David McCuskey
Permission is hereby grant... | mit |
UnfortunateFruit/darkstar | scripts/globals/items/chunk_of_sweet_lizard.lua | 35 | 1262 | -----------------------------------------
-- ID: 5738
-- Item: chunk_of_sweet_lizard
-- Food Effect: 30Min, All Races
-----------------------------------------
-- HP 5
-- MP 5
-- Dexterity 1
-----------------------------------------
require("scripts/globals/status");
--------------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Northern_San_dOria/npcs/Belgidiveau.lua | 25 | 2335 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Belgidiveau
-- Starts and Finishes Quest: Trouble at the Sluice
-- @zone 231
-- @pos -98 0 69
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scrip... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/chocobo_digging.lua | 8 | 7395 | -- chocobo_digging.lua
require("scripts/globals/status");
require("scripts/globals/utils");
require("scripts/globals/settings");
-----------------------------------
-- DIG REQUIREMENTS
-----------------------------------
DIGREQ_NONE = 0;
DIGREQ_BURROW = 1;
DIGREQ_BORE = 2;
DIGREQ_MODIFIER = 4;
DIGREQ_NIGHT ... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Windurst_Waters/npcs/Baren-Moren.lua | 12 | 8393 | -----------------------------------
-- Area: Windurst Waters
-- NPC: Baren-Moren
-- Starts and Finishes Quest: Hat in Hand
-- Working 100%
-- @zone = 238
-- @pos = -66 -3 -148
-----------------------------------
package.loaded["scripts/zones/Windurst_Waters/TextIDs"] = nil;
-----------------------------------
req... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Bastok_Mines/npcs/Conrad.lua | 10 | 1871 | -----------------------------------
-- Area: Bastok Mines
-- NPC: Conrad
-- Outpost Teleporter NPC
-- @pos 94.457 -0.375 -66.161 234
-----------------------------------
package.loaded["scripts/zones/Bastok_Mines/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");
requir... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/hojo_san.lua | 11 | 1240 | -----------------------------------------
-- Spell: Hojo:San
-- Description: Inflicts Slow on target.
-- Edited from slow.lua
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
------------------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/jacknife.lua | 18 | 1428 | -----------------------------------------
-- ID: 5123
-- Item: Jacknife
-- Food Effect: 5Min, Mithra only
-----------------------------------------
-- Dexterity -5
-- Vitality 4
-- Defence 16% Cap 50
-----------------------------------------
require("scripts/globals/status");
-----------------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Valley_of_Sorrows/Zone.lua | 12 | 1749 | -----------------------------------
--
-- Zone: Valley_of_Sorrows (128)
--
-----------------------------------
package.loaded["scripts/zones/Valley_of_Sorrows/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/zone");
require("scripts/zones/Valley_of_Sorr... | gpl-3.0 |
jj918160/cocos2d-x-samples | samples/KillBug/src/cocos/framework/transition.lua | 57 | 7512 | --[[
Copyright (c) 2011-2014 chukong-inc.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, dis... | mit |
UnfortunateFruit/darkstar | scripts/zones/Southern_San_dOria/npcs/Rosel.lua | 19 | 2829 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Rosel
-- Starts and Finishes Quest: Rosel the Armorer
-- @zone 230
-- @pos
-------------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/glo... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/foe_lullaby_ii.lua | 11 | 1232 | -----------------------------------------
-- Spell: Foe Lullaby
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function onMagicCastingCheck(caster,target,sp... | gpl-3.0 |
ruisebastiao/nodemcu-firmware | lua_examples/http_server.lua | 53 | 3696 | --
-- Simple NodeMCU web server (done is a not so nodeie fashion :-)
--
-- Highly modified by Bruce Meacham, based on work by Scott Beasley 2015
-- Open and free to change and use. Enjoy. [Beasley/Meacham 2015]
--
-- Meacham Update: I streamlined/improved the parsing to focus on simple HTTP GET request and their simple... | mit |
nesstea/darkstar | scripts/zones/Upper_Jeuno/TextIDs.lua | 15 | 1699 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6538; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6543; -- Obtained: <item>.
GIL_OBTAINED = 6544; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6546; -- Obtained... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Batallia_Downs_[S]/Zone.lua | 13 | 1412 | -----------------------------------
--
-- Zone: Batallia_Downs_[S] (84)
--
-----------------------------------
package.loaded["scripts/zones/Batallia_Downs_[S]/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Batallia_Downs_[S]/TextIDs");
---------------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Windurst_Woods/npcs/Panoquieur_TK.lua | 30 | 4701 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Panoquieur, T.K.
-- @pos -60 0 -31 241
-- X Grant Signet
-- X Recharge Emperor Band, Empress Band, or Chariot Band
-- X Accepts traded Crystals to fill up the Rank bar to open new Missions.
-- X Sells items in exchange for Conquest Points
-- X Start S... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/sandstorm.lua | 31 | 1153 | --------------------------------------
-- Spell: Sandstorm
-- Changes the weather around target party member to "dusty."
--------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/magic");
----------------------------------------... | gpl-3.0 |
plajjan/snabbswitch | lib/ljsyscall/syscall/netbsd/version.lua | 24 | 1319 | -- detect netbsd version
local abi = require "syscall.abi"
local ffi = require "ffi"
require "syscall.ffitypes"
local version, major, minor
local function inlibc_fn(k) return ffi.C[k] end
-- NetBSD ABI version
-- TODO if running rump on NetBSD the version detection is a bit flaky if the host and rump differ
-- no... | apache-2.0 |
niessner/Matterport | tasks/keypoint_match/2dmatch/train.lua | 1 | 6467 | require 'image'
require 'cutorch'
require 'cunn'
require 'cudnn'
require 'optim'
-- Custom files
require 'model'
require 'sys'
-- require 'qtwidget' -- for visualizing images
dofile('util.lua')
opt_string = [[
-h,--help print help
-s,--save (default "logs") ... | mit |
UnfortunateFruit/darkstar | scripts/zones/Port_Bastok/npcs/Corann.lua | 36 | 2068 | -----------------------------------
-- Area: Port Bastok
-- NPC: Corann
-- Start & Finishes Quest: The Quadav's Curse
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/s... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/6d437cc7-8fe8-4147-8a29-4c8b62fcedc7/bin/dmesg.lua | 15 | 1193 | local event = require "event"
local component = require "component"
local keyboard = require "keyboard"
local args = {...}
local interactive = io.output() == io.stdout
local color, isPal, evt
if interactive then
color, isPal = component.gpu.getForeground()
end
io.write("Press 'Ctrl-C' to exit\n")
pcall(function()
... | mit |
nesstea/darkstar | scripts/zones/Port_Windurst/npcs/Zoreen.lua | 16 | 1411 | -----------------------------------
-- Area: Port Windurst
-- NPC: Zoreen
-- Regional Marchant NPC
-- Only sells when Windurst controls Valdeaunia
-- Confirmed shop stock, August 2013
-----------------------------------
require("scripts/globals/shop");
require("scripts/globals/conquest");
package.loaded["scripts/zone... | gpl-3.0 |
MetSystem/skynet | examples/share.lua | 66 | 1702 | local skynet = require "skynet"
local sharedata = require "sharedata"
local mode = ...
if mode == "host" then
skynet.start(function()
skynet.error("new foobar")
sharedata.new("foobar", { a=1, b= { "hello", "world" } })
skynet.fork(function()
skynet.sleep(200) -- sleep 2s
skynet.error("update foobar a = 2")
... | mit |
nesstea/darkstar | scripts/globals/items/galkan_sausage.lua | 18 | 2130 | -----------------------------------------
-- ID: 4395
-- Item: galkan_sausage
-- Food Effect: 30Min, All Races
-----------------------------------------
-- Multi-Race Effects
-- Galka
-- Strength 3
-- Intelligence -3
-- Attack % 25
-- Attack Cap 30
-- Ranged ATT % 25
-- Ranged ATT Cap 30
--
-- Other
-- Strength 3
-- In... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Al_Zahbi/npcs/Talruf.lua | 13 | 1035 | -----------------------------------
-- Area: Al Zahbi
-- NPC: Talruf
-- Type: Standard NPC
-- @zone: 48
-- @pos 100.878 -7 14.291
--
-- Auto-Script: Requires Verification (Verified by Brawndo)
-----------------------------------
package.loaded["scripts/zones/Al_Zahbi/TextIDs"] = nil;
-----------------------------... | gpl-3.0 |
Samanj5/Assassin | 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 |
Disslove-bot/Max3-BOT | 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 |
Whit3Tig3R/BestSpammbot1 | plugins/banhammer.lua | 11 | 11337 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
nesstea/darkstar | scripts/globals/items/prime_crab_stewpot.lua | 18 | 1972 | -----------------------------------------
-- ID: 5545
-- Item: Prime Crab Stewpot
-- Food Effect: 4 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10% Cap 75
-- MP +15
-- Vitality +1
-- Agility +1
-- Mind +2
-- HP Recovered while healing +7
-- MP Recovered while healing +2
-- Defe... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/f6b12c72-550e-4c86-b7bc-3a72d250d375/lib/serialization.lua | 15 | 3764 | local serialization = {}
-- Important: pretty formatting will allow presenting non-serializable values
-- but may generate output that cannot be unserialized back.
function serialization.serialize(value, pretty)
local kw = {["and"]=true, ["break"]=true, ["do"]=true, ["else"]=true,
["elseif"]=true, ["... | mit |
vonflynee/opencomputersserver | world/opencomputers/3f9e70c3-6961-48bd-bbb9-5c4b3888a254/lib/serialization.lua | 15 | 3764 | local serialization = {}
-- Important: pretty formatting will allow presenting non-serializable values
-- but may generate output that cannot be unserialized back.
function serialization.serialize(value, pretty)
local kw = {["and"]=true, ["break"]=true, ["do"]=true, ["else"]=true,
["elseif"]=true, ["... | mit |
vonflynee/opencomputersserver | world/opencomputers/c0a0157a-e685-4d05-9dc9-9340cf29f413/lib/serialization.lua | 15 | 3764 | local serialization = {}
-- Important: pretty formatting will allow presenting non-serializable values
-- but may generate output that cannot be unserialized back.
function serialization.serialize(value, pretty)
local kw = {["and"]=true, ["break"]=true, ["do"]=true, ["else"]=true,
["elseif"]=true, ["... | mit |
mrmost/mbc | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
LordError/LordError1 | plugins/banhammer.lua | 1085 | 11557 |
local function pre_process(msg)
-- SERVICE MESSAGE
if msg.action and msg.action.type then
local action = msg.action.type
-- Check if banned user joins chat by link
if action == 'chat_add_user_link' then
local user_id = msg.from.id
print('Checking invited user '..user_id)
local banned ... | gpl-2.0 |
nesstea/darkstar | scripts/globals/items/plate_of_fatty_tuna_sushi.lua | 17 | 1541 | -----------------------------------------
-- ID: 5153
-- Item: plate_of_fatty_tuna_sushi
-- Food Effect: 60Min, All Races
-----------------------------------------
-- Health 20
-- Dexterity 3
-- Charisma 5
-- Accuracy % 16
-- Ranged ACC 16
-- Sleep Resist 5
-----------------------------------------
require("scripts/gl... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Promyvion-Dem/mobs/Memory_Receptacle.lua | 7 | 7435 | -----------------------------------
-- Area: Promyvion-Dem
-- MOB: Memory Receptacle
-- Todo: clean up disgustingly bad formatting
-----------------------------------
package.loaded["scripts/zones/Promyvion-Dem/TextIDs"] = nil;
-----------------------------------
require( "scripts/zones/Promyvion-Dem/TextIDs" );
requi... | gpl-3.0 |
nesstea/darkstar | scripts/globals/abilities/stay.lua | 6 | 1383 | -----------------------------------
-- Ability: Stay
-- Commands the Pet to stay in one place.
-- Obtained: Beastmaster Level 15
-- Recast Time: 5 seconds
-- Duration: Instant
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
----------------------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Abyssea-Attohwa/npcs/qm13.lua | 17 | 1361 | -----------------------------------
-- Zone: Abyssea-Attohwa
-- NPC: ???
-- Spawns: Smok
-----------------------------------
require("scripts/globals/status");
require("scripts/globals/keyitems");
-----------------------------------
-- onTrigger Action
-----------------------------------
function onTrigger(player,n... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Spire_of_Vahzl/bcnms/desires_of_emptiness.lua | 29 | 2295 | -----------------------------------
-- Area: Spire_of_VAHLZ
-- Name: desires_of_emptiness
-----------------------------------
package.loaded["scripts/zones/Spire_of_Dem/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/titles");
require("scripts/globals/keyitems");
require("scripts/globals/... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Middle_Delkfutts_Tower/TextIDs.lua | 5 | 1147 | -- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6542; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6545; -- Obtained: <item>.
GIL_OBTAINED = 6546; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6548; -- Obtained... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Windurst_Woods/npcs/Shih_Tayuun.lua | 27 | 1188 | -----------------------------------
-- Area: Windurst Woods
-- NPC: Shih Tayuun
-- Guild Merchant NPC: Bonecrafting Guild
-- @pos -3.064 -6.25 -131.374 241
-----------------------------------
package.loaded["scripts/zones/Windurst_Woods/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/set... | gpl-3.0 |
focusworld/aabb | plugins/steam.lua | 645 | 2117 | -- See https://wiki.teamfortress.com/wiki/User:RJackson/StorefrontAPI
do
local BASE_URL = 'http://store.steampowered.com/api/appdetails/'
local DESC_LENTH = 200
local function unescape(str)
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Port_Bastok/npcs/Benita.lua | 29 | 2144 | -----------------------------------
-- Area: Port Bastok
-- NPC: Benita
-- Starts Quest: The Wisdom Of Elders
-----------------------------------
package.loaded["scripts/zones/Port_Bastok/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/quests");
require("scripts/globals/settings");
require... | gpl-3.0 |
johnmccabe/dockercraft | world/Plugins/Core/console.lua | 5 | 10580 |
-- console.lua
-- Implements things related to console commands
function HandleConsoleClear(Split)
if (#Split == 1) then
return true, "Usage: " .. Split[1] .. " <player>"
end
local InventoryCleared = false;
local ClearInventory = function(Player)
if (Player:GetName() == Split[2]) then... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/zones/East_Ronfaure/npcs/Logging_Point.lua | 29 | 1101 | -----------------------------------
-- Area: East Ronfaure
-- NPC: Logging Point
-----------------------------------
package.loaded["scripts/zones/East_Ronfaure/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/logging");
require("scripts/zones/East_Ronfaure/TextIDs");
-----... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Dynamis-Xarcabard/mobs/Dynamis_Lord.lua | 13 | 1822 | -----------------------------------
-- Area: Dynamis Xarcabard
-- NPC: Dynamis_Lord
-----------------------------------
require("scripts/globals/status");
-----------------------------------
require("scripts/globals/titles");
-----------------------------------
-- onMobInitialize Action
--------------... | gpl-3.0 |
Mashape/kong | kong/templates/nginx_kong_stream.lua | 1 | 2198 | return [[
> if anonymous_reports then
${{SYSLOG_REPORTS}}
> end
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
lua_package_path '${{LUA_PACKAGE_PATH}};;';
lua_package_cpath '${{LUA_PACKAGE_CPATH}};;';
lua_shared_dict s... | apache-2.0 |
nesstea/darkstar | scripts/zones/Promyvion-Vahzl/npcs/_0mc.lua | 13 | 1397 | -----------------------------------
-- Area: Promyvion vahzl
-- NPC: Memory flux (1)
-----------------------------------
package.loaded["scripts/zones/Promyvion-Vahzl/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/missions");
require("scripts/zones/Promyvion-Vahzl/TextIDs");
require("sc... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Southern_San_dOria/npcs/Orechiniel.lua | 32 | 1912 | -----------------------------------
-- Area: Southern San d'Oria
-- NPC: Orechiniel
-- Type: Leathercraft Adv. Synthesis Image Support
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/status");
require("s... | gpl-3.0 |
akdor1154/awesome | lib/menubar/utils.lua | 1 | 9589 | ---------------------------------------------------------------------------
--- Utility module for menubar
--
-- @author Antonio Terceiro
-- @copyright 2009, 2011-2012 Antonio Terceiro, Alexander Yakushev
-- @release @AWESOME_VERSION@
-- @module menubar.utils
------------------------------------------------------------... | gpl-2.0 |
johnmccabe/dockercraft | world/Plugins/APIDump/Hooks/OnBlockSpread.lua | 23 | 1545 | return
{
HOOK_BLOCK_SPREAD =
{
CalledWhen = "Called when a block spreads based on world conditions",
DefaultFnName = "OnBlockSpread", -- also used as pagename
Desc = [[
This hook is called when a block spreads.</p>
<p>
The spread carries with it the type of its source - whether it's a block spreads.
... | apache-2.0 |
nesstea/darkstar | scripts/zones/Lower_Jeuno/npcs/Akamafula.lua | 13 | 1330 | -----------------------------------
-- Area: Lower Jeuno
-- NPC: Akamafula
-- Type: Tenshodo Merchant
-- @pos 28.465 2.899 -46.699 245
-----------------------------------
package.loaded["scripts/zones/Lower_Jeuno/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scr... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/West_Ronfaure/npcs/Molting_Moth_IM.lua | 30 | 3047 | -----------------------------------
-- Area: West Ronfaure
-- NPC: Molting Moth, I.M.
-- Border Conquest Guards
-- @pos -560.292 -0.961 -576.655 100
-----------------------------------
package.loaded["scripts/zones/West_Ronfaure/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/conquest");... | gpl-3.0 |
DevCobra/Cobra.iraq | plugin/admin.lua | 1 | 10192 | 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(receiver, '... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Den_of_Rancor/npcs/_4g3.lua | 27 | 2358 | -----------------------------------
-- Area: Den of Rancor
-- NPC: Lantern (SW)
-- @pos -59 45 24 160
-----------------------------------
package.loaded["scripts/zones/Den_of_Rancor/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/zones/Den_of_Rancor/TextIDs")... | gpl-3.0 |
Mashape/kong | spec/03-plugins/13-cors/01-access_spec.lua | 1 | 34056 | local helpers = require "spec.helpers"
local cjson = require "cjson"
local inspect = require "inspect"
local tablex = require "pl.tablex"
local CORS_DEFAULT_METHODS = "GET,HEAD,PUT,PATCH,POST,DELETE,OPTIONS,TRACE,CONNECT"
local function sortedpairs(t)
local ks = tablex.keys(t)
table.sort(ks)
local i = 0
ret... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/zones/Metalworks/npcs/HomePoint#1.lua | 12 | 1239 | -----------------------------------
-- Area: Metalworks
-- NPC: HomePoint#1
-- @pos: 46 -14 -19 237
-----------------------------------
package.loaded["scripts/zones/Metalworks/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Metalworks/TextIDs");
require("scripts/globals/homepo... | gpl-3.0 |
nesstea/darkstar | scripts/zones/The_Eldieme_Necropolis_[S]/npcs/Layton.lua | 13 | 2028 | -----------------------------------
-- Area: The Eldieme Necropolis (S)
-- NPC: Layton
-- Type: Standard Merchant NPC
-- Note: Available during Campaign battles
-- @pos 382.679 -39.999 3.541 175
-----------------------------------
package.loaded["scripts/zones/The_Eldieme_Necropolis_[S]/TextIDs"] = nil;
--------------... | gpl-3.0 |
ennis/autograph-pipelines | resources/scripts/pl/Map.lua | 2 | 2761 | --- A Map class.
--
-- > Map = require 'pl.Map'
-- > m = Map{one=1,two=2}
-- > m:update {three=3,four=4,two=20}
-- > = m == M{one=1,two=20,three=3,four=4}
-- true
--
-- Dependencies: `pl.utils`, `pl.class`, `pl.tablex`, `pl.pretty`
-- @classmod pl.Map
local tablex = require 'pl.tablex'
local utils = req... | mit |
Xileck/forgottenserver | data/actions/scripts/tools/fishing.lua | 30 | 2222 | local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 7236, 10499, 15401, 15402}
local lootTrash = {2234, 2238, 2376, 2509, 2667}
local lootCommon = {2152, 2167, 2168, 2669, 7588, 7589}
local lootRare = {2143, 2146, 2149, 7158, 7159}
local loo... | gpl-2.0 |
mouhb/cjdns | contrib/lua/cjdns/router.lua | 40 | 3083 | -- Cjdns admin module for Lua
-- Written by Philip Horger
-- hacked up dumpTable, switchpinger, peerstats
-- and other oddities by William Fleurant
common = require 'cjdns/common'
RouterFunctions = {}
RouterFunctions.__index = RouterFunctions
common.RouterFunctions = RouterFunctions
function RouterFunctions.new(ai, c... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/abilities/pets/lightning_breath.lua | 25 | 1262 | ---------------------------------------------------
-- Lightning Breath
---------------------------------------------------
require("scripts/globals/settings");
require("scripts/globals/status");
require("scripts/globals/monstertpmoves");
---------------------------------------------------
function onAbili... | gpl-3.0 |
vonflynee/opencomputersserver | world/opencomputers/3f9e70c3-6961-48bd-bbb9-5c4b3888a254/init.lua | 14 | 5586 | do
_G._OSVERSION = "OpenOS 1.5"
local component = component
local computer = computer
local unicode = unicode
-- Runlevel information.
local runlevel, shutdown = "S", computer.shutdown
computer.runlevel = function() return runlevel end
computer.shutdown = function(reboot)
runlevel = reboot and 6 o... | mit |
vonflynee/opencomputersserver | world/opencomputers/689b9f29-1d36-4106-bf0e-c06a2ebfb1ef/usr/lib/raytracer.lua | 1 | 5474 | --[[
Very basic raytracer, passing results (i.e. hit "pixels") to a callback.
Usage:
local rt = require("raytracer").new()
table.insert(rt.model, {0,0,0,16,16,16})
--rt.camera.position = {-20,20,0}
--rt.camera.target = {8,8,8}
--rt.camera.fov = 100
rt:render(width, height, function(hitX, hitY, box, nor... | mit |
UnfortunateFruit/darkstar | scripts/zones/Northern_San_dOria/npcs/Letterare.lua | 36 | 1428 | -----------------------------------
-- Area: Northern San d'Oria
-- NPC: Letterare
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Northern_San_dOria/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/settings");
require("scripts/globals/quest... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Eastern_Altepa_Desert/npcs/Variko-Njariko_WW.lua | 13 | 3348 | -----------------------------------
-- Area: Eastern Altepa Desert
-- NPC: Variko-Njariko, W.W.
-- Outpost Conquest Guards
-- @pos -258.041 7.473 -254.527 114
-----------------------------------
package.loaded["scripts/zones/Eastern_Altepa_Desert/TextIDs"] = nil;
-----------------------------------
require("scripts/g... | gpl-3.0 |
VurtualRuler98/kswep2-NWI | lua/ins_sounds/sounds_m1carbine.lua | 1 | 1387 | if (SERVER) then
AddCSLuaFile()
end
--m1a1
sound.Add({
name="Weapon_m1a1.Single",
volume = 1.0,
pitch = {100,105},
sound = "weapons/m1a1/m1a1_fp.wav",
level = 142,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_m1a1.SingleSilenced",
volume = 1.0,
pitch = {100,105},
sound = "weapons/m1a1/m1a1_suppressed_fp... | apache-2.0 |
ruisebastiao/nodemcu-firmware | lua_modules/si7021/si7021.lua | 83 | 2184 | -- ***************************************************************************
-- SI7021 module for ESP8266 with nodeMCU
-- Si7021 compatible tested 2015-1-22
--
-- Written by VIP6
--
-- MIT license, http://opensource.org/licenses/MIT
-- ***************************************************************************
local... | mit |
alirezanile/LaSt-GaMfg | 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 |
hussian/hell_iraq | 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 |
ferisystem/ApiSeed | 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 |
johnmccabe/dockercraft | world/Plugins/Core/web_weather.lua | 6 | 2946 | local function AddWorldButtons(inName)
result = "<form method='POST'><input type='hidden' name='WorldName' value='" .. inName .. "'>"
result = result .. "<input type='submit' name='SetTime' value='Dawn'>"
result = result .. "<input type='submit' name='SetTime' value='Day'>"
result = result .. "<input type='submit' ... | apache-2.0 |
nesstea/darkstar | scripts/zones/Crawlers_Nest/TextIDs.lua | 22 | 1594 | --- Variable TextID Description text
-- General Texts
ITEM_CANNOT_BE_OBTAINED = 6569; -- You cannot obtain the item <item>. Come back after sorting your inventory.
ITEM_OBTAINED = 6574; -- Obtained: <item>.
GIL_OBTAINED = 6575; -- Obtained <number> gil.
KEYITEM_OBTAINED = 6577; -- Obtaine... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/bluemagic/jet_stream.lua | 27 | 1767 | -----------------------------------------
-- Spell: Jet Stream
-- Delivers a threefold attack. Accuracy varies with TP
-- Spell cost: 47 MP
-- Monster Type: Birds
-- Spell Type: Physical (Blunt)
-- Blue Magic Points: 4
-- Stat Bonus: DEX+2
-- Level: 38
-- Casting Time: 0.5 seconds
-- Recast Time: 23 seconds
... | gpl-3.0 |
kidanger/Drystal | tests/graphics/surface_manipulations.lua | 1 | 2216 | local drystal = require "drystal"
local spritesheet = assert(drystal.fromjson(io.open('image.json'):read('*all')))
vert = [[
attribute vec2 position;
attribute vec4 color;
attribute vec2 texCoord;
varying vec4 fColor;
varying vec2 fTexCoord;
uniform vec2 destinationSize;
uniform vec2 sourceSize;
#define pi ]]..mat... | gpl-3.0 |
nesstea/darkstar | scripts/zones/South_Gustaberg/mobs/Tococo.lua | 7 | 1075 | -----------------------------------
-- Area: South Gustaberg
-- NM: Tococo
-----------------------------------
require("scripts/globals/status");
-----------------------------------
-----------------------------------
-- onMobInitialize
-----------------------------------
function onMobInitialize(mob)
mob:setM... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Mhaura/npcs/Ekokoko.lua | 13 | 1624 | -----------------------------------
-- Area: Mhaura
-- NPC: Ekokoko
-- Gouvernor of Mhaura
-- Involved in Quest: Riding on the Clouds
-- @pos -78 -24 28 249
-----------------------------------
package.loaded["scripts/zones/Mhaura/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems")... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Kazham/npcs/Shey_Wayatih.lua | 30 | 1379 | -----------------------------------
-- Area: Kazham
-- NPC: Shey Wayatih
-- Standard Info NPC
-----------------------------------
package.loaded["scripts/zones/Kazham/TextIDs"] = nil;
require("scripts/zones/Kazham/TextIDs");
-----------------------------------
-- onTrade Action
-----------------------------------
f... | gpl-3.0 |
bowlofstew/Macaroni | Main/App/Source/main/lua/VersionInfoGenerator.lua | 2 | 3070 | --------------------------------------------------------------------------------
-- Copyright 2011 Tim Simpson
--
-- 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.a... | apache-2.0 |
UnfortunateFruit/darkstar | scripts/globals/weaponskills/uriel_blade.lua | 29 | 1393 | -----------------------------------
-- Uriel Blade
-- Sword weapon skill
-- Skill Level: N/A
-- Description: Delivers an area attack that deals light elemental damage. Damage varies with TP. Additional effect Flash.
-- AoE range ??.
-- Only available during Campaign Battle while wielding a Griffinclaw.
-- Aligned with ... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/spells/enchanting_etude.lua | 13 | 1761 | -----------------------------------------
-- Spell: Enchanting Etude
-- Static CHR Boost, BRD 22
-----------------------------------------
require("scripts/globals/status");
require("scripts/globals/magic");
-----------------------------------------
-- OnSpellCast
-----------------------------------------
function o... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/items/juglan_jumble.lua | 36 | 1363 | -----------------------------------------
-- ID: 5923
-- Item: Juglan Jumble
-- Food Effect: 5 Min, All Races
-----------------------------------------
-- HP Healing 5
-- MP Healing 8
-- Bird Killer 12
-- Resist Paralyze 12
-----------------------------------------
require("scripts/globals/status");
-----------------... | gpl-3.0 |
reonZ/project-arena | game/dota_addons/project_arenas/scripts/vscripts/abilities/royal_guard/royal_guard_cleave.lua | 1 | 1738 | require( 'custom_target_ability' )
local c_damage = 'damage'
local c_cleave_damage = 'cleave_damage'
local c_cleave_radius = 'cleave_radius'
local c_anim_activity = ACT_DOTA_ATTACK
local c_anim_frames = 30
local c_cast_sound = 'Hero_DragonKnight.PreAttack'
local c_cleave_effect = 'particles/units/heroes/he... | gpl-2.0 |
nesstea/darkstar | scripts/globals/items/akamochi.lua | 35 | 2064 | -----------------------------------------
-- ID: 6260
-- Item: akamochi
-- Food Effect: 30 Min, All Races
-----------------------------------------
-- HP + 20 (Pet & Master)
-- Vitality + 3 (Pet & Master)
-- Attack + 16% Cap: 50 (Pet & Master) Pet Cap: 75
-- Accuracy + 10% Cap: 50 (Pet & Master) Pet Cap: 75
-----------... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/zones/Southern_San_dOria/npcs/HomePoint#1.lua | 12 | 1272 | -----------------------------------
-- Area: Southern San dOria
-- NPC: HomePoint#1
-- @pos -85.468 1.000 -66.454 230
-----------------------------------
package.loaded["scripts/zones/Southern_San_dOria/TextIDs"] = nil;
require("scripts/globals/settings");
require("scripts/zones/Southern_San_dOria/TextIDs")... | gpl-3.0 |
LordError/LordError1 | libs/mimetype.lua | 3662 | 2922 | -- Thanks to https://github.com/catwell/lua-toolbox/blob/master/mime.types
do
local mimetype = {}
-- TODO: Add more?
local types = {
["text/html"] = "html",
["text/css"] = "css",
["text/xml"] = "xml",
["image/gif"] = "gif",
["image/jpeg"] = "jpg",
["application/x-javascript"] = "js",
["application/atom... | gpl-2.0 |
nesstea/darkstar | scripts/zones/Waughroon_Shrine/npcs/Burning_Circle.lua | 13 | 2263 | -----------------------------------
-- Area: Waughroon Shrine
-- NPC: Burning Circle
-- Waughroon Shrine Burning Circle
-- @pos -345 104 -260 144
-------------------------------------
package.loaded["scripts/zones/Waughroon_Shrine/TextIDs"] = nil;
-------------------------------------
require("scripts/globals/bcnm");... | gpl-3.0 |
Mashape/kong | kong/plugins/acl/groups.lua | 1 | 5454 | local tablex = require "pl.tablex"
local EMPTY = tablex.readonly {}
local kong = kong
local type = type
local mt_cache = { __mode = "k" }
local setmetatable = setmetatable
local consumer_groups_cache = setmetatable({}, mt_cache)
local consumer_in_groups_cache = setmetatable({}, mt_cache)
local function load_group... | apache-2.0 |
amirmrbad/teleatom | plugins/spammer.lua | 86 | 65983 | local function run(msg)
if msg.text == "[!/]killwili" then
return "".. [[
kose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack shod left bede\nkose nanat hack sh... | gpl-2.0 |
akdor1154/awesome | lib/naughty/core.lua | 1 | 24047 | ----------------------------------------------------------------------------
--- Notification library
--
-- @author koniu <gkusnierz@gmail.com>
-- @copyright 2008 koniu
-- @release @AWESOME_VERSION@
-- @module naughty
----------------------------------------------------------------------------
-- Package environ... | gpl-2.0 |
UnfortunateFruit/darkstar | scripts/globals/abilities/animated_flourish.lua | 28 | 2228 | -----------------------------------
-- Ability: Animated Flourish
-- Provokes the target. Requires at least one, but uses two Finishing Moves.
-- Obtained: Dancer Level 20
-- Finishing Moves Used: 1-2
-- Recast Time: 00:30
-----------------------------------
require("scripts/globals/settings");
require("scrip... | gpl-3.0 |
ruisebastiao/nodemcu-firmware | lua_examples/u8glib/u8g_rotation.lua | 43 | 2088 |
-- setup I2c and connect display
function init_i2c_display()
-- SDA and SCL can be assigned freely to available GPIOs
local sda = 5 -- GPIO14
local scl = 6 -- GPIO12
local sla = 0x3c
i2c.setup(0, sda, scl, i2c.SLOW)
disp = u8g.ssd1306_128x64_i2c(sla)
end
-- setup SPI and connect display
... | mit |
nesstea/darkstar | scripts/zones/Wajaom_Woodlands/npcs/qm1.lua | 30 | 1349 | -----------------------------------
-- Area: Wajaom Woodlands
-- NPC: ??? (Spawn Vulpangue(ZNM T1))
-- @pos -697 -7 -123 51
-----------------------------------
package.loaded["scripts/zones/Wajaom_Woodlands/TextIDs"] = nil;
-----------------------------------
require("scripts/zones/Wajaom_Woodlands/TextIDs");
require(... | gpl-3.0 |
ennis/autograph-pipelines | resources/glsl/blurCompute.lua | 1 | 3478 | require 'gl'
local CS = [[
#version 450
#include "utils.glsl"
// Adapted from:
// http://callumhay.blogspot.com/2010/09/gaussian-blur-shader-glsl.html
layout(binding = 0, FORMAT) readonly uniform image2D tex0;
layout(binding = 1, FORMAT) writeonly uniform image2D tex1;
layout(binding = 0, std140) uniform U0 {
int b... | mit |
UnfortunateFruit/darkstar | scripts/zones/La_Theine_Plateau/npcs/Telepoint.lua | 17 | 1631 | -----------------------------------
-- Area: La Theine Plateau
-- NPC: Telepoint
-----------------------------------
package.loaded["scripts/zones/La_Theine_Plateau/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/keyitems");
require("scripts/zones/La_Theine_Plateau/TextIDs");
... | gpl-3.0 |
UnfortunateFruit/darkstar | scripts/globals/effects/tabula_rasa.lua | 37 | 3360 | -----------------------------------
--
--
--
-----------------------------------
-----------------------------------
-- onEffectGain Action
-----------------------------------
function onEffectGain(target,effect)
local regen = effect:getSubPower();
local helix = effect:getPower();
if (target:hasStat... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h3.lua | 39 | 1336 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
-------------------... | gpl-3.0 |
nesstea/darkstar | scripts/zones/Spire_of_Holla/npcs/_0h2.lua | 39 | 1336 | -----------------------------------
-- Area: Spire_of_Holla
-- NPC: web of regret
-----------------------------------
package.loaded["scripts/zones/Spire_of_Holla/TextIDs"] = nil;
-----------------------------------
require("scripts/globals/bcnm");
require("scripts/zones/Spire_of_Holla/TextIDs");
-------------------... | gpl-3.0 |
NezzKryptic/Wire-Extras | lua/entities/gmod_wire_rfid_implanter/init.lua | 3 | 3606 |
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
ENT.WireDebugName = "RFID Implanter"
local MODEL = Model("models/jaanus/wiretool/wiretool_beamcaster.mdl")
function ENT:ShowOutput(a,b,c,d)
self:SetOverlayText( "RFID Implanter\nA="..a..";B="..b..";C="..c..";D="..d )
end
... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.