content
stringlengths
5
1.05M
local utils = require "utils" local catFish = {} local function createCatfish(world) catFish = {} local objects = world.map.pObjects catFish.targetMaster = utils.getByName("targetGod", objects) catFish.tarA = utils.getByName("catTarA", objects) catFish.tarB = utils.getByName("catTarB", objects) ...
--[[ -- This file was automatically generated by Inclua 0.2.0 (https://github.com/gilzoide/inclua) -- -- The Inclua team hopes this file was accurately generated, that it will be useful -- and will never give SEGFAULTs, throw exceptions, or panic in a similar way. -- This software is provided 'as-is', without any warr...
function init() self.players = {} self.lastWireModified = 0 message.setHandler("changeMusic", changeMusic) message.setHandler("turnOff", turnOff) message.setHandler("toggleLabel", toggleLabel) message.setHandler("setMusicRange", setMusicRange) if storage.isPlaying then animator.setAnimationState("light"...
local script_data local grid_lookup ---@param owner_data OwnerData local function add_owner_data(owner_data) local grid = owner_data.grid local name = grid.prototype.name local lookup = grid_lookup[name] if not lookup then lookup = {} grid_lookup[name] = lookup end lookup[grid] = owner_data end -...
-- ---------------------------------------------------------------------------- -- Localized Lua globals. -- ---------------------------------------------------------------------------- -- Functions local _G = getfenv(0) local pairs, select = _G.pairs, _G.select -- WoW local GetAddOnInfo, GetAddOnEnableState, UnitName ...
-- -- version message -- local pack = require(GetScriptDirectory() .. "/utils/pack") -- returned module local version = {} -- public version.sent = false local PROTOCOL_VERSION = "0.1.0" -- public function version.get() local ver = {} ver["protocol"] = PROTOCOL_VERSION -- return version return ver end retu...
--[[ File @description: This function is for creating a replication preprocessing network. @version: V0.00 @author: Fangyi Zhang email:gzzhangfangyi@gmail.com @acknowledgement: ARC Centre of Excellence for Robotic Vision (ACRV) Queensland Univsersity of Technology (QUT) @history: V0.00 04/01/2016 d...
-- TODO: Should be registered as a setting not hidden as a package variable local gridSpacing = SILE.measurement() local function makeUp (totals) local toadd = gridSpacing - totals.gridCursor % gridSpacing totals.gridCursor = totals.gridCursor + toadd SU.debug("typesetter", "Makeup height = " .. toadd) return ...
--地心连城塞·提亚马特 local m=14000215 local cm=_G["c"..m] function cm.initial_effect(c) --link summon c:EnableReviveLimit() aux.AddLinkProcedure(c,cm.matfilter,3,5) --spsummon condition local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_SINGLE) e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYAB...
local K = unpack(select(2, ...)) local ACTIONBAR_FADER = { fadeInAlpha = 1, fadeInDuration = .3, fadeOutAlpha = .1, fadeOutDuration = .8, fadeOutDelay = .5, } K.ActionBars = { userPlaced = true, actionBar1 = {fader = nil}, actionBar2 = {fader = nil}, actionBar3 = {fader = nil}, actionBar4 = {fader = ACTION...
-- Basic elements local MOD = { LoadIndex = 1, LoadName = "Basic", } MijHUD.LoadModule(MOD) function MijHUD.GetProperAmmoData(wep) local add = false if wep.CustomAmmoDisplay then add = wep:CustomAmmoDisplay() end if add and add.Draw then local c1 = add.PrimaryClip local c2 = add.SecondaryClip...
local crypt = require "crypt" --[[ 插入元素到 sorted set 队头 KEYS[1] = sorted set queue key ARGV[1] = enqueue element ARGV[2] = hint score ]] local lenqu = [[local f=redis.call local k,e,c=KEYS[1],ARGV[1],tonumber(ARGV[2]) or 0 local r=f('zrange',k,0,0,'withscores') local rc=tonumber(r[2]) if rc and rc <= c then c = rc-...
--------------------------------------------------------------------------------------------------- -- -= Base64 =- --------------------------------------------------------------------------------------------------- -- Make some functions easier to write local floor = math.floor local sub = string.sub local gsub = str...
local jsonDecode = require('json').parse local jsonEncode = require('json').stringify local msgpackDecode = require('msgpack').decode local msgpackEncode = require('msgpack').encode local function fail(res, message) res.code = 400 res.headers["Content-Type"] = "text/plain" res.body = message .. "\n" end return ...
Up = vector3(0, 0, 1) function GetDirection(heading) local rad = (heading % 360.0) / 180.0 * math.pi return vector3(math.cos(rad), math.sin(rad), 0) end function FromRotation(vector) local pitch, yaw = (vector.x % 360.0) / 180.0 * math.pi, (vector.z % 360.0) / 180.0 * math.pi return vector3( math.cos(yaw) * ...
local _, CLM = ... local PruneLog = {} function PruneLog:New(type, nop) local o = {} setmetatable(o, self) self.__index = self o.type = type o.timestamp = GetServerTime() o.log = {} o.nop = nop and true or false return o end function PruneLog:Add(name) table.insert(self.log, na...
local helpers = require('test.functional.helpers')(after_each) local eq = helpers.eq local exec_lua = helpers.exec_lua local clear = helpers.clear before_each(clear) describe('ffi.cdef', function() it('can use dke core functions', function() if not exec_lua("return pcall(require, 'ffi')") then pending('mi...
--[[ Enhanced Digital Output Applet - support of usb audio and extended digital output capabilties via addon kernel (c) 2012, Adrian Smith, triode1@btinternet.com --]] local oo = require("loop.simple") local io = require("io") local os = require("os") local Applet ...
local lain = require("lain") local utils = require("utils") local gears = require("gears") local wibox = require("wibox") local vars = require("vars") local notify = require("naughty").notify local notificationStyles = require("notification-style") local icons = vars.icons local box = wibox() local batteryImage = wib...
-- flexdash_saverestore.lua local black = {0, 0, 0, 1} local cyan = {0, 1, 1, 1} local magenta = {1, 0, 1, 1} local yellow = {1, 1, 0, 1} local red = {1, 0, 0, 1} local white = {1,1,1,1} local shadow_offset = 2 local urbanist = loadFont("fonts/Urbanist-ExtraBold.ttf") sasl.gl.setFontSize ( urbanist, 16 ) local bk...
--~ Create the paths local appdata = os.getenv('APPDATA') local user_cpath_dir = appdata..'\\luarocks\\lib\\lua\\5.3\\' local user_path_dir = appdata..'\\luarocks\\share\\lua\\5.3\\' --~ Set the package.cpath local set_cpath = function(debug_flag) local new_cpath = string.format("%s?.dll;%slib?.dll;%s", user_cpath_d...
-- Algorithms for working with Markov chains. -- Author: darkstalker <https://github.com/darkstalker> -- License: MIT/X11 local ipairs, math_random, next, table_insert, table_remove, table_sort = ipairs, math.random, next, table.insert, table.remove, table.sort local unpack = table.unpack or unpack local engine ...
return { id = 81, furnitures_1 = { { id = 81301, parent = 0, y = 24, dir = 1, x = 16, child = {} }, { id = 81126, parent = 0, y = 16, dir = 1, x = 21, child = {} }, { id = 81129, parent = 0, y = 12, dir = 1, x = 21, child = {} }, { id = 81002, ...
--[[ 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...
--[[ * MIT License * * Copyright (c) 2017 zechs6437 [github.com/zechs6437] * * 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 rig...
local backlightctl = {} function backlightctl.get() local handle = io.popen("xbacklight -get") local data = handle:read("*all") handle:close() -- TODO: handle return code return data:gsub("^%s*(.-)%s*$", "%1") end function backlightctl.set(data) if type(data) ~= "number" then error("data s...
local bin = require "bin" local nmap = require "nmap" local shortport = require "shortport" local string = require "string" description = [[ Detects the CCcam service (software for sharing subscription TV among multiple receivers). The service normally runs on port 12000. It distinguishes itself by printing 16 random...
--[[ TheNexusAvenger Runs the client-side part of the bomb. --]] local Tool = script.Parent local Handle = Tool:WaitForChild("Handle") local BeepSound = Handle:WaitForChild("BeepSound") local InputHandler = require(Tool:WaitForChild("InputHandler")) local AnimationPlayer = require(Tool:WaitForChild("AnimationPlayer"...
-- --***************************** --*** Industrialization *** --***************************** -- Coded by: ATPHHe -- -- Modified using "..\ProjectZomboid\media\lua\server\RainBarrel\SRainBarrelSystem.lua" as reference. --***************************** -- if isClient() then return end --require "Map/SGlobalObject...
slot0 = class("EquipmentProxy", import(".NetProxy")) slot0.EQUIPMENT_ADDED = "equipment added" slot0.EQUIPMENT_UPDATED = "equipment updated" slot0.EQUIPMENT_SKIN_UPDATED = "equipment skin updated" slot0.register = function (slot0) slot0.data = {} slot0.equipmentSkinIds = {} slot0.shipIdListInTimeLimit = {} slot0:...
AuctionatorBuyingHistoricalPriceProviderMixin = CreateFromMixins(AuctionatorHistoricalPriceProviderMixin) function AuctionatorBuyingHistoricalPriceProviderMixin:SetItemLink(itemLink) Auctionator.Utilities.DBKeyFromLink(itemLink, function(dbKeys) self:SetItem(dbKeys[1]) end) end function AuctionatorBuyingHisto...
require "console" dofile("httpserver/compile.lua") console.log("nodemcu heap: "..tostring(node.heap())) tmr.register(0, 1000, tmr.ALARM_SINGLE, function() --timer is required to leave the nodemcu-firmare some time to free the ram console.log("initial start") server=require "httpserver/server" end) tmr.start(0)
local fs = require('efmls-configs.fs') local linter = 'gcc' local args = { '-Wpedantic', '-Wall', '-Wextra', '-fno-diagnostics-color', '-fsyntax-only', '${INPUT}' } local command = string.format('%s %s', fs.executable(linter), table.concat(args, ' ')) return { prefix = linter, lintCommand = command, lintStdin =...
function se_create_random_enemy_ship() local weapons = {} for k=0,math.random(0, 1) do local weapon = table.Random(se_weapons) table.insert(weapons, table.Copy(weapon)) end se_update_enemy_sprite(true, 100, 100) se_send_event_broadcast(6) enemy_spaceship = { valid = true, health = 100, s...
----------------------------------------------------- ITEM.name = "Flash Grenade" ITEM.model = "models/Items/grenadeAmmo.mdl" ITEM.desc = "A Grenade that will Flash everyone near it." ITEM.throwent = "nut_flashgrenade" ITEM.throwforce = 1500 ITEM.price = 100 ITEM.flag = "v"
me = game.Players.xSoulStealerx hold = false grab = nil pos = nil dis = 0 head = me.Character.Head function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) part.Parent = parent part.formFactor = form part.CanCollide = collide part.Transparency = tran part.Reflectance = ref part.Size = Vector3.new(...
--| VyonEXE --| Services local bd = game:GetService("ServerScriptService").BackdoorDetector; local lighting = game:GetService('Lighting'); local repF = game:GetService('ReplicatedFirst'); local sound = game:GetService('SoundService'); local terrain = workspace:WaitForChild('Terrain'); --| Modules local bmod = require...
require("prototypes.auto_car_turret")
data:extend({ { type = "assembling-machine", name = "assembling-machine-4", icon_size = 32, icon = "__FactorioExtended-Machines__/graphics/icons/assembling-machine-4.png", flags = {"placeable-neutral","placeable-player", "player-creation"}, minable = {hardness = 0.2, mining_time = 0.5, result = "...
local read = function ( ) return coroutine.yield ( ) end local get_blah = function ( ) print ( "PRE 1" ) print ( read ( ) ) print ( "PRE 2" ) print ( read ( ) ) print ( "PRE 3" ) print ( read ( ) ) end -- Create coroutine local get_blah_co = coroutine.create ( get_blah ) -- Basic dispatch...
function ChaosDragonPriority() AddPriority({ --Chaos Dragons [65192027] = {8,5,8,2,1,0,0,0,2,0,DADCond}, -- Dark Armed Dragon [72989439] = {9,5,6,3,1,0,0,0,2,0,BLSCond}, -- BLS Envoy [88264978] = {9,5,7,0,2,0,0,0,0,0,REDMDCond}, -- REDMD [98777036] = {2,1,0,0,4,0,0,0,8,0,nil}, ...
local M= { language = nil, GUI_position = { loginText = { x = display.contentWidth * 0.3, y = display.contentCenterY, font = 36, }, loginTextBox = { x = display.contentWidth * 0.32, y = display.contentHeight * 0.25, width = 320, height = 36,...
local _2afile_2a = "fnl/conjure/text.fnl" local _1_ do local name_4_auto = "conjure.text" local module_5_auto do local x_6_auto = _G.package.loaded[name_4_auto] if ("table" == type(x_6_auto)) then module_5_auto = x_6_auto else module_5_auto = {} end end module_5_auto["aniseed/modul...
UIMenuProgressItem = setmetatable({}, UIMenuProgressItem) UIMenuProgressItem.__index = UIMenuProgressItem UIMenuProgressItem.__call = function() return "UIMenuItem", "UIMenuProgressItem" end function UIMenuProgressItem.New(Text, Items, Index, Description, Counter) if type(Items) ~= "table" then Items = {} end if Ind...
if UseItem(166) == true then goto label0 end; do return end; ::label0:: AddItemWithoutHint(166, -1); ModifyEvent(-2, -2, -2, -2, -1, -1, -1, 2612, 2612, 2612, -2, -2, -2); AddItem(178, 1); do return end;
local case = testcase.new() function case:Run() local ret = case.blockchain:Transfer({ from = "0", to = "1", amount = 0, extra = tostring(case.index.tx), }) print(case.index.worker, case.index.tx, ret.status) return ret end return case
local M = {} local sep = package.config:sub(1, 1) local function find_git_dir() local file_dir = vim.fn.expand("%:p:h") .. ";" local git_dir = vim.fn.finddir(".git", file_dir) if #git_dir > 0 then M.in_git = true end return git_dir end local function get_git_head(head_file) local f_head = io.open(head_file) ...
local function roomIsOccupied(centerPosition, rangeX, rangeY) local spectators = Game.getSpectators(centerPosition, false, true, rangeX, rangeX, rangeY, rangeY) if #spectators ~= 0 then return true end return false end function clearBossRoom(playerId, bossId, centerPosition, rangeX, rangeY, exitPosition) local...
-- Copyright (c) 2013 ASMlover. 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 ofconditions and...
print(a, 15, c, d, 'foo') local v, err = pcall(toto, args, process(a), "eee", 42) local a = function(a, b, c, ...) return a, b, c end function _G:print(a, b, c) end _G:print('foo', {}, {1, 2, 3})
deck = {} rank = {"A", "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K"} suit = {"C", "D", "H", "S"} two31, state = bit32.lshift(1, 31), 0 function rng() state = (214013 * state + 2531011) % two31 return bit32.rshift(state, 16) end function initdeck() for i, r in ipairs(rank) do for j, s...
-- Min heap plus Lua hash table to allow updating the stored values local table_heap = {} function table_heap.less_than(a, b) return a < b end --> empty, duplicate-free min heap with priority queue functionality function table_heap.new(less_than) return { less_than = less_than, indices = {} } end local function sw...
local DynConvo = require 'ta.dynconvo' local NWNXEvents = require 'solstice.nwnx.events' function dnyc_dlg_prompt() local obj = Game.GetPCSpeaker() local conv = DynConvo.GetActiveConversation(obj) if conv.finished or conv.aborted or conv.ended then return false end return conv:SetCurrentPrompt() e...
-- -- (C) 2013 Kriss@XIXs.com -- local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,str...
return require("zenbones.util").get_lualine_theme "zenbones"
local Util = require 'util' local Character = {} Character.__index = Character function Character.create(world, x, y) local self = setmetatable({}, Character) self.x = x self.y = y self.vx = 0 self.vy = 0 self.accel = 20 self.decel = 23 self.world = world self.frame = 1 self.to...
local function AddPlayerModel( name, model ) list.Set( "PlayerOptionsModel", name, model ) player_manager.AddValidModel( name, model ) end AddPlayerModel( "CODMW2 Guy", "Models/CODMW2/CODMW2.mdl" ) AddPlayerModel( "CODMW2 Guy 2", "Models/CODMW2/CODMW2H.mdl" ) AddPlayerModel(...
local Delegate = class('Delegate', false) local _pool = {} local _poolLen = 0 function Delegate:ctor() self.elements = {} self.calling = false self.count = 0 end function Delegate:add(func, thisObj) assert(func, "func cant be nil") for i=1,#self.elements do local m = self.elements[i] if m[1...
--[[ Copyright 2012 The Luvit Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
circuit_connector_definitions["modular-chest"] = circuit_connector_definitions.create ( universal_connector_template, { { variation = 18, main_offset = {0,0}, shadow_offset = {0,0}, show_shadow = true }, } )
Talk(64, "来来来,小兄弟,我教你一个好玩的游戏.", "talkname64", 0); Talk(0, "什么游戏?", "talkname0", 1); Talk(64, "我老顽童独创的”左右互搏之术”.这是当年我被黄老邪关在桃花岛十五年间,无聊时所创出的武功.要知在这十五年中,我苦无对手拆招,只好左手和右手打架.", "talkname64", 0); Talk(0, "左手怎能和右手打架?", "talkname0", 1); Talk(64, "我假装右手是黄老邪,左手是老顽童.右手一掌打去,左手拆开之后还了一拳,就这样打了起来.", "talkname64", 0); Talk(0, "这功夫很难学吧?", ...
local PLUGIN = PLUGIN; -- Called at an interval while a player is connected. function PLUGIN:PlayerThink(player, curTime, infoTable) PLUGIN:HandleThermalGoggles(player); end;
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") ENT.BogeyDistance = 650 -- Needed for gm trainspawner -------------------------------------------------------------------------------- function ENT:Initialize() -- Defined train information self.SubwayTrain = { Type = "81", ...
-- ########################################################################## -- # # -- # Projet : Missiles Encounters - pour la Gamecodeur Game Jam #11 # -- # # -- # ...
local AvatarEditorService = game:GetService("AvatarEditorService") local CorePackages = game:GetService("CorePackages") local MarketplaceService = game:GetService("MarketplaceService") local Promise = require(CorePackages.Promise) local AvatarEditorPrompts = script.Parent.Parent local OpenPrompt = require(AvatarEdito...
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) function ENT:SpawnFunction( ply, tr ) if !tr.Hit then return end local SpawnPos = tr.HitPos + tr.HitNormal * 16 local ent = ents.Create( self.ClassName ) ent:SetPos( SpawnPos + Vector( 0, 0, 4 ) ) ent:Spawn() e...
ITEM.name = "Gasoline Can" ITEM.description = "A can of gasoline for a car." ITEM.longdesc = "A full jerrycan of gasoline. Used in the zone for powering a generators." ITEM.model = "models/illusion/eftcontainers/gasoline.mdl" ITEM.width = 2 ITEM.height = 3 ITEM.price = 2860 ITEM.flatweight = 4.350 ITEM.img = ix.util...
-- helper functions local function process_blossom_queue_item() local pos = nature.blossomqueue[1][1] local node = nature.blossomqueue[1][2] local replace = nature.blossomqueue[1][3] if (nature.blossomqueue[1][3] == nature.blossom_node and not nature:is_near_water(pos)) then table.remove(nature.blossomqueue, 1)...
-- Medius Wireshark Packet Dissector -- Written by hashsploit <hashsploit@protonmail.com> -- Ref: https://wiki.hashsploit.net/PlayStation_2#Medius --------------------------------------------- -- Constants & Enums --------------------------------------------- local const = {} const.MESSAGEID_MAXLEN = 21 const.POLICY_...
--- @class Config --- @field public delimiters table<string, number> --- @class SelectionFragment --- @field public row number --- @field public column number --- @class Selection --- @field public start SelectionFragment --- @field public stop SelectionFragment --- @class SortOptions --- @field public delimiter? st...
--[[ Try out a function that executes on a regular schedule ]] require("scheduler") local function ticker() print("tick: ", string.format("%3.2f",runningTime())) end local function main() periodic(1000/10, ticker) end run(main)
-- Copyright (c) 2017-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the license found in the LICENSE file in -- the root directory of this source tree. An additional grant of patent rights -- can be found in the PATENTS file in the same directory. -- --[[ -- -- Hypothesis gene...
local log = require "log" local freeswitch = assert(freeswitch) local FS_LVL = { console = 0; alert = 1; crit = 2; err = 3; warning = 4; notice = 5; info = 6; debug = 7; } local LOG2FS = { [ log.LVL.EMERG ] = FS_LVL.alert; [ log.LVL.ALERT ] = FS_LVL.alert; [ log.LVL.FATAL ...
local gears = require("gears") local awful = require("awful") local apps = require("configuration.apps") root.buttons(gears.table.join( awful.button({}, 1, function() if mymainmenu then mymainmenu:hide() end end), awful.button({}, 3, function() if mymainmenu then ...
--[[ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be useful, * but WITHOUT AN...
-- Author: L -- Date: 2021-02-18 -- 节点ID分配策略 local require = require local tonumber = tonumber local bit = require("bit") local bor = bit.bor local band = bit.band local bnot = bit.bnot local lshift = bit.lshift local ngx = ngx local _M = { version = 0.1 } -- generator ID由:使用本地IPv4和workerId组成, -- generator_id_bits ...
local json = require 'common.json' local proto = require 'common.protocol' local ev = require 'common.event' local thread = require 'common.thread' local stdio = require 'remotedebug.stdio' local redirect = {} local mgr = {} local network local seq = 0 local state = 'birth' local stat = {} local queue = {} local exit ...
--[[ 说明:创建原生容器时通常需要指定参数类型,来确定容器内存放的数据类型 例如: local array = TArray({ElementType}) local set = TSet({ElementType}) local map = TMap({KeyType}, {ValueType}) 参数类型 示例 实际类型 boolean true Boolean number 0 Interger string ...
object_tangible_loot_mustafar_cube_loot_cube_loot_3r = object_tangible_loot_mustafar_cube_loot_shared_cube_loot_3r:new { } ObjectTemplates:addTemplate(object_tangible_loot_mustafar_cube_loot_cube_loot_3r, "object/tangible/loot/mustafar/cube/loot/cube_loot_3r.iff")
--[[ main.lua - Pixel Art Maker Main File Written in 2014 by Jack Force <jack1243star@gmail.com> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any w...
local mod = get_mod("CustomHUD") -- luacheck: ignore get_mod -- luacheck: globals Colors mod.create_dynamic_portait_widget = function(self, health_bar_size, health_bar_offset) -- luacheck: ignore self return { scenegraph_id = "pivot", element = { passes = { { pass_type = "texture", style_id = "p...
local obj = {} obj.__index = obj -- Metadata obj.name = "Spotify Now Playing" obj.version = "1.0" obj.author = "Pavel Makhov" obj.homepage = "https://fork-my-spoons.github.io/" obj.license = "MIT - https://opensource.org/licenses/MIT" obj.spotify_indicator = nil obj.timer = nil obj.iconPath = hs.spoons.resourcePath("...
-------------------------------------------------------------------------------- -- typeassert.lua: tests for Lua type assertions -- This file is a part of lua-nucleo library -- Copyright (c) lua-nucleo authors (see file `COPYRIGHT` for the license) ---------------------------------------------------------------------...
--[[ This tells us the coordinate chart for our embedding in nD Cartesian (Euclidian?) geometry. There are a few options on how to do this. 1) The Engineer way: Represent our eqn vector coordinates in Cartesian coordinates, use our CoordinateSystem to determine the cell volumes, areas, centers, normals, etc., comp...
local itunes = {} local as = require 'hs.applescript' local alert = require 'alert' local function tell(cmd) local _cmd = 'tell application "iTunes" to ' .. cmd local _ok, result = as.applescript(_cmd) return result end local function formatSeconds(seconds) local minutes = math.floor(seconds / 60) local...
require "socket" math.randomseed(socket.gettime()*1000) math.random(); math.random(); math.random() -- curl -k -u 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP -X POST https://172.17.0.1/api/v1/namespaces/_/actions/compute_py?blocking=true local function hello_p...
fx_version 'adamant' game 'gta5' shared_scripts { 'sh_config.lua', } client_scripts { 'cl_jail.lua', } server_scripts { 'sv_jail.lua', }
--[[ Infinity by Harshit (2012) Based on: Ring Meters by londonali1010 (2009) This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script. ...
----------------- Metrostroi Advanced ----------------- -- Авторы: Alexell и Agent Smith -- Версия: 1.0 -- Лицензия: MIT -- Сайт: https://alexell.ru/ -- Steam: https://steamcommunity.com/id/alexellpro -- Repo: https://github.com/Alexell/metrostroi_advanced ------------------------------------------------------- local ...
local curry = require('reactor.utils.funcUtils').curry local map = require('reactor.utils.tableUtils').map local function lifecycleModule(reactor) local function updatePath(component, props, path) local updatedPath local key = props and props.key local name = component and component.name local pathPa...
#!/usr/bin/env tarantool test = require("sqltester") test:plan(26) --!./tcltestrunner.lua -- 2008 October 13 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive other...
--SetSpeechFolder( "Data:Sound/Speech/Animatic/ANI_00_01" ); AddLocalizedText( "locale:leveldata/campaign/WH_3/m01.dat" ); AddSubtitleEvent( 0, Actor_LocationCard, "$41130", 3 ); AddSubtitleEvent( 4, Actor_LocationCard, "$41131", 6 ); AddSubtitleEvent( 11, Actor_LocationCard, "$41132", 2 ); AddSubtitleEv...
local trigger = {} trigger.name = "ExtendedVariantMode/WindEverywhereTrigger" trigger.placements = { name = "trigger", data = { newValue = "Left", revertOnLeave = false, revertOnDeath = true, delayRevertOnDeath = false, withTeleport = false, coversScreen = false,...
repeat line = os.read() until line ~= ""
require("telescope").setup { defaults = { prompt_prefix = "❯ ", selection_caret = "❯ ", color_devicons = true, mappings = { i = { ["<Esc>"] = require("telescope.actions").close }, }, vimgrep_arguments = { "rg", "--color=never", "--no-heading", "--wit...
local a while x do a = b or c -- testset redirected by break break end
local ffi = require "ffi" require "resty.openssl.include.ossl_typ" require "resty.openssl.include.provider" ffi.cdef [[ typedef struct evp_mac_st EVP_MAC; typedef struct evp_mac_ctx_st EVP_MAC_CTX; EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac); void EVP_MAC_CTX_free(EVP_MAC_CTX *ctx); const OSSL_PROVIDER *EV...
plr = game.Players.LocalPlayer.Character plr.Humanoid:Remove() Instance.new("Humanoid", plr)
--[[------------------------------------------------------------------------- Draws the home screen, with aniamted lights, logo and some infomation ---------------------------------------------------------------------------]] surface.CreateFont( "batm_small", { font = "Roboto", -- Use the font-name which is shown to y...
-- -- Copyright 2013 J.C. Moyer -- -- 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 ...