content stringlengths 5 1.05M |
|---|
loadstring(game:GetObjects'rbxassetid://82099820'[1]:children()[1].Source)(); |
local Scene = require("lib.Scene")
local U = require("lib.Utils")
local T = Scene:derive("Test")
T.do_collisions = require("scenes/scene_funcs/Test_funcs")
local world = require("lib.World")
local World = world(32, 32, 50, 40)
-- World:print()
function T:new(scene_mgr)
T.super.new(self, scene_mgr)
self.eve... |
for i,v in ipairs({
{1422,2272.7,2423.3,10.2,0,0,0},
{1422,2275.3999,2423.3,10.2,0,0,0},
{1422,2278.1001,2423.3,10.2,0,0,0},
{1422,2280.8,2423.3,10.2,0,0,0},
{2060,2281.6001,2423.3,10.7,0,0,0},
{2060,2280.7,2423.3,10.7,0,0,0},
{2060,2279.6001,2423.3,10.7,0,0,0},
{2060,2278.5,2423.3,10.7,... |
--------------------------------
-- @module DateUtils
-- @parent_module zq
--------------------------------
--
-- @function [parent=#DateUtils] getMilliseconds
-- @param self
-- @return double#double ret (return value: double)
return nil
|
local function a(b,...)error(b:format(...),0)end;local function c(d,e,f)e[d.name]=f or true end;local g={}function g:add(h,i)if type(h)=="string"then h={h}end;if not i then i={}end;i.names=h;for j=1,#h do local k=h[j]if k:sub(1,2)=="--"then self.options[k:sub(3)]=i elseif k:sub(1,1)=="-"then self.flags[k:sub(2)]=i else... |
-- Self inventory net msgs
util.AddNetworkString("UpdatePlayerInventory")
util.AddNetworkString("ClientRequestInventoryData")
util.AddNetworkString("PlayerItemFunction")
-- Ext entity net msgs
util.AddNetworkString("EntityShowInventory")
util.AddNetworkString("EntityUpdateInventory")
util.AddNetworkString("TakeItemFro... |
--[[ Copyright (C) 2018 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
-- Actually these regular expressions were obtained from SpamAssassin project, so they are licensed by apache license:
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyr... |
local Script = {
extends = Node
}
return Script
|
-------------------------------------------------------------------------------
-- ElvUI ChatTweaks By Crackpot (US, Thrall)
-------------------------------------------------------------------------------
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = AceLocale:NewLocale("ElvUI_ChatTweaks", "enUS", tru... |
-- Example of how to use 'push_group' and 'pop_group_to_source' to composite
-- a bunch of drawing commands onto a background with a single level of
-- alpha blending, and also demonstrate the difference between the
-- 'get_target' and 'get_group_target' methods.
local Cairo = require "oocairo"
local PI = 2*math.asin... |
object_draft_schematic_weapon_carbine_e11_mk2 = object_draft_schematic_weapon_shared_carbine_e11_mk2:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_weapon_carbine_e11_mk2, "object/draft_schematic/weapon/carbine_e11_mk2.iff")
|
local I = {}
local function dump_list_file(files)
local out = {}
for f, v in pairs(files) do
if v then
table.insert(out, f)
end
end
return vim.fn.msgpackdump(out)
end
local function new_list(path, files)
local list = {}
list._path = path
list._files = files
... |
-- skrypt by CEO oraz marcin778 --
function straz_pozarna(plr,commands, ...)
local msg = table.concat ( {...}, " " )
outputChatBox("* Wezwałeś(aś) Państwową Straż Pożarną !",plr,255,255,255)
for k,v in ipairs(getElementsByType("player")) do
if getElementData(v, "player:faction")=="PSP" then
outputChatBox( "* "..getP... |
-- Telescope Mappings
local util = require "jesse.core.util"
local M = {}
M.mappings = {
i = {
["<C-v>"] = util.open_telescope_selection_in_new_instance,
},
n = {
["<C-v>"] = util.open_telescope_selection_in_new_instance,
},
}
-- Launch mappings
vim.keymap.set("n", "<leader>f", function()
util.git_... |
local object = {
a = 1
}
return object
|
--[===[DOC
= jsonish
[source,lua]
----
function jsonish( jsonStr ) --> dataTab
----
This function parses the json-like string `jsonStr` to the lua table `dataTab`.
It does not perform any validation. The parser is not fully JSON compliant,
however it is very simple and it should work in most the cases.
This functio... |
local M = {}
M.__index = M
function M.new(images)
local getActorAnimations = function(img)
return {
still = animation.new(img, 64, 64, 0, 3, 0, 8),
down = animation.new(img, 64, 64, 3, 6, 0, 8),
up = animation.new(img, 64, 64, 9, 6, 0, 8),
right = animation.new(img, 64, 64, 15, 6, 0, 8),
left = anima... |
require 'mylib'
mylib.sayHello()
|
local class = require('middleclass')
local Controller = require('mvc.Controller')
local HasSignals = require('HasSignals')
local PlaybackController = class("PlaybackController", Controller):include(HasSignals)
function PlaybackController:initialize(deskModel)
Controller.initialize(self)
HasSignals.initi... |
---
-- @module RagdollableConstants
local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore"))
local Table = require("Table")
return Table.readonly({
REMOTE_EVENT_NAME = "RagdollRemoteEvent";
}) |
-- mcafee-epo-agent.nse V0.0.2, checks if ePO agent is running
-- Developed by Didier Stevens and Daniel Miller
-- Use at your own risk
--
-- History:
-- 2012/05/31: Start
-- 2012/06/01: extracting data from XML; tested with ePO 4.5 and 4.6
-- 2012/06/05: V0.0.2 conversion to version script by Daniel Miller
-- ... |
-- Move the icons to a circle around some distance above the screen an rotate icons on that circle.
return function(page, offset, screen_width, screen_height)
local percent = offset / screen_width
local prog1 = math.min(1, math.max(0, -3 * math.abs((math.abs(percent) - 0.5)) + 1.5))
local prog2
if ... |
--
-- Created by IntelliJ IDEA.
-- User: nander
-- Date: 21/04/2018
-- Time: 14:54
-- To change this template use File | Settings | File Templates.
--
LOWEST = 0
local menu = {} -- previously: Gamestate.new()
menu.name = "playCards"
function menu:enter(prev)
menu.prev = prev
end
function menu:draw()
scripts.r... |
local exports = exports or {}
local TestSpace = exports.TestSpace or TestSpace or {}
do
local TestNestedSpace = TestNestedSpace or {}
do
local function innerFunc()
end
TestNestedSpace.innerFunc = innerFunc
end
TestSpace.TestNestedSpace = TestNestedSpace
end
exports.TestSpace = Te... |
-- General ( May be used multiple places )
ZO_CreateStringId("SI_MAILLOOTER_ADDON_NAME", "MailLooter")
ZO_CreateStringId("SI_MAILLOOTER_TITLE", "Mail Looter")
-- There may be up to 6 strings for the defaults.
MailLooter.defaultAutoReturnSubjects =
{ "return", "bounce", "rts", "return to sender" }
-- Keybingings... |
vim.g.undotree_CustomUndotreeCmd = 'new'
vim.g.undotree_CustomDiffpanelCmd = '"'
vim.g.undotree_HelpLine = 0
fey.tools_undo_tree.undo_tree = function()
if vim.g.loaded_undotree == nil then
vim.cmd'packadd undotree'
end
vim.fn['undotree#UndotreeShow']()
vim.fn['undotree#UndotreeFocus']()
vim.bo.filety... |
return require("base58.init")
|
help(
[[
This module loads R 3.2.0 into the environment
]])
whatis("Loads R, a tool for statistical analysis")
local version = "3.2.0"
local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/R/"..version
prepend_path("PATH", pathJoin(base, "bin"))
prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib64"))
load('li... |
local class = class("QuitRoomConfirmLayer")
class.__index = class
local Constants = require "Constants"
local SoundApp = require "SoundApp"
local Settings = require "Settings"
local protoTypes = require "ProtoTypes"
function class.extend(target)
local t = tolua.getpeer(target)
if not t then
t = {}
... |
-- 2,<cd src && awk -f ../data.awk africa antarctica asia australasia europe northamerica southamerica etcetera factory
return {
africa={
["Africa/Algiers"]=false,
["Atlantic/Cape_Verde"]=false,
["Africa/Ndjamena"]=false,
["Africa/Abidjan"]=false,
["Africa/Bamako"]="Africa/Abidjan",
["Africa/Banjul"]="Afri... |
-----------------------------------
-- Area: Southern San d'Oria
-- NPC: Baunise
-- Involved in Quest: A Knight's Test
-- !pos -55 -8 -32 230
-------------------------------------
require("scripts/globals/settings")
require("scripts/globals/keyitems")
local ID = require("scripts/zones/Southern_San_dOria/IDs")
--------... |
-- local function dmg(ply, dmginfo)
-- if (!IsValid(ply) || !ply:IsPlayer() || !ply:Alive()) then return end -- Проверка на то, что игрок доступен для установки параметров
-- if (ply.ClothingSystemPlayerBase == nil) then return end -- Проверка на существования базы у игрока
-- if (!ply.ClothingSystemPlayerI... |
includeFile("tatooine/alkhara_bandit_king.lua")
includeFile("tatooine/alkhara_bandit.lua")
includeFile("tatooine/alkhara_champion.lua")
includeFile("tatooine/alkhara_lieutenant.lua")
includeFile("tatooine/armodragon.lua")
includeFile("tatooine/anim_kahn.lua")
includeFile("tatooine/arosp_eslykewa.lua")
includeFile("tato... |
local t = require('luatest')
local g = t.group()
local helper = require('test.helper')
local assert_failure = helper.assert_failure
local assert_failure_equals = helper.assert_failure_equals
local function f()
end
local function f_with_error()
error('This is an error', 2)
end
local function f_with_table_error()... |
local module = {}
local HttpService = game:GetService("HttpService")
local TeleportService = game:GetService("TeleportService")
local network
module.priority = 3
local guildRankValues = {
member = 1;
officer = 2;
general = 3;
leader = 4;
}
local function getRankNumberFromRank(rank)
return guildRan... |
_addon.name = "autoRing"
_addon.author = "Godchain"
_addon.version = "1.0"
_addon.commands = {"autoRing", "ar"}
require("logger")
extdata = require("extdata")
lang = string.lower(windower.ffxi.get_info().language)
item_info = {
["facility"] = {id = 26165, japanese = "ファシリティリング", english = "Facility Ring", slot = ... |
---@class BufferedTable
local BufferedTable = CLASS: BufferedTable ()
function BufferedTable:__init ( size, isize, hsize )
size = size or 2
self.size = size
self.cursor = 1
for i = 1, size do
self[ i ] = {}
end
end
function BufferedTable:table ()
return self[ self.cursor ]
end
function Buffer... |
--
-- Just some decorative plastic panels.
--
minetest.register_node("yatm_plastics:plastic_panel_plain_block", {
basename = "yatm_plastics:plastic_panel_plain_block",
description = "Plain Plastic Panel Block",
groups = {
cracky = 1,
plastic_block = 1,
},
tiles = {
"yatm_plastic_panel_plain.off.... |
slot0 = setmetatable
slot1 = table
slot2 = rawset
slot3 = error
module("containers")
function RepeatedCompositeFieldContainer(slot0, slot1)
return slot0({
_listener = slot0,
_message_descriptor = slot1
}, slot1)
end
function RepeatedScalarFieldContainer(slot0, slot1)
return slot0({
_listener = slot0,
_typ... |
local string = "LOL"
local longString = [[VERY LONG STRING I GOT HERE
MULTI LINE WORKS
YOU SEE?
]] -- Not sure why, but this ]] will make concatenating other strings go to a new line --- Its because of print()
print(string)
print(longString)
print(string .. longString) --Concatenating in lua is .. not +
print(longStri... |
local pegger = require 'nelua.utils.pegger'
local class = require 'nelua.utils.class'
local errorer = require 'nelua.utils.errorer'
local iters = require 'nelua.utils.iterators'
local traits = require 'nelua.utils.traits'
local except = require 'nelua.utils.except'
local sstream = require 'nelua.utils.sstream'
local st... |
return Def.ActorFrame {
CurrentSongChangedMessageCommand=function(self)
local song = GAMESTATE:GetCurrentSong();
if song then
-- self:setaux(0);
self:finishtweening();
self:decelerate(0.3):diffusealpha(1)
elseif not song and self:GetZoomX() == 1 then
-- self:setaux(1);
self:finishtweening();
s... |
--[[ [previous](03-helloworld.lua) | [contents](00-contents.lua) | [next](05-explain.lua)
# Program is a list of instructions
Every program is a list of instructions. These instructions "tell" the computer what to do. You will learn how to write these instructions in a way that computers can follow and other people c... |
local module = {
Name = "Test filter",
Description = "Test whether your message will be filitered or not" ,
Location = "Player",
}
module.Execute = function(Client, Type, Attachment)
if Type == "command" then
local Input = module.API.sendModalToPlayer(Client, "What's the message?").Event:Wait()
if Input == fa... |
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {},
Effects = {},
Prerequisites = {},
ScriptDone = true,
SuppressTime = 1080000,
Text = T(146624104168, --[[StoryBit LongWinter_MoraleEvent Text]] "This damned long Cold Wave has everybody on edge. We hav... |
local L = BigWigs:NewBossLocale("Mephistroth", "ruRU")
if not L then return end
if L then
--L.custom_on_time_lost = "Time lost during Shadow Fade"
--L.custom_on_time_lost_desc = "Show the time lost during Shadow Fade on the bar in |cffff0000red|r."
end
L = BigWigs:NewBossLocale("Domatrax", "ruRU")
if L then
--L.cus... |
local AceGUI = LibStub("AceGUI-3.0")
--------------------------
-- Button --
--------------------------
do
local Type = "Button"
local Version = 11
local function OnAcquire(self)
-- restore default values
self:SetHeight(24)
self:SetWidth(200)
end
local function OnRelease(self)
self.frame:Clea... |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("assets.quests.explore_cave", function()
local cave = require "assets.quests.explore_cave"
it("can create a quest entity", function()
local q = cave:clone()
... |
class "Tron"
function Tron:__init()
self.state = GamemodeState.WAITING
self.inLobby = false
self.queue = {}
self.queueMin = 0
self.queueMax = 0
self.nameT = "Игроки"
self.nameTTw = "Очередь"
self.nameTTh = "Ожидание других игроков..."
self.nameTFo = "Самоуничтожиться через "
self.nameTFi = "За гр... |
--
-- I never tread... lightly.
-- Author: Dubpub
-- Date: 9/15/2015
-- Time: 4:02 AM
-- Use as you please, it's LUA for christ's sake.
--
--[[
-- !!!THIS IS VERY EARLY IMPLENTATION AND HIGHLY EXPERIMENTAL!!!
--
- I will be improving on pathfinding as more access to the api becomes avialable.
- If you have any advic... |
object_building_mustafar_terrain_must_rock_smooth_lava_03 = object_building_mustafar_terrain_shared_must_rock_smooth_lava_03:new {
}
ObjectTemplates:addTemplate(object_building_mustafar_terrain_must_rock_smooth_lava_03, "object/building/mustafar/terrain/must_rock_smooth_lava_03.iff")
|
local K, C, L, _ = unpack(select(2, ...))
local format = string.format
local gsub = string.gsub
local pairs = pairs
local unpack = unpack
local CreateFrame, UIParent = CreateFrame, UIParent
local ToggleFrame = ToggleFrame
-- Copy Chat
local lines = {}
local frame = nil
local editBox = nil
local isf = nil
local sizes ... |
--
-- codelite_project.lua
-- Generate a CodeLite C/C++ project file.
-- Copyright (c) 2009, 2011 Jason Perkins and the Premake project
--
local codelite = premake.codelite
local tree = premake.tree
--
-- Write out a list of the source code files in the project.
--
function codelite.files(prj)
local tr = prema... |
-----------------------------------
-- Ability: Velocity Shot
-- Increases attack power and speed of ranged attacks, while reducing attack power and speed of melee attacks.
-- Obtained: Ranger Level 45
-- Recast Time: 5:00 minutes
-- Duration: 2 hours
-----------------------------------
require("scripts/globals/setting... |
-- Sleep specific seconds
-- @param[optional] seconds - sleep seconds, if not set, causes the thread to relinquish the remainder of its time.
-- @returns - no return.
function llbc.sleep(seconds)
if type(seconds) == 'nil' then
seconds = 0
end
_llbc.Thread_Sleep(seconds)
end
|
--
-- $Id$
--
module( "resmng" )
svnnum("$Id$")
LG_VERSION_UPDATE = 10000
LG_VERSION_DOWNLOAD = 10001
LG_VERSION_DEMPORESS = 10002
LG_USERNAME_ERROR = 10003
LG_PASSWORD_ERROR = 10004
LG_CONNECT_FAILURE = 10005
LG_UNDEFINE_ERROR = 10006
LG_DISCONNECT = 10007
LG_VERSION = 10008
LG_LOGIN = 10009
LG_UH_STORY = 10010
LG_U... |
-- © 2008 David Given.
-- WordGrinder is licensed under the MIT open source license. See the COPYING
-- file in this distribution for the full text.
local int = math.floor
local GetStringWidth = wg.getstringwidth
-- This code defines the various controllers that work the margin displays.
-- It's all a little overengi... |
#!/usr/local/bin/lua
MAX_ROWS = arg[1] or 10
require"postgres"
local env = assert (luasql.postgres ())
local conn = assert (env:connect ("luasql-test", "tomas"))
-- Apaga restos de outros testes.
conn:execute "drop table t2"
conn:execute "drop table t1"
-- Criando as tabelas.
assert (conn:execute [[create table t1... |
local ltn12 = require("ltn12")
local http = require "socket.http"
local json = require "lunajson"
local kong = kong
local type = type
local re_gmatch = ngx.re.gmatch
local _M = {}
local function retrieve_token(conf)
local request_headers = kong.request.get_headers()
for _, v in ipairs(conf.header_names) do
... |
#!/usr/bin/env tarantool
-- gh-3350, gh-2859
local test = require("sqltester")
test:plan(4)
local function lindex(str, pos)
return str:sub(pos+1, pos+1)
end
local function int_to_char(i)
local res = ''
local char = 'abcdefghij'
local divs = {1000, 100, 10, 1}
for _, div in ipairs(divs) do
... |
function Dizzeansprite.main()
end
function Dizzeansprite.LaunchDamageSound(_ARG_0_)
end
|
local sh = { }
sh.type = "vertex"
sh.maxJoints = 16
function sh:getId(dream, mat, shadow)
return 0
end
function sh:initObject(dream, obj)
if obj.mesh then
--initial prepare bone data
if not obj.boneMesh and not obj.meshes then
assert(obj.joints and obj.weights, "GPU bones require a joint and weight buffer"... |
local NetworkService = require "utils.NetworkService";
local EventManager = require 'utils.EventManager';
local Shop_Data = nil;
local Time = require "module.Time"
local activityConfig = require "config.activityConfig"
--查询公会仓库的时间
local next_fresh_time = nil;
local query_time = nil;
local Shop_Data_Two = nil;
local ... |
---This config file is designed for running password-dumping scripts. So far,
-- it supports pwdump6 2.0.0 and fgdump.
--
-- Note that none of these modules are included with Nmap by default.
-- Any variable in the 'config' table in smb-psexec.nse can be overriden in the
-- 'overrides' table. Most of them are not re... |
module(..., package.seeall)
--[[
Hangup the call.
]]
function hangup(action)
-- Clean key map to prevent any key presses here.
jester.keys = {}
-- Play a hangup file if specified.
if action.play then
session:streamFile(action.play)
end
jester.debug_log("Hangup called in sequence action")
session:ha... |
--[[
#FreInclude <ustring\functions\ustring.lua>
]]--
--[[
This is a simple sample which shows how to use ustring functions lib.
You'd better use this with iLua.
]]--
toolpalette.enablePaste(true);
orgiString = "";
displayBuff = {};
function on.paint(gc)
if(orgiStrong == "") then
gc:drawStri... |
---------------------------------------------------------------------------------------------------
-- Proposal:
-- https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0221-multiple-modules.md
-- Description:
-- HMI sent to SDL capabilities where only one module is available per module type.
-- Mob... |
-- ignore this file if neovim is running inside vscode
if vim.fn.exists('g:vscode') == 1 then
return
end
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
indent = {
enable = true,
},
playground = {
enable = true,
disable = {},
updatetime = 25,
persist_queries... |
--------------------------------------------------------------------------------
-- util functions
--------------------------------------------------------------------------------
local function divide_string( str, max )
local result = {}
local start = 1
for i = 1, #str do
if i % max == 0 then
... |
--------------------------------
-- @module ControlStepper
-- @extend Control
-- @parent_module cc
--------------------------------
--
-- @function [parent=#ControlStepper] setMinusSprite
-- @param self
-- @param #cc.Sprite var
--------------------------------
--
-- @function [parent=#ControlStepper] getM... |
--
-- This file is part of SmithSNMP
-- Copyright (C) 2014, Credo Semiconductor Inc.
-- Copyright (C) 2015, Leo Ma <begeekmyfriend@gmail.com>
--
-- 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 Foundati... |
return {
tag = 'graphicsTransforms',
summary = 'Pop the current transform off the stack.',
description = [[
Pops the current transform from the stack, returning to the transformation that was applied
before `lovr.graphics.push` was called.
]],
arguments = {},
returns = {},
notes = [[
An error ... |
#!/usr/bin/lua
--[[
A simple pingbot for Discord.
(Still needs to identify with a gateway once.)
Starts spamming right away when this script is executed.
Sends `msg` every `slep` seconds in a specified channel
while the script is running.
]]
----[ Constants ]----
-- Duration (in seconds) between... |
mod_gui = {}
mod_gui.button_style = "mod_gui_button"
mod_gui.frame_style = "inner_frame_in_outer_frame"
--[[
Hello script explorer, if you are looking to upgrade your mod to use the mod gui, its pretty simple.
Typically you will have something like:
player.gui.left.add{...}
All you will need to do, is change it to:... |
--[[
Name: cl_menu_job_item_locker.lua
-----------------------------------------------------------------
-- @package VrZn - Custom Gamemode (SRP BASE)
-- @author Nodge
-- @build Beta 1
-----------------------------------------------------------------
]]--
local Panel = {}
function Panel:Init()
self:Se... |
#!/usr/bin/env texlua
require("busted.runner")()
kpse.set_program_name("luatex")
require("lualibs")
local dom = require("luaxml-domobject")
local lfs = require("lfs")
local citeproc = require("citeproc.citeproc")
local function read_file(path)
local file = io.open(path, "r")
if not file then return nil end
... |
--[[
module for loading backends, backends should provide
a table with two keys - "condition" and "socket",
they should have the following signatures:
all function should return:
truthy/false, err
The 'err' must be a string, it will be caught
and prefixed with the text 'socket:' or 'condition:'
to indicate where the... |
require('io')
require('sha1')
require('base64')
oids={}
for j = 1,1000,1
do
oids[j] = "oid"..j
end
i=0
file = io.open('/home/zhangdongmao/CLOUD-2013-20130619-1371604329974.mp4', "rb")
if file == nil then
print("error")
return nil
end
content = file:read "*a"
file:close()
--
--request = function(){}
--
funct... |
--
-- Copyright 2017-present Facebook.
-- All Rights Reserved.
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
--
local tnt = require 'torc... |
-- see https://stackoverflow.com/a/9146653
local present, cmp = pcall(require, "cmp")
if not present then return end
local lspkind = require('config.lspkind')
require("config.lsp")
cmp.setup({
snippet = {expand = function(args) vim.fn["UltiSnips#Anon"](args.body) end},
style = {winhighlight = "NormalFloat:Norma... |
-- ex-06-lua: lua/mylib.lua
myString = "Hello, Cumulocity!"
|
local t = My.Translator.translate
local f = string.format
local refitCostPower = 20
local refitTime = 30
local beamToObject = function(player, idx)
idx = idx - 1
if player:getBeamWeaponDamage(idx) > 0 and player:getBeamWeaponRange(idx) > 0 then
-- TODO: move to Lively Epsilon
return {
... |
help (
[[
This module loads freesurfer. This module makes available the freesurfer executables. Documentation for freesurfer is available online at the publisher\'s website: http://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferWiki
These executables can be found in TACC_FREESURFER_DIR, e.g. recon-all. No need to run SetU... |
help(
[[
ABySS is a de novo, parallel, paired-end sequence assembler that is designed for short reads. The single-processor version is useful for assembling genomes up to 100 Mbases in size.
]])
whatis("ABySS is a de novo, parallel, paired-end sequence assembler that is designed for short reads.")
local version = "... |
local bench = script and require(script.Parent.bench_support) or require("bench_support")
function test()
local t = table.create(250001, 0)
for i=1,250000 do
t[i] = i
end
local t2 = {}
local ts0 = os.clock()
table.move(t, 1, 250000, 1, t2)
local ts1 = os.clock()
for i=1,2500... |
local _, addonData = ...
local L = LibStub("AceLocale-3.0"):GetLocale("SteaSummon")
local optionsgui = {
showID = nil,
options = {
type = "group",
childGroups = "tab",
args = {
desc = {
order = 0,
image = "Interface/ICONS/Spell_Shadow_Twilight",
imageCoords = { 0, 1, 0, 1 ... |
local SongInformationActor = {}
SongInformation_mt = { __index = SongInformationActor }
local JACKET_SIZE = 384
local BANNER_HEIGHT = 80 * (JACKET_SIZE/256)
-- TODO: Make this a preference
local WAIT_FOR_LOAD = true -- If set to true, it won't load images while you are quickly scrolling trough the list
function Son... |
return {
tag = 'graphicsState',
summary = 'Get whether each color channel is enabled.',
description = [[
Returns a boolean for each color channel (red, green, blue, alpha) indicating whether it is
enabled. When a color channel is enabled, it will be affected by drawing commands and clear
commands.
... |
game 'gta5'
fx_version 'bodacious'
author 'Leon Pfeiffer'
version '1.0.0'
client_script {
'client.lua'
}
ui_page "html/index.html"
files {
'html/img/doorFrontLeft.png',
'html/img/doorFrontRight.png',
'html/img/doorRearLeft.png',
'html/img/doorRearRight.png',
'html/img/windowFrontLeft.png',
... |
-- load mqtt library
local mqtt = require("mqtt.init")
-- create MQTT client, flespi tokens info: https://flespi.com/kb/tokens-access-keys-to-flespi-platform
local con
if elua then
con = require("mqtt.picosocket")
else
con = require("mqtt.luasocket")
end
local client = mqtt.client{ uri = "test... |
-- HUSLP implementation from: https://github.com/husl-colors/husl-lua/blob/master/husl.lua
-- I've modified it so all variables are tied to the `husl` table. PD2 also seems
-- to return degrees and use degrees as input instead of radians for math functions.
-- I've made adjustments to these methods commenting out the o... |
local updaterName = "WakiVAuto-Update"
local start = 0
function init()
cycleEvent(updateStart, 1000)
end
function updateStart()
if g_app.isRunning() and not g_game.isOnline() then
if start == 0 then
local cmd = "C:\\OTClient\\OTClient\\"..updaterName..".exe"
os.execute('start /min cmd /c ' .. cmd)
start... |
-- @Author: EdmanWang
-- @Date: 2018-10-19 16:47:41
-- @Last Modified by: EdmanWang
-- @Last Modified time: 2018-10-23 14:10:30
function main()
local scene = cc.Scene:create();
-- 默认创建一张牌
local CardView = import("app.EdmanWang.CardView_Test").new(0x3d);
-- 通过属性值去修改牌
-- 性能测试
-- for i=0,3 do
-- C... |
--[[
DataStore2: A wrapper for data stores that caches, saves player's data, and uses berezaa's method of saving data.
Use require(1936396537) to have an updated version of DataStore2.
DataStore2(dataStoreName, player) - Returns a DataStore2 DataStore
DataStore2 DataStore:
- Get([defaultValue])
- Set(value)
- ... |
#!/usr/bin/env luajit
local perlin = require("perlin")
local outfd
if arg[1] == "-" then
outfd = io.stdout
else
outfd = assert(io.open(arg[1] or "out.pgm", "w"))
end
local function w(...)
for _,data in ipairs({...}) do
outfd:write(data)
end
end
local function wl(l)
w(l or "", "\n")
end
local xres = 640
local y... |
local AudioManager = {}
--[[
For backgroundmusic etc.
Unterbrechungsfreies spielen beim statewechsel
]]--
function AudioManager:new ()
local newInstance = {
}
newInstance.audios = {}
self.__index = self
return setmetatable(newInstance, self)
end
function AudioManager:loadAudio(config) -- {key (opt), file... |
-- test cpp binding
local f1=Foo(1024)
assert(f1.value==1024)
f1.value=2048
assert(f1.value==2048)
local ee =f1:testEnum("hi",3)
print("enum is " .. type(ee) .. " " .. tostring(ee))
local str=Foo.getStr()
-- f2 not collect
local f2=Foo.getInstance()
f1:bar(str)
f2:bar(str)
-- call base function
f1:baseFunc1()
-- test... |
-- Tests for List and Dictionary types.
local helpers = require('test.functional.helpers')(after_each)
local feed, source = helpers.feed, helpers.source
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
describe('list and dictionary types', function()
before_each(clear)
it('creating l... |
local cjson = require 'cjson.safe'
local serialdriver = require 'serialdriver'
local client = require 'server.client.serial'
local base = require 'server.base'
local server = base:subclass("hj212_sever.server.serial")
---
--
function server:initialize(app, opt)
assert(app, "App missing")
assert(opt, "Option missin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.