content
stringlengths
5
1.05M
-- Copyright 2022 SmartThings -- -- 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 to in ...
local floor, ceil = math.floor, math.ceil local min, max = math.min, math.max local util = require("util") local base = require("layouts.base") local simple = require("layouts.simple") local grid_mt = require("grid_mt") local mpp_util = require("mpp_util") local coord_convert, coord_revert = mpp_util.coord_convert, mp...
if settings.startup["enable-reactorplus"] and settings.startup["enable-reactorplus"].value == false then script.on_event(defines.events.on_built_entity, function(event) if string.match(event.created_entity.name, "pipe-") and (string.match(event.created_entity.name, "elbow") or string.match(event.created_entity....
Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"} modelname = "xPlane" me = game.Players.xSoulStealerx Pos = Vector3.new(-50,2,0) function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break) local p = Instance.new("Part") p.formFactor = "Custom" p.A...
-- Routine for NPC "Jonathan" velocity = 30 loadRoutine = function(R, W) if (W:isQuestComplete("element_master")) then R:setDisposed() return end if (W:isQuestState("element_master", "void") and W:isConditionFulfilled("default", "chapter3")) then R:setTilePosition(9,7) R:setTalkingActi...
local AUTOSAVE_ENABLED = true local AUTOSAVE_INTERVAL = 60 local MAX_ATTEMPTS = 3 local VERSION = "0.0.0" local SCHEMA = {} ------------------------------------------------- local dataService = game:GetService'DataStoreService' local dataStore = dataService:GetDataStore("PlayerData", VERSION) local runService = ga...
EXPS = {} ------------------------------------------------------------------------------- INFO = {} function INFO.asr_tag (e, cnds, err_msg) ASR(e.info, e, err_msg..' : expected location') --assert(e.info.obj.tag ~= 'Val') local ok do for _, tag in ipairs(cnds) do if tag == e.info.tag...
--------------------------------------------------------------------------------------------- -- Requirements summary: -- [PolicyTableUpdate] PTS creation rule -- -- Description: -- SDL should request PTU in case new application is registered and is not listed in PT -- and device is not consented. -- 1. Used preconditi...
--[[ --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 ...
-- scaffolding entry point for XSadd return dofile("XSadd.lua")
workspace "Linguini" architecture "x64" startproject "Server" configurations { "Debug", "Release" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" project "Server" kind "ConsoleApp" location "Server" language "C++" targetdir ("Binaries/" .. outputdir .. "/%{prj.name}") objdir ("Build/"...
local input = require('bizhawk/input')() -- Vs Heat local cf = 5668 -- Sequence 1 -- Combo n° 1 cf = input:circle(cf) cf = input:cross(cf + 104) cf = input:right(cf + 40) cf = input:cross(cf + 64) cf = input:down(cf + 40) cf = input:cross(cf + 64) cf = input:up(cf + 40) cf = input:cross(cf + 64) cf = input:right...
-- the "Class" library from Hump -- https://hump.readthedocs.io/en/latest/class.html Class = require("lib.hump.class") -- the virtualization library -- -- https://github.com/vrld/hump/blob/master/class.lua local aspect = require("lib.aspect") -- the world keeper : -- register entities, check for collisions, bumps -- ...
local path = string.sub(..., 1, string.len(...) - string.len(".hooks.setMinSize")) local stack = require(path..'.core.stack') --Sets the computed/minimum size of an element to be used with layout calculations and rendering return function(w, h) local currentStack = stack.getContext() currentStack.element:setMi...
lifeDayAnarraConvoTemplate = ConvoTemplate:new { initialScreen = "", templateType = "Lua", luaClassHandler = "lifeDayAnarraConvoHandler", screens = {} } elder_first = ConvoScreen:new { id = "elder_first", leftDialog = "@conversation/lifeday04c:s_98c49a08", -- (Translated from Shyriiwook) You should speak to our ...
local M = { { class = "tool", name = "New", tooltip = { en = "Create a new project (Ctrl+N)", zh = "新建工程 (Ctrl+N)", }, --bitmap = "new.png", bitmap = "new.svg", }, { class = "tool", name = "Open", tooltip = { e...
-- cc-auto.lua v1.0 -- by Tallow, based on Tak's cc program, updated by Manon on 5 jan 2018 -- -- Automatically runs many charcoal hearths or ovens simultaneously. -- dofile("cc_Assist.lua"); askText = singleLine([[ CC Auto v1.0 (by Tallow, based on Tak's cc program, updated by Manon on 5 jan 2018) -- Automatical...
function RespawnPlayer(player, objectRef) --print(">> Respawning "..player.name) if objectRef then local RespawnObject = objectRef:GetObject() if not RespawnObject then print("NOT WORKING >.<") return end local targetPosition = RespawnObject:GetWorldPosition() local targetRotation = RespawnObj...
local MusicEditing = require "MusicEditing" local Song = MusicEditing.Song local Track = MusicEditing.Track local Event = MusicEditing.Event local NoteOnOffEvent = MusicEditing.NoteOnOffEvent local ArrangementContext = MusicEditing.ArrangementContext local style = { name = "Example Style Piano", author = "Charles H...
-- Copyright 2021 SMS -- License(Apache-2.0) include "deps/googletest.lua" project "tests" kind "ConsoleApp" language "C++" cppdialect "C++latest" staticruntime "on" targetdir("%{wks.location}/build/" .. output_dir .. "/%{prj.name}/bin") objdir("%{wks.location}/build/" .. output_dir .. "/%{prj.name}/obj") f...
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- naga_siren_mirror_...
while true do game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25 wait() game.Players.LocalPlayer.Character.Humanoid.Sit = true wait() game.Players.LocalPlayer.Character.Humanoid.Jump = true wait() end
local ReplicatedStorage = game:GetService("ReplicatedStorage") local ServerScriptService = game:GetService("ServerScriptService") local Cmdr = require(ServerScriptService:WaitForChild("Cmdr-v1.5.0")) Cmdr:RegisterDefaultCommands() Cmdr:RegisterCommandsIn(ServerScriptService:WaitForChild("CmdrCustomCommands"))
-- ========================================================================= -- ========================================================================= -- Licensed to Qualys, Inc. (QUALYS) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional informatio...
-- 增加 KeySequence(string) -- 1 -- local ks= KeySequence() -- ks:parse("abc") -- 2 -- local ks= KeySequence("abc") -- local _KeySequence=KeySequence KeySequence = function(str) local ks = _KeySequence() if type(str)== "string" then ks:parse(str) end return ks end --[[ librime-lua 样例 调用方...
local function callback_reply(extra, success, result) --icon & rank ------------------------------------------------------------------------------------------------ userrank = "Member" if is_vip(msg) then userrank = "VIP ⭐⭐⭐⭐" send_document(org_chat_id,"./icons/7.webp", ok_cb, false) elseif is_sudo(result) then...
waxClass{"AutoTestRuntime"} function autoTestStart(self) print("begin AutoTestRuntime autoTestStart") local res = objc_getAssociatedObject(self, self:getKey1()) print('res=', res) objc_setAssociatedObject(self, self:getKey1(), "lua_value1", 1) local res = objc_getAssociatedObject(self, self:getKey1()) print('...
screenboundary = class("screenboundary") function screenboundary:init(x) self.x = x self.y = -1000 self.width = 0 self.height = 1000+mapheight self.static = true self.active = true self.category = 10 self.mask = {true} end
local function fib(n) if n < 2 then return n else return fib(n-2) + fib(n-1) end end print(fib(37))
local brainlua = require "brainlua" local function write(...) io.stdout:write(...) io.stdout:flush() end while true do write("> ") brainlua(io.stdin:read("*l")) write("\n") end
--[[ revealjs-codeblock - enable reveal.js code presentation features Copyright © 2020 Tim Sokollek Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOF...
function BWM_OnEnterCombat(Unit,Event) Unit:RegisterUnitEvent("BWM_SnapKick", 10000, 0) end function BWM_SnapKick(Unit,Event) Unit:FullCastSpellOnTarget(39477,Unit:GetClosestPlayer()) end function BWM_OnLeaveCombat(Unit,Event) Unit:RemoveEvents() end function BWM_OnDied(Unit,Event) Unit:RemoveEvents() end Regis...
object_mobile_som_storm_lord_guard = object_mobile_som_shared_storm_lord_guard:new { } ObjectTemplates:addTemplate(object_mobile_som_storm_lord_guard, "object/mobile/som/storm_lord_guard.iff")
--*********************************************************** --** ROBERT JOHNSON ** --*********************************************************** ---@class ISAddNonPvpZoneUI : ISPanel ISAddNonPvpZoneUI = ISPanel:derive("ISAddNonPvpZoneUI"); local FONT_HGT_SMALL = getTextManager(...
if IsValid(TESTP) then TESTP:Remove() end local frame = vgui.Create("DFrame") frame:SetSize(300, 300) frame:SetTitle("DTileLayout Example") frame:MakePopup() frame:Center() local layout = vgui.Create("DTileLayout", frame) layout:SetBaseSize(32) -- Tile size layout:Dock(FILL) //Draw a background so we can see what it...
local _ = require("witchvim.global") local utils = require("witchvim.utils") local wv = {} wv.version = _wv.version wv.name = _wv.name wv.website = _wv.website wv.log = require("witchvim.log") wv.g, wv.o, wv.wo, wv.bo, wv.opt = vim.g, vim.o, vim.wo, vim.bo, vim.opt wv.loop = vim.loop wv.fn = vim.fn wv.api = vim.api wv...
local parse_openssl_time = require "resty.auto-ssl.utils.parse_openssl_time" local stdlib = require "posix.stdlib" describe("parse_openssl_time", function() local orig_tz before_each(function() orig_tz = os.getenv("TZ") end) after_each(function() stdlib.setenv("TZ", orig_tz) end) it("parses basic ...
local function pcolored(text, color) color = color or 'white' modules.client_terminal.addLine(tostring(text), color) end function draw_debug_boxes() g_ui.setDebugBoxesDrawing(not g_ui.isDrawingDebugBoxes()) end function hide_map() modules.game_interface.getMapPanel():hide() end function show_map() modules....
return {'falasha','falafel','falangist','falanx','falbala','falderappes','falen','falie','faliekant','faling','fallisch','fallocratie','fallus','fallussymbool','falsaris','falset','falsetstem','falsificatie','falsificeren','falsifieerbaar','falsifieren','falsifiering','falangistisch','falsifieerbaarheid','fale','falkla...
--[[ cel is licensed under the terms of the MIT license Copyright (C) 2011 by Matthew W. Burk 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...
SCRIPT = [[ clear echoln $> dump_panorama_css_properties dump_panorama_css_properties echoln $> dump_panorama_events dump_panorama_events echoln $> cl_panorama_script_help * cl_panorama_script_help * echoln $> script_reload script_reload echoln $> cl_script_reload cl_script_reload ]] function Act...
--[[ @author Sebastian "CrosRoad95" Jura <sebajura1234@gmail.com> @copyright 2011-2021 Sebastian Jura <sebajura1234@gmail.com> @license MIT ]]-- --[[ function istaxi(plr) local uid=getElementData(plr,'player:uid') if not uid then return end local result=exports['pystories-db']:dbGet('SELECT 1 FROM pystories_facti...
-- Dialogue for NPC "npc_cynthia" loadDialogue = function(DL) if (not DL:isConditionFulfilled("npc_cynthia", "talked")) then DL:setRoot(1) else DL:setRoot(10) end if (not DL:isConditionFulfilled("npc_cynthia", "talked")) then DL:createNPCNode(1, 2, "DL_Cynthia_ChooseSide") -- Whose side are you on? ...
function love.conf (t) t.window.title = "Level 02" t.window.width = 640 t.window.height = 480 end
require "lib.sampfuncs" require "lib.moonloader" local tweaks = {} tweaks.mouseHandler = {} function tweaks.mouseHandler:new() local public = {} public.x, public.y = 0, 0 public.callEvent = 0 function public:updatePosition() self.x, self.y = getCursorPos() end function public:isMouseInWnd(x, y, ...
---@class CS.FairyGUI.ColliderHitTest ---@field public collider CS.UnityEngine.Collider ---@type CS.FairyGUI.ColliderHitTest CS.FairyGUI.ColliderHitTest = { } ---@return CS.FairyGUI.ColliderHitTest function CS.FairyGUI.ColliderHitTest.New() end ---@return boolean ---@param contentRect CS.UnityEngine.Rect ---@param loc...
Config = { DiscordToken = "NTY4MjIxNzg1OTgwNTM0Nzk5.XRgJMQ._Hr9dr7fFTTuxIcCpvRE9_6YK3Y", GuildId = "561994630590234624", -- Format: ["Role Nickname"] = "Role ID" You can get role id by doing \@RoleName Roles = { ["GTA MOD"] = "561994956156436480", ["GTA"] = "561995105557413917" -- This would be checked by doing...
require 'user.backup' require 'user.dropbox' local project = "PROJECT_NAME" -- Project name local token = "DROPBOX_APP_TOKEN" -- Dropbox App token local ftpConfig = { user = 'ftp_user', password = 'ftp_password', ip = '192.168.2.122', } -- Base map is prepended to path automatically based on the Dropbox...
local runCheck = require('./index') require('tap')(function (test) test("Ping localhost IPv4", function (expect) runCheck({ id = 45, target = "localhost", module = "ping", resolver = "IPv4", timeout = 20000, }, { count = 10, delay = 100, }, expect(function (err, d...
local settings = {} settings.url = "http://example.com" settings.user = "user" settings.passwd = "1234" return settings
local M = { } local T = require("PackageToolkit").module local head = (T.import(..., "../_lists/_head")).head local tail = (T.import(..., "../_lists/_tail")).tail local trim = (T.import(..., "../_strings/_trim")).trim local append = (T.import(..., "../_lists/_append")).append local get_keys = (T.import(..., "_keys")).k...
-- @module lib.block_ciphers.aes local bytes = require('lib.bytes') local GF256 = require('lib.finite_fields').GF256 local aes = {} local AESMat = {} AESMat.sbox = { 0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0x...
local route_110_trick = DoorSlot("route_110", "trick") local route_110_trick_hub = DoorSlotHub("route_110", "trick", route_110_trick) route_110_trick:setHubIcon(route_110_trick_hub) local route_110_cycling_n = DoorSlot("route_110", "cycling_n") local route_110_cycling_n_hub = DoorSlotHub("route_110", "cycling_n", route...
local ITEM = Clockwork.item:New("weapon_base"); ITEM.name = "Desert Eagle"; ITEM.cost = 0; ITEM.model = "models/weapons/3_pist_deagle.mdl"; ITEM.weight = 2.4; ITEM.uniqueID = "bb_deagle_alt"; ITEM.business = false; ITEM.description = "Aah. Good ol' Juan Deag."; ITEM.isAttachment = false; ITEM:Register();
-- Created by Elfansoer --[[ Ability checklist (erase if done/checked): - Scepter Upgrade - Break behavior - Linken/Reflect behavior - Spell Immune/Invulnerable/Invisible behavior - Illusion behavior - Stolen behavior ]] -------------------------------------------------------------------------------- modifier_leshrac_p...
local PLUGIN = PLUGIN ix.command.Add("DoorSell", { description = "@cmdDoorSell", OnRun = function(self, client, arguments) -- Get the entity 96 units infront of the player. local data = {} data.start = client:GetShootPos() data.endpos = data.start + client:GetAimVector() * 96 data.filter = client loc...
if not arg[1] then print("Usage: " .. arg[0] .. [[ PATH [--dump] PATH should point to the 'text-en' directory of the pgf distribution ]]) return end lpeg = require "lpeg" lpeg.locale(lpeg) P, V, R, S, B = lpeg.P, lpeg.V, lpeg.R, lpeg.S, lpeg.B C, Cp, Cs, Cmt, Cf, Ct = lpeg.C, lpeg.Cp, lpeg.Cs, lpeg.Cmt, lpeg.Cf...
local toy = require('toy') local vmath = require('vmath') local keycodes = require('keycodes') local drawutil = require('drawutil') local retroreload = require('retroreload') local App = {} App.__index = App function App.new() local self = {} setmetatable(self, App) -- init self._time = 0.0 return self end fu...
local att = {} att.name = "bg_nostock" att.displayName = "No stock" att.displayNameShort = "None" att.isBG = true att.SpeedDec = -5 att.statModifiers = {DrawSpeedMult = 0.2, OverallMouseSensMult = 0.2, RecoilMult = 0.2} if CLIENT then att.displayIcon = surface.GetTextureID("atts/nostock") end function att:attachFun...
require "run" local Tile = require "WFC.Tile" local WaveTile = require "WFC.WaveTile" local GetRules = require "WFC.GetRules" local Menu = require "Menu" local input = { {'E', 'E' , 'E', 'E' ,'E' , 'E' , 'E', 'E' }, {'E', 'DR', 'H', 'DL','E' , 'C' , 'C', 'E' }, {'E', 'V' , 'E', 'V' ,'E' , 'E' , 'E', 'E' ...
local tools = require "waf/tools" local regex require "resty.core.regex" local ck = require "resty.cookie" local _M = { _VERSION = "0.0.1" } local mt = { __index = _M } function _M.new() local method = ngx.req.get_method() local cookie = ck:new() local cookies = cookie:get_all() if method == "PO...
local sub, find = string.sub, string.find module.exports.split = function(str, sep, nmax) if sep == nil then sep = '%s+' end local r = { } if #str <= 0 then return r end local plain = false nmax = nmax or -1 local nf = 1 local ns = 1 local nfr, nl = find(str, se...
--this = BuildNode() AutoBuilder = {} AutoBuilder.keyBindSave = KeyBind() AutoBuilder.keyBindSave:setKeyBindKeyboard(0, Key.lctrl, Key.s) AutoBuilder.keyBindLoad = KeyBind() AutoBuilder.keyBindLoad:setKeyBindKeyboard(0, Key.lctrl, Key.l) local eventList = {} local loadOrder = {} local curentEvent = 1 local c...
require "behaviours/chaseandattack" require "behaviours/runaway" require "behaviours/wander" require "behaviours/doaction" require "behaviours/attackwall" require "behaviours/panic" require "behaviours/minperiod" require "behaviours/chaseandram" local TIME_BETWEEN_EATING = 3.5 local MAX_CHASE_TIME = 10 local GIVE_UP...
-- Generated By protoc-gen-lua Do not Edit local protobuf = require "protobuf" module('BceGuildBuy_pb', package.seeall) local BCEGUILDBUY = protobuf.Descriptor(); local BCEGUILDBUY_PROPID_FIELD = protobuf.FieldDescriptor(); BCEGUILDBUY_PROPID_FIELD.name = "propID" BCEGUILDBUY_PROPID_FIELD.full_name = ".com.xinqihd.s...
local function Timer(name) local objectType = "Timer" local timer = 0 local savedRepeats = 0 local repeats = 0 local timerObj local eventSystem = BasaltEvents() local timerIsActive = false local object = { name = name, getType = function(self) return objectT...
#!/usr/bin/lua package.cpath = package.cpath..";/usr/lib/lua/5.1/?.so;" local paths = { package.path -- the good ol' package.path } package.path = table.concat(paths, ";") local async_http = require("lua_async_http") local function parse_response(res) return res.url, res.response_status, res.response_body, res.res...
local Prop = {} Prop.Name = "Arcadia Apartments 2a" Prop.Cat = "Apartments" Prop.Price = 900 Prop.Doors = { Vector( 5647, -68, 502 ), Vector( 5556, -133, 502 ), } GM.Property:Register( Prop )
--[[ Per-Player Dictionary - Client v1.0 by: standardcombo Networked transfer of variables, similar to resources. Use for information that is not super large and does not change frequently. API: - Clear(player) - GetCollection(player) - Get(player, key) - GetNumber(player, key) - Set(player, key, value) ...
slot0 = class("Ship", import(".BaseVO")) slot0.ENERGY_MID = 40 slot0.ENERGY_LOW = 0 slot0.RECOVER_ENERGY_POINT = 2 slot0.INTIMACY_PROPOSE = 6 slot0.BACKYARD_1F_ENERGY_ADDITION = 2 slot0.BACKYARD_2F_ENERGY_ADDITION = 3 slot0.PREFERENCE_TAG_NONE = 0 slot0.PREFERENCE_TAG_COMMON = 1 slot1 = { vanguard = i18n("word_vanguar...
-- luahs, Lua bindings to hyperscan -- Copyright (C) 2016 Boris Nagaev -- See the LICENSE file for terms of use. local argparse = require 'argparse' local luahs = require 'luahs' local parser = argparse('hsfgrep', 'Match multiple patterns with Hyperscan') parser:option('-p --patterns', 'Patterns'):args('+'):count(1) ...
--[[ Copyright 2020 Matthew Hesketh <matthew@matthewhesketh.com> This code is licensed under the MIT. See LICENSE for details. ]] local allowlist = {} local mattata = require('mattata') local redis = require('libs.redis') function allowlist:init() allowlist.commands = mattata.commands(self.info.username):...
--[[ © 2020 TERRANOVA do not share, re-distribute or modify without permission of its author. --]] ITEM.name = "Kebab" ITEM.model = Model("models/kek1ch/meat_tushkano.mdl") ITEM.width = 1 ITEM.height = 1 ITEM.description = "A freshly made kebab. Smells amazing and tastes even better." ITEM.category = "Non-Approved Fo...
_FormatterConfigurationValues = _FormatterConfigurationValues or {} local config = {} config.values = _FormatterConfigurationValues function config.set_defaults(defaults) defaults = defaults or {} config.values = vim.tbl_extend("force", { filetype = {} }, defaults) end config.set_defaults() return config
local pchar = game.Players.LocalPlayer.Character local morph = Instance.new("SpecialMesh", pchar.Torso) morph.MeshType = "FileMesh" morph.MeshId = "http://www.roblox.com/asset/?id=1376455" morph.TextureId = "http://www.roblox.com/asset/?id=1376454" morph.Scale = Vector3.new(5, 5, 5) pchar.Head.Transparency = 1 pchar["L...
local module = {async = true} local remotes = game:GetService('ReplicatedStorage').Remotes local modules = game:GetService('ServerStorage').Modules local playerData = require(modules.PlayerData) local template = require(modules.PlayerData.Template) local api = require(script.Api) local getData = remotes.GetData loca...
-- 屏幕左半部分 hs.hotkey.bind({"cmd", "alt", "ctrl"}, "Left", function() local win = hs.window.focusedWindow() local f = win:frame() local screen = win:screen() local max = screen:frame() f.x = max.x f.y = max.y f.w = max.w / 2 f.h = max.h win:setFrame(f, 0) end) -- 屏幕右半部分 hs....
local addonName, addonTable = ... local Addon = _G[addonName] local S = LibStub:GetLibrary("ShockahUtils") local Class = { prototype = {}, } Addon.Action = Class local Instance = Class.prototype function Class:New(button, type, id, name, slot) local obj = S:Clone(Class.prototype) obj.button = button obj.type = t...
local M = {} local flash_size = { ['4'] = 16, ['6'] = 32, ['8'] = 64, ['B'] = 128, ['C'] = 256, ['D'] = 384, ['E'] = 512, ['F'] = 768, ['G'] = 1024, } local chip_type = { ['100'] = { ['4'] = {4,'B'}, ['6'] = {4,'B'}, ['8'] = {8,'B'}, ['B'] = {8,'B'}, ['C'] = {24,'E'}, ['D'] = {32,'E'}, ['E'] ...
-- FM 7 lib -- Engine params and functions -- -- @module FM7 -- @release v0.0.1 -- @author Lee Azzarello local ControlSpec = require "controlspec" local FM7 = {} local specs = {} local options = {} specs.OPAMP_A1= ControlSpec.new(0.01,10,"lin",0,0.05,"ms") specs.OPAMP_D1= ControlSpec.new(0,2,"lin",0,0.1,"ms") specs...
local utils = require("go.utils") local log = utils.log local curl = "curl" local run = function(...) local query = select(1, ...) if query == nil then query = vim.fn.expand("<cword>") end local cmd = string.format("%s cht.sh/go/%s?T", curl, query) log(cmd) local data = vim.fn.systemlist(cmd, vim.fn.bu...
test_run = require('test_run') inspector = test_run.new() engine = inspector:get_cfg('engine') -- space create/drop space = box.schema.space.create('test', { engine = engine }) space:drop() -- space index create/drop space = box.schema.space.create('test', { engine = engine }) index = space:create_index('primary') s...
-- still pictures dofile(minetest.get_modpath("gemalde").."/still.lua") -- animated picures dofile(minetest.get_modpath("gemalde").."/animated.lua")
local static_Start = Sound("PERP2.5/cradio_start.mp3"); local static_Stop = Sound("PERP2.5/cradio_close.mp3"); local function thinkRadioStatic ( ) if (GAMEMODE.PlayStatic) then if (!GAMEMODE.StaticNoise) then GAMEMODE.StaticNoise = CreateSound(LocalPlayer(), Sound("PERP2.5/cradio_static.mp3")); end if ...
wrk.method = "PUT" -- wrk.body = "url='http://elixirstatus.com'" wrk.headers["Content-Type"] = "application/json"
-- STEPMANIA RPG - MINUS THE ROLEPLAY PART local curExp = { PlayerNumber_P1 } -- Returns the total Exp given a PlayerNumber function getProfileExp(pn) local profile = PROFILEMAN:GetProfile(pn) if profile ~= nil then return math.floor(profile:GetTotalDancePoints()/10 + SCOREMAN:GetTotalNumberOfScores()*50) else...
--[[Author: YOLOSPAGHETTI Date: March 30, 2016 Stores the positions of the target over the course of the last backtrack time in an array]] function MovementCheck(keys) local target = keys.unit local ability = keys.ability local backtrack_time = ability:GetLevelSpecialValueFor("backtrack_time", ability:GetLevel() -...
--[[ Copyright (c) 2014, Robert 'Bobby' Zenz 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 conditions and the fo...
if not modules then modules = { } end modules ['font-mps'] = { version = 1.001, comment = "companion to font-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local concat = tabl...
-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. -- stylua: ignore start return {properties = {["vetur.completion.autoImport"] = {default = true,description = "Include completion for module export and auto import them",type = "boolean"},["vetur.completion.scaffoldSnippetSources"] = {default = {user = "🗒️",vetur = "✌",...
--[[ Project: SA Memory (Available from https://blast.hk/) Developers: LUCHARE, FYP Special thanks: plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses. Copyright (c) 2018 BlastHack. ]] local shared = require 'SAMemory.shared' shared.require 'CAESound' shared.require 'CAEAudioE...
x = 5 a,b = 10, x*2 print(a, b)
-------------------------------- -- @module ActionFrame -- @extend Ref -- @parent_module ccs -------------------------------- -- @overload self, float, ccs.ActionFrame -- @overload self, float -- @function [parent=#ActionFrame] getAction -- @param self -- @param #float duration -- @param #ccs.Action...
---@class gd.Sprite : gd.Node local Sprite = {} local Node = require("scene.node") ---@return gd.Sprite function Sprite.create() local obj = Node.create() obj.image = nil obj.centered = true obj.flip_h = false obj.flip_v = false obj.onDraw = Sprite.onDraw return obj end ---@param spr gd.Sprite ---@p...
--GPU: Gif recording. --luacheck: push ignore 211 local Config, GPU, yGPU, GPUVars, DevKit = ... --luacheck: pop local lg = love.graphics local events = require("Engine.events") local Path = GPUVars.Path local GifVars = GPUVars.Gif local WindowVars = GPUVars.Window local PaletteVars = GPUVars.Palette local RenderVa...
EFFECT.Mat = Material("effects/laser_tracer") EFFECT.Col1 = Color(255, 90, 25, 200) --Color(225,225,225,225) EFFECT.Col2 = Color(225, 25, 25, 200) EFFECT.Speed = 8192 EFFECT.TracerLength = 128 --[[--------------------------------------------------------- Init( data table ) ---------------------------------------------...
-- Event notes hooks function onEvent(name, value1, value2) if name == 'Camera Zoom Speed' then camSpeed = value1 camInt = value2 end end
ESX = nil notLoaded, currentStreetName, intersectStreetName, lastStreet, speedlimit, nearbyPeds, isPlayerWhitelisted, playerPed, playerCoords, job, rank, firstname, lastname, phone = true Citizen.CreateThread(function() while ESX == nil do TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end) Cit...
--[[ |========================================== | SCHOOL ♥♥ | by: Noyemi K/Delmunsoft | began: 1 May, 2020 |========================================== ]] function love.load() textfont = love.graphics.newImageFont("assets/ENFontHalf.png", " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!?.,';:$%-...
local math_utils = require('radio.utilities.math_utils') describe("math_utils", function () it("ceil_log2()", function () assert.is.equal(0, math_utils.ceil_log2(1)) assert.is.equal(1, math_utils.ceil_log2(2)) assert.is.equal(6, math_utils.ceil_log2(50)) assert.is.equal(6, math_util...