content stringlengths 5 1.05M |
|---|
if not modules then modules = { } end modules ['s-fonts-variable'] = {
version = 1.001,
comment = "companion to s-fonts-variable.mkiv",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
copyright = "PRAGMA ADE / ConTeXt Development Team",
license = "see context related readme files"
}
moduled... |
local configs = require 'nvim_lsp/configs'
local util = require 'nvim_lsp/util'
local callbacks = require 'vim.lsp.callbacks'
local path = util.path
local server_name = "jdtls"
local function make_installer()
local install_dir = path.join { util.base_install_dir, server_name }
local tar_name = "jdt-language-serve... |
if CLIENT then
-- Client Commands --
engine.console.addCommand("connect", function(args)
if args then
engine.network.client.connect(args[1], "18025")
else
-- Error is returned to the console. In case of console.execute, error is returned to the "out" variable.
engine.console.print("Missing required arg... |
-- alias expansion logic for the quickfort script query module
--@ module = true
if not dfhack_flags.module then
qerror('this script cannot be called directly')
end
local quickfort_common = reqscript('internal/quickfort/common')
local quickfort_parse = reqscript('internal/quickfort/parse')
local log = quickfort_c... |
--
-- system: DrawSystem
--
local DrawSystem = Concord.system({pool = {"position", "drawable"}})
function DrawSystem:init() print("DrawSystem:init()") end
local function drawMapGrid(map, xOffset, yOffset, cellsize)
xOffset = xOffset or 0
yOffset = yOffset or 0
love.graphics.setColor(0.2, 0.2, 0.2)
for... |
local fn = vim.fn
local items = function(info)
return info.quickfix == 1 and fn.getqflist({ id = info.id, items = 0 }).items
or fn.getloclist(info.winid, { id = info.id, items = 0 }).items
end
local format_fname = function(fname, limit)
fname = fname == '' and '[No Name]' or fn.fnamemodify(fname, ':p:.')
fn... |
if mods['pyrawores'] then
-- data:extend ({
require("__stdlib__/stdlib/data/data")
RECIPE('electric-boiler-mk1'):remove_ingredient("electronic-circuit"):add_ingredient({type = "item", name = "tin-plate", amount = 13}):remove_ingredient("copper-plate"):add_ingredient({type = "item", name = "copper-plate", amount =... |
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "mo_preventcombomb",
desc = "Commanders survive commander blast and DGun",
author = "The... |
--[[
resourcesManager.lua
Copyright (C) 2016 Kano Computing Ltd.
License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPLv2
]]--
local Savefile = require 'system.savefile'
local SoundManager = require 'system.soundManager'
local Locale = require 'system.locale'
local love = love
local g = love.graphics
local Res... |
--[[
-- Created by Tyler Berry, Aug 14 2017
-- Copyright (c) Firaxis Games
--]]
-- ===========================================================================
-- Base File
-- ===========================================================================
include("WorldTracker");
include("AllianceResearchSupport");
-- ====... |
--
-- Provides SpritePlist data structure loading routines. This loads
-- Sprite sheets from a plist.
--
-- @copyright 2014 Upstart Illustration LLC. All rights reserved.
--
local Promise = require("Promise")
local Frame = require("sprite.Frame")
local SpritePlist = Class()
local plists = {}
function SpritePlist.re... |
-- Like dropout, but with random square crops
require 'nn'
-- require 'cudnn'
-- require 'cunn'
local Cropout, Parent = torch.class('nn.Cropout', 'nn.Module')
function Cropout:__init(p, stochasticInference)
-- Args:
-- `p`: 0 <= p < 1. Fraction of the image to be cropped (by area). So p = .5 => a random crop wit... |
local kernel = {}
kernel.language = "glsl"
kernel.category = "generator"
kernel.name = "sunbeams"
kernel.unsupportedPlatforms =
{
WinPhone = true,
}
kernel.vertexData =
{
{
name = "posX",
default = 0.5,
min = 0,
max = 1,
index = 0, -- v_UserData.x
},
{
name = "posY",
default = 0.5,
min = 0,
m... |
-- Some functions are taken from the ComputerCraft bios.lua,
-- which was written by dan200
-- I just cleaned up the code a bit
console = {}
console.log = print
local debugLib = debug
collectgarbage = nil
require = nil
module = nil
package = nil
newproxy = nil
load = nil
xpcall = function(_fn, _fnErrorHandle... |
require"stream.string"
require"stream.file"
require"std.base"
local luap = require"cheese.luap"
local ast = require"cheese.luanetc.tie_refs"
local dumper = require"cheese.luap.dump"
for _, filename in ipairs({...}) do
local file = io.open(filename, "rb")
local ok, res = xpcall(function ()
local parsed_ast = luap.p... |
Locales['en'] = {
['you_paid'] = "You paid ~g~$%s~s~."
} |
local location = "assets/models/"
allIDs = {}
addEventHandler( "onClientResourceStart", resourceRoot,
function()
for name, category in pairs ( objectTable) do
for i, object in pairs ( category) do
local id = object[1]
local model = object[4][1]
local txd = object[4][2]
--outputDebugString( "Loade... |
local missions = {
[[
mission
{
victory_type vco_victory_type_alternative_1_blood_for_the_blood_god;
key wh_main_long_victory;
issuer CLAN_ELDERS;
primary_objectives_and_payload
{
objective
{
override_text mission_text_text_vco_roc_the_great_game_comple... |
----------------------------------------------------------------------------------------------------
--
-- Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
--
-- SPDX-License-Identifier: Apache-2.0 OR MIT
--
--
-... |
local installers = require "nvim-lsp-installer.installers"
local path = require "nvim-lsp-installer.path"
local server = require "nvim-lsp-installer.server"
local composer = require "nvim-lsp-installer.installers.composer"
local std = require "nvim-lsp-installer.installers.std"
local context = require "nvim-lsp-install... |
--[[
Name: nocivilfire
Author: Rinart73
Description: Module for ComplexCraftOrders that connects it with NoCivilFire mod
Version: 1.2.0-1
]]
local random = math.random
local randomseed = math.randomseed
local huge = math.huge
-- API
local api
local function initialize(modAPI)
api = modAPI
end
-- Helpers
local ... |
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.PrintName = "Weather Controller"
ENT.Author = "Nak"
ENT.Purpose = "Controls the weather"
ENT.Instructions = "Place it somewhere"
ENT.Category = "StormFox"
ENT.Editable = false
ENT.Spawnable = true
ENT.AdminOnly = true
ENT.DisableDuplicator = true
if SERVER then
else... |
-- room.lua
-- metroidvanian platformer game
-- N.P.Thompson 2021 (MIT license)
-- noahpthomp@gmail.com
-- rooms are, perhaps, the most vital part of this kludge,
-- the succulent meatball at the center of this spaghetti,
-- tangled in the starchy threads of several interdependent
-- components of the ... |
local TextColor = Color(GetConVar("Healthforeground1"):GetFloat(), GetConVar("Healthforeground2"):GetFloat(), GetConVar("Healthforeground3"):GetFloat(), GetConVar("Healthforeground4"):GetFloat())
local function AFKHUDPaint()
if not LocalPlayer():getDarkRPVar("AFK") then return end
draw.DrawNonParsedSimpleText(... |
-- See LICENSE for terms
if LuaRevision > 1001551 then
return
end
if not g_AvailableDlc.armstrong then
function CanSeeForest()
-- it'll always be false since there's no trees
return false
end
end
|
--- TAnt class,
local apiG = love.graphics
local TActor = require('code.actor')
local vec = require('libs.vec2d_arr')
local cfg = require('code.simconfig')
local map = {} --circular reference to Map module. Set with TAnt.setMap on map.lua
-- Sorry of the Delphi-like class styles :P
local TA... |
local musicData
musicData = {
level1 = {
fileName = "barroom_ballet",
loop = true,
loopPoint = 0,
volume = 1,
syncPoints = {
{
time = 0.426,
timeSignature = 4,
bpm = 115
},
}
},
level2 = ... |
local keys = require("ilk.parser").keys
local RET = {}
local strbits = {
[keys.jointType.prismatic] = 'tr_z',
[keys.jointType.revolute] = 'rot_z',
[keys.ctDir.a_x_b] = 'a_x_b',
[keys.ctDir.b_x_a] = 'b_x_a'
}
RET.jointTransformSetvalue = function(backend)
return
function(program, jointPoseData)
local... |
-- A geo guessing game where the player has to give their best guess
-- on the location of all the capitals of the world
-- Compatible with Fab.Geo version 0.4.0
-- Author: Fabian Schneider
function init()
popup
.button("Play 5", function() start_game(5) end)
.button("Play 20", function() s... |
#!/home/graehl/torch/install/bin/luajit
local function grjoined(tokens)
return table.concat(tokens, ' ')
end
local function grsplit(str, sSeparator, nMax, bRegexp)
sSeparator = sSeparator or ' '
assert(sSeparator ~= "")
assert(nMax == nil or nMax >= 1)
local aRecord = {}
if str:len() > 0 then
... |
local rankAwardMsgLayout=
{
name="rankAwardMsgLayout",type=0,typeName="View",time=0,report=0,x=0,y=0,width=0,height=0,visible=1,fillParentWidth=1,fillParentHeight=1,nodeAlign=kAlignTopLeft,
{
name="Image1",type=1,typeName="Image",time=67621170,report=0,x=0,y=0,width=1280,height=800,visible=1,fillParentWidth=1,fillP... |
do local _={inventory={fuel=1,burnt_result=6,chest=1,furnace_source=2,furnace_result=3,furnace_modules=4,character_main=1,character_guns=3,character_ammo=4,character_armor=5,character_vehicle=7,character_trash=8,god_main=2,editor_main=1,editor_guns=3,editor_ammo=4,editor_armor=5,roboport_robot=1,roboport_material=2,rob... |
local PANEL = class.create("ColorSelector", "Panel")
PANEL:ACCESSOR("ColorButton", "m_pColorButton")
function PANEL:ColorSelector()
self:super()
self.COLORPICKER = self:Add("ColorPicker")
self.COLORPICKER:Dock(DOCK_FILL)
self.COLORPICKER:DockPadding(0,0,0,0)
self.COLORPICKER:DockMargin(0,0,0,0)
self.COLORPICKE... |
-- sudo.lua
-- Implements the /sudo command.
function GetPlayerLookPos(Player)
local World = Player:GetWorld()
local Start = Player:GetEyePosition()
local End = Start + Player:GetLookVector() * 150
local HitCoords = nil
local Callbacks =
{
OnNextBlock = function(BlockPos, BlockType)
if BlockType ~= E_BLOCK_... |
-- See LICENSE for terms
local table = table
local lookup_pauses = {}
-- fired when settings are changed/init
local function ModOptions()
local options = CurrentModOptions
local OnScreenNotificationPresets = OnScreenNotificationPresets
for id in pairs(OnScreenNotificationPresets) do
lookup_pauses[id] = options:... |
local registered_nodes = minetest.registered_nodes
local add_particle = minetest.add_particle
local add_particlespawner = minetest.add_particlespawner
local new = vector.new
local add = vector.add
local subtract = vector.subtract
function tnt.add_effects(pos, radius, drops)
add_particle({
pos = pos,
velocity = ne... |
--[[
Form for viewing a class
Controls:
listFields: TCEListView
listMethods: TCEListView
miSortFieldsByOffset - if Checked, sort by offset, otherwise by name
miShowInherited - if Checked, add in methods and fields of parent(s)
miShowUsage - if Checked, funcs and methods will b... |
local setmetatable = setmetatable
local pairs = pairs
local xpcall = xpcall
local table = table
local ipairs = ipairs
local coroutine = coroutine
local config = require "config"
local pool_mt = {}
pool_mt.__index = pool_mt
local pool = {idle = {}, yielding = {head = nil, tail = nil}, count = config.pool_size or 10}
... |
local LeaderLib = Mods.LeaderLib
local Classes = LeaderLib.Classes
local setSkills = {
Shout_LLEQSET_EquipmentSet1 = true,
Shout_LLEQSET_EquipmentSet2 = true,
Shout_LLEQSET_EquipmentSet3 = true,
Shout_LLEQSET_EquipmentSet4 = true,
Shout_LLEQSET_EquipmentSet5 = true,
}
local EquipmentData = {}
local MAX_CHAR = 3... |
----------------------------------------------------------------------------------------------------
-- MUDpp Race - Dwarf
----------------------------------------------------------------------------------------------------
dwarf = { name = "Dwarf"
, desc = "Dwarf characters are skillful priests and warriors... |
return function(decompiler)
function decompiler.block(b)
setmetatable(b, {__index = decompiler})
if not b.decoded then
b.decoded = {}
end
if not b.metadata then
b.metadata = {}
end
return b
end
function decompiler.blocks(context, startBlock)
return function(_, block)
if not block then
... |
local Dobject = Dobject
local Pattern = Pattern
local M_PI = math.pi
local sw, sh = stage:getSize()
stage:addChild(DisplayShape.new(sw, sh)
:setSource(Pattern.image(assets:loadImage("bg.png")):setExtend(Pattern.EXTEND_REPEAT))
:paint())
local snowman = assets:loadDisplay("snowman.png"):setAnchor(0.5, 0... |
local Players = game:GetService("Players")
local Root = script:FindFirstAncestor("CmdrAdditions")
local Packages = Root.Packages
local Shared = Root.Shared
local Promise = require(Packages.Promise)
local GroupController = require(Shared.GroupController)
local PermissionsServer = {}
PermissionsServer.__index = Permi... |
--
-- c_bloom.lua
--
local scx, scy = guiGetScreenSize()
-----------------------------------------------------------------------------------
-- Le settings
-----------------------------------------------------------------------------------
Settings = {}
Settings.var = {}
Settings.var.cutoff = 0.05
Settings.var.power ... |
local modules = {}
-- Remove plugin from modules.global.init
-- modules['kevinhwang91/rnvimr'] = false
-- Rewrite plugin settings from modules.global.init
-- modules['kevinhwang91/rnvimr'] = {
-- your code
-- }
-- Add new plugin
-- modules['sheerun/vim-polyglot'] = {
-- your code
-- }
return modules
|
local uv = require("luv")
if #arg < 1 then
print(string.format("Usage: %s <file1> [file2 ...]", arg[0]));
return
end
for i = 1, #arg do
local fse = uv.new_fs_event()
assert(uv.fs_event_start(fse, arg[i], {
-- "watch_entry" = true,
-- "stat" = true,
recursive = true
}, funct... |
-- Antlion family mixin (for ones that ambush and are non-aggressive)
-- Not hiding upon DISENGAGE event, since mob would be spawned and no longer be accessible
-- Example: Alastor Antlion has ambush animation when popped [1], but does not burrow when going unclaimed [2]
-- [1] Alastor Antlion https://www.youtube.com/w... |
add_script = {
cast = function(player, question)
local q = string.lower(player.question)
if q ~= nil then
if q == "c" then
item = player:getObjectsInMap(player.m, BL_ITEM)
player:talk(0, "#item : " .. #item .. " found")
player:sendMinitext("#item : " .. #item .. " found")
return
elseif q == ... |
minetest.register_node("holoemitter:holoemitter", {
description = "Holoemitter",
tiles = {
"holoemitter.png"
},
drawtype = "glasslike",
on_construct = function(pos)
-- inventory
local meta = minetest.get_meta(pos)
-- default digiline channel
meta:set_string("channel", "holoemitter")
meta:set_int("... |
local null_ls_status_ok, null_ls = pcall(require, 'null-ls')
if not null_ls_status_ok then
vim.notify('The `jose-elias-alvarez/null-ls.nvim` plugin was not found.')
return
end
-- https://github.com/jose-elias-alvarez/null-ls.nvim/tree/main/lua/null-ls/builtins/formatting
local formatting = null_ls.builtins.formattin... |
return {
-- all hail
["Instance"] = true,
-- Services
["Workspace"] = true,
["Players"] = true,
["Lighting"] = true,
["ReplicatedFirst"] = true,
["ReplicatedStorage"] = true,
["ServerScriptService"] = true,
["ServerStorage"] = true,
["StarterGui"] = true,
["StarterPack"]... |
--[[GunZerk V2, change "masterepico" to your username leave the "s]]--
name="masterepico"
nm=game.Workspace:FindFirstChild(name)
local trail=false--dont change or it will really mess up script
local telekenisis=false--dont change or it will really mess up script
local gunzerkmode=false--dont change or it will really me... |
local M = {}
local inspect = require "scripts.utils.inspect"
local mode = "standard" -- ignore, silent, standard (ignore - print nothing, silent - do not write to file)
local config = {
-- Standard config
standard = {
-- Print messages
show = true,
-- Save messages to standalone file
... |
A2ADispatcherInitializator = {
ClassName = "A2ADispatcherInitializator",
DispatcherOptions = nil,
Options = nil,
AssignedCap = {}
}
function A2ADispatcherInitializator:New(_options)
self.DispatcherOptions = _options
return self
end
function A2ADispatcherInitializator:SetSquadronsOptions(_options)
self... |
-----------------------------------
-- Area: La_Theine Plateau
-- NPC: Shattered Telepoint
-- !pos 334 19 -60 102
-----------------------------------
local ID = require("scripts/zones/La_Theine_Plateau/IDs")
require("scripts/globals/keyitems")
require("scripts/globals/missions")
require("scripts/globals/npc_util")
---... |
local ssl_fixtures = require "spec.03-plugins.16-ssl.fixtures"
local helpers = require "spec.helpers"
local cjson = require "cjson"
describe("Plugin: basic-auth (API)", function()
local admin_client
setup(function()
assert(helpers.start_kong())
admin_client = helpers.admin_client()
end)
teardown(functi... |
local cemeteryConf = nil
local team_battle_activity_id = nil
local team_battle_conf = {}
local function GetCemetery(Type)
if cemeteryConf == nil then
cemeteryConf = {}
team_battle_activity_id = {}
DATABASE.ForEach("team_battle_config", function(row)
team_battle_conf[row.gid_id] = row
cemeteryConf[row.dif... |
points = {}
------- READ FROM FILE -------
-- Output: list of points from input file
function points.pointsFromFile()
local pointList = {}
local i = 1
for line in io.lines() do
local point = {}
for w in string.gmatch(line, "%d+%.?%d*") do -- or "%S+" (everything that is not a space)
if tonumber(w)... |
local collation = require "tools.collation"
local serpent = require "tools.serpent"
local collator = collation.new()
local ducet_file = io.open("data/allkeys.txt", "r")
local content = ducet_file:read("*all")
collator:load_ducet(content)
-- just few blocks, there should be more
local unicode_blocks = {
{0x0030, 0x0... |
function Blip(coords, text, radius, color, sprite)
local blip = AddBlipForRadius(coords, radius)
SetBlipHighDetail(blip, true)
SetBlipColour(blip, 1)
SetBlipAlpha (blip, 128)
blip = AddBlipForCoord(coords)
SetBlipHighDetail(blip, true)
SetBlipSprite (blip, sprite)
SetBlipScale (blip, 1.0)
SetBlipCo... |
--------------------------------------------------------------------------------
-- Train horn
--------------------------------------------------------------------------------
Metrostroi.DefineSystem("Horn")
TRAIN_SYSTEM.DontAccelerateSimulation = true
function TRAIN_SYSTEM:Initialize()
self.Active = false
e... |
local old_ptd002_init = PlayerTweakData.init
function PlayerTweakData:init(tweak_data)
old_ptd002_init(self, tweak_data)
self.damage.DOWNED_TIME = 30000000
end |
local PAC = PersonalAssistant.Constants
local PALStrings = {
-- =================================================================================================================
-- Language specific texts that need to be translated --
-- =====================================================================... |
return {'wam','wambuis','wamen','wammen','wammes','wambeek','wams','wamsteker','wamelink','wambuizen','wamde','wammesen','wammetje','wammetjes','wamt'} |
function love.conf(t)
t.window.width = 960
t.window.height = 544
end |
local function shallow_copy(original)
local copy = {}
for key, value in pairs(original) do
copy[key] = value
end
return copy
end
local function add_lines(mesh, extra, vertexes, segments)
local new_mesh = {}
new_mesh.vertexes = shallow_copy(mesh.vertexes)
new_mesh.segments = shallow_copy(mesh.segments)
ne... |
return {
{
effect_list = {
{
type = "BattleBuffCastSkill",
trigger = {
"onBulletHitBefore"
},
arg_list = {
rant = 400,
skill_id = 12530,
target = "TargetSelf",
time = 8
}
},
{
type = "BattleBuffCastSkill",
trigger = {
"onHPRatioUpdate"
},
arg... |
local cjson = require("cjson")
local dynamicd_build = require("core.dao.dynamicd_build_sql")
local utils = require("core.utils.utils")
local user_log = require("core.log.user_log")
local _M = {}
function _M.query_info_by_id(store,id)
local flag, info= store:query({
sql = "select id,limit_count from c_gat... |
--- Pulley joint proxy class.
-- This class is derived from @{JointProxy}.
--
-- @classmod PulleyJointProxy
--- Get current length A.
-- @treturn number
function PulleyJointProxy:getCurrentLengthA()
end
--- Get current length B.
-- @treturn number
function PulleyJointProxy:getCurrentLengthB()
end
--- Ground anchor A... |
jester.action_map.hangup = {
mod = "hangup",
func = "hangup"
}
jester.action_map.hangup_sequence = {
mod = "hangup",
func = "register_hangup_sequence"
}
|
-- Copyright 2006-2021 Mitchell. See LICENSE.
-- NASM Assembly LPeg lexer.
local lexer = require('lexer')
local token, word_match = lexer.token, lexer.word_match
local P, S = lpeg.P, lpeg.S
local lex = lexer.new('asm')
-- Whitespace.
lex:add_rule('whitespace', token(lexer.WHITESPACE, lexer.space^1))
-- Keywords.
le... |
local FL = true
return Def.ActorFrame{
InitCommand=cmd(xy,_screen.cx-176,_screen.cy-71);
OnCommand=function(s)
s:addx(-290):sleep(0.366):sleep(0.116):diffusealpha(1):decelerate(0.283):addx(284):linear(0.05):addx(-4):linear(0.1):addx(10):sleep(0.016):linear(0.033):addx(-3):sleep(0.016):addx(-1):sleep(0.016):linear(0... |
local textBox = {}
local fields = {}
function textBox.new( xPos, yPos, newLines, newFont, newWidth )
newText = {}
newText.x = xPos
newText.y = yPos
newText.width = newWidth
newText.font = newFont
newText.show = true
newText.access = false
newText.colour = {r=0,g=0,b=0}
newText.activeLine = 1
newText.cursorP... |
slot0 = class("MetaCharacterMediator", import("...base.ContextMediator"))
slot0.OPEN_PT_PREVIEW_LAYER = "MetaCharacterMediator:OPEN_PT_PREVIEW_LAYER"
slot0.OPEN_PT_GET_WAY_LAYER = "MetaCharacterMediator:OPEN_PT_GET_WAY_LAYER"
slot0.ON_REPAIR = "MetaCharacterMediator:ON_REPAIR"
slot0.ON_ENERGY = "MetaCharacterMediator:O... |
cstmmenu = {}
cstmmenu.PanelB = nil
-- These convars are used to communicate between the client and the server when the player presses "apply changes"
CreateClientConVar("cstm_accuracymod_aim_cl", "1", true, true)
CreateClientConVar("cstm_accuracymod_hip_cl", "1", true, true)
CreateClientConVar("cstm_recoilmod_cl", "... |
normal_map = {}
function normal_map.fromHeightMap(heightMap, strength)
local imgData = heightMap:getData()
local imgData2 = love.image.newImageData(heightMap:getWidth(), heightMap:getHeight())
local red, green, blue, alpha
local x, y
local matrix = {}
matrix[1] = {}
matrix[2] = {}
matrix[3] = {}
strength = st... |
local leda=require "leda"
local io=nil
s0=leda.stage{
handler=function(file)
local io=require'io'
print("Opening file",file)
local f = assert(io.open(file,"r"))
leda.send("file",f)
end,
}
s1=leda.stage{
handler=function(file)
print("Reading file",file)
local buffer,err = ... |
require "tools"
print("------------------------------------")
print(" Lua version: " .. (_G.jit and _G.jit.version or _G._VERSION))
print("Lua-ODBC version: " .. odbc._VERSION)
print("------------------------------------")
print("")
local HAS_RUNNER = not not lunit
lunit = require "lunit"
require "00_test_odbc"
re... |
cc = cc or {}
---Show object
---@class Show : ActionInstant
local Show = {}
cc.Show = Show
--------------------------------
--- Allocates and initializes the action.<br>
---return An autoreleased Show object.
---@return Show
function Show:create() end
--------------------------------
--
---@return Show
function Show... |
AttackStyleName = CircleStrafe
Data = {
howToBreakFormation = StraightAndScatter,
inRangeMultiplier = 0.9,
optimumRangeMultiplier = 50,
rangeMultiplierForHeight = 0.3,
RandomActions = {},
BeingAttackedActions = {},
FiringActions = {},
}
|
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by shuieryin.
--- DateTime: 12/01/2018 8:38 PM
---
function sigmoid(z)
--SIGMOID Compute sigmoid functoon
-- J = SIGMOID(z) computes the sigmoid of z.
return torch.pow(1 + (-z):exp(), -1)
end |
project "ImGuizmo"
kind "StaticLib"
language "C++"
staticruntime "on"
targetdir("%{wks.location}/build/" .. outputdir .. "/%{prj.name}/lib")
objdir("%{wks.location}/build/" .. outputdir .. "/%{prj.name}/obj")
files
{
"imguizmo/ImGuizmo.h",
"imguizmo/ImGuizmo.cpp"
}
includedirs
{
"imguizmo",
"%{th... |
local Data = require 'src/data'
local Sim = require 'src/sim'
local Render = require 'src/render'
function love.load()
math.randomseed(love.timer.getTime())
zone = Data.Zone({size = 30})
mobList = {}
for i = 1, 6 do
table.insert(mobList, Data.Mob({x = math.random(-20, 20), y = math.random(-20... |
return {
load="ui/style-writer.lua",
doInitSDL=false
}
|
return {
id = "FUYINGYINGHUA27",
mode = 2,
once = true,
fadeType = 1,
fadein = 1.5,
scripts = {
{
bgm = "story-1",
side = 2,
bgName = "bg_story_nepu2",
dir = 1,
bgmDelay = 1,
say = "数日后·某处海域",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
tim... |
-- ======== PROBLEM ==========
ref_temp = 273.0
Larmor = 0.1
Debye = 0.1
-- === SETTINGS ===
verbosity = 1
cfl = 0.25
do_face_sources = 0
do_CTU = 1
-- === DEFINE STATES ===
shock_x = -200
shock_mach = 2.0
density = 1.0
mass_ion = 1.0
mass_electron = 0.01
gam = 5/3
pressure = 0.5
axis_beta = {0,0,0}
-- com... |
local exports = {}
local dnode = require('..')
local utils = require('utils')
local asserts = require('bourbon/lib/asserts')
exports['test_object_refs'] = function(test)
local obj = {
a = 1,
b = 2,
f = function(n, g)
g(n * 20)
end
}
local server = dnode:new({
getObject = function(f)
f(obj)
end
... |
-- Copyright 2020 lwz322 <lwz322@qq.com>
-- Licensed to the public under the MIT License.
local dsp = require "luci.dispatcher"
local m, s, o
m = Map("frps", "%s - %s" % { translate("Frps"), translate("FRPS Server setting") })
s = m:section(NamedSection, "main", "frps")
s.anonymous = true
s.addremove = false
o = s... |
require 'utils'
hardware = {}
hardware._index = hardware
hardwareWatchers = {
battery = nil,
volumes = nil,
usb = nil,
wifi = nil,
network = nil
}
local log = hs.logger.new("hardware")
local currentWifi = hs.wifi.currentNetwork()
---------------
-- Helpers --
---------------
local function basename(s... |
local Personalities = {}
Personalities['Wanderer'] = require 'enemies/ai/wanderer'
Personalities['Seeker'] = require 'enemies/ai/seeker'
Personalities['Rifleman'] = require 'enemies/ai/rifleman'
Personalities['Sniper'] = require 'enemies/ai/sniper'
Personalities['Rocketeer'] = require 'enemies/ai/rocketeer'
Personaliti... |
local RunService = game:GetService("RunService")
local Stepped = RunService.Stepped
local frameCount = 0
local function StandardWait(n)
n = typeof(n) == 'number' and n or 0
local spent = 0
repeat
local _, deltaTime = Stepped:Wait()
spent += deltaTime
until spent >= n
return spent
end
local BetterWait = requ... |
object_tangible_loot_creature_loot_collections_meatlump_lint_10 = object_tangible_loot_creature_loot_collections_shared_meatlump_lint_10:new {
}
ObjectTemplates:addTemplate(object_tangible_loot_creature_loot_collections_meatlump_lint_10, "object/tangible/loot/creature/loot/collections/meatlump_lint_10.iff")
|
---Key: https://docs.fivem.net/game-references/controls/
local Keys = {
-- Letters
["A"] = 0x7065027D,
["B"] = 0x4CC0E2FE,
["C"] = 0x9959A6F0,
["D"] = 0xB4E465B4,
["E"] = 0xCEFD9220,
["F"] = 0xB2F377E8,
["G"] = 0x760A9C6F,
["H"] = 0x24978A28,
["I"] = 0xC1989F95,
["J"] = 0xF3830D... |
--// options for pullcount //--
local _, ns = ...
local L = ns.L
local LUI = LolzenUI.L
local LSM = LibStub("LibSharedMedia-3.0")
local f = CreateFrame("Frame")
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, addon)
if addon == "LolzenUI_Options" and LolzenUIcfg.modules["pullcount"] == t... |
local typedefs = require "kong.db.schema.typedefs"
return {
name = "jwt-fetcher",
fields = {
{ consumer = typedefs.no_consumer },
{ protocols = typedefs.protocols_http },
{ config = {
type = "record",
fields = {
-- URL of remote server where to fetch the JWT
-- Can ... |
--[[
Humor API
Awesome Humor API.
The version of the OpenAPI document: 1.0
Contact: mail@humorapi.com
Generated by: https://openapi-generator.tech
]]
--package humorapi
local http_request = require "http.request"
local http_util = require "http.util"
local dkjson = require "dkjson"
local basexx = requir... |
-- Replay memory functions.
-- The replay memory saves observed states to an SQLite database
-- and can retrieve them later as chains (state1, state2, ...) for training
-- and validation.
require 'torch'
require 'paths'
local driver = require 'lsqlite3'
--local db = sqlite3.open_memory()
local db = sqlite3.open("lear... |
ys = ys or {}
ys.Battle.BattleScaleBullet = class("BattleScaleBullet", ys.Battle.BattleBullet)
ys.Battle.BattleScaleBullet.__name = "BattleScaleBullet"
ys.Battle.BattleScaleBullet.Ctor = function (slot0)
slot0.super.Ctor(slot0)
end
ys.Battle.BattleScaleBullet.Update = function (slot0, slot1)
slot0.super.Update(slot... |
playerData = {
p = {},
unpack = function(p, str)
-- lê uma string no formato e salva na tabela
if str == "#" or str == "" or not str then
playerData.p[p] = {}
playerData.p[p].uno = {
spectator = 0,
round = 0,
win = 0,
red = 0,
blue = 0,
green = 0,
yellow = 0,
wild = 0,
me... |
local Upload = {}
local success= false
local json = ""
local totalRecords
local fileList = require("App42-Lua-API.File")
function Upload:new()
o = {}
setmetatable(o, self)
self.__index = self
return o
end
function Upload:getFileList()
return self.fileList
end
function Upload:setFileList(_fileList)
self.fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.