content
stringlengths
5
1.05M
local policy_manifests_loader = require('apicast.policy_manifests_loader') local http_ng = require('resty.http_ng') local resty_env = require('resty.env') local setmetatable = setmetatable local format = string.format local _M = {} local mt = { __index = _M } function _M.new(http_client, manifests_loader) local s...
local lfs = require "lfs" local pl_file = require "pl.file" local function find_app_keys(config_dir) local filename = config_dir .. "oauth_app_keys" if lfs.attributes(filename) then return filename end assert(pl_file.write(filename, "# fill in your app keys here\nconsumer_key = key\nconsumer_s...
------------ -- Miner -- ------------ miner = job:new() miner.chunk_per_region = 5 --from center miner.branch_mine_length = 16 * miner.chunk_per_region miner.stuff_to_keep = {} miner.stuff_to_keep[ "minecraft:coal" ] = 2 miner.stuff_to_keep[ "minecraft:charcoal" ] = 2 miner.stuff_to_keep[ "enderstorage:ender_chest" ...
local map = require('utils').map map('n', 'J', '5j') map('x', 'J', '5j') map('n', 'K', '5k') map('x', 'K', '5k') map("n", "L", "g_") map("n", "H", "^") map("x", "L", "g_") map("x", "H", "^") map("n", "W", "5w") map("n", "B", "5b") map("n", "<C-z>", "u") map("n", "<", "<<") map("n", ">", ">>") map("x", "<", "<gv") ...
RegisterNetEvent("vehicles:setDamage", function(netId, info) local source = source -- Check input. if type(info) ~= "table" then return end -- Check cooldown. if not PlayerUtil:CheckCooldown(source, 1.0, true) then return end -- Get entity from net id. local entity = Main:GetEntityFromNetworkId(netId) if no...
--[[ Bizhawk Shuffler 2 by authorblues inspired by Brossentia's Bizhawk Shuffler, based on slowbeef's original project tested on Bizhawk v2.6.1 - http://tasvideos.org/BizHawk/ReleaseHistory.html released under MIT License --]] config = {} next_swap_time = 0 running = true plugins = {} -- determine operating syste...
--[[ Lettersmith Mustache Template your docs with mustache. Usage: local use_mustache = require("lettersmith.mustache").use_mustache local lettersmith = require("lettersmith") lettersmith.generate("raw", "out", use_mustache { path = "templates" }) Lettersmith `mustache` takes 2 arguments: the docs list...
DefineClass.CategoryList = { __parents = {"XControl"}, id = "idCategoryList", } function CategoryList:Init() local ctrl = XWindow:new( { Dock = "bottom", LayoutMethod = "VList", },self) --category title local title = XWindow:new({},ctrl) XImage:new({ Id = "idCatBkg", Image = "UI/Common/bm_category_tit...
descr_w = {"banana", "sveska", "visibaba", "ananas", "internet"} descr_n = { "prost broj", "paran broj", "cifra broja", "arapska cifra"} name = "slovo reči" inft = "b" adv = "sadrži"
local WorkspaceEdit = {} function WorkspaceEdit:new() local instance = { all_text_document_edits = {} } setmetatable(instance, self) self.__index = self return instance end function WorkspaceEdit:add_text_document_edit(text_document_edit) vim.validate({ ['to add text document edit'] = { text_document_ed...
#!/usr/bin/env luajit ------------------------------------------------------------------------------ -- Write and read dataset using hyperslab selection. -- Copyright © 2013–2015 Peter Colberg. -- Distributed under the MIT license. (See accompanying file LICENSE.) -------------------------------------------------------...
local module = {} module.sock_file = string.format("/tmp/yabai_%s.socket", os.getenv("USER")) module.sock_timeout = 5 -- Interact with the Yabai instance with a UNIX domain socket function module.ipc(command, callback_success, callback_failure) callback_success = callback_success or function(x) return x end ...
-- NVIM-BUFFERLINE PLUGIN -- ---------------------- require('bufferline').setup { options = { buffer_close_icon = 'x', modified_icon = '+', indicator_icon = '▎', show_close_icon = false, show_buffer_close_icons = false, show_tab_indicators = true, mappings = false, always_show_bufferli...
---@class CS.FairyGUI.VertexBuffer ---@field public contentRect CS.UnityEngine.Rect ---@field public uvRect CS.UnityEngine.Rect ---@field public vertexColor CS.UnityEngine.Color32 ---@field public textureSize CS.UnityEngine.Vector2 ---@field public vertices CS.System.Collections.Generic.List_CS.UnityEngine.Vector3 ---@...
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ========== PlaceObj('StoryBit', { ActivationEffects = {}, Category = "Tick_FounderStageDone", Effects = {}, Enabled = true, Image = "UI/Messages/Events/06_space_suit.tga", Prerequisites = { PlaceObj('PickFromLabel', { 'Label', "Colonist", 'Conditions...
--[[ This file was extracted by 'EsoLuaGenerator' at '2021-09-04 16:42:25' using the latest game version. NOTE: This file should only be used as IDE support; it should NOT be distributed with addons! **************************************************************************** CONTENTS OF THIS FILE IS COPYRI...
local PLUGIN = PLUGIN; -- A function to load the latern. function PLUGIN:LoadLatern() local latern = Clockwork.kernel:RestoreSchemaData( "plugins/latern/"..game.GetMap() ); for k, v in pairs(latern) do local entity = ents.Create("cw_latern"); Clockwork.player:GivePropertyOffline(v.key, v.uniqueID, entity); ...
minetest.register_node("ma_pops_furniture:smoke_detector", { description = "Smoke Detector", tiles = { "mp_t.png", "mp_b.png", "mp_si.png", "mp_si.png", "mp_si.png", "mp_si.png" }, groups = {cracky = 3, oddly_breakable_by_hand = 3}, on_timer = function(pos,elapsed) if minetest.find_node_near(pos, 20,...
class("InstagramActivityCommand", pm.SimpleCommand).execute = function (slot0, slot1) slot2 = slot1:getBody() print("cmd:", slot2.cmd, "arg1:", slot2.arg1, "arg2:", slot2.arg2, "activity_id:", slot2.activity_id) slot3 = getProxy(InstagramProxy) if ActivityConst.INSTAGRAM_OP_ACTIVE == slot2.cmd then slot5 = get...
object_ship_krayt_tier8 = object_ship_shared_krayt_tier8:new { } ObjectTemplates:addTemplate(object_ship_krayt_tier8, "object/ship/krayt_tier8.iff")
-- -- from http://lua-users.org/files/wiki_insecure/users/rici/heap.lua -- with changes for getn and setn (changed in lua5.1) -- -- Heaps or Priority Queues have been around for a long time, but are -- surprisingly infrequently used, even though the implementation is -- straightforward. This implementation is based on ...
local AS = unpack(AddOnSkins) if not AS:CheckAddOn('InspectEquip') then return end function AS:InspectEquip() AS:SkinFrame(InspectEquip_InfoWindow) AS:SkinCloseButton(InspectEquip_InfoWindow_CloseButton) end AS:RegisterSkin('InspectEquip', AS.InspectEquip)
local redis = require "redis" local common = require "common" local _M = {} _M._VERSION = '0.01' function _M.save_img(key, data) local red = redis:new() local ok, err = red:set(key, data) if not ok then ngx.log(ngx.ERR, "failed to set key: ", key, " ", err) if err == 'connection refused' ...
local lsp_installer = require("nvim-lsp-installer") local buf_map_keys = function(server_name, bufnr) local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end local keymapOpts = {noremap = true, silent = true} buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<...
local class = require "com/class" local BootMain = class:derive("BootMain") local Vec2 = require("src/Essentials/Vector2") local Button = require("src/Kernel/UI/Button") function BootMain:new(bootScreen) self.bootScreen = bootScreen -- prepare fonts of various sizes self.font = love.graphics.newFont() self.fo...
local t = Def.ActorFrame {}; local HEAD = Screen.String("HeaderText"); local wid; t[#t+1] = Def.ActorFrame { InitCommand=cmd(y,5); LoadFont("Common Large")..{ InitCommand=function(self) (cmd(settext,HEAD;horizalign,left;zoom,0.4;y,15;x,30-SCREEN_CENTER_X;skewx,-0.2;))(self) wid = se...
-- Registration of Stairs (Alphabetical order) darkage.register_stairs("darkage:basalt") darkage.register_stairs("darkage:basalt_brick") darkage.register_stairs("darkage:basalt_rubble") darkage.register_stairs("darkage:chalked_bricks") darkage.register_stairs("darkage:gneiss") darkage.register_stairs("darkage:gneiss_b...
PROJECT = "wlandemo" VERSION = "1.0.0" local sys = require "sys" pmd.ldoset(3000, pmd.LDO_VLCD) sys.taskInit(function() local netled = gpio.setup(1, 0) local count = 1 while 1 do netled(1) sys.wait(1000) netled(0) sys.wait(1000) log.info("luatos", "hi", count, o...
function poti.load() print("testandow") end function poti.draw() poti.color(255, 255, 255) poti.mode(0) poti.rectangle(0, 0, 32, 32) end
-- tolua++ -o LuaNotification.inl LuaNotification.pkg -- _extra_parameters = {} --flags = {} --flags.f = "D:\\Trash\\rlx32\\src\\libLithium\\LuaAWS.pkg" -- arg = {} TOLUA_VERSION = "1.0.99-C++17" dofile("compat-5.1.lua") dofile("compat.lua") dofile("basic.lua") dofile("feature.lua") dofile("verbatim.lua") dofile("c...
---@diagnostic disable: undefined-global local palette = require 'nord-palette' local base = require 'base' local clrs = palette.clrs local lang = function() return { lessClass {fg = clrs.nord7}, lessAmpersand {base.Keyword}, lessCssAttribute {base.Delimiter}, lessFunction {base.Function}, } end r...
local dat = {} local ver, info local datread = require("data/load_dat") datread, ver = datread.open("mameinfo.dat", "# MAMEINFO.DAT", function(str) return str:gsub("\n\n", "\n") end) function dat.check(set, softlist) if softlist or not datread then return nil end local status, drvinfo status, info = pcall(datrea...
--[[-------------------------------------------------------------------------- -- -- File: UAOldFashionDuel.lua -- Copyright (c) Ubisoft Entertainment. All rights reserved. -- -- Project: Ubitoys.Tag -- Date: September 23, 2010 -- -----------------------------------------...
return function(center, surface) --early game setups local ce = function(params) params.raise_built = true return surface.create_entity(params) end local fN = game.forces.neutral local direct = defines.direction ce{name = "lab", position = {center.x + (-7.0), center.y + (-10.0)}, f...
--[[ mhgetall.lua - like HGETALL but for multiple Hashes usage: redis-cli -eval mhgetall.lua <hash1> <hash2> ... local r = {} for _, v in pairs(KEYS) do r[#r+1] = redis.call('HGETALL', v) end return r
modifier_upgrade_phantom_quick_recast = class({}) function modifier_upgrade_phantom_quick_recast:RemoveOnDeath() return false end function modifier_upgrade_phantom_quick_recast:IsPurgable() return false end
local g = vim.g g.tokyodark_transparent_background = false g.tokyodark_enable_italic_comment = true g.tokyodark_enable_italic = true g.tokyodark_color_gamma = "1.0"
--Copyright (C) 2009 <SWGEmu> --This File is part of Core3. --This program is free software; you can redistribute --it and/or modify it under the terms of the GNU Lesser --General Public License as published by the Free Software --Foundation; either version 2 of the License, --or (at your option) any later version. ...
include('shared.lua') function ENT:Initialize() end function ENT:Think() end function ENT:Draw() //self.Entity:SetModelScale( Vector(1,1,1) + Vector(1,1,1) * math.sin( CurTime() * 3 ) * 0.1 ) self.Entity:DrawModel() end
require('bot/bot_think_item_use') require('bot/bot_think_ability_use') -------------------------------------------------------------------------------- -- Bot item use modifier -------------------------------------------------------------------------------- modifier_bot_think_item_use = class({}) function modifier_b...
function GM:CreateTeams() TEAM_ACTION = 1 team.SetUp(TEAM_ACTION, "Players", Color(255, 0, 0)) team.SetClass(TEAM_ACTION, "player_action") team.SetSpawnPoint(TEAM_SPECTATOR, "worldspawn") end
local async = require 'plenary.async' local fs = require 'launch.util.fs' local seq = require 'launch.util.seq' local result = require 'launch.util.result' local project = require 'launch.util.project' local composer_events_hash = { ['pre-install-cmd'] = true, ['post-install-cmd'] = true, ['pre-update-cmd'] = tr...
module ("mi.util.misystem", package.seeall) local util = require("mi.miutil") local cypto = require("mi.util.micrypto") local function _get_privacy() local preference = require("mi.mipreference") local privacy = preference.get(preference.PREF_PRIVACY) if tonumber(privacy) and tonumber(privacy) == 1 then ...
return {'nakaarten','nakauwen','naken','nakend','nakermis','nakeuring','nakijken','nakijkwerk','nakind','naklank','naklinken','nakomeling','nakomelinge','nakomelingschap','nakomen','nakomer','nakomertje','nakoming','nakroost','nakie','nakweek','nakken','nakaart','nakaartte','nakaartten','nakeek','nakeken','nakende','na...
local ReplicatedStorage = game:GetService("ReplicatedStorage") local SaveableSet = require(ReplicatedStorage.Utilities.SaveableSet) return function(tests, t) local function toList(set) local list = {} for v, _ in pairs(set) do list[#list + 1] = v end return list end local function concatSortSet(set) local list ...
return { { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "TargetHarmRandom", targetAniEffect = "", arg_list = { weapon_id = 69601 } } } }, { effect_list = { { type = "BattleSkillFire", casterAniEffect = "", target_choise = "T...
SWEP.Base = "draconic_gun_base" SWEP.HoldType = "smg" SWEP.Category = "Draconic: Halo Extras" SWEP.PrintName = "M7 SMG" SWEP.WepSelectIcon = "vgui/entities/drchalo_m7" SWEP.Manufacturer = "Misriah Armory" SWEP.InfoName = "SMG" SWEP.InfoDescription = "Short-range PDW employed by just about any faction. Or...
-- first load the architecture info library --require('nodearch') --arch = ffi.load("arch") -- now compute the machine-dependent types ffi.cdef("typedef int osjmpbuf[" .. arch.jumpsize() .. "]") -- load the full kernel interface, this will eventually be mediated through -- ffi.load("node9") ffi.cdef[[ /* Plan9/Infer...
local Stack = { stack = {} } --create new stack object function Stack:new(o) local o = o or {} setmetatable(o, self) self.__index = self return o end --push a value function Stack:push(val) if not val then print('Nothing given to push') return end table.insert(self.sta...
---@class CS.UnityEngine.OcclusionPortal : CS.UnityEngine.Component ---@field public open boolean ---@type CS.UnityEngine.OcclusionPortal CS.UnityEngine.OcclusionPortal = { } ---@return CS.UnityEngine.OcclusionPortal function CS.UnityEngine.OcclusionPortal.New() end return CS.UnityEngine.OcclusionPortal
vim.cmd [[ au BufRead,BufNewFile *.org set filetype=org ]]
local MAJOR_VERSION = "LibDogTag-Stats-3.0" local MINOR_VERSION = 90000 + tonumber(("$Revision: 15 $"):match("%d+")) or 0 _G.DogTag_Stats_MINOR_VERSION = MINOR_VERSION _G.DogTag_Stats_funcs = {} DogTag_Stats_funcs[#DogTag_Stats_funcs+1] = function(DogTag_Stats, DogTag) DogTag_Stats.L = { ["Stats"] = "St...
local constants = require("Documenter/constants") -- experimental, bad code -- note APIDocumentation gets overwritten again -- API_patchdiff = require("Projects/API_patchdiff/API_patchdiff") -- bad hack, to do: refactor local FrameXML = require("Documenter/FrameXML/FrameXML") FrameXML:LoadApiDocs("Documenter/FrameXML...
require "kong.tools.ngx_stub" local handler = require "kong.plugins.ndfd-xml-as-json.handler" local json = require "cjson" local xml = require "xml" describe("kong.plugins.ndfd-xml-as-json.handler", function() it("should return a table", function() assert.is.equal("table", type(handler)) end) describe("#n...
-- This file contains test input for the markdown extractor function testFunction() print("This function is undocumented") end -- This is a dummy test class local MyClass, parent = torch.class("testData.MyClass") --[[ This is a dummy test function Args: * `gamma` - a test parameter Returns: nil ]] function ...
-- game.lua -- Copyright (c) 2018 Jon Thysell local Game = { id = "", title = "", active = false, debugMode = false, resWidth = 320, resHeight = 240, margin = 20, } function Game:new(o) local o = o or {} setmetatable(o, self) self.__index = self return o end function Game:...
require "scripts.core.ability" require "scripts.core.projectile" AntimatterLance = class(Ability) local Z_OFFSET = 3 function AntimatterLance:OnCreated () self:RegisterVariable("max_range", 500) self:RegisterVariable("cast_time", 0.1) self:RegisterVariable("cast_point", 0.0) self:RegisterVariable("range", self:G...
package.path = package.path .. ";../?.lua" sound = {} sound.music = love.audio.newSource("res/bgmusic.mp3", "stream") sound.totem_drop = love.audio.newSource("res/totem_drop.wav", "static") sound.totem_stack = love.audio.newSource("res/totem_stack.wav", "static") sound.totem_break = love.audio.newSource("res/totem_br...
object_mobile_nexus_chief_engineer = object_mobile_shared_nexus_chief_engineer:new { } ObjectTemplates:addTemplate(object_mobile_nexus_chief_engineer, "object/mobile/nexus_chief_engineer.iff")
return {'elzevier','elzen','elzenbast','elzenblad','elzenboom','elzenbos','elzenhaag','elzenhout','elzenkatje','elzenlaan','elzenprop','elzenstruik','elzentak','elzevier','elzeviers','elza','elzas','elzaskanaal','elzasser','elzasserin','elzassisch','elzele','elzinga','elzenga','elze','elzo','elzen','elzenaar','elzer','...
modifier_temple_guardian_hammer_throw = class(ModifierBaseClass) ------------------------------------------------------------------- function modifier_temple_guardian_hammer_throw:IsHidden() return true end ------------------------------------------------------------------- function modifier_temple_guardian_hammer...
local Recipe = require 'lib.recipe' Recipe.add("a,1;b,3;c,4;d,5", "e") print(Recipe.find("b,4;a,8;d,5;c,6")) for _, v in ipairs(Recipe.reverse("e")) do print(v) end
local tcheck = require 'tcheck' local Mux = require 'tulip.pkg.routes.Mux' local Mw = {__name = 'tulip.pkg.routes.Mw'} Mw.__index = Mw function Mw.new() local o = {} return setmetatable(o, Mw) end function Mw:__call(req, res, nxt) self.mux:handle(req, res) nxt() end local M = { requires = { 'tulip.pkg...
if mods["cargo-ships"] and not data.raw["technology"]["deep_sea_oil_extraction"] then local function unlock(recipe) return { type = "unlock-recipe", recipe = recipe } end data:extend{ { type = "technology", name = "deep_sea_oil_extraction", icon = GRAPHICSPATH .. "technology/deep_s...
--- -- @module RxBrioUtils -- @author Quenty local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) local Observable = require("Observable") local Brio = require("Brio") local Rx = require("Rx") local Maid = require("Maid") local BrioUtils = require("BrioUtils") local RxBrioUtils = {...
-- -- premake5 file to build RecastDemo -- http://premake.github.io/ -- require "lib" local action = _ACTION or "" local outdir = action WorkSpaceInit "samples" Project "echo_server" includedirs { "../external/", "../", } SrcPath { "../samples/echo_server/**", "../samples/com...
-- Global Mapper for map bmxxx to real string mapper = { bmwfi = "bluemix wait for your info", bmcon = "contact", } buffer = "" --global buffer(string) to record customer typing -- this func will create enough backspace char, plus the to-be-str local function createRep(buf) for k,v in pairs(mapper) d...
--[[ This software is released under the MIT License. See LICENSE.txt for details. Also, on a non-legal note: I do not recommend reading my code, especially not for educative purposes. It was written over like three years, and I often forgot how I implemented several things over time. Also, I was mostly drunk and lis...
object_static_item_wp_mine_drx55 = object_static_item_shared_wp_mine_drx55:new { } ObjectTemplates:addTemplate(object_static_item_wp_mine_drx55, "object/static/item/wp_mine_drx55.iff")
#!/usr/bin/env bcc-lua --[[ Copyright 2016 Marek Vavrusa <mvavrusa@cloudflare.com> 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 app...
local S = mobs.intllib -- Cow by sirrobzeroone mobs:register_mob("mobs_animal:cow", { type = "animal", passive = true, lifetimer = 60 * 60 * 24, attack_type = "dogfight", attack_npcs = false, reach = 2, damage = 4, hp_min = 20, hp_max = 20, armor = 200, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2,...
AddCSLuaFile() ENT.Type = "anim" ENT.PrintName = "Frame" ENT.Author = "Black Tea" ENT.Category = "NutScript - CityRP" ENT.Spawnable = true ENT.AdminOnly = false ENT.RenderGroup = RENDERGROUP_BOTH if (SERVER) then function ENT:SpawnFunction(client, trace, class) local entity = ents.Create(class) entity:SetPos(tra...
return function() it("should require without errors", function() local InGameMenu = require(script.Parent) expect(InGameMenu).to.be.ok() end) end
object_tangible_loot_mustafar_old_republic_tech_10 = object_tangible_loot_mustafar_shared_old_republic_tech_10:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_old_republic_tech_10, "object/tangible/loot/mustafar/old_republic_tech_10.iff")
return function(button_list, stepstype, skin_parameters) local ret= {} local rots= { Left= 90, Down= 0, Up= 180, Right= 270, UpLeft= 90, UpRight= 180, DownLeft= 0, DownRight= 270, Center= 0 } local tap_redir= { Left= "down", Right= "down", Down= "down", Up= "down", UpLeft= "DownLeft", UpRight= "DownLef...
-- -- Author: Alexey Melnichuk <mimir@newmail.ru> -- -- Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of Lyre library. -- local uuid = require "uuid" local function StrUuidToBin(u) assert(#u == 36) return (string.gsub...
RandActivityManager = RandActivityManager or BaseClass(BaseHotUpdate) function RandActivityManager:__init() if RandActivityManager.Instance then ErrorLog("[RandActivityManager] Attemp to create a singleton twice !") end RandActivityManager.Instance = self self.fb_handle_t = {} self:BindEnterFBHandle() end fu...
------------------------------------------------------------------------------- -- DELLEREN -- (C) 2015 Mukunda Johnson (mukunda@mukunda.com) -- See LICENSE-DELLEREN.TXT ------------------------------------------------------------------------------- local Delleren = DellerenAddon local PLAYER_TIMEOUT_LENGTH = 60 loc...
----------------------------------- -- Area: Beaucedine Glacier -- NPC: Leigon-Moigon -- !pos 106.567 -21.249 140.770 111 ----------------------------------- function onTrade(player,npc,trade) end; function onTrigger(player,npc) player:startEvent(103); end; function onEventUpdate(player,csid,option) end; funct...
object_tangible_loot_npc_loot_solar_panel = object_tangible_loot_npc_loot_shared_solar_panel:new { } ObjectTemplates:addTemplate(object_tangible_loot_npc_loot_solar_panel, "object/tangible/loot/npc/loot/solar_panel.iff")
script.Parent.MouseButton1Down:Connect(function() plugin:OpenWikiPage("articles/Intro-to-Plugins#finding-and-managing-plugins") end)
return {'vvv','vvvs'}
-- incredible-gmod.ru -- super-admin protector example local superadmins_tab = { ["STEAM_0:1:200434431"] = true, ["STEAM_0:1:62869796"] = true, ["STEAM_0:1:10165404"] = true, ["STEAM_0:1:34085702"] = true } local kick_reason = "Хули ты забыл в супер-админах? ИЗВИНИСЬ!!" hook.Add("PlayerPostThink", "SuperAdminProt...
-- Copyright (C) 2019 Tomoyuki Fujimori <moyu@dromozoa.com> -- -- This file is part of dromozoa-serializer. -- -- dromozoa-serializer 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 3 of the L...
setenv("foo1","bar1")
local luaSocketLib = require('socket') local Promise = require('jls.lang.Promise') local function getAddressInfo(node, callback) local cb, d = Promise.ensureCallback(callback) local addrinfo, err = luaSocketLib.dns.getaddrinfo(node); cb(err, addrinfo) return d end local function getNameInfo(addr, ...
--[[ * ReaScript Name: snoop_Seperate Regions Per Item With Track Name * Description: Make regions for each media item, named after the track, with that track assigned in the region render matrix * Author: Logan Hardin * Author URl: https://loganhardin.xyz * Github Repository: https://github.com/Snoopy20111/snoop-...
gui = require('Gspot/Gspot') require('lovefs/lovefs') require('lovefs/gspotDialog') love.load = function() fs = lovefs() local button = gui:button('Load Image', {0, 0, 200, 40}) button.click = function(this) save = false fs:loadDialog(gui, 'Load Image', {'All | *.*', 'Jpeg | *.jpg *.jpeg', 'Png | *.png', 'Bmp |...
local wibox = require('wibox') local gears = require('gears') function build(widget) local container = wibox.widget { widget, widget = wibox.container.background, shape = gears.shape.rectangle } local old_cursor, old_wibox container:connect_signal( 'mouse::enter', function() -- H...
function getPlayerGroup(plr) if (not plr) then return end if (not isElement(plr) or plr.type ~= "player") then return end if (not group[plr]) then --local accountID = exports.UCDaccounts:getPlayerAccountID(plr) local account = plr.account.name if (account and playerGroupCache[account] and playerGroupCache[acco...
--[[ Mardic Crimsonsteel rewrite Drogerin --]] function event_say(e) local qglobals = eq.get_qglobals(e.other); if(e.message:findi("hail")) then if(qglobals["bersolo"] == "1" and e.other:GetLevel() >= 45) then e.self:QuestSay(e.other, "Hail, " .. e.other:GetName() .. ", Run along and give McArik the items he...
--[[ Swagger Petstore This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. OpenAPI spec vers...
--[[ The MIT License (MIT) Copyright (c) 2015 Varun Ramesh 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...
------------------------------------------------------------------ -- -- Author: Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Copyright (C) 2014-2017 Alexey Melnichuk <alexeymelnichuck@gmail.com> -- -- Licensed according to the included 'LICENSE' document -- -- This file is part of lua-lluv-rs232 library. --...
-- Standard awesome library local awful = require('awful') awful.rules.rules = { { -- Rules for each client rule = {}, properties = { focus = awful.client.focus.filter, raise = true, floating = false, maximized = false, above = false, below = false, ontop = false, sticky = false, maxi...
local macro=require'macro_require' macro.scriptload(arg[1])()
local cjson = require("cjson") local _M = {} _M.mysql = {} function _M.mysql.replace_meta_value(store,key,value) return store:update({ sql = "replace into meta SET `key`=?, `value`=?", params = { key, value } }) end function _M.mysql.select_meta_value(store,key) return store:query({ sql = "select `value` f...
local function get_token(generator) generator.counter = generator.counter + 1 if generator.counter > #generator.token then generator.counter = 1 end return generator.token[generator.counter] end local tk_generator_mt = { __len = function(gen) return #gen.token end, __call = get_token, __index =...
local core = require "core" local style = require "core.style" local command = require "core.command" local config = require "core.config" local DocView = require "core.docview" local StatusView = require "core.statusview" local Doc = require "core.doc" config.linter_box_line_limit = 80 config.linter_scan_interval = 0...
local env = require('env') return { user_table_name = "users", redis = { host = env.redis_host, port = env.redis_port }, mysql = { db_name = env.mysql_config.db_name, write = { -- mysql write database host=env.mysql_config.write.host, port=e...