content
stringlengths
5
1.05M
local export = {} local date_and_time = "mw:Help:Magic words#Date and time" local technical_metadata = "mw:Help:Magic words#Technical metadata" local tech_meta_another_page = "mw:Help:Magic words#Technical metadata of another page" local page_names = "mw:Help:Magic words#Page names" local namespaces = "mw:Hel...
--[[ This is a module designed to interface with mpv-user-input https://github.com/CogentRedTester/mpv-user-input Loading this script as a module will return a table with two functions to format requests to get and cancel user-input requests. See the README for details. Alternatively, developers c...
require 'nn' require 'cudnn' local pl = require('pl.import_into')() local nnutils = require 'utils.nnutils' require 'train.rl_framework.examples.go.ParallelCriterion2' -- Specification. local function get_network_spec(n) return { -- input is 19x19x? {type='conv', kw=5, dw=1, pw=2, nop=92}, ...
local JSON = require "kong.plugins.kong-axiomatics-plugin.lib.json" local return_error = require "kong.plugins.kong-axiomatics-plugin.return_error" local _M = {} -- Compose XACML POST body -- function _M.compose_post_payload(decoded_token, conf) -- AccessSubject XACML values from JWT local access_subject_attribut...
function dump(any, depth) local depth = depth or 0 local indent = "" for i=1,depth do indent = indent .. " " end if type(any)=="function" then return "function" end if any==nil then return "nil" end if type(any)=="string" then return any end if type(any)=="boolean" then if...
-- ThetaStar implementation -- See: http://aigamedev.com/open/tutorials/theta-star-any-angle-paths for reference if (...) then local _PATH = (...):gsub('%.search.thetastar$','') -- Depandancies local Heuristics = require ('libs.jumper.core.heuristics') local astar_search = require ('libs.jumper.search.astar')...
return{ title = LOC "$$$/Komoot/Metadata/Tagset/Title=Custom Metadata", id = 'CustomMetadataTagset', items = { { 'com.adobe.label', label = LOC "$$$/Komoot/Metadata/OrigLabel=Standard Metadata" }, 'com.adobe.filename', 'com.adobe.folder', 'com.adobe.separator', 'com.adobe.title', { 'com.adobe.ca...
{ {url="https://raw.githubusercontent.com/HeroBrine1st/RSA/master/RSA/text_support.lua",path="/lib/RSA/text_support.lua"}, {url="https://raw.githubusercontent.com/HeroBrine1st/RSA/master/RSA/Basic.lua",path="/lib/RSA/Basic.lua"}, {url="https://raw.githubusercontent.com/HeroBrine1st/RSA/master/RSA/init.lua",...
-- Copyright (c) 2020 Paul Florence -- Copyright (c) 2020 Lucien Menassol -- -- 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 -...
function onCreate() -- background shit makeLuaSprite('thearchy', 'thearchy', -600, -300); setScrollFactor('thearchy', 0, 0); addLuaSprite('thearchy', false); addGlitchEffect('thearchy',2,2) close(true); --For performance reasons, close this script once the stage is fully loaded, as this script won't be used any...
FACTION.name = "GMF2LT" FACTION.desc = "You're fighting the American in the German Military Forces army as a 2nd Lieutenant." FACTION.color = Color(245, 76, 71) FACTION.isDefault = false FACTION.models = {"models/player/PMC_6/PMC__01.mdl"} FACTION.isGloballyRecognized = true
----------------------------------- -- Area: Gusgen Mines -- NPC: _5ge (Lever E) -- !pos 20 -20.561 143.801 196 ----------------------------------- function onTrade(player, npc, trade) end function onTrigger(player, npc) --local nID = npc:getID() -- printf("id: %u", nID) local Lever = npc:getID() n...
-- Copyright 2016 Openwrt.org -- Licensed to the public under the Apache License 2.0. m = Map("adblock", translate("Adblock"), translate("Configuration of the adblock package to block ad/abuse domains by using DNS.")) -- General options s = m:section(NamedSection, "global", "adblock", translate("Global options")) ...
local gen_code = require("Q/UTILS/lua/gen_code") local qtypes = { 'B1', 'I1', 'I2', 'I4', 'I8','F4', 'F8' } local num_produced = 0 local sp_fn = assert(require("convert_specialize")) local function generate_files(in_qtype, out_qtype, args) local status, subs = pcall(sp_fn, in_qtype, out_qtype, args) if ( status ) ...
#!usr/bin/luajit local zsh_original_path = string.format('%s/.zshrc',HOME) local zsh_modified_path = string.format('%s/configs/.zshrc', package_dir) local Package = { file_original = { from = zsh_original_path, to = zsh_original_path .. '.orig' }, file_modified = { from = zsh_modified_path, to ...
-------------------- -- Sassilization -- By Sassafrass / Spacetech / LuaPineapple -------------------- include"wall.lua" ENT.Type = "anim" ENT.Base = "building_base" function ENT:SetupDataTables() self.BaseClass.SetupDataTables(self) --Msg("Setup DT2 for: ", self, "\n") --self:DTVar("I...
local RS = game:GetService("ReplicatedStorage") local WIND_DIRECTION = Vector3.new(1,0,0.3) local WIND_SPEED = 25 local WIND_POWER = 0.4 local WindShake = require(RS.Modules:WaitForChild("WindShake")) WindShake:SetDefaultSettings({ WindSpeed = WIND_SPEED; WindDirection = WIND_DIRECTION; WindPower = WIN...
ESX = nil TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) RegisterNetEvent('buyLockpick') AddEventHandler('buyLockpick', function() local _source = source local xPlayer = ESX.GetPlayerFromId(source) local price = Config.PriceLockpick -- if (xPlayer.getMoney() >= price) then -- ...
-- Configuration function love.conf(t) t.title = 'Survive' t.identity = 'LD37_Survive' t.version = '0.9.2' t.window.width = 1024 t.window.height = 720 t.icon = 'src/assets/image/loveLogo.png' end
require 'torch' local class = require 'class' local log = require 'include.log' local kwargs = require 'include.kwargs' local util = require 'include.util' local Switch = class('Switch') -- Actions -- 1 = on -- 2 = off -- 3 = tell -- 4* = none function Switch:__init(opt) local opt_game = kwargs(_, { { ...
-- Unified Skins for Minetest - based modified Bags from unfied_inventory and skins from inventory_plus -- Copyright (c) 2012 cornernote, Dean Montgomery -- License: GPLv3 -- Boilerplate to support localized strings if intllib mod is installed. skins = {} skins.modpath = minetest.get_modpath("skins") skins.file = min...
local cmd = vim.cmd local fn = vim.fn local g = vim.g local opt = vim.opt local Plug = vim.fn['plug#'] -- load plugins vim.call('plug#begin', '~/.config/nvim/plugged') Plug 'joshdick/onedark.vim' Plug 'neovim/nvim-lspconfig' Plug 'preservim/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'junegunn/fzf.vim' Plug('j...
local pixelate = {} pixelate.shader = love.graphics.newShader[[ extern vec2 screen; extern number time; extern number imgTime; extern number startingPixSize; vec4 effect(vec4 color, Image texture, vec2 texture_coords, vec2 screen_coords) { float pixelSize = startingPixSize - ((startingPixSize - 1.) / imgTime * ti...
red = Color.new(255, 0, 0) green = Color.new(0, 255, 0) blue = Color.new(0, 0, 255) black = Color.new(0, 0, 0) white = Color.new(255, 255, 255) gray = Color.new(128, 128, 128) cyan = Color.new(100, 255, 255) val = 0 logo = Image.createEmpty(64, 64) logo:clear(gray) logo:print(20, 20, "Lua", black) logo:print(10, 40, ...
if Server then function BiomassHealthMixin:UpdateHealthAmount(bioMassLevel) -- Cap the health level at the max biomass level --local level = math.min(10, math.max(0, self:GetLvl() - 1)) local level = 0 if self.combatTwoHives then level = level + 4 end if self.combatThreeHives then level = leve...
object_tangible_food_generic_drink_ithorian_mist = object_tangible_food_generic_shared_drink_ithorian_mist:new { } ObjectTemplates:addTemplate(object_tangible_food_generic_drink_ithorian_mist, "object/tangible/food/generic/drink_ithorian_mist.iff")
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('LoginInfo_pb') local CS_PLAYERLOGIN = protobuf.Descriptor(); local CS_PLAYERLOGIN_ACCOUNT_FIELD = protobuf.FieldDescriptor(); local CS_PLAYERLOGIN_PWD_FIELD = protobuf.FieldDescriptor(); local SC_PLAYERLOGIN = protobuf.Descriptor()...
----------------------------------------------------------- -- PROJECT: MTA:TD - Test and Debug Framework -- -- LICENSE: See LICENSE in top level directory -- PURPOSE: MTATD Entrypoint ------------------------------------------------------------ -- Start MTATD initMTATD() -- Destroy MTATD gracefully addEventHandler(t...
wItems, gItems, gKeys, colSlot, colName, colValue, items, lDescription, bDropItem, bUseItem, bShowItem, bDestroyItem, tabPanel, tabItems, tabWeapons = nil gWeapons, colWSlot, colWName, colWValue = nil toggleLabel, chkFood, chkKeys, chkDrugs, chkOther, chkBooks, chkClothes, chkElectronics, chkEmpty = nil wRightClic...
require("import") -- the import fn import("smart_pointer_multi") -- import lib into global spm=smart_pointer_multi --alias -- catching undefined variables local env = _ENV -- Lua 5.2 if not env then env = getfenv () end -- Lua 5.1 setmetatable(env, {__index=function (t,i) error("undefined global variable `"..i.."'",2)...
--[[ Set KSP Script Simplest Author: Native Instruments Written by: Yaron Eshkar Modified: August 6, 2021 --]] -- Script local ksp_script_string = [[ on init declare ui_knob $knob(0,1000000,1) end on ]] instrument.scripts[0].sourceCode = ksp_script_string
-- Base Spoon -- ---------- -- This is a base spoon class that should be used for all custom internal spoons. It defines -- the default hotkey and mouse event binding system, as well as some useful and required -- methods that all internal spoons will extend. local BaseSpoon = {} -- BaseSpoon.__index = BaseSpoon BaseS...
local path = "hall/agency_pin.png" local agency_pin_map = { ["btn_g_1.png"] = { file=path, x=2,y=2, width=200,height=86, rotated=false }, ["btn_y_2.png"] = { file=path, x=2,y=90, width=200,height=86, rotated=false }, ["btn_y_1.png"] = { file=path, x=204,y=2, width=200,height=86, rotated...
local CircleDrawSystem = class("CircleDrawSystem", System) function CircleDrawSystem:draw() for i, v in pairs(self.targets) do local position = v:get("Position") love.graphics.setColor(255, 150, 0) love.graphics.circle("fill", position.x, position.y, 5, 100) end end function CircleDraw...
return {'kazak','kazakdraaien','kazakdraaier','kazakdraaierij','kazakkeerder','kazemat','kazen','kazer','kazerne','kazerneachtig','kazernecomplex','kazerneleven','kazernepoort','kazerneren','kazernering','kazernetaal','kazerneterrein','kazuifel','kazakkendraaier','kazach','kazachensteppe','kazachs','kazachstan','kazak'...
-- This function converts the relative link to reference file -- in the same documentation. Instead of `File <./file>`__ it -- becomes :doc:`./file`. And if the link starts with // (for folder) -- when exported from markdown2rst e.g it converts `File <.//file>`__ -- to :doc:`./file/index` function Link(el) ...
local function postPremiumImpression(network) return network.postPremiumImpression() end return postPremiumImpression
---@return HTTP_S function HTTP_S(...) end ---@class HTTP_S local cls = HTTP_S() ---@return any function cls:Unsubscribe(...) end ---@return any function cls:Subscribe(...) end ---@return any function cls:Request(...) end ---@return any function cls:IsValid(...) end ---@return any function cls:Super(...) end
if enemy_1.hp_percentage > 5 then character_1:UseSkill(1) character_1:UseSkill(2) if enemy_1.hp_percentage > 50 then character_1:UseSkill(3) character_1:UseSkill(4) end character_2:UseSkill(1) character_2:UseSkill(2) character_2:UseSkill(3) character_3:UseSkill(1) character_3:UseSkill(2) character_3:UseSkil...
--[[ Autor:João Victor Oliveira Couto Componente Curricular: Concorrência e Conectividade Concluido em: 14/04/2018 Declaro que este código foi elaborado por mim de forma individual e não contém nenhum trecho de código de outro colega ou de outro autor, tais como provindos de livros e apostilas, e páginas ou document...
----------------------------------------- -- ID: 5399 -- A. Rem. Fireflies -- Transports the user out of Arrapago Remnants ----------------------------------------- require("scripts/globals/teleports") require("scripts/globals/status") require("scripts/globals/zone") ----------------------------------------- function ...
choice = {"najviše", "najšire", "najuže", "najveće", "najniže", "najmanje"}
local function get_models_by_range(setName, condition, searchValue) local cursor = '0' local done = false; local result = {} local setNamePrefix = setName .. '*' local value = tonumber(searchValue) repeat local scanResult = redis.call('SCAN', cursor, 'MATCH', setNamePrefix) cursor = scanResult[1] ...
--[[ Lexical Tools - lua/autorun/server/lexical-tools.lua Copyright 2020 Lex Robinson 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...
include("terms") style = {["off_color"] = "fff", ["on_color"] = "fff", ["line_color"] = "000", ["line_width"] = "1"}; colour_style = {["off_color"] = "ff0", ["on_color"] = "ff0", ["line_color"] = "000", ["line_width"] = "1"}; brown_style = {["off_color"] = "c90"...
--[[ ******************************************************* * LASP - LUA AREA SCRIPTING PROJECT * * License * ******************************************************* This software is provided as free and open source by the staff of The Lua Area Scripting Pr...
module("luci.controller.dnsforwarder", package.seeall) function index() if not nixio.fs.access("/etc/config/dnsforwarder") then return end local page = entry({"admin", "services", "dnsforwarder"},alias("admin", "services", "dnsforwarder","general"),_("Dnsforwarder")) page....
-- This file is subject to copyright - contact swampservers@gmail.com for more information. -- INSTALL: CINEMA CoinFlips = CoinFlips or {} RegisterChatCommand({'coin', 'coinflip'}, function(ply, arg) local t = string.Explode(" ", arg) local p = tonumber(t[#t]) p = (p ~= nil and math.floor(p) or nil) ...
require "import" import "android.widget.*" import "android.view.*" import "com.androlua.*" import "android.app.*" import "autotheme" activity.setTheme(autotheme()) activity.setTitle("Lua参考手册") items={"目录","返回",} function onCreateOptionsMenu(menu) for k,v in ipairs(items) do m=menu.add(v) m.setShow...
function twoSum(nums, target) -- nums: Table[number] -- target: number m = {} for k, v in pairs(nums) do if nil == m[target - v] then m[v] = k else return {k, m[target - v]} end end return {-1, -1} end v = {2,7,11,15} print(twoSum(v, 13))
require 'png' function printProg(line, totalLine) print(line .. " of " .. totalLine) end img = pngImage("Example.png", printProg) print("Width: " .. img.width) print("Height: " .. img.height) print("Depth: " .. img.depth) print("Color of pixel (10, 10): " .. img:getPixel(10,10):format())
-- Tests for alpha_beta_pruning.lua local ABP = require 'alpha_beta_pruning' local total, pass = 0, 0 local function dec(str, len) return #str < len and str .. (('.'):rep(len-#str)) or str:sub(1,len) end local function run(message, f) total = total + 1 local ok, err = pcall(f) if ok then pass = pa...
--[[ --MIT License -- --Copyright (c) 2019 manilarome --Copyright (c) 2020 Tom Meyers -- --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 ...
-- https://github.com/ImagicTheCat/ljuv -- MIT license (see LICENSE or src/ljuv.lua) -- FFI binding: libuv 1.42.0 local ffi = require("ffi") if ffi.os == "Windows" then if ffi.abi("64bit") then ffi.cdef("typedef UINT_PTR uint64_t;") else ffi.cdef("typedef UINT_PTR unsigned int;") end -- ffi.cdef[[ typedef un...
-- luacheck: globals unpack vim local iron = { -- Will eventually be removed config = require("iron.config"), -- Most likely shouldn't be exposed here ll = require("iron.lowlevel"), core = require("iron.core"), } return iron
return { include = function() includedirs { "../vendor/yojimbo", "../vendor/netcode.io", "../vendor/reliable.io" } links { 'mbedtls', 'sodium' } end, run = function() language "C++" kind "StaticLib" add_dependencies { 'vendor:mbedtls', 'vendor:sodium' } files { "../vendor/yojimbo/yojimbo.h"...
local TeleportService = game:GetService("TeleportService") return function (_, playerId, format) format = format or "PlaceIdJobId" local ok, _, errorText, placeId, jobId = pcall(function() return TeleportService:GetPlayerPlaceInstanceAsync(playerId) end) if not ok or (errorText and #errorText > 0) then if fo...
include('shared.lua') function ENT:Initialize() end function ENT:Draw() end
-- helper function to insert two string as RawInline into a table local function insertLatexEnvInline(tab, strBegin, strEnd) table.insert(tab, 1, pandoc.RawInline("latex", strBegin)) table.insert(tab, #tab + 1, pandoc.RawInline("latex", strEnd)) return tab end -- handling of `::: center ... :::` ... (Div...
local Fader = {} ShadowUF:RegisterModule(Fader, "fader", ShadowUF.L["Combat fader"]) local function faderUpdate(self, elapsed) self.timeElapsed = self.timeElapsed + elapsed if( self.timeElapsed >= self.fadeTime ) then self.parent:SetAlpha(self.alphaEnd) self:Hide() if( self.fadeType == "in" ) then self.p...
setenv("APPS","/unknown/apps") prepend_path("MANPATH","/usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/kerberos/man:/usr/man") setenv("OMP_NUM_THREADS","1")
uart.setup(1, 9600, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) uart.write(1, "nodemcu loaded\n") station_cfg={} station_cfg.ssid="nautilus" -- SSID of your WiFi network station_cfg.pwd="xxxxxxxxxx" -- password of your WiFi network station_cfg.auto=true station_cfg.save=true -- set your static network parameters here ne...
local ffi = require("ffi") -- -- Given a list of sections, and an RVA, lookup the section -- that contains the specified relative virtual address -- Return the found section, or nil if none found. -- local function getEnclosingSection(sections, rva) --print("==== getEnclosingSection: ", rva) for secname, sect...
local public_module = require("app.public.util.public_module") local equip_data = require("app.public.data.equip_data") local global_define = require("app.public.global.global_define") local body_data = class("body_data") function body_data:ctor() public_module.append_table(self, "app.public.data.base_data") ...
local mod = DBM:NewMod("BSMTrash", "DBM-Party-WoD", 2) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 13843 $"):sub(12, -3)) --mod:SetModelID(47785) mod:SetZone() mod.isTrashMod = true mod:RegisterEvents( "SPELL_AURA_APPLIED 164597 151548 151697 151965 151558 151581", "SPELL_CAST_STAR...
local function loadDocument(nodes) return { type = "loadDocument", nodes = nodes, } end return loadDocument
object_tangible_wearables_cybernetic_s02_cybernetic_s02_legs = object_tangible_wearables_cybernetic_s02_shared_cybernetic_s02_legs:new { } ObjectTemplates:addTemplate(object_tangible_wearables_cybernetic_s02_cybernetic_s02_legs, "object/tangible/wearables/cybernetic/s02/cybernetic_s02_legs.iff")
if CreepPower == nil then DebugPrint ( 'Creating new CreepPower object...' ) CreepPower = class({}) end function CreepPower:GetPowerForMinute (minute) local multFactor = 1 local ExponentialGrowthOnset = { short = 40, normal = 60, long = 120 } if minute == 0 then return { 0, 1.0, ...
while true do wait(1) for i,v in pairs(game.Players:GetChildren()) do if v ~= game.Players.LocalPlayer then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.Head.CFrame * CFrame.new(0,0,.4) mouse1click() wait(0.1) game.Players.LocalPlayer.Character.Humanoi...
--[[ Copyright 2008-2016 João Cardoso Sushi is distributed under the terms of the GNU General Public License (or the Lesser GPL). This file is part of Sushi. Sushi 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 Found...
tScenarioMenuDefs = {} tScenarioMenuDefs.aScenarioPlayers = {s010_cockpit = "", s020_credits = ""} if Game.IsInFINAL() then tScenarioMenuDefs.aScenarioDefs = { s010_cave = "c10_samus", s020_magma = "c10_samus", s030_baselab = "c10_samus", s040_aqua = "c10_samus", s050_forest = "c10_samus", s06...
#!/usr/bin/env luajit local xmlua = require("xmlua") local document = xmlua.XML.parse([[ <root> <sub1>sub1-1</sub1> <sub2>sub2-1</sub2> <sub1>sub1-2</sub1> <sub2>sub2-2</sub2> <sub3>sub3</sub3> </root> ]]) local sub1s = document:css_select("sub1") -- <sub1>sub1-1</sub1> -- <sub1>sub1-2</sub1> -- Unlink al...
local addon, addonTbl = ...; local L = addonTbl.L; -- Create a local reference to the global localization table. local itemDBRef; addonTbl.GetCount = function(tbl, itemID) local count = 0; if not itemID then itemID = 0 end; -- The itemID parameter is optional. If not passed, assign it a 0. if itemID == 0 then -- C...
-- Score Text local state = require('state') return function() local scoreText = {} scoreText.draw = function() love.graphics.print( {state.palette[4], 'Score: ' .. state.score}, 10, 10 ) end return scoreText end
if dofile ~= nil then dofile ("loveCodify.lua") end --[[ ------------------------------------------------------------ Main.lua --]] ------------------------------------------------------------ -- global screen size constants bottomY = HEIGHT *.21 trackWidth = WIDTH * .9 -- width of the tra...
materialNames:addItem({ {"Crowd materials", "Crowd/Blue", "Crowd/Red", "Crowd/Green", "Crowd/Red", "Crowd/Dirt", "Crowd/Dirt01", "Crowd/EgyptRocky", "Crowd/MtlPlat2", "Crowd/RustedMetal", "Crowd/TerrRock", "Crowd/Terrain", "CrowdEdit/Terrain1"}, {"Solid colors", "solidblue", "solidblack", "solidred", "solidlightgreen...
module ('content.properties', package.seeall) local all_properties = love.filesystem.enumerate 'content/properties' for _, property_file in ipairs(all_properties) do require('content.properties.'..string.gsub(property_file, '.lua', '')) end
return PlaceObj("ModDef", { "title", "Moisture Vaporator Show Max", "version", 2, "version_major", 0, "version_minor", 2, "saved", 0, "image", "Preview.png", "id", "ChoGGi_MoistureVaporatorShowMax", "steam_id", "1783220322", "pops_any_uuid", "6bc235b6-93de-4487-b672-a7dbe2494d53", "author", "ChoGGi", "lua_re...
add_message_with_pause("MOUNTAIN_ELF_SCHOLAR_WORK_SID") add_message_with_pause("MOUNTAIN_ELF_SCHOLAR_WORK2_SID") clear_and_add_message("MOUNTAIN_ELF_SCHOLAR_WORK3_SID")
Main = {} --[[ Functions ]]-- function Main:Init() self.grids = {} self.cached = {} for k, property in ipairs(Properties) do local gridId = Grids:GetGrid(property.coords, Config.GridSize) local grid = self.grids[gridId] if not grid then grid = {} self.grids[gridId] = grid end grid[#grid + 1] = k ...
-- Autogenerated from KST: please remove this line if doing any edits by hand! local luaunit = require("luaunit") require("valid_fail_eq_bytes") TestValidFailEqBytes = {} function TestValidFailEqBytes:test_valid_fail_eq_bytes() luaunit.assertErrorMsgMatches(".+: not equal, expected .*, but got .*", ValidFailEqB...
local local0 = 2.5 local local1 = 8.5 - local0 local local2 = 15.4 - local0 local local3 = 8.2 - local0 local local4 = 10.8 - local0 local local5 = 2 - local0 local local6 = 2 - local0 local local7 = 11.5 - local0 local local8 = 6.7 - local0 local local9 = 12.3 - local0 local local10 = 1.5 - local0 local local11 = 6.6 ...
-- -- Author: Your Name -- Date: 2016-06-21 10:22:14 -- local EventPool = class('EventPool', Map) function EventPool:ctor() EventPool.super.ctor(self) end return EventPool
--ai-- ------ --ghost process function pr_g(o) --in pen if(o.m==1)then --collisions off o.col=0 o.s=o.ss.p local p=pen[o.i-1] if(o.t==0)then new_sdir(o,3) if(o.y<p.y-2)then o.t=1 end else new_sdir(o,1) if(o.y>p.y+2)then o.t=0 end end --active elseif(o.m==2)then --colli...
-- list of installable lang-servers -- https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md -- local lsp = require("lspconfig") local function lua_lsp(lsp, on_attach) local lsp_root = vim.fn.system("echo -n $HOME/.local/share/lua-language-server") local lsp_binary = lsp_root .. "/bin/lua-language-server" ...
cc.exports.CoreElementInstance = {} local CoreElement = class("CoreElement", cc.load("mvc").ViewBase) local CoreElementMecha = import("..models.CoreElementMecha") CoreElement.GROUND = 120; CoreElement.G = -0.6; function CoreElement:onCreate() CoreElementInstance = self -- add touch layer self._left = ...
local luaType = type local function type(arg) local t = luaType(arg) if t == "table" or t == "userdata" then local mt = getmetatable(arg) local mtt = luaType(mt) if mtt == "table" then local n = mt.__name if n then t = n end elseif mtt == "string" then ...
-- Calculates an elementwise minimum of two random matrices on GPU local cv = require "cv" require "cutorch" require "cv.cudaarithm" local n = 5 local a = (torch.rand(n, n) * 10):int():float():cuda() local b = (torch.rand(n, n) * 10):int():float():cuda() local min_torch = torch.FloatTensor(n, n) for i = 1, n do ...
local DPBR = require("love-DPBR") local mgl = require("MGL") mgl.gen_mat(3); mgl.gen_vec(3) local env_tr = mgl.mat3(mgl.vec3(1,0,0), mgl.vec3(0,-1,0), mgl.vec3(0,0,1)) local app = {info = "3D baked scene.\n\nModel by Andrew Maximov.\n(http://artisaverb.info/PBT.html)"} local scene = DPBR.newScene(1280,720) scene:setPr...
--[[ Copland Awesome WM theme 2.0 github.com/lcpz --]] local gears = require("gears") local lain = require("lain") local awful = require("awful") local wibox = require("wibox") local dpi = require("beautiful.xresources").apply_dpi local awesome, client, os = awesome, client, os local my_table = awful.u...
-- example HTTP POST script which demonstrates setting the -- HTTP method, body, and adding a header wrk.method = "POST" wrk.body = {"message":"Hi!"} wrk.headers["Content-Type"] = "application/json"
-------------------------------------------------------------------------------- -- store -------------------------------------------------------------------------------- local _PACKAGE = string.gsub(...,"%.","/") or "" local _M = require(_PACKAGE .. "/ohm") return _M
local pure = {} pure.pure = { command = {"pure"}, open = ":paste\n", close = "\04", } return pure
object_building_player_shared_atat_house = SharedBuildingObjectTemplate:new { clientTemplateFileName = "object/building/player/shared_atat_house.iff" } ObjectTemplates:addClientTemplate(object_building_player_shared_atat_house, "object/building/player/shared_atat_house.iff") --*****************************************...
netstream.Hook( "ChangeQuestVar", function( ply, identifier, varKey, value ) netstream.Start( nil, "ReceiveQuestVar", identifier, varKey, value ); end );
local L, this = ... this.title = "Table Extension Library" this.version = "1.0" this.status = "production" this.desc = "Provides extensions for operating on tables." local utable local test utable = { --[[ @method equal #title Equality #def (table first, table second, [boolean no_reverse]) #returns boolean resul...
local wibox = require ('wibox') local awful = require ('awful') local gears = require ('gears') local beautiful = require ('beautiful') local darker = require ('util.color').darker local pi = require ('util.panel_item') local dpi = beautiful.xresources.apply_dpi local time = function (s,side) local time_box = wibox ...
resource_manifest_version '05cfa83c-a124-4cfa-a768-c24a5811d8f9' ui_page 'html/index.html' files { 'html/index.html', 'html/*' } client_script 'config.lua' client_script 'client.lua' exports { 'AddButton' , 'SetTitle' }
local util = require("spec.util") describe("rawget", function() it("reads ", util.check [[ local self = { fmt = "hello" } local str = "hello" local a = {str:sub(2, 10)} ]]) end)
object_building_general_ord_filler_e = object_building_general_shared_ord_filler_e:new { } ObjectTemplates:addTemplate(object_building_general_ord_filler_e, "object/building/general/ord_filler_e.iff")