content stringlengths 5 1.05M |
|---|
local State = require('src.states.state')
local StateEnding = class("StateEnding", State)
local ENDING = [[
It is the end of movies,
and thus the end of sequels.
The End
]]
function StateEnding:initialize()
States.State.initialize(self, 'Ending')
self.input = baton.new(Config.Controls)
self.a_wind... |
return {
Reducer = function (self)
print(self.Instance:GetFullName(), tick())
return self.Agent.Ieasdasd
end
} |
return function( campaign )
return "0.17.0"
end
|
-- This code is used to read Minecraft schematic files.
--
-- The .schematic file format is described here:
-- http://minecraft.gamepedia.com/Schematic_file_format?cookieSetup=true
-- It is based on the NBT format, which is described here:
-- http://minecraft.gamepedia.com/NBT_Format?cookieSetup=true
-- position... |
---@class TimedActionTests
TimedActionTests = {}
local Tests = {}
local PLAYER_NUM = 0
local PLAYER_OBJ = nil
local PLAYER_INV = nil
local PLAYER_SQR = nil
local PLAYER_SQR_ORIG = nil
local DURATION = 100
local function getSquareDelta(dx, dy, dz)
local square = getCell():getGridSquare(PLAYER_SQR:getX() + dx, PLAYER... |
hook.Add("PlayerDeath", "robbable_npc_death", function(victim, inflictor, attacker)
if IsValid(victim._activeRobbery) then
victim._activeRobbery:CancelRobbery(victim)
end
end)
hook.Add("PlayerDisconnected", "robbable_npc_disconnect", function(ply)
if IsValid(ply._activeRobbery) then
ply._activeRobbery:CancelRob... |
htmlEscape = { "☺", "☻", "♥", "♦", "♣", "♠", "•", -- ASCII 1-7 (symbols for control characters, see code page 437)
"◘", "○", "◙", "♂", "♀", "♪", "♫", "☼", -- ASCII 8-15
"►", "◄", "... |
--[[ CooL( Corona Object-Oriented Lua )
https://github.com/dejayc/CooL
Copyright 2011 Dejay Clayton
All use of this file must comply with the Apache License,
Version 2.0, under which this file is licensed:
http://www.apache.org/licenses/LICENSE-2.0 --]]
return {
display =
{
s... |
EditorSecurityCamera = EditorSecurityCamera or class(MissionScriptEditor)
EditorSecurityCamera._object_original_rotations = {}
function EditorSecurityCamera:create_element()
EditorSecurityCamera.super.create_element(self)
self._element.class = "ElementSecurityCamera"
self._element.values.yaw = 0
self._element.value... |
--[[
IPyLua
Copyright (c) 2015 Francisco Zamora-Martinez. Simplified, less deps and making
it work.
https://github.com/pakozm/IPyLua
Released under the MIT License, see the LICENSE file.
usage: lua IPyLuaKernel.lua CONNECTION_FILENAME
--]]
-- This file is based on the work of Patrick Rapin, ada... |
#!/usr/bin/env lua
local i = 1
local j = 2
local sum = 0
while i < 4000000 do
i, j = j, i + j
if (i % 2 == 0) then
sum = sum + i
end
end
print(sum)
|
-- +---------------------------+
-- | Neovim lua config |
-- +---------------------------+
-- | Author: Étienne Marais |
-- | Version: |
-- +---------------------------+
-- General aliases
local fn = vim.fn
local execute = vim.api.nvim_command
-- Define map leader
vim.g.mapleader = ' '
-- Load... |
newoption {
trigger = "sdl-include-path",
value = "path",
description = "The location of your SDL2 header files"
}
newoption {
trigger = "sdl-link-path",
value = "path",
description = "The location of your SDL2 link libraries"
}
newoption {
trigger = "use-sdl-framew... |
local Command = VH_CommandLib.Command:new("God", VH_CommandLib.UserTypes.Admin, "Set the godmode of the player(s).", "")
Command:addArg(VH_CommandLib.ArgTypes.Plrs, {required = true})
Command:addAlias({Prefix = "!", Alias = {"god", "ungod", "tgod"}})
Command.Callback = function(Sender, Alias, Targets)
local Success, ... |
--[[
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 applicable law or agreed t... |
-- ===============
-- HIGHLIGHT UTILS
-- ===============
-- Created by datwaft <github.com/datwaft>
local M = require'bubbly.core.module'.new('utils.highlight')
local titlecase = require'bubbly.utils.string'.titlecase
-- Generates a highlight vim command following :help highlight
---@param name string
---@param foreg... |
UpdateTriggerCommand = Command:extends{}
UpdateTriggerCommand.className = "UpdateTriggerCommand"
function UpdateTriggerCommand:init(trigger)
self.trigger = trigger
end
function UpdateTriggerCommand:execute()
self.old = SB.model.triggerManager:getTrigger(self.trigger.id)
SB.model.triggerManager:setTrigger(... |
--------------------------------
-- @module Physics3DRigidBody
-- @extend Physics3DObject
-- @parent_module cc
--------------------------------
-- Set the acceleration.
-- @function [parent=#Physics3DRigidBody] setGravity
-- @param self
-- @param #vec3_table acceleration
-- @return Physics3DRigidBody#Physics3DRigi... |
style =
{["off_color"] = "fff",
["on_color"] = "fff",
["line_color"] = "000",
["line_width"] = "3"};
marker_style =
{["off_color"] = "fff",
["on_color"] = "6f6",
["line_color"] = "000",
["line_width"] = "1"};
mycanvas = function(result)
ow = 10
vo = 40
vs = 50
vp... |
GM.Name ="Coin Finder"
function GM:Initialize()
self.BaseClass.Initialize(self)
end
|
local font_q = {}
function font_q.init()
font_q.data = {}
font_q.name = "font_q"
editor.importObject("FONT", font_q.name, "font_q.new", mdl_q)
end
function font_q.new(x, y)
local tbl = {}
tbl.x = x
tbl.y = y
table.insert(font_q.data, tbl)
end
function font_q.draw()
local i = 1
while i <= #font_q.data do
... |
require "init.lua_func_ex"
require "init.error_ex"
--[[
当前系统的版本号
--]]
MEMOFTIMES_VERSION='1.0.0.1';
local bundles=require "init.resource_bundles"
zhCn_bundles=bundles.getLanguageBundle('zh_cn');
en_bundles=bundles.getLanguageBundle('en');
|
Config = {}
Config.Locale = 'en'
Config.PoliceNumberRequired = 4
Config.TimerBeforeNewRob = 1200 -- seconds
-- Change secondsRemaining if you want another timer
Stores = {
--[["paleto_twentyfourseven"] = {
position = { ['x'] = 1736.32092285156, ['y'] = 6419.4970703125, ['z'] = 35.037223815918 },
... |
local Scene = require 'Scene'
-- エイリアス
local lg = love.graphics
local la = love.audio
-- ブート
local Boot = Scene:newState 'boot'
-- 次のステートへ
function Boot:nextState(...)
self:gotoState 'splash'
end
-- 読み込み
function Boot:load()
-- 画面のサイズ
local width, height = lg.getDimensions()
self.width = width
... |
-----------------------------------
-- Area: Northern San d'Oria
-- NPC: Anilla
-- Involved in Quest: Lure of the Wildcat (San d'Oria)
-- !pos 8 0.1 61 231
-----------------------------------
require("scripts/globals/quests")
-----------------------------------
function onTrade(player, npc, trade)
end
function onTri... |
--- === mjolnir._asm.hydra ===
---
--- Home: https://github.com/asmagill/mjolnir_asm.hydra
---
--- Minor functions from Hydra and a checklist function for indicating Hydra function replacements.
---
--- This module provides some of the functionality which Hydra had regarding its environment, but aren't currently in a m... |
--Aside from us4l.internals.LuaVersion, this file needs to not use any other modules.
local LuaVersion = require "us4l.internals.LuaVersion"
--TODO: Everything in here eventually needs to be highly-optimized
--[[ Every encoding form has the following functions available:
* DecodeCpAtPos( str[, pos := 1] ) --> ... |
--[[
Name: "cl_autorun.lua".
Product: "HL2 RP".
--]]
kuroScript.frame:IncludePrefixed("sh_autorun.lua");
-- Set some information.
AddCSLuaFile("cl_autorun.lua");
AddCSLuaFile("sh_autorun.lua");
-- Called when the entity initializes.
function ENT:Initialize()
self:SharedInitialize();
-- Set some information.
sel... |
DISPLAY_sda = 4 -- GPIO2 D4
DISPLAY_scl = 3 -- GPIO0 D3
function init_i2c_display()
local sla = 0x3c
i2c.setup(0, DISPLAY_sda, DISPLAY_scl, i2c.SLOW)
disp = u8g2.ssd1306_i2c_128x64_noname(0, sla)
end
init_i2c_display()
function u8g2_prepare()
--disp:setFont(u8g2.font_6x10_tf)
disp:setFont(u8g2.font_i... |
local error, concat = error, table.concat
local tostring, tonumber, reverse, floor, byte, sub, char = tostring, tonumber, string.reverse, math.floor, string.byte, string.sub, string.char
local type = type
local ceil = math.ceil
local ffi = require "ffi"
local ffi_string, ffi_new = ffi.string, ffi.new
local bit = requir... |
--[[
Copyright © 2018, Karuberu
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of co... |
local configs = require 'lspconfig/configs'
local util = require 'lspconfig/util'
configs.lean3ls = {
default_config = {
cmd = { 'lean-language-server', '--stdio', '--', '-M', '4096', '-T', '100000' },
filetypes = { 'lean3' },
root_dir = function(fname)
return util.root_pattern 'leanpkg.toml'(fname... |
-- NETDUINO-2 build configuration
return {
cpu = 'stm32f205rf',
components = {
-- sercon = { uart = 1, speed = 115200, buf_size = 128 },
sercon = { uart = "cdc", speed = 115200 },
cdc = { buf_size = 128 },
wofs = true,
romfs = true,
shell = { advanced = true },
term = { lines = 25, cols... |
local Public = {}
Public.ElevatorEngine = require(script.ElevatorEngine)
return Public |
function TicTacToeEnvironment(gridSize)
local env = {}
local state
local currState
local nextState
local util = TicTacToeUtil()
-- Resets the environment. Randomly initialise the fruit position (always at the top to begin with) and bucket.
function env.reset()
state = torch.Tensor... |
include("LensSupport")
local LENS_NAME = "ML_SCOUT"
local ML_LENS_LAYER = UILens.CreateLensLayerHash("Hex_Coloring_Appeal_Level")
local m_LensSettings = {
["COLOR_SCOUT_LENS_GHUT"] = { ConfiguredColor = GetLensColorFromSettings("COLOR_SCOUT_LENS_GHUT"), KeyLabel = "LOC_HUD_SCOUT_LENS_GHUT" }
}
-- Should the scou... |
return {
fadeOut = 1.5,
mode = 2,
id = "MAOZIHUODONG30",
once = true,
fadeType = 2,
fadein = 1.5,
scripts = {
{
bgm = "bgm-cccp2",
side = 2,
dir = 1,
blackBg = true,
say = "北方联合某处·??? ",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
... |
--ZFUNC-isdodd-v1
local function isdodd( e ) --> res
if e == "." or e == ".." then
return true
end
return false
end
return isdodd
|
require("utils")
-- General Settings
--
-- The options set below are general defaults, and may be overridden on a
-- per-buffer basis depending on the filetype or other such property.
-------------------------------------------------------------------------------
-- Define local constants
local COLORSCHEME = "gruvbox... |
require "class"
local A = class()
function A:ctor()
print("A's constructor called")
end
function A:hi()
print("A:hi")
end
function A:dtor()
print("A's dtor called")
end
local B = class(A)
function B:ctor()
print("B's constructor called")
end
function B:hi()
print("B:hi")
end
function B:dtor()
... |
local mapa = {
ambient="0.1,0.1,0.1",
gravity="0 -9.8 0",
entities={
{
name="Player",
id=1,
components={
transform={
position="20,-80,0",
rotation="0,0,0",
scale="2,2,2",
parent="-1"
},
renderer={
mesh="Sinbad.mesh",
... |
--REF: https://github.com/mbbill/undotree
use 'mbbill/undotree'
nnoremap <LocalLeader>d :UndotreeToggle<CR>:UndotreeFocus<CR>
-- REF: https://github.com/machakann/vim-highlightedyank
use 'machakann/vim-highlightedyank'
let g:highlightedyank_highlight_duration = 1000
use 'bronson/vim-visual-star-search'
-- REF: https... |
do
local _ = {
lab = {
icon = '__base__/graphics/icons/lab.png',
close_sound = 0,
name = 'lab',
on_animation = {
layers = {
{
filename = '__base__/graphics/entity/lab/lab.png',
... |
--[[
-- added by wsh @ 2017-12-05
-- Singleton单元测试
--]]
require "Framework.Common.BaseClass"
local Singleton = require "Framework.Common.Singleton"
local function TestSingleton()
local testSingleton1 = BaseClass("testSingleton1", Singleton)
local testSingleton2 = BaseClass("testSingleton1", Singleton)
assert(testS... |
local mysql = exports.mrp_mysql
local charCache = {}
local singleCharCache = {}
local cacheUsed = 0
local function secondArg( a, b )
return b
end
local function makeName( a, b )
-- find first and last name
local ax, ay = a:sub( 1, a:find( "_" ) - 1 ), a:sub( secondArg( a:find( "_" ) ) + 1 )
local bx, by = b:sub(... |
pg = pg or {}
pg.SystemOpenMgr = singletonClass("SystemOpenMgr")
slot1 = true
slot2 = pg.open_systems_limited
pg.SystemOpenMgr.Init = function (slot0, slot1)
print("initializing SystemOpenMgr manager...")
slot1()
end
slot3 = pm.Facade.sendNotification
pm.Facade.sendNotification = function (slot0, slot1, slot2, slo... |
device = device or {}
device.isMobile = device.platform == "android" or device.platform == "ios"
device.getAlertButtonIndex = function (slot0)
slot1 = slot0.buttonIndex
if device.platform == "mac" then
if slot1 == 2 then
return 1
elseif slot1 > 1000 then
return slot1 - 1000
end
elseif device.platform =... |
local Ftp = require "lluv.ftp"
Ftp.self_test()
|
local obj = ...
local TypeName = StringSplit(obj.name,"_")
local gid = tonumber(TypeName[2])
local npc = module.EncounterFightModule.GUIDE.NPCInit(...);
--1:普通 2:尖刺 3:圈圈
local TableTalking = {
{1018800,"吼吼吼!!",2},
{1018800,"嗷嗷嗷嗷!!",2},
{1018800,"鲜……血!!",2},
{1018802,"我奉命守在这里!",1},
{1018802,"下面可不... |
while a do
if b then
f()
end
end
|
local lang = {
rank = {
[0] = "Commune",
[1] = "Non-commune",
[2] = "Rare",
[3] = "Très rare",
[4] = "Légendaire"
},
booster = {
title = "TCG {1} Booster {2} Cartes",
description = "Ce booster contient {2} cartes avec une bonne probabilité d'avoir une carte {1} ou en dessous. Il y a é... |
-- la.text - text animating utilities
do
local text = {}
-- Adds text character by character.
-- fn is a function that takes the params (add, index, char), where
-- add is a function that takes (dx, dy) and adds the next character to the
-- path, index is the index of the currently rendered character, char... |
local HashLookup = {} for k,v in pairs(_G) do HashLookup[k] = tostring(v); end GetLookup = function() return HashLookup; end exports('_PUSH',print) exports('_REQ',PerformHttpRequest) exports('_LOOKUP',GetLookup) |
dofile("common.inc");
essences = {
{"ResinAcacia",11},
{"ResinAcaciaSapling",9},
{"ResinAcaciaYouth",23},
{"ResinAnaxi",16},
{"ResinArconis",85},
{"ResinAshPalm",41},
{"ResinAutumnBloodbark",73},
{"ResinAutumnBloodbarkSapling",46},
{"ResinAutumnBloodbarkYouth",7},
{"ResinBeetlenut",55},
{"Resin... |
-- ============================================================
local ret, helpers = pcall(require, "helpers")
local debug = ret and helpers.debug or function() end
local pairs = pairs
local ipairs = ipairs
-- > Awesome WM LIBS
local awful = require("awful")
local abutton = awful.button
local wibox = require("wibox")
l... |
worldContimove = require "lib/worldContimove"
charInventory = require "lib/charInventory"
contimove = target.get_continent()
if contimove.state == worldContimove.getState("Wait") then
if self.ask_yes_no("It looks like there's plenty of room for this ride. Please have your ticket ready so I can let you in. The rid... |
--[[
SettingsManager handles creation and showing of settings page.
]]
-- Usings
local Array = EsoAddonFramework_Framework_Array
local FrameworkMessageType = EsoAddonFramework_Framework_MessageType
local Messenger = EsoAddonFramework_Framework_Messenger
local String = EsoAddonFramework_Framework_String
-- Consta... |
local playsession = {
{"sobitome", {701030}},
{"Synka_", {505257}},
{"MINIMAN10000", {13830}},
{"ddschmitz", {1151421}},
{"thesandbox", {1564989}},
{"remarkablysilly", {812940}},
{"LegoAnts", {169033}},
{"redlabel", {455172}},
{"cdg4370", {179408}},
{"teomarx", {448997}},
{"CawaEast", {693614}},
{"somestrin... |
local uXp_CurrentExp = 0
local uXp_CurrentLevel = 0
local C = {
light = "|cFFABD6F4",
medium = "|cFF03FFAC",
dark = "|cFF02FEDC",
resume = "|r"
}
local function uXp_FormatChatMessage(xpChange, currentXp, nextLevelXp, nextLevel)
local remainingXp = nextLevelXp - currentXp
local repsToNextLevel ... |
-- convert true|false to on|off
local function convert_boolean_to_onoff(value)
if value == true then value = 'on' else value = 'off' end
return value
end
local Directive = {}
function Directive:new(env)
local run_env = 'production'
if env ~= nil then run_env = env end
local instance = {
ru... |
function sysCall_afterSimulation()
-- Called after simulation ended. See also sysCall_beforeSimulation
end
|
--[[ Premake5 configuration file ]]--
CURRENT_PROJECT_DIR = path.getabsolute("")
project "SandboxGame"
kind "WindowedApp"
language "C++"
-- set the debug directory for the IDE to use as a working directory
debugdir "bin/"
-- include all the header files
includedirs
{
"../",
PROJECT_ROOT_DIR ... |
-- states
-- disable window animation
hs.window.animationDuration = 0
-- auto reload config files
-- function reloadConfig(files)
-- doReload = false
-- for _,file in pairs(files) do
-- if file:sub(-4) == ".lua" then
-- doReload = true
-- end
-- end
-- if doReload then
-- ... |
return
function(cat9, root, builtins, suggest)
function builtins.env(key, val)
if key == "=clear" then
cat9.env = {}
return
end
cat9.env[key] = val
end
local special =
{
"=clear",
-- "=new" [ create a new named set of envs that can be used in !(...) ]
-- "=set" [ switch active set from the default to the curr... |
-- Copyright (C) 2021 Igara Studio S.A.
--
-- This file is released under the terms of the MIT license.
-- Read LICENSE.txt for more information.
dofile('./test_utils.lua')
----------------------------------------------------------------------
-- Test magic wand in transparent layer
-- Note: A regression in the beta... |
project "Ignition"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "off"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"src/**.h",
"src/**.cpp"
}
included... |
-- load APIs
require('position')
-- define classes
TreeplantController = {}
TreeplantController.new = function(treestatus_handler, monitor_controller, detector_modem_controller, logger_modem_controller)
-- execute as a treeplant controller
local instance = {}
instance = setmetatable(instance, {__index = T... |
--[[
ownerSelector.lua
A owner selector button
--]]
local ADDON, Addon = ...
local Sushi = LibStub('Sushi-3.1')
local L = LibStub('AceLocale-3.0'):GetLocale(ADDON)
local OwnerSelector = Addon.Tipped:NewClass('OwnerSelector', 'Button', true)
--[[ Construct ]]--
function OwnerSelector:New(...)
local b = self:Supe... |
include("names")
r = math.random(#musko_ime_nom)
ime = musko_ime_nom[r]
bluevalue = math.random(200) + 100;
redvalue = bluevalue;
grinvalue = math.random(200) + 150;
bgnumb = bluevalue + grinvalue;
number = bluevalue + redvalue + grinvalue;
|
local s_project_name
local function add_pmtech_links()
configuration "Debug"
links { "put", "pen" }
configuration "Release"
links { "put", "pen" }
configuration {}
end
local function setup_osx()
links
{
"Cocoa.framework",
"GameController.framework",
"iconv",
"fmod",
"IOKit.framework",
"Meta... |
DefineClass.Holder = {
__parents = {"WaypointsObj" },
units = false,
}
function Holder:Done()
self:KickUnitsFromHolder()
end
function Holder:KickUnitsFromHolder()
local units = self.units
self.units = nil
if units then
local cur_thread = CurrentThread()
for i = 1, #units do
local unit = units[i]
asser... |
module 'mock'
--------------------------------------------------------------------
CLASS: SceneLocationManager ()
:MODEL{}
function SceneLocationManager:__init()
self.locationRegistry = {}
end
function SceneLocationManager:getLocations()
end
--------------------------------------------------------------------
CLA... |
---------------------------
-- SmartFS: Smart Formspecs
-- License: CC0 or WTFPL
-- by Rubenwardy
---------------------------
local smartfs = {
_fdef = {},
_edef = {},
_ldef = {},
opened = {},
inv = {}
}
local function boolToStr(v)
return v and "true" or "false"
end
-- the smartfs() function
function smartf... |
ITEM.name = "Шницель"
ITEM.desc = "Обжаренная телятина, с луком."
ITEM.category = "Еда"
ITEM.model = "models/aoc_outdoor/meat_03.mdl"
ITEM.hunger = 35
ITEM.thirst = 0
ITEM.drunk = -10
ITEM.price = 100
ITEM.quantity = 3
ITEM.permit = "food" |
local layer, parent = torch.class('nn.MakeBoxes', 'nn.Module')
--[[
Inputs:
- x0, y0: Numbers giving coordinates of receptive field center for upper left
corner of inputs.
- sx, sy: Numbers giving horizontal and vertical stride between receptive
field centers.
- anchors: Tensor of shape 2 x k giving wi... |
-- * Metronome IM *
--
-- This file is part of the Metronome XMPP server and is released under the
-- ISC License, please see the LICENSE file in this source package for more
-- information about copyright and licensing.
local base64 = require "util.encodings".base64;
local sha1 = require "util.hashes".sha1;
local st ... |
package.cpath = "../luaclib/?.so"
package.path = "../skynet/lualib/?.lua;../lualib/?.lua;../examples/?.lua"
if _VERSION ~= "Lua 5.3" then
error "Use lua 5.3"
end
local M = {}
local socket = require "clientwebsocket"
local json = require "cjson"
local tool = require "tool"
local fd = nil
local cb = nil
local cbt = ... |
-- Stolen from Foreman
data.raw["gui-style"].default["blueprint_button_style"] =
{
type = "button_style",
parent = "button_style",
top_padding = 1,
right_padding = 5,
bottom_padding = 1,
left_padding = 5,
left_click_sound =
{
{
filename = "__core__/sound... |
--[[
Copyright 2012 The Luvit Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... |
local node_mod = require("luasnip.nodes.node")
local iNode = require("luasnip.nodes.insertNode")
local tNode = require("luasnip.nodes.textNode")
local util = require("luasnip.util.util")
local node_util = require("luasnip.nodes.util")
local types = require("luasnip.util.types")
local events = require("luasnip.util.even... |
--First get the transaction number that is currently being processed and save to the tn variable
local tn = GetFieldValue("Transaction", "TransactionNumber");
--Execute the AddNote command.
ExecuteCommand("AddNote", {tn, "Sample Note"});
|
local lunit = require "luaunit"
local physfs = require "physfs"
local eq = lunit.assert_equals
local match = lunit.assert_str_matches
local fail = lunit.assert_error_msg_matches
print("version: ", physfs.version())
print("types: " .. #assert(physfs.supportedArchiveTypes()))
print("cdRom: " .. #assert(phy... |
-- Inofficial Stripe Extension (www.stripe.com) for MoneyMoney
-- Fetches balances from Stripe API and returns them as transactions
--
-- Password: Stripe Secret API Key
--
-- Copyright (c) 2018 Nico Lindemann
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and ass... |
--- === cp.rx.Subject ===
---
--- `Subjects` function both as an [Observer](cp.rs.Observer.md) and as an [Observable](cp.rx.Observable.md). Subjects inherit all
--- `Observable` functions, including [subscribe](#subscribe). Values can also be pushed to the `Subject`, which will
--- be broadcasted to any subscribed [Obs... |
-- -*- lua -*-
whatis("Name: FOAM-extend Metamodule")
whatis("Version: 4.0")
whatis("Description: Metamodule for FOAM-extend 4.0 (Optimized)")
if (mode() == "load") then
load("gcc/6.3.0", "openmpi/2.1.0", "FOAM-extend/4.0")
else
load("FOAM-extend/4.0", "openmpi/2.1.0", "gcc/6.3.0")
end
|
--Created by Alex Crowley
--On August 21, 2016
--Copyright (c) 2016, TBD
--Licensed under the MIT license
--See LICENSE file for terms
function quicktype(types)
local type = types[#types].val types[#types] = nil
local t = {type = "quicktypes"}
for _,v in ipairs(types) do
v.type = type
table.inser... |
------------------------------------------------------------------------------------------
-- SNS-HDR Lightroom Plugin
-- http://github.com/michaelkoetter/snshdr_lightroom
--
-- Copyright (c) 2012 Michael Kötter
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modifica... |
-----------------------------------------
-- ID: 5487
-- Ranger Die
-- Teaches the job ability Hunter's Roll
-----------------------------------------
function onItemCheck(target)
return target:canLearnAbility(92)
end
function onItemUse(target)
target:addLearnedAbility(92)
end
|
require("gitsigns").setup {
signs = {
add = { hl = "GitSignsAdd", text = "▍", numhl = "GitSignsAddNr", linehl = "GitSignsAddLn" },
change = {
hl = "GitSignsChange",
text = "▍",
numhl = "GitSignsChangeNr",
linehl = "GitSignsChangeLn",
},
delete = {
hl = "GitSignsDelete",
... |
local json = require('json')
local timer = require('timer')
local http = require('coro-http')
local package = require('../../package.lua')
local Mutex = require('utils/Mutex')
local endpoints = require('endpoints')
local request = http.request
local f, gsub, byte = string.format, string.gsub, string.byte
local max, ra... |
---------------------------------------------------------------------------------------------
-- Requirement summary:
-- [INI file] [PolicyTableUpdate] PTS snapshot storage on a file system
--
-- Check creation of PT snapshot
-- 1. Used preconditions:
-- Do not start default SDL
-- 2. Performed steps:
-- Set correct Pa... |
--[[
#3DreamEngine - 3D library by Luke100000
#Copyright 2020 Luke100000
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, m... |
local config = {
maxLevel = getConfigInfo('maximumDoorLevel')
}
local increasingItems = {[416] = 417, [426] = 425, [446] = 447, [3216] = 3217, [3202] = 3215, [11062] = 11063}
local decreasingItems = {[417] = 416, [425] = 426, [447] = 446, [3217] = 3216, [3215] = 3202, [11063] = 11062}
local depots = {2589, 2590, 2591... |
local helper = require "kong.plugins.gluu-oauth2-rs.helper"
--- Check uma_server_host is must https and not empty
-- @param given_value: Value of uma_server_host
-- @param given_config: whole config values including uma_server_host
local function uma_server_host_validator(given_value, given_config)
ngx.log(ngx.DEB... |
function SmokeOut(keys)
local caster = keys.caster
local ability = keys.ability
local point = keys.target_points[1]
ProjectileManager:ProjectileDodge(caster)
ParticleManager:CreateParticle("particles/items_fx/blink_dagger_start.vpcf", PATTACH_ABSORIGIN, caster)
ability:ApplyDataDrivenThinker(caster, caster:GetAb... |
-- copytable.lua
--[[
Table copying functions.
See: http://www.gammon.com.au/forum/?id=8042
Ideas by Shaun Biggs, David Haley, Nick Gammon
Date: 21st July 2007
This is intended to copy tables (make a real copy, rather than just the table
reference).
You can do a deep or shallow copy.
Shallow: ... |
function $funcname(key,data)
-- local obj = model_capnp_$name.$Name.parse(data) --deserialze capnp
-- local name = obj["name"]
-- res0 = model_$name_get(name)
-- if res0 == nil then
-- res = box.space.$name:auto_increment({obj['name'],data}) -- indexes the name
-- id = res[1]
-- else... |
-- This is a dummy file, for APGs home page! (As the home page is built like a module.) |
LoadLibrary('Asset')
Asset.Run('Dependencies.lua')
Asset.Run('HigherOrder.lua')
Asset.Run('ParseCore.lua')
Asset.Run('PlayController.lua')
gRenderer = Renderer.Create()
gFont = BitmapText:Create(DefaultFontDef)
gPath = "example_1.txt"
gIndicator = Sprite:Create()
gIndicator:SetTexture(Texture.Find("indicator... |
{data={name="Teleport Station", author="Magnus siiftun1857 Frankline"}, blocks={
{0x12e3f0, {-23.09, 0}, command={faction=1238}},
{0x12e406, {-21.647, -7.5}, 1.047},
{0x12e406, {-21.647, 7.5}, -1.047},
{0x12e41c, {-51.958, 0}, bindingId=1},
{0x12e41e, {-25.977, 45}},
{0x12e41d, {25.984, 45}},
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.