content stringlengths 5 1.05M |
|---|
_G._LUMA_VERSION = "Luma v0.1-snapshot"
if not _LUMA_LOADED then
_LUMA_LOADED = true
local core = require('luma.lib.core')
for k, v in pairs(core) do
_G[k] = v
end
end
local read = require 'luma.read'
local codegen = require 'luma.compile'
_G.luma = {}
function luma.compile(s)
local expr, err = read(s)
i... |
if not pcall(require, "astronauta.keymap") then
return
end
local nmap = vim.keymap.nnoremap
local tmap = vim.keymap.tnoremap
local imap = vim.keymap.inoremap
local cmap = vim.keymap.cnoremap
local vmap = vim.keymap.vnoremap
local cmd = function(cmd)
return "<cmd>" .. cmd .. "<cr>"
end
imap { "jk", "<esc>" }
nma... |
--print("Spec.lua")
Spectating_Player = nil
function GetResetPlyID(old_ply_id, prev_ply)
local Team = Client.GetLocalPlayer():GetValue("PlayerTeam")
local selected_ply_id
local selected_ply
for k, v in pairs(Player.GetPairs()) do
if v ~= Client.GetLocalPlayer() then
if v:GetID() ~=... |
-- thx Dragon <3
local originalMarineOnCreate
originalMarineOnCreate = Class_ReplaceMethod("Marine", "OnCreate",
function(self)
originalMarineOnCreate(self)
InitMixin(self, WalkMixin)
end
)
//Tap into this because NS2+ hooks the normal handlebuttons for marines
local originalSprintMixinUpdateSprintingState = S... |
-----------------------------------
-- Area: La Theine Plateau
-- NPC: Vicorpasse
-- Involved in Mission: The Rescue Drill
-- !pos -344 37 266 102
-----------------------------------
require("scripts/globals/keyitems")
require("scripts/globals/missions")
local ID = require("scripts/zones/La_Theine_Plateau/IDs")
------... |
require "nn"
function gradUpdate(mlp, x, y, criterion, learningRate)
local pred = mlp:forward(x)
local err = criterion:forward(pred, y)
local gradCriterion = criterion:backward(pred, y)
mlp:zeroGradParameters()
mlp:backward(x, gradCriterion)
mlp:updateParameters(learningRate)
end
mlp=nn.Sequential()
mlp:a... |
data:extend(
{
{
type = "item",
name = "copper-cable",
icon = "__Engineersvsenvironmentalist__/graphics/icons/parts/basic-electric-cable.png",
flags = {"goes-to-main-inventory"},
subgroup = "basic-electric-cable",
order = "a[wires]-1",
stack_size = 200
},
}
)
data:extend(
{
--disable o... |
return {
mod_name = {
en = "Reworks Mod",
},
mod_description = {
en = "Reworks some talents and ultimates. And. Stuff!?",
},
version_command_description ={
en = "Display's V2R version in chat."
},
flamestorm_weapon_switch_option_name = {
en = "Flamestorm Weapo... |
local tbTable = GameMain:GetMod("MagicHelper")
local tbMagic = tbTable:GetMagic("TTMG_6_3")
local Rate = 0
function tbMagic:GetAge(Rate)
local target = ThingMgr:FindThingByID(self.targetId)
if target.MaxAge <= 0 then
return 1
else
self.bind:AddMaxAge(Rate)
target:AddMaxAge(-5 * Rat... |
#NoSimplerr#
--[[---------------------------------------------------------------------------
This is an example of a custom entity.
---------------------------------------------------------------------------]]
ENT.Type = "anim"
ENT.Base = "base_gmodentity"
ENT.PrintName = "AkPrinter"
ENT.Author = "DarkRP Developers and... |
--[[
FrostMoon, cross platform Composition Based Object Factory and GUI library
targeting iOS, OSX and Windows 10
Copyright Aug. 9th, 2018 Eric Fedrowisch All rights reserved.
--]]
------------------------------------------
--[[
This library contains the stand alone queue class used in FrostMoon. These
queues support t... |
signs_lib.unicode_install({195,147,"00d3"})
signs_lib.unicode_install({195,179,"00f3"})
signs_lib.unicode_install({196,132,"0104"})
signs_lib.unicode_install({196,133,"0105"})
signs_lib.unicode_install({196,134,"0106"})
signs_lib.unicode_install({196,135,"0107"})
signs_lib.unicode_install({196,152,"0118"})
signs_lib.un... |
UMF_REQUIRE "hook.lua"
UMF_REQUIRE "hooks_base.lua"
UMF_REQUIRE "hooks_extra.lua"
UMF_REQUIRE "console_backend.lua"
GLOBAL_CHANNEL = util.shared_channel( "game.umf_global_channel", 128 )
|
--- spelling-main.lua
--- Copyright 2012, 2013 Stephan Hennig
--
-- This work may be distributed and/or modified under the conditions of
-- the LaTeX Project Public License, either version 1.3 of this license
-- or (at your option) any later version. The latest version of this
-- license is in http://www.latex-project... |
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",
"MetalKit.framework",
"Me... |
local skynet = require "skynet"
local logger = {}
local const = require "const"
local loglevel = const.loglevel
local function log(level, t, fmt, ...)
local ok, msg = pcall(string.format, fmt, ...)
if not ok then
skynet.error("string format error on log")
return
end
skynet.send(".logse... |
local f = CreateFrame("Frame", "ShadowBackground")
f:SetPoint("TOPLEFT")
f:SetPoint("BOTTOMRIGHT")
f:SetFrameLevel(0)
f:SetFrameStrata("BACKGROUND")
f.tex = f:CreateTexture()
f.tex:SetTexture([[Interface\Addons\ncShadow\shadow.tga]])
f.tex:SetAllPoints(f)
function f:SetShadowLevel(n)
n = tonumber(n)
if not n then err... |
--[[
Copyright (c) 2019 PCC-Studio
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, ... |
local h = require("null-ls.helpers")
local methods = require("null-ls.methods")
local DIAGNOSTICS = methods.internal.DIAGNOSTICS
local severities = {
Warning = vim.diagnostic.severity.WARN,
Error = vim.diagnostic.severity.ERROR,
}
return h.make_builtin({
name = "tidy",
meta = {
url = "https:/... |
local vehWeapons = {
0x1D073A89, -- ShotGun
0x83BF0278, -- Carbine
0x5FC3C11, -- Sniper
0x1B06D571,--pistolet
}
local hasBeenInPoliceVehicle = false
local alreadyHaveWeapon = {}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if(IsPedInAnyPoliceVehicle(GetPlayerPed(-1))) then
if(not has... |
local easyEnemiesInfo = require( "src.images.easyEnemies" )
local sprite = require( "src.images.sprite" )
local Enemies = {}
function Enemies.create( application, physics )
local easyEnemie = display.newImage( application.mainGroup, sprite.easyEnemiesSheet, easyEnemiesInfo:getFrameIndex( "Alien-Scout" ), 50, 50 )... |
function pkgObj.secondToHHMMSS(time)
local hour = boy.number2Int(time / 3600)
local m = time - hour*3600
m = boy.number2Int(m/60)
local seconds = time - hour*3600 - m * 60
local hStr = tostring(hour)
if hour < 10 then hStr = "0"..hStr end
local mStr = tostring(m)
if m < 10 then mStr = "0... |
local COMMAND = Command.new('charattributeboost')
COMMAND.name = 'CharAttributeBoost'
COMMAND.description = 'command.char_attribute_boost.description'
COMMAND.syntax = 'command.char_attribute_boost.syntax'
COMMAND.permission = 'moderator'
COMMAND.category = 'permission.categories.character_management'
COMMAND.argument... |
local t = Def.Model {
Meshes=NOTESKIN:GetPath('SM5','LiftDouble');
Materials=NOTESKIN:GetPath('SM5','LiftDouble');
Bones=NOTESKIN:GetPath('SM5','LiftDouble');
InitCommand=function(self)
self:pulse():effectclock("beat"):effectmagnitude(0.9,1,1)
end;
};
return t;
|
local class = require 'ext.class'
local HLL = require 'solver.hll'
local EulerHLLC = class(HLL)
EulerHLLC.solverCodeFile = 'solver/euler-hllc.cl'
EulerHLLC.name = 'EulerHLLC'
EulerHLLC.eqnName = 'euler'
--[[
args:
hllcMethod = hllcMethod option
options from 2012 Toro "The HLLC Riemann Solver"
hllcMethod == 0 <=... |
-- XEP-0377: Spam Reporting for Prosody
-- Copyright (C) -2016 Kim Alvefur
--
-- This file is MIT/X11 licensed.
local jid_prep = require "util.jid".prep;
module:depends("blocklist");
module:add_feature("urn:xmpp:reporting:0");
module:add_feature("urn:xmpp:reporting:reason:spam:0");
module:add_feature("urn:xmpp:repor... |
return function()
local getGameIconRequestSize = require(script.Parent.getGameIconRequestSize)
describe("GetGameIconRequestSize()", function()
it("required image size is close to 50 request size", function()
local requestSize = getGameIconRequestSize(45)
expect(requestSize).to.equal(50)
end)
it("required ... |
function peds(newState, oldState)
if (newState ~= "Running") then
return
end
setPedAnimation(getElementByID("_SITTING_PED_01"), "ped", "seat_down", -1, false)
setPedAnimation(getElementByID("_SITTING_PED_02"), "ped", "seat_down", -1, false)
setPedAnimation(getElementByID("_SITTING_PED_03"), "ped", "seat_down", -... |
--[[
Map Position 1.1 by Husky and Manciuszz
========================================================================
Enables you to easily query the semantic position of a unit in the map.
The jungle (as well as the river) is separated into inner and outer jungle
to distinct roaming from warding champions.
... |
local string = {}
function string.removeRepeats(a)
l={}return a:gsub("%S+",function(b)if l[b]then return""else l[b]=true end end)
end
return string;
|
local Chara = require("core.Chara")
local Data = require("core.Data")
local I18N = require("core.I18N")
local math = math
local function mod_skill_level(args, id, amount)
local skill = args.chara:get_skill(id)
skill.level = skill.level + amount
end
local function mod_skill_level_clamp(args, id, amount)
loca... |
--[[
TheNexusAvenger
Displays a kill feed message.
--]]
local Players = game:GetService("Players")
local PlayerScripts = Players.LocalPlayer:WaitForChild("PlayerScripts")
local DisplayMessage = PlayerScripts:WaitForChild("KillFeed"):WaitForChild("DisplayMessage")
return function(KillFeedData)
DisplayMessage:Fir... |
local Main = Game:addState('Main')
function Main:enteredState()
local Camera = require("lib/camera")
self.camera = Camera:new()
g.setFont(self.preloaded_fonts["04b03_16"])
end
function Main:update(dt)
end
function Main:draw()
self.camera:set()
self.camera:unset()
end
function Main:mousepressed(x, y, but... |
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local skill = Condition(CONDITION_ATTRIBUTES)
skill:setParameter(CONDITION_PARAM_TICKS, 10000)
skill:setParameter(CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
skill:setParameter(CON... |
-- Basic
vim.opt.mouse = "a"
vim.opt.hlsearch = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.clipboard = "unnamedplus"
vim.opt.showmode = false
vim.opt.showtabline = 1
vim.opt.scrolloff = 2
vim.opt.cmdheight = 1
vim.opt.updatetime = 300
vim.opt.signcolumn = "yes"
vim.opt.colorcolumn = "80"
vim.opt.c... |
-- This version just copies the input file to the output file
local packager = function( params )
-- print("DREMEL in: " .. params.inputFiles[1]);
-- print("DREMEL out: " .. params.outputFile);
local out = io.open( params.outputFile, "wb" )
if out == nil then
return false
end
-- copy t... |
function newSet()
-- body
local reverse = {} --以数据为key,数据在set中的位置为value
local set = {} --一个数组,其中的value就是要管理的数据
return setmetatable(set,{__index = {
insert = function(set,value)
if not reverse[value] then
table.insert(set,value)
reverse[value]... |
local json = require("json") -- 加载json模块
local ops = require("mqOps") --加载mq操作模块
local row = ops.rawRow() --当前数据库的一行数据,table类型,key为列名称
local action = ops.rawAction() --当前数据库事件,包括:insert、updare、delete
local id = row["ID"] --获取ID列的值
local userName = row["USER_NAME"] --获取USER_NAME列的值
local password = row["PA... |
---- load completion
local cmp = require 'cmp'
---- completion config
cmp.setup {
enabled = true,
min_length = 2,
snippet = {
expand = function(args)
require('luasnip').lsp_expand(args.body)
end,
},
mapping = {
['<CR>'] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
... |
-- German localization file for deDE.
local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = AceLocale:NewLocale("ElvUI", "deDE")
if not L then return end
--*_ADDON locales
L["INCOMPATIBLE_ADDON"] = "Das Addon %s ist nicht mit dem ElvUI %s Modul kompatibel. Bitte deaktiviere entweder das Addon oder deaktivier... |
local Scope = {
new = function(self, parent)
local s = {
Parent = parent,
Locals = { },
Globals = { },
oldLocalNamesMap = { },
oldGlobalNamesMap = { },
Children = { },
}
if parent then
table.insert(parent.Children, s)
end
return setmetatable(s, { __index = self })
end,
AddLocal... |
module(..., package.seeall)
require("saci.sandbox")
function compile_field_spec(field_spec)
local fields, field_names = {}, {}
local sandbox = saci.sandbox.new()
sandbox:do_lua(field_spec)
for name, spec in pairs(sandbox.values) do
spec.name = name
table.insert(fields, spec)
table.insert... |
AddCSLuaFile()
-- Initial setup
local meta = setmetatable({}, {__call = function(self)
return setmetatable({}, {__index = self})
end})
-- Functions
function meta:GetBounds()
return self.Mins, self.Maxs
end
function meta:GetVMesh()
return self.Mesh and voxel.Meshes[self.Mesh]
end
if CLIENT then
function meta:G... |
local start = net.Start
local writestr = net.WriteString
local send = net.Send
local addNetworkString = util.AddNetworkString
local VBRP_Player = FindMetaTable("Player")
addNetworkString("VBNET::Networking::Lua::Run")
function VBRP_Player:LuaRun(instruction, isSilent)
isSilent = isSilent or false
local luaLoad... |
-- Item data (c) Grinding Gear Games
return {
-- Shield: Armour
[[
维多里奥的贡献【仿品】
合板鸢盾
等级需求: 50, 64 Str, 64 Int
联盟: 夺宝奇兵
固定基底词缀: 1
+8% 所有元素抗性
+(50-70) 最大生命
+(20-30)% 闪电抗性
+11% 混沌抗性
你技能的非诅咒类光环效果提高 10%
击中时有 5% 几率为周围友军提供一个耐力球
击败敌人时,有 10% 几率为周围友军提供一个狂怒球
]],
[[
迷雾之墙【仿品】
漆彩轻盾
等级需求: 60, 159 Dex
replica: true
联盟: 夺宝奇兵
固定基底词缀: ... |
append_path("RTM_PATH","A")
|
local context = G.botContext
if type(context.UI) ~= "table" then
context.UI = {}
end
local UI = context.UI
UI.Button = function(text, callback, parent)
local widget = UI.createWidget("BotButton", parent)
widget:setText(text)
widget.onClick = callback
return widget
end
UI.Config = function(parent)
return ... |
require('Inspired')
require('IWalk')
--Version RivenKiller v1.0.0.0
--Credits Lactea TheWelder Inspired
-- Script for Gaming on steroids
local myHero = nil
local champName = nil
local target = nil
AddInfo("Riven", "RivenKiller:")
AddButton("Q", "Use Q", true)
AddButton("W", "Use W", true)
AddButton("E", "Use E", tru... |
data:extend(
{
--Buildings/Components
{
type = "item",
name = "tank-assembling-machine",
icon = "__Advanced-Tanks__/graphics/icons/tank-assembling-machine.png",
flags = {"goes-to-quickbar"},
subgroup = "production-machine",
order = "y[assembling-machine-2]",
place_result = "tank-... |
local sequenceUtil = {}
local function nats(k)
local x = k or 1
local co = coroutine.wrap(function ()
while true do
coroutine.yield(x)
x = x + 1
end
end)
return co
end
local function odds(k)
local x = k or 1
if x%2 == 0 then error("Cannot start odd sequence with even number!") end
... |
-- local function create_augroup(name)
-- return vim.api.nvim_create_augroup(name, { clear = true })
-- end
--
-- local winbar_augroup = create_augroup("WinBarTS")
--
-- local parse_ast_symbols = function(symbols_tbl)
-- local result = ""
-- local sep = " > "
-- for i, symbol in pairs(symbols_tbl) do
-- result ... |
Script.ReloadScript( "SCRIPTS/Entities/AI/Shared/BasicAI.lua");
Script.ReloadScript( "SCRIPTS/Entities/actor/BasicActor.lua");
Civilian_x = {
------------------------------------------------------------------------------------
Properties = {
fGroupHostility = 0,
nVoiceID = 0,
aicharacter_character = "Friendly... |
-- @Author: tkx
-- @Date: 2017-02-13 09:44:25
-- @Last Modified by: tkx
-- @Last Modified time: 2017-02-14 17:14:33
local skynet = require "skynet"
local cluster = require "cluster"
skynet.start(function()
cluster.open "c_database"
local mdb = skynet.uniqueservice("mysqlserver")
local rdb = skynet.uniqueservi... |
---
---
--- File: ping.lua
--- This file implements a ping test
---
---
---
---
---
---
pingTest = {}
function pingTest.ping( ipAddress, pingCount )
local strBuffer
local testString
local count
local pat1
local pat2
pat1 = patStr.create()
pat2 = patStr.create()
os.execute("ping -c " .. pingCou... |
print("test_math begin")
let a1 = 123
let a2 = 123.456
let a3 = math.abs(-a1)
let a4 = math.tointeger(a2)
let a5 = math.tointeger(nil)
let a6 = 123.45678901234567890
let a7 = math.floor(123.4)
let a8 = math.floor(-123.4)
let a9 = math.max(3, 4, 2)
let a10 = math.min(3, 4, 2)
let a11 = math.type(a1)
let a12 = math.type(... |
local itest_manager = require("engine/test/itest_manager")
local flow = require("engine/application/flow")
local gameplay_data = require("resources/gameplay_data")
itest_manager:register_itest('1st fight -> back to adv',
-- keep active_gamestate for now, for retrocompatibility with pico-sonic...
-- but withou... |
return function(state, action)
state = state or false
if action.type == "SetSelectionActive" then
return action.active
end
return state
end
|
local fs = require 'diagnosticls-configs.fs'
return {
sourceName = 'golangci_lint',
command = fs.get_executable('golangci-lint'),
args = {'run', '--out-format', 'json'},
debounce = 100,
parseJson = {
sourceNameFilter = true,
sourceName = 'Pos.Filename',
errorsRoot = 'Issues',
line = 'Pos.Line... |
require("directories")
CLIENT = true
local common = require("common")
require("dvdlualib/gmodlib")
require("dvdlualib/asmlib")
local asmlib = trackasmlib
asmlib.InitBase("track", "assembly")
local a = asmlib.MakeContainer("lol")
a:Push(11)
a:Push(22)
a:Push(33)
a:Push(44)
a:Push(55)
a:Record("1",11... |
local View = {};
local type = nil
function View:Start(data)
self.view = SGK.UIReference.Setup(self.gameObject)
type = data and data.type or type;
if not type then
self.current = module.TreasureModule.GetLocalRank() or 999;
else
local value = module.guildBarbecueModule.GetSelfRank();
-- ERROR_LOG(sprinttb(v... |
-- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT License.
--
--[[
--
-- Input: a tensor of input: eq_length * batch_size * input_dim or a table of h0 and input
-- where h0: num_layer * batch_size * hidden_dim; the first dimension optional if num_layer == 1
-- Output: a tensor of eq... |
local email = require("lib_lua_email")
local noError = true
--test case 1
--create SSL smtp connection with invalid number
--of parameters
--the code should throw error
noError = pcall(function ()
return email.makeSmtp(true,
"localhost",
8080)
end
)
assert(noError == false)
--test case 2
-- cr... |
local Git = {
SignAdd = { fg = C.sign_add },
SignChange = { fg = C.sign_change },
SignDelete = { fg = C.sign_delete },
GitSignsAdd = { fg = C.sign_add },
GitSignsChange = { fg = C.sign_change },
GitSignsDelete = { fg = C.sign_delete },
}
return Git
|
if not SYSPATH then return end
Yi = Yi or {}
Yi.load('system.helpers.var')
Yi.load('system.helpers.i18n')
function Yi.tostring(obj, ...)
if type(obj) == "table" then
return table.tostring(obj)
end
if ... then
obj = string.format(tostring(obj), ...)
else
obj = tostring(obj)
end
return ... |
f = load("local a = 10; return a + 20")
print(f()) --> 30
|
function createConnection(v)
local con
con = v.Touched:Connect(function(hit)
con:Disconnect()
if hit.Parent then
if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
if hit.Parent:FindFirstChild("HumanoidRootPart") then
hit.Parent:SetPrimaryPartCFrame(CFrame.new(-64.246, 50.096, -450.377))
end
... |
-- vim: set et sts=2 sw=2 :
local M = {}
M.setup = function()
-- Yank
vim.cmd [[command! Cp :%yank +]]
-- Session
vim.cmd [[command! M :mksession!]]
-- Terminal
vim.cmd [[command! T :terminal]]
end
return M
|
-- #######################################
-- ## Project: MTA FlappyBird ##
-- ## Name: FlappyUI.lua ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc = {}; -- Local Functions
local cSe... |
return {
width = 0,
height = 0
} |
-- Combining cellular automata rules
-- Here the way multiple CA rules can be combined into a single ruleset is
-- demonstrated. A asynchronous cellular automata with a complicated ruleset
-- generates an interesting 'corridor' like pattern.
local primitives = require('forma.primitives')
local automata = requi... |
-- AUTO BUILD, DON'T MODIFY!
typedef {
conv = 'olua_$$_cclua_window_Bounds',
cppcls = 'cclua::window::Bounds',
}
typedef {
cppcls = 'cclua::SceneNoCamera *',
luacls = 'cclua.SceneNoCamera',
decltype = nil,
conv = 'olua_$$_cppobj',
num_vars = nil,
}
typedef {
cppcls = 'cclua::Permissio... |
object_static_structure_military_military_rebel_clone_tent_small = object_static_structure_military_shared_military_rebel_clone_tent_small:new {
}
ObjectTemplates:addTemplate(object_static_structure_military_military_rebel_clone_tent_small, "object/static/structure/military/military_rebel_clone_tent_small.iff")
|
require("awful.util").deprecate("Use beautiful.theme_assets instead.")
return require("beautiful.theme_assets")
|
local sensorInfo = {
name = "getuUnits",
desc = "Gets updated info about units.",
author = "Petrroll",
date = "2018-06-18",
license = "notAlicense",
}
local EVAL_PERIOD_DEFAULT = -1 -- actual, no caching
function getInfo()
return {
period = EVAL_PERIOD_DEFAULT
}
end
-- assign a unit to corresponding lane.... |
--
-- Created by IntelliJ IDEA.
-- User: admin
-- Date: 2017/5/8
-- Time: 11:09
-- To change this template use File | Settings | File Templates.
--
function concat(a, b)
return a .. "调用" .. b
end
|
---- insert 'p'oint 'finder'
local shiki = {
escape = require 'shiki.escape',
config = require 'shiki.config'
}
shiki.determine = require 'shiki.char-determine'
-- 文字を巡回していき,区切りを見つけたらそこでyield
-- エスケープに該当するなら無視していく
local function coroutine_pfinder(source, escape_instance)
local cursor = 1
local last = ... |
Weapon.PrettyName = "Deagle"
Weapon.WeaponID = "m9k_deagle"
Weapon.WeaponType = WEAPON_SECONDARY |
local students = {"William", "Sophie", "Robbert"}
students[3] = "Robert" |
local a = ""
local function b(c, d)
local e, f
local g = net.createConnection(net.TCP, 0)
g:on(
"receive",
function(g, h)
if not e then
f = h:match("HTTP/%d%.%d (.-) .*\r\n") == "200"
h = h:match("\r\n\r\n(.*)")
e = true
... |
package.path = package.path .. ";spec/?.lua"
local dash = require "resty-bakery-dash"
local hls = require "resty-bakery-hls"
local helper = require "test-helper"
-- in order to add your manifests here please make sure they:
-- * have 4 renditions
-- * being the bandwidth for them 600000, 800000, 1500000, and 2000000
... |
require 'dp'
--[[command line arguments]]--
cmd = torch.CmdLine()
cmd:text()
cmd:text('Image Classification using Inception Models Training/Optimization')
cmd:text('Example:')
cmd:text('$> th deepinception.lua --lecunlcn --batchSize 128 --accUpdate --cuda')
cmd:text('Options:')
-- fundamentals
cmd:option('--learningR... |
-- Lua Global Protection Module v.1.0
-- By Alexander Gladysh <agladysh@gmail.com>
-- See license at the end of file
-- Provides
-- Protection from unsanctioned access to global environment
local type, pairs, error, rawget, rawset, tostring = type, pairs, error, rawget, rawset, tostring
local declared = {}
declar... |
scenes.test = Level.create()
function scenes.test:load()
gs.difficulty = gs.difficulty + 1
gs.bgmusic:setPitch(gs.bgmusic:getPitch( ) + 0.005)
--floors
drawFloors()
--create world boundaries
drawWalls()
for i=1,math.min(math.random(0,gs.difficulty), 2) do
rock = GameObject.create()
rock.spr... |
-- tolua: class class
-- Written by Waldemar Celes
-- TeCGraf/PUC-Rio
-- Jul 1998
-- $Id: $
-- This code is free software; you can redistribute it and/or modify it.
-- The software provided hereunder is on an "as is" basis, and
-- the author has no obligation to provide maintenance, support, updates,
-- enhancements, ... |
--------------------------------------------------------------------------------
local class = require "lib.middleclass"
local GenericCalculator = require "app.calculators.generic_calculator"
--------------------------------------------------------------------------------
local Calculator = class("Calculat... |
local init_state = 1
featurePath = 'GeneralEffect_5100'
num31 = 22
preIsPortrait = 1
function checkAspectRatio(this)
local feature = this:getFeature(featurePath)
if (feature) then
local GEFeature = EffectSdk.castGeneralEffectFeature(feature)
local effectManager = this:getEffectManager()
... |
object_ship_ixiyen_s01_tier9 = object_ship_shared_ixiyen_s01_tier9:new {
}
ObjectTemplates:addTemplate(object_ship_ixiyen_s01_tier9, "object/ship/ixiyen_s01_tier9.iff")
|
--[[
Documentation links for the C syntax highlighter of the LXSH module.
Author: Peter Odding <peter@peterodding.com>
Last Change: July 16, 2011
URL: http://peterodding.com/code/lua/lxsh/
Generated by http://github.com/xolox/lua-lxsh/blob/master/etc/doclinks.lua.
]]
return {
abort="http://linux.die.net/man/3... |
-------------------------------------------------------------------------------
-- RPNames
-- by Tammya-MoonGuard (Copyright 2018)
-------------------------------------------------------------------------------
-- This is a simple API to fetch roleplay names from RP addons such as
-- Total RP 3, XRP Roleplay Profiles,... |
-- All the net messages defined here
util.AddNetworkString("xyz_racing_start")
util.AddNetworkString("xyz_racing_finish") |
local default_comparator = request('ordered_pass.default_comparator')
local get_key_vals = request('get_key_vals')
-- Sort <t> and return iterator function to pass that sorted <t>
return
function(t, comparator)
assert_table(t)
comparator = comparator or default_comparator
assert_function(comparator)
... |
-- Copyright 2016 Eric Luehrsen <ericluehrsen@hotmail.com>
-- Licensed to the public under the Apache License 2.0.
local m3, s3, frm
local filename = "/etc/unbound/unbound_srv.conf"
local description = translatef("Here you may edit the 'server:' clause in an internal 'include:'")
description = description .. " (" .. ... |
require("__5dim_core__.lib.automation.generation-lab")
local speed = 1
local modules = 2
local energy = 60
local techCount = 200
-- Labs 01
genLabs {
number = "01",
subgroup = "lab",
craftingSpeed = speed,
moduleSlots = modules,
energyUsage = energy,
new = false,
order = "a",
ingredien... |
function _G.getenv(k, p)
if string63(k) then
local __i = edge(_G.environment)
while __i >= 0 do
local __b = _G.environment[__i + 1][k]
if is63(__b) then
local __e9 = nil
if p then
__e9 = __b[p]
else
__e9 = __b
end
return __e9
else
... |
if not wac then return end
if SERVER then AddCSLuaFile('shared.lua') end
ENT.Base = "wac_pl_base"
ENT.Type = "anim"
ENT.Category = wac.aircraft.spawnCategoryC
ENT.PrintName = "F-16C Falcon"
ENT.Author = "SentryGunMan"
ENT.Spawnable = true
ENT.AdminSpawnable = true
ENT.Model = "models/... |
local Star = {}
Star.__index = Star
function Star.new(size, location, screenSize)
local self = setmetatable({}, Star)
self.radius = size
self.color = {255, 255, 255}
self.location = location
self.y = location.y
self.x = location.x
self.screenSize = screenSize
self.speed = 100
self.warp = false
re... |
function tass64(e)
local hdrs = {}
for _, src in ipairs(e.ins) do
local f = src:gsub("[^/]*$", "")
if f == "" then
f = "."
end
hdrs[#hdrs+1] = "-I"..f
end
local cflags = e.cflags or ""
rule {
ins = e.ins,
outs = e.outs,
cmd = "64tass --quiet --long-branch --ascii --case-sensitive --nostart -o &1 ... |
--[[Author: Pizzalol
Date: 09.02.2015.
Updates the value of the stack modifier and applies the movement speed modifier]]
function BattleHungerStart( keys )
local caster = keys.caster
local ability = keys.ability
local caster_modifier = keys.caster_modifier
local speed_modifier = keys.speed_modifier
-- If the c... |
require("Menu/settings.lua")
--this = SceneNode()
function create()
local language = Language()
language:setGlobalLanguage(Settings.Language.getSettings())
this:loadLuaScriptAndRunOnce("settings.lua")
Core.setSounMasterGain(Settings.soundMasterGain.getGain())
Core.setSounEffectGain(Settings.s... |
-- This file is generated by proto-gen-lua. DO NOT EDIT.
-- The protoc version is 'v3.19.2'
-- The proto-gen-lua version is 'Develop'
local protobuf = require "protobuf.protobuf"
local registry = require "protobuf.registry"
local imports_test_a_1_m1_pb_desc = require "imports.test_a_1.m1_pb_desc"
local imports_test... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.